/* ---------------- 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, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #FAF7F4;
  color: #223764;
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
a {
  color: #223764;
  text-decoration: none;
  transition: color .2s;
}
a:hover {
  color: #5EB59E;
}
ul, ol {
  list-style: none;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: 100%;
  outline: none;
  border: none;
  background: none;
  color: inherit;
}
button {
  cursor: pointer;
}

/* ---------------- BRAND VARIABLES (fallbacks for old browsers) ------------------ */
:root {
  --color-primary: #223764;
  --color-secondary: #5EB59E;
  --color-accent: #EFEFEF;
  --color-warm-1: #FAF7F4;
  --color-warm-2: #FFD8B2;
  --color-warm-3: #FFEEE2;
  --color-text-main: #223764;
  --color-text-light: #fff;
  --color-muted: #838799;
  --shadow-soft: 0 4px 24px rgba(34,55,100,0.10);
  --shadow-card: 0 4px 16px rgba(94,181,158,0.11);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 7px;
  --transition: all 0.17s cubic-bezier(.52,.01,.19,1);
}

/* ---------------- TYPOGRAPHY ------------------ */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.375rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-primary);
  letter-spacing: -.5px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 18px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -.2px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--color-primary);
}
p {
  font-size: 1rem;
  color: var(--color-text-main);
  margin-bottom: 16px;
}
b, strong {
  font-weight: 700;
}
.small {
  font-size: 0.92rem;
  color: var(--color-muted);
}

/* ---------------- LAYOUT SPACING ------------------ */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: var(--color-warm-1);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 28px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .15s;
}
.card:hover {
  box-shadow: 0 6px 26px rgba(34,55,100,0.13);
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-warm-3);
  padding: 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: 0 2px 14px rgba(34,55,100, 0.09);
  flex-direction: column;
  max-width: 545px;
  width: 100%;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  background: var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 23px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ------------ HERO SECTION ------------ */
.hero-section {
  background: var(--color-secondary);
  background: linear-gradient(90deg, #FFEEE2 0%, #FFD8B2 100%);
  border-radius: 0px 0px var(--radius-lg) var(--radius-lg);
  padding: 60px 0 42px 0;
  margin-bottom: 40px;
}
.hero-section .content-wrapper {
  align-items: flex-start;
}
.hero-section h1,
.hero-section p {
  color: var(--color-primary);
}
.hero-section .cta-primary {
  margin-top: 12px;
}

/* ------------ MAIN NAV ------------ */
header {
  background: var(--color-warm-1);
  box-shadow: 0 1px 14px rgba(34,55,100,0.06);
  padding: 0 0 0 0;
  position: sticky;
  top: 0;
  z-index: 30;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0 15px 0;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.07rem;
}
.main-nav > a {
  padding: 7px 15px;
  border-radius: var(--radius-sm);
  transition: background .14s, color .14s;
  color: var(--color-primary);
}
.main-nav > a:hover, .main-nav > a:focus {
  background: var(--color-secondary);
  color: #fff;
}
.main-nav img {
  height: 34px;
  margin-right: 12px;
  border-radius: 0;
}
.cta-primary {
  background: var(--color-primary);
  color: #fff !important;
  border-radius: var(--radius-md);
  padding: 9px 22px;
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.07rem;
  display: inline-block;
  line-height: 1.2;
  transition: background .15s, box-shadow .18s, transform .13s;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary) !important;
  box-shadow: 0 6px 28px rgba(94,181,158, 0.13);
  transform: translateY(-2px) scale(1.03);
}
.cta-secondary {
  background: var(--color-secondary);
  color: #fff !important;
  border-radius: var(--radius-md);
  padding: 8px 19px;
  font-weight: 600;
  font-family: var(--font-display);
  transition: background .16s, box-shadow .15s, color .17s;
  margin-top: 24px;
  display: inline-block;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--color-primary);
  color: #fff !important;
  box-shadow: var(--shadow-card);
}

/* ------------- MOBILE MENU ------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  border-radius: 7px;
  font-size: 2.2rem;
  padding: 4px 12px 6px 12px;
  margin-left: auto;
  margin-right: 5px;
  transition: background var(--transition);
  z-index: 120;
  border: 2px solid transparent;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
  border: 2px solid var(--color-primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 360px;
  height: 100vh;
  background: var(--color-warm-1);
  box-shadow: -6px 0 32px rgba(34,55,100,0.2);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.64,-0.09,.39,1.45);
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0%);
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--color-secondary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 1.8rem;
  margin: 24px 24px 4px 0;
  padding: 2px 12px;
  border: none;
  transition: background .18s, color .14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 22px 36px 0 30px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.11rem;
  padding: 10px 0 10px 3px;
  border-radius: 7px;
  font-weight: 500;
  transition: background .14s, color .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* ------------- RESPONSIVE NAVIGATION (mobile) ------------- */
@media (max-width: 1059px) {
  .main-nav > a:not(:first-child),
  .main-nav > a.cta-primary {
    font-size: 0.98rem;
    padding: 7px 8px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
  }
  .footer-contact p {
    font-size: 0.97rem;
  }
}
@media (max-width: 799px) {
  .main-nav a:not(:first-child), .main-nav > a.cta-primary {
    font-size: 0.98rem;
    padding: 7px 4px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    float: right;
  }
  .mobile-menu {
    width: 95vw;
    max-width: 340px;
  }
  .container {
    padding: 0 12px;
  }
  .hero-section {
    padding: 38px 0 22px 0;
  }
  .section {
    margin-bottom: 37px;
    padding: 28px 9px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 17px;
  }
  .testimonial-card {
    padding: 15px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 19px;
    align-items: flex-start;
  }
}
@media (max-width: 500px) {
  .footer-contact p,
  .footer-copy {
    font-size: 0.93rem;
  }
  h1, .h1 {
    font-size: 1.45rem;
  }
  h2, .h2 {
    font-size: 1.13rem;
  }
  h3, .h3 {
    font-size: 1.01rem;
  }
  .card, .text-section {
    padding: 12px 7px;
  }
}

/* --------------- CARDS, LISTS --------------- */
ul > li, ol > li {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 1.05rem;
  color: var(--color-text-main);
}
ul > li img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}
ul > li:last-child, ol > li:last-child {
  margin-bottom: 0;
}

/* --------------- TESTIMONIAL CARDS --------------- */
.testimonial-card p {
  color: #223764;
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: #68686D;
  font-size: 0.96rem;
  font-weight: 500;
  margin-left: auto;
}
.testimonial-card {
  background: #FFF9F4;
  border-left: 7px solid var(--color-secondary);
  box-shadow: 0 4px 16px rgba(255,216,178,0.16);
  margin-left: 0;
  width: 100%;
  transition: box-shadow .16s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 26px rgba(94,181,158,0.19);
}

/* --------------- FOOTER --------------- */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 38px 0 19px 0;
  margin-top: 64px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  justify-content: center;
  margin-top: 0;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  text-decoration: underline;
  opacity: .80;
  padding: 4px 5px;
  border-radius: 5px;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  opacity: 1;
}
.footer-contact {
  text-align: center;
}
.footer-contact p {
  color: #fff;
  margin-bottom: 0;
}
.footer-copy {
  color: #FFD8B2;
  font-size: 0.93rem;
  text-align: center;
}
footer img {
  height: 42px;
  border-radius: 0;
  margin-bottom: 6px;
}

/* -------------- SUCCESS PAGE -------------- */
.success-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(98deg,#FFEEE2 0%,#FFD8B2 80%);
  border-radius: var(--radius-lg);
}
.success-section h1 {
  color: var(--color-primary);
  margin-bottom: 16px;
}
.success-section .cta-primary {
  margin-top: 18px;
}

