/* === CSS RESET & NORMALIZATION === */
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,
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; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; background: #F9F6F2; color: #222; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style-position: inside; }

/* ==== BRAND & TYPOGRAPHY ==== */
:root {
  --brand-primary: #164067;
  --brand-secondary: #E49337;
  --brand-accent: #F9F6F2;
  --brand-dark: #222222;
  --brand-muted: #EEE6DA;
  --text-dark: #232323;
  --text-light: #F9F6F2;
  --card-bg: #fff;
  --shadow: 0 2px 16px 0 rgba(22,64,103,0.08);
  --radius: 12px;
  --font-display: 'Montserrat', Georgia, 'Times New Roman', Times, serif;
  --font-body: 'Roboto', Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root { --brand-accent: #212835; --card-bg: #222; --text-light: #F9F6F2; --text-dark: #fff; }
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--brand-dark);
  background: var(--brand-accent);
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.4rem; line-height: 1.15; margin-bottom: 20px; }
h2 { font-size: 1.7rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1rem; }
p, ul, ol, li, cite { font-family: var(--font-body); font-size: 1rem; }

/* ==== LAYOUT & CONTAINERS ==== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.flex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--brand-muted);
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.hero {
  padding: 48px 0 40px 0;
  background: linear-gradient(90deg, #F9F6F2 70%, #EEE6DA 100%);
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}
.content-wrapper {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .22s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 24px 0 rgba(22,64,103,0.13);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.feature-grid > li, .feature-grid > div {
  flex: 1 1 260px;
  min-width: 240px;
  background: var(--brand-muted);
  margin-bottom: 20px;
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 1px 6px 0 rgba(36,44,60,0.07);
  list-style: none;
  transition: box-shadow .18s, background .18s;
}
.feature-grid > li:hover, .feature-grid > div:hover {
  background: #f3ecd6;
  box-shadow: 0 2px 16px 0 rgba(22,64,103,0.10);
}
.feature-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.feature-icons li {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border-radius: 50px;
  padding: 8px 16px 8px 10px;
  font-size: 1rem;
  color: var(--brand-primary);
  box-shadow: 0 1px 6px 0 rgba(22,64,103,0.05);
  font-family: var(--font-body);
  gap: 8px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(22,64,103,0.08);
  color: var(--brand-dark);
  font-style: normal;
  min-width: 240px;
  max-width: 350px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  transition: box-shadow .2s, background .22s;
}
.testimonial-card p {
  font-size: 1.06rem;
  color: var(--brand-primary);
  font-family: var(--font-body);
}
.testimonial-card cite {
  color: var(--brand-secondary);
  font-size: .98rem;
}
.cta-section {
  padding: 20px 0 0 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.confirmation-section {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-muted);
  padding: 40px 0;
}

/* ==== NAVIGATION ==== */
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--brand-primary);
  position: relative;
  transition: color .15s;
  padding: 2px 6px;
  border-radius: 6px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--brand-secondary);
  background: var(--brand-muted);
}
/* CTA Button */
.cta-btn {
  padding: 10px 26px;
  background: var(--brand-primary);
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  box-shadow: 0 2px 18px 0 rgba(22,64,103,0.10);
  cursor: pointer;
  transition: background .19s, color .19s, box-shadow .20s;
  display: inline-block;
  margin-left: 18px;
  outline: none;
  text-align: center;
  letter-spacing: 0.01em;
}
.cta-btn.primary { background: var(--brand-primary); color: var(--text-light); }
.cta-btn.primary:hover, .cta-btn.primary:focus { background: var(--brand-secondary); color: var(--brand-accent); }
.cta-btn.secondary {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: var(--brand-primary);
  color: var(--brand-accent);
}

