/* CSS RESET & NORMALIZE */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; border: 0; }
input, button, textarea, select { font: inherit; }
button { border: none; background: none; cursor: pointer; }

/* BRAND VARIABLES */
:root {
  --primary: #24497A;
  --secondary: #E2C6AE;
  --accent: #FFFFFF;
  --gray-100: #f9fafc;
  --gray-200: #ecf0f4;
  --gray-300: #d8dde3;
  --gray-400: #8e9aac;
  --gray-500: #575e6c;
  --success: #1CA97A;
  --danger: #BD2C2C;
  --shadow-lg: 0 8px 32px rgba(36,73,122,0.09);
  --shadow-md: 0 2px 8px rgba(36, 73, 122, 0.07);
  --header-height: 72px;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', Arial, sans-serif;
}

/* BASE TYPOGRAPHY */
body {
  font-family: var(--font-body);
  background: var(--gray-100);
  color: var(--primary);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 16px; }
h4 { font-size: 1.2rem; margin-bottom: 12px; }

p, ul, ol, dl, dd {
  color: var(--gray-500);
  font-size: 1rem;
  margin-bottom: 16px;
}
strong { color: var(--primary); font-weight: 700; }
a {
  color: var(--primary);
  transition: color 0.2s;
}
a:hover, a:focus { color: var(--secondary); }

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.section {
  background: var(--accent);
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 900px) {
  .container { max-width: 98vw; }
}
@media (max-width: 768px) {
  .section { padding: 32px 10px; margin-bottom: 40px; }
  .container { padding: 0 6vw; }
}
@media (max-width: 500px) {
  .section { padding: 20px 2vw; }
}

/* FLEXBOX PATTERNS (MANDATORY) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 12px;
  background: var(--gray-100);
  box-shadow: var(--shadow-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.25s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 20px; }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--gray-200);
  border-left: 5px solid var(--secondary);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  max-width: 540px;
  color: #253145;
}
.testimonial-card p { color: #253145; font-size: 1.15rem; margin-bottom: 8px; font-style: italic; }
.testimonial-card span { color: var(--primary); font-weight: 600; font-size: 1rem; margin-bottom: 5px; }
.testimonial-card div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* NAVIGATION (Header & Mobile) */
header {
  width: 100%;
  background: var(--primary);
  box-shadow: var(--shadow-md);
  position: relative;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  gap: 0;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 24px;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
nav a {
  color: var(--accent);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
nav a:hover, nav a:focus {
  color: var(--secondary);
  background: rgba(226,198,174,0.10);
}
nav a.cta-btn {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 700;
  border-radius: 6px;
  padding: 8px 18px;
  margin-left: 12px;
  transition: background 0.18s, color 0.18s, box-shadow 0.22s;
  box-shadow: 0 2px 6px rgba(36,73,122,.07);
}
nav a.cta-btn:hover, nav a.cta-btn:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(36,73,122,.10);
}


/* MOBILE MENU (Burger) */
.mobile-menu-toggle {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 501;
  background: var(--secondary);
  color: var(--primary);
  font-size: 2.2rem;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  box-shadow: var(--shadow-md);
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent);
  color: var(--primary);
}
@media (max-width: 900px) {
  nav { display: none; }
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,73,122,0.97);
  z-index: 500;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.6,.02,.25,1.05);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--secondary);
  color: var(--primary);
  font-size: 2rem;
  margin: 22px 30px 20px 0;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  box-shadow: var(--shadow-md);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: var(--primary);
}
.mobile-nav {
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 0 36px;
  margin-top: 10vh;
}
.mobile-nav a {
  color: var(--accent);
  padding: 18px 0;
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 600;
  width: 100%;
  border-bottom: 1px solid rgba(226,198,174,0.08);
  transition: color 0.17s, background 0.17s;
  border-radius: 0;
  display: block;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(226,198,174,0.14);
  color: var(--secondary);
}

/* MAIN CONTENT & FLEX UTILITIES */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

ul, ol {
  padding-left: 20px;
  margin-bottom: 18px;
  color: var(--gray-500);
}
ul li, ol li {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Dl (FAQ) */
dl { margin-bottom: 16px; }
dl dt {
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.1em;
  margin-bottom: 6px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
dl dd {
  margin-left: 28px;
  margin-bottom: 14px;
  font-size: 1em;
  color: var(--gray-500);
}

/* BUTTONS & CALLS TO ACTION */
.cta-btn, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 8px;
  font-size: 1.07rem;
  font-family: var(--font-body);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(36,73,122,0.08);
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s;
}
.cta-btn:hover, .cta-btn:focus, .button:hover, .button:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 18px 0 rgba(36,73,122,0.09);
}

/* ICON IMAGES */
img[alt^="Icon "] {
  height: 32px;
  width: 32px;
  object-fit: contain;
  margin-right: 10px;
}