/* -------------- COOKIE CONSENT -------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #FFF9F4;
  border-top: 2px solid #FFD8B2;
  box-shadow: 0 -5px 24px rgba(34,55,100,0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 21px 10px 19px 10px;
  z-index: 999;
  font-family: var(--font-body);
  animation: cookieIn .65s cubic-bezier(.4,.03,.27,1.23);
}
@keyframes cookieIn {
  from { transform: translateY(120%); opacity: 0; } 
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-text {
  font-size: 0.99rem;
  color: var(--color-primary);
  margin-right: 12px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn {
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  outline: none;
  box-shadow: 0 2px 4px rgba(34,55,100,0.03);
  transition: background .18s, color .16s, box-shadow .14s;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.accept:hover {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.reject {
  background: #FFD8B2;
  color: var(--color-primary);
}
.cookie-btn.reject:hover {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid #FFD8B2;
}
.cookie-btn.settings:hover {
  background: #FFD8B2;
}

/* ------ Cookie Modal (Preferences) ------ */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1001;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,55,100,0.30);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #FFEEE2;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 56px rgba(34,55,100,0.22);
  padding: 34px 34px 24px 34px;
  width: 95vw;
  max-width: 430px;
  font-family: var(--font-body);
  animation: modalIn .37s cubic-bezier(.4,.03,.27,1.23);
}
@keyframes modalIn {
  from { transform: translateY(-80px); opacity:0; } 
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-family: var(--font-display);
  font-size: 1.38rem;
  color: var(--color-primary);
  margin-bottom: 12px;
  font-weight: 600;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}
.cookie-category:last-child {
  margin-bottom: 0;
}
.cookie-category label {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--color-primary);
  cursor: pointer;
}
.cookie-switch {
  position: relative;
  width: 43px;
  height: 24px;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right:0;
  bottom:0;
  background:#FFD8B2;
  border-radius:12px;
  transition: .25s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #5EB59E;
}
.cookie-slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .22s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(19px);
}
.cookie-modal-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.cookie-modal .cookie-btn {
  padding: 8px 18px;
  font-size: 0.99rem;
}
@media (max-width: 480px) {
  .cookie-modal {
    padding: 12px 6vw 15px 6vw;
  }
}

/* --------------- LIST TABLES ETC. --------------- */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1.5rem;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(34,55,100,0.05);
  overflow: hidden;
}
th, td {
  padding: 11px;
  border-bottom: 1px solid #EFEFEF;
  text-align: left;
  font-size: 1rem;
}
th {
  background: #FFD8B2;
  font-weight: 700;
  color: var(--color-primary);
}
tr:last-child td {
  border-bottom: none;
}

/* --------------- FORMS & INPUTS --------------- */
input, textarea, select {
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1.5px solid #FFD8B2;
  padding: 11px 14px;
  margin-bottom: 14px;
  font-size: 1rem;
  width: 100%;
  outline: none;
  transition: border .14s, box-shadow .12s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 3px var(--color-secondary);
}
label {
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--color-primary);
  display: block;
}

/* --------------- UTILITY --------------- */
.d-flex {
  display: flex;
}
.flex-row {
  flex-direction: row;
}
.flex-col {
  flex-direction: column;
}
.gap-24 {
  gap: 24px;
}
.gap-12 {
  gap: 12px;
}
.align-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.text-center {
  text-align: center;
}
.mt-16 {
  margin-top: 16px;
}
.mb-32 {
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .d-flex.flex-row {
    flex-direction: column;
  }
}

/* -------------- ACCESSIBILITY (FOCUS RINGS) --------------- */
a:focus,
.button:focus,
input:focus,
textarea:focus,
.cookie-btn:focus {
  outline: 2.5px dashed var(--color-secondary);
  outline-offset: 1px;
}

/* -------------- CUSTOM SCROLLBAR -------------- */
::-webkit-scrollbar {
  width: 10px;
  background: #FFD8B2;
  border-radius: 12px;
}
::-webkit-scrollbar-thumb {
  background: #E5D3C5;
  border-radius: 12px;
}

body {
  scrollbar-color: #FFD8B2 #FFECE6;
  scrollbar-width: thin;
}

/* --------------- MICRO INTERACTIONS --------------- */
.card, .testimonial-card, .cta-primary, .cta-secondary, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: var(--transition);
}

/* --------------- FLEXBOX DEBUGGING (DEV ONLY) --------------- */
/*
.section, .content-wrapper, .text-image-section, .testimonial-card, .card, .card-container, .content-grid, .feature-item {
  outline: 1px dashed #EEE;
}
*/