/* ==== FOOTER ===== */
footer {
  padding: 0;
  background: var(--brand-muted);
  color: var(--brand-primary);
  font-size: 1rem;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 36px 0 20px 0;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
}
.footer-nav a {
  color: var(--brand-primary);
  transition: color .14s;
  padding: 1px 8px; border-radius: 5px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-secondary);
  background: #f5e7ce;
}
.contact-footer {
  font-size: 1rem;
  color: var(--brand-dark);
  padding: 0;
  font-family: var(--font-body);
}
.contact-footer img {
  vertical-align: middle;
  height: 18px; width: 18px;
  margin-right: 8px;
}

/* ==== SPECIAL SECTIONS ==== */
.text-section ul, .text-section ol {
  margin: 14px 0 14px 20px;
  padding-left: 12px;
}
.text-section ul li, .text-section ol li {
  margin-bottom: 8px;
  line-height: 1.5;
}
.text-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 1px 10px 0 rgba(22,64,103,0.05);
  padding: 32px 22px;
}
.text-section a {
  color: var(--brand-secondary);
  text-decoration: underline;
  transition: color .15s;
}
.text-section a:hover {
  color: var(--brand-primary);
}

/* ==== FEATURE ITEM FLEX PATTERN ==== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== MOBILE NAVIGATION ==== */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}
.mobile-nav a {
  display: block;
  padding: 14px 16px;
  font-size: 1.22rem;
  color: var(--brand-primary);
  font-family: var(--font-display);
  border-bottom: 1px solid #EEE6DA;
  transition: background .18s, color .18s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-muted);
  color: var(--brand-secondary);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 23px;
  background: none;
  color: var(--brand-primary);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1002;
  transition: color .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-secondary);
}

@media (max-width: 1050px) {
  .container {
    max-width: 97vw;
    padding: 0 12px;
  }
}

@media (max-width: 900px) {
  .flex-header {
    gap: 10px;
  }
  .main-nav {
    gap: 12px;
  }
  .footer-main { gap: 16px; }
}

@media (max-width: 768px) {
  .container { padding: 0 8px; }
  .flex-header {
    padding: 12px 0;
  }
  .main-nav {
    display: none !important;
  }
  .cta-btn { margin-left: 10px; }
  .mobile-menu-toggle {
    display: block;
    background: var(--brand-primary);
    color: var(--brand-accent);
    border: none;
    font-size: 2rem;
    border-radius: 8px;
    padding: 4px 14px;
    margin-left: auto;
    cursor: pointer;
    z-index: 1004;
    transition: background .15s, color .15s;
  }
  .mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
    background: var(--brand-secondary);
    color: var(--brand-primary);
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 98vw;
    max-width: 400px;
    background: #fff;
    z-index: 1001;
    box-shadow: 2px 0 28px 0 rgba(22,64,103,0.18);
    transform: translateX(-105%);
    transition: transform .32s cubic-bezier(.45,0,.20,1);
    padding-top: 40px;
    will-change: transform;
  }
  .mobile-menu.open {
    transform: translateX(0);
    display: flex !important;
  }
  .mobile-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 30px;
  }
  .mobile-nav a { font-size: 1.18rem; }
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .testimonial-cards, .feature-grid, .card-container, .content-grid, .feature-icons {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .feature-grid > *, .testimonial-card, .card {
    min-width: 0px;
    max-width: 100%;
    width: 100%;
  }
  .hero .container {
    padding: 0 6px;
    gap: 12px;
  }
  .cta-section { align-items: stretch; text-align: left; }
  .section { padding: 32px 6px; }
  .confirmation-section {
    padding: 30px 0;
    min-height: unset;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}

@media (max-width: 500px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.11rem; }
  .footer-main { padding: 20px 0 10px 0; }
  .section { padding: 18px 2px; }
}