/* STAR ICONS in TESTIMONIALS */
.testimonial-card img[alt*="star"], .testimonial-card img[src*="star"] {
  width: 22px;
  height: 22px;
  margin: 0;
}

/* SOCIAL MEDIA LINKS */
.social-media-links {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}
.social-media-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  background: var(--gray-200);
  border-radius: 50%;
  transition: background 0.18s;
}
.social-media-links a:hover, .social-media-links a:focus {
  background: var(--secondary);
}
.social-media-links img {
  width: 22px;
  height: 22px;
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 48px 0 32px 0;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 28px;
}
footer .content-wrapper {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-links {
  font-size: 0.97rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.footer-links a {
  color: var(--accent);
  padding: 1px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}
.footer-links a:hover, .footer-links a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.contact-snippet p,
.contact-snippet a {
  color: #dbe2ea;
  font-size: 0.97rem;
}
@media (max-width: 900px) {
  footer .container, footer .content-wrapper { flex-direction: column; gap: 18px; align-items: flex-start; }
  footer { padding: 36px 0 24px 0; }
}

/* RESPONSIVE: GENERAL */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.14rem; }
  .testimonial-card { min-width: 0; }
}

@media (max-width: 500px) {
  .footer-links { font-size: 0.89rem; }
  footer .container { padding: 0 8px; }
  header .container { padding: 0 8px; }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 22px 30px 18px 30px;
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 -4px 18px rgba(25,32,48,0.07);
  z-index: 700;
  gap: 24px;
  font-size: 1rem;
  transition: transform 0.4s cubic-bezier(.86,.46,.27,.99), opacity 0.22s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-btn {
  margin-left: 14px;
  padding: 10px 22px;
  border-radius: 7px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  transition: background 0.16s, color 0.16s, box-shadow 0.14s;
  cursor: pointer;
}
.cookie-banner .cookie-btn.accept {
  background: var(--success);
  color: var(--accent);
}
.cookie-banner .cookie-btn.accept:hover, .cookie-banner .cookie-btn.accept:focus {
  background: #14805B;
  color: var(--accent);
}
.cookie-banner .cookie-btn.reject {
  background: var(--danger);
  color: var(--accent);
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus {
  background: #830404;
  color: var(--accent);
}
.cookie-banner .cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: var(--accent);
  color: var(--primary);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 20px 8px 24px 8px;
    font-size: 0.99rem;
    text-align: left;
  }
  .cookie-banner .cookie-btn { margin-left: 0; margin-top: 6px; }
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(19,30,42,0.50);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: var(--accent);
  color: var(--primary);
  border-radius: 16px;
  padding: 36px 28px 32px 28px;
  box-shadow: 0 8px 48px rgba(36,73,122,0.15);
  min-width: 305px;
  max-width: 96vw;
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal-content h3 {
  font-size: 1.28rem;
  margin-bottom: 6px;
}
.cookie-modal-content label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 10px;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.cookie-switch input { display: none; }
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: var(--gray-300);
  border-radius: 16px;
  transition: background 0.15s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--primary);
}
.cookie-slider:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  transition: left 0.16s;
}
.cookie-switch input:checked + .cookie-slider:before {
  left: 19px;
}
.cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 14px;
  background: var(--gray-200);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gray-500);
  cursor: pointer;
  border: none;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--danger);
  color: var(--accent);
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal-actions .button {
  min-width: 114px;
}

@media (max-width: 480px) {
  .cookie-modal-content {
    padding: 16px 6vw 22px 7vw;
    width: 98vw;
    min-width: 0;
  }
}

/* ANIMATION HELPERS */
.slide-in {
  animation: slideInX 0.33s cubic-bezier(.74,-0.05,.25,1.09) both;
}
@keyframes slideInX {
  from { transform: translateX(110%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.slide-out {
  animation: slideOutX 0.28s cubic-bezier(.86,0,.07,1.06) both;
}
@keyframes slideOutX {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

/* MODALS z-index: > mobile-menu and banner */

/* FORM ELEMENTS (for contact etc.) */
input, textarea, select {
  border: 1px solid var(--gray-300);
  border-radius: 7px;
  padding: 12px;
  font-size: 1rem;
  background: var(--gray-100);
  color: var(--primary);
  margin-bottom: 18px;
  transition: border 0.18s, box-shadow 0.12s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 2px 8px 0 rgba(36,73,122,0.06);
}

/* MISC: Hide scroll on mobile menu open */
body.menu-opened {
  overflow: hidden;
}

/* UTILITIES */
.mt-8 { margin-top: 8px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }

/* CARDS, BORDERS, SHADOWS */
.card {
  background: var(--accent);
  border: 1.5px solid var(--gray-300);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 6px 0;
}

/* Spacing between content sections (MANDATORY) */
.section + .section,
.section + .card-container,
.card + .card {
  margin-top: 20px !important;
}

/* Accessibility: Focus outline */
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

/* --- END OF STYLES --- */