/* ===========================
   CSS RESET & BASE NORMALIZE
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  min-height: 100vh;
  background-color: #FAFAFA;
  color: #293462;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

/* ===============================
   BRAND SOFT PASTEL COLOR SCHEME
   =============================== */
:root {
  --primary: #296B4D; /* brand green */
  --primary-pastel: #C9E6DD;
  --secondary: #293462; /* brand blue */
  --secondary-pastel: #D0DBF1;
  --accent: #F7F6DC; /* soft yellow */
  --bg-white: #FFFFFF;
  --bg-pink: #FFF5F7;
  --bg-mint: #F2FBF7;
  --bg-lavender: #F6F3FF;
  --gray-100: #F5F7FA;
  --gray-200: #EAEAEA;
  --gray-300: #D4D4D4;
  --shadow: 0 2px 12px 0 rgba(41, 107, 77, 0.10);
}

/* ========================================
   TYPOGRAPHY & HEADINGS (SOFT, DREAMY)
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem; /* 40px */
  margin-bottom: 20px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 16px;
  color: var(--secondary);
}
h3 {
  font-size: 1.375rem; /* 22px */
  font-weight: 600;
  color: var(--primary);
}
h4, h5, h6 {
  font-size: 1.125rem;
  color: var(--secondary);
}
p, ul, ol, dl, table, address {
  font-size: 1rem;
  color: #444;
  margin-bottom: 16px;
}
ul, ol {
  padding-left: 22px;
}
li {
  margin-bottom: 8px;
}
strong {
  font-weight: 700;
}
address {
  font-style: normal;
  margin-bottom: 16px;
  color: #293462;
}

/* ============================
   CONTAINER/SECTION LAYOUT
   ============================ */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
section {
  background: var(--bg-pink);
  border-radius: 24px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: var(--shadow);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-section {
  max-width: 740px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* =========================
   NAVBAR & HEADER STYLING
   ========================= */
header {
  background: var(--bg-mint);
  box-shadow: 0 3px 20px 0 rgba(41, 52, 98, 0.08);
  position: relative;
  z-index: 40;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 16px;
  min-height: 72px;
  gap: 8px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.063rem;
  padding: 10px 16px;
  border-radius: 18px;
  color: var(--primary);
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
  margin-right: 6px;
}
header nav a:last-child {
  margin-right: 0;
}
header nav a.cta {
  background: linear-gradient(90deg, var(--secondary-pastel), var(--primary-pastel));
  color: var(--secondary);
  font-weight: 700;
  border: none;
  border-radius: 22px;
  box-shadow: 0 3px 14px rgba(41, 107, 77, 0.08);
  transition: background 0.3s, color 0.2s, box-shadow 0.3s;
}
header nav a.cta:hover,
header nav a.cta:focus {
  background: linear-gradient(90deg, var(--accent), #e8eefd);
  color: var(--primary);
  box-shadow: 0 4px 22px rgba(41, 52, 98, 0.15);
}
header nav a:hover,
header nav a:focus {
  background: var(--primary-pastel);
  color: var(--secondary);
}
header img {
  height: 46px;
  width: auto;
  margin-right: 12px;
}

/* ==========================
   MOBILE NAVIGATION
   ========================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--secondary);
  margin-left: auto;
  padding: 8px 16px;
  cursor: pointer;
  z-index: 101;
  transition: background 0.15s;
  border-radius: 10px;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--primary-pastel);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: linear-gradient(120deg, #FFF5F7 60%, var(--primary-pastel) 100%);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.65,0,0.35,1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 24px;
  box-shadow: 0 12px 40px -10px rgba(41, 52, 98, 0.15);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--secondary);
  align-self: flex-end;
  margin-bottom: 16px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--primary-pastel);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  padding: 10px 0;
  border-radius: 10px;
  font-weight: 500;
  transition: background 0.18s, color 0.16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--primary-pastel);
  color: var(--secondary);
}

@media (max-width: 1024px) {
  header nav {
    gap: 2px;
  }
}
@media (max-width: 860px) {
  header nav a {
    font-size: 0.96rem;
    padding: 9px 8px;
  }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =====================
   FLEXBOX LAYOUT PATTERNS
   ===================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 340px;
  border-radius: 18px;
  background: var(--bg-white);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  transition: box-shadow 0.25s, transform 0.2s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 30px rgba(41, 52, 98, 0.15);
  transform: translateY(-5px) scale(1.02);
}
/* Feature Grid on all relevant pages */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 20px 0;
}
.feature-item {
  background: linear-gradient(120deg, var(--accent) 60%, var(--bg-mint) 100%);
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(41, 107, 77, 0.08);
  padding: 28px 20px 20px 20px;
  flex: 1 1 210px;
  min-width: 160px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.24s, transform 0.18s;
}
.feature-item:hover {
  box-shadow: 0 8px 24px rgba(41, 52, 98, 0.14);
  transform: translateY(-3px);
}
.feature-item img {
  height: 46px;
  width: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px #e0e4fa);
}

/* =====================
   TESTIMONIALS & CARDS
   ===================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px 18px 24px;
  border-radius: 26px;
  margin-bottom: 20px;
  background: linear-gradient(105deg, var(--secondary-pastel) 85%, var(--bg-white) 100%);
  box-shadow: 0 4px 18px 0 rgba(41, 52, 98, 0.11);
  font-size: 1.06rem;
  color: #253447;
  font-style: italic;
  position: relative;
  min-width: 240px;
  max-width: 590px;
}
.testimonial-card p {
  margin: 0 0 0 16px;
  color: #273b4d;
}
.testimonial-card span {
  font-size: 0.98rem;
  font-style: normal;
  color: var(--primary);
  font-weight: 600;
  margin-left: 16px;
}
.testimonial-card::before {
  content: '“';
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  color: #b6c4e8;
  font-size: 2.8rem;
  position: absolute;
  left: 8px;
  top: 10px;
  opacity: 0.17;
  z-index: 1;
}

/* =================
   TABLE STYLING
   ================= */
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin: 16px 0 28px 0;
  background: var(--bg-white);
  box-shadow: var(--shadow);
  border-radius: 16px;
  overflow: hidden;
  font-size: 1rem;
}
thead {
  background: var(--primary-pastel);
}
thead th {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.08rem;
  color: var(--primary);
  font-weight: 700;
  padding: 15px 12px;
  border-bottom: 1px solid var(--gray-200);
}
td, th {
  padding: 12px 10px;
  text-align: left;
}
tbody td {
  border-bottom: 1px solid var(--gray-100);
}
tbody tr:last-child td {
  border-bottom: none;
}

/* ===================
   CTA BUTTONS
   =================== */
.cta, .cta:visited {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  background: linear-gradient(100deg, var(--primary-pastel) 85%, var(--secondary-pastel) 100%);
  color: var(--secondary);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 34px;
  margin-top: 12px;
  margin-bottom: 8px;
  border: none;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: background 0.18s, color 0.17s, box-shadow 0.19s, transform 0.13s;
  cursor: pointer;
  text-align: center;
}
.cta:hover, .cta:focus {
  background: linear-gradient(100deg, var(--accent) 85%, #FFF5F7 100%);
  color: var(--primary);
  box-shadow: 0 4px 26px rgba(41,52,98,0.18);
  transform: translateY(-2px) scale(1.03);
}

/* ===================
   FOOTER STYLING
   =================== */
footer {
  background: var(--primary-pastel);
  padding: 36px 0 24px 0;
  font-size: 1rem;
}
footer .container {
  padding-top: 0;
  padding-bottom: 0;
}
footer .content-wrapper {
  flex-direction: row;
  gap: 70px;
  align-items: flex-start;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 8px;
}
footer nav a {
  font-size: 1rem;
  color: var(--primary);
  opacity: 0.82;
  padding: 5px 10px;
  border-radius: 8px;
  transition: background 0.18s, color 0.19s;
}
footer nav a:hover,
footer nav a:focus {
  background: var(--accent);
  color: var(--secondary);
  opacity: 1;
}
footer address {
  color: var(--secondary);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.02rem;
}
footer small {
  display: block;
  margin: 0 auto;
  text-align: center;
  color: #778FA6;
  font-size: 0.97rem;
  padding-top: 16px;
}

/* ====================================
   COOKIE CONSENT BANNER & MODAL
   ==================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg, var(--primary-pastel) 60%, var(--accent) 100%);
  box-shadow: 0 -2px 22px 0 rgba(41,52,98,.10);
  z-index: 2100;
  padding: 24px 14px 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: transform 0.38s, opacity 0.24s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  gap: 18px;
  margin-top: 2px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 11px 24px;
  border: none;
  border-radius: 14px;
  margin: 0 2px;
  transition: background 0.17s, color 0.12s, box-shadow 0.15s;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(41,52,98,.03);
}
.cookie-banner .accept-all {
  background: var(--primary);
  color: var(--accent);
}
.cookie-banner .accept-all:hover {
  background: var(--secondary);
  color: var(--accent);
}
.cookie-banner .reject-all {
  background: var(--secondary-pastel);
  color: var(--secondary);
}
.cookie-banner .reject-all:hover {
  background: var(--gray-100);
}
.cookie-banner .cookie-settings {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--primary-pastel);
}
.cookie-banner .cookie-settings:hover {
  background: var(--primary-pastel);
  color: var(--secondary);
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(41, 52, 98, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2200;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--bg-white);
  border-radius: 24px;
  padding: 32px 24px 24px 24px;
  max-width: 370px;
  width: 94vw;
  box-shadow: 0 6px 36px 0 rgba(41,52,98,0.16);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h2 {
  font-size: 1.34rem;
  margin-bottom: 4px;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0;
  padding: 8px 0;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--secondary);
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
  cursor: pointer;
}
.cookie-category input[disabled] {
  accent-color: #aaa;
  cursor: not-allowed;
}
.cookie-modal-buttons {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 22px;
  border: none;
  border-radius: 13px;
  background: var(--primary-pastel);
  color: var(--primary);
  transition: background 0.18s, color 0.13s;
  cursor: pointer;
}
.cookie-modal .confirm {
  background: var(--primary);
  color: var(--accent);
}
.cookie-modal .confirm:hover {
  background: var(--secondary);
  color: var(--accent);
}
.cookie-modal .cancel {
  background: var(--secondary-pastel);
  color: var(--secondary);
}
.cookie-modal .cancel:hover {
  background: var(--gray-200);
}

/* =============================
   LISTS, DL, FAQ, & MISC
   ============================= */
dt {
  font-size: 1.09rem;
  font-weight: 700;
  margin-top: 10px;
  color: var(--primary);
}
dd {
  margin-left: 20px;
  margin-bottom: 8px;
  color: #444;
}
li::marker {
  color: var(--secondary);
}

/* FAQ and DL styling */
dl {
  margin-bottom: 22px;
}

/* =============================
   MEDIA QUERIES: RESPONSIVENESS
   ============================= */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
  }
  .feature-grid, .card-container, .content-grid {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  section {
    padding: 32px 10px;
    border-radius: 16px;
  }
  .feature-item,
  .testimonial-card,
  .card {
    min-width: 160px;
    max-width: 100%;
    padding: 22px 13px 17px 12px;
    border-radius: 18px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.55rem; }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  section, .section {
    padding: 22px 6px;
    border-radius: 10px;
    margin-bottom: 32px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .testimonial-card {
    padding: 16px 12px 14px 12px;
    min-width: 120px;
    font-size: 1rem;
    border-radius: 12px;
  }
  .feature-item {
    border-radius: 13px;
    min-width: 100px;
    padding: 14px 8px 12px 8px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 500px) {
  h1, h2 { font-size: 1.12rem; }
  .container {
    padding-left: 2px;
    padding-right: 2px;
  }
  section, .section {
    padding: 10px 2px;
  }
  .cta, .cta:visited {
    padding: 11px 7vw;
    font-size: 1rem;
  }
  .feature-item {
    padding: 10px 4px 7px 4px;
  }
  .testimonial-card {
    font-size: .97rem;
  }
  .cookie-modal {
    padding: 14px 3vw;
  }
}

/* =============================
   ANIMATION & VISUAL FEEDBACK
   ============================= */
button, .cta, .feature-item, .testimonial-card, .card, .cookie-banner button, .cookie-modal button {
  transition: box-shadow 0.14s, background 0.18s, color 0.14s, transform 0.16s;
}

/* Hide elements visually but keep accessible (for potential ARIA modals etc) */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* =============================
   SCROLLBAR (SUBTLE, MODERN)
   ============================= */
::-webkit-scrollbar {
  width: 9px;
  background: var(--primary-pastel);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary-pastel);
  border-radius: 12px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* =============================
   ACCESSIBLE FOCUS OUTLINES
   ============================= */
a:focus, button:focus {
  outline: 2px dashed var(--secondary);
  outline-offset: 1px;
  z-index: 10;
}

/* =============================
   OVERRIDE AUTOFILL BG
   ============================= */
input:-webkit-autofill {
  box-shadow: 0 0 0 40px #ebf7ef inset !important;
  -webkit-text-fill-color: var(--primary) !important;
}

/* ===========================
   END OF STYLESHEET
   =========================== */