/* ==== HOVER & MICRO-INTERACTIONS ==== */
a, .cta-btn, .main-nav a, .footer-nav a, .mobile-nav a {
  transition: color .18s, background .18s, box-shadow .15s;
}
.card, .feature-grid > *, .testimonial-card, .cta-btn {
  transition: box-shadow .18s, background .16s, color .15s;
}
.card:focus-within, .card:hover,
.feature-grid > *:hover, .feature-grid > *:focus-within {
  box-shadow: 0 4px 24px 0 rgba(22,64,103,0.13);
  background: #f5edef;
}
.cta-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 10px 0 rgba(22,64,103,0.12);
}
input, textarea, select, button {
  font-family: var(--font-body);
  outline: none;
}
button:focus, a:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 -2px 22px 0 rgba(22,64,103,0.08);
  z-index: 1200;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  justify-content: space-between;
  padding: 24px 18px;
  font-size: 1rem;
  border-top: 2px solid var(--brand-secondary);
  transition: bottom .4s cubic-bezier(.46,.03,.52,.96);
}
.cookie-banner.hide {
  display: none !important;
}
.cookie-banner .cookie-text { max-width: 480px; line-height: 1.5; }
.cookie-banner .cookie-actions { display: flex; gap: 12px; }

.cookie-btn {
  padding: 8px 24px;
  border: none;
  border-radius: 24px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  margin: 0;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  box-shadow: 0 1px 12px rgba(22,64,103,0.07);
  transition: background .16s, color .16s;
}
.cookie-btn:hover, .cookie-btn:focus { background: var(--brand-primary); color: #fff; }
.cookie-btn.accept { background: var(--brand-primary); color: #fff; }
.cookie-btn.accept:hover, .cookie-btn.accept:focus { background: var(--brand-secondary); color: var(--brand-primary); }
.cookie-btn.settings { background: #f3ecd6; color: var(--brand-dark); }
.cookie-btn.settings:hover, .cookie-btn.settings:focus { background: var(--brand-secondary); color: var(--brand-primary); }

/* ==== COOKIE PREFERENCES MODAL ==== */
.cookie-modal-backdrop {
  display: none;
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  width:100vw; height:100vh;
  z-index: 1250;
  background: rgba(22,64,103,0.21);
  justify-content: center;
  align-items: center;
  animation: fadeIn .18s;
}
.cookie-modal-backdrop.open {
  display: flex;
  animation: fadeIn .24s;
}
@keyframes fadeIn {
  from { opacity:0; } to { opacity:1; }
}
.cookie-modal {
  background: #fff;
  color: var(--brand-dark);
  border-radius: var(--radius);
  box-shadow: 0 4px 44px 0 rgba(22,64,103,0.17);
  padding: 38px 32px 26px 32px;
  min-width: 340px;
  max-width: 98vw;
  position: relative;
  z-index: 1251;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideUp .23s cubic-bezier(.21,.94,.52,1.03);
}
@keyframes slideUp {
  from { transform: translateY(50px); opacity:.72; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-modal .modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.cookie-modal .modal-section {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 14px;
}
.cookie-modal .cookie-switch {
  min-width: 50px;
}
.cookie-modal .modal-actions {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 1.5rem;
  position: absolute;
  top: 16px;
  right: 20px;
  cursor: pointer;
}
.cookie-modal .close-modal:focus, .cookie-modal .close-modal:hover {
  color: var(--brand-secondary);
}
/* Cookie toggle/switch control */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  vertical-align: middle;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-label {
  font-size: 1rem;
  font-family: var(--font-body);
  margin-left: 6px;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #eee;
  border-radius: 34px;
  transition: background .2s;
}
.switch input:checked + .switch-slider {
  background: var(--brand-primary);
}
.switch-slider:before {
  position: absolute;
  content: '';
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .19s;
  box-shadow: 0 1px 5px 0 rgba(22,64,103,0.13);
}
.switch input:checked + .switch-slider:before {
  transform: translateX(24px);
}

@media (max-width: 568px) {
  .cookie-modal { padding: 18px 6px 18px 14px; }
  .cookie-modal .modal-title { font-size:1rem; }
  .cookie-banner { flex-direction: column; align-items: stretch; padding: 18px 6px; }
}

/* ==== EXTRA: ACCESSIBILITY ==== */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
  background: var(--brand-primary);
  color: #fff;
  padding: 7px 16px;
  border-radius: 8px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* ==== END ==== */
