/* 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, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #274046;
  background: #F8FAFC;
  min-height: 100vh;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #235A7B;
  text-decoration: none;
  transition: color 0.23s;
}
a:hover, a:focus {
  color: #2A647A;
  text-decoration: underline;
}
button, input[type="button"], input[type="submit"] {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 20px;
}
li:not(:last-child) {
  margin-bottom: 8px;
}
textarea, input {
  font: inherit;
}

/* -------- BRANDING COLORS & FONTS --------- */
:root {
  --brand-primary: #235A7B;
  --brand-secondary: #E5F1F9;
  --brand-accent: #F9C846;
  --pastel-blue: #B7DBF7;
  --pastel-pink: #FEE8E6;
  --pastel-green: #DDF6E5;
  --pastel-lavender: #ECE5F9;
  --pastel-yellow: #FFF7D1;
  --pastel-grey: #F7F9FC;
  --white: #fff;
  --shadow: rgba(67, 108, 147, 0.08);
  --shadow-strong: rgba(67, 108, 147, 0.18);
  --border-radius: 18px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* --------- LAYOUT CONTAINERS --------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
h4 {
  font-size: 1.10rem;
  margin-bottom: 7px;
}
p, .text-section {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #405360;
  margin-bottom: 10px;
  line-height: 1.75;
}
strong {
  font-weight: 700;
}
small {
  font-size: 0.89rem;
  color: #6B7C94;
}

/* CALM, PASTEL BACKGROUNDS & SECTIONS */
.hero {
  background: linear-gradient(120deg, #E5F1F9 82%, #FEE8E6 100%);
  border-radius: var(--border-radius);
  margin-top: 20px;
  margin-bottom: 40px;
  min-height: 270px;
  display: flex;
  align-items: center;
}
.hero .container {
  justify-content: flex-start;
}
.hero .content-wrapper {
  gap: 20px;
}

/* FEATURED GRID (no grid!) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--pastel-blue);
  padding: 28px 24px;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 8px var(--shadow);
  flex: 1 1 230px;
  min-width: 200px;
  max-width: 270px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid > div img {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 24px var(--shadow-strong);
  transform: translateY(-2px) scale(1.025);
}

/* Stepper/Numbered List */
.stepper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style-type: decimal;
  font-size: 1.1rem;
  color: var(--brand-primary);
  margin: 20px 0 20px 20px;
}
.stepper li {
  background: var(--pastel-lavender);
  border-radius: 14px;
  padding: 16px 22px;
  margin-bottom: 0;
  position: relative;
  font-family: var(--font-body);
  color: #3C5070;
  box-shadow: 0 0.5px 4px var(--shadow);
}

/* Card Containers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 1.5px 12px var(--shadow);
  padding: 27px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  flex: 1 1 270px;
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 6px 24px var(--shadow-strong);
  transform: translateY(-3px) scale(1.018);
}

.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 */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--pastel-lavender);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 16px var(--shadow);
  font-family: var(--font-body);
  color: #2d3652;
  max-width: 550px;
}
.testimonial-card p {
  color: #293047;
  font-size: 1.04rem;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card .stars {
  display: flex;
  gap: 4px;
}
.testimonial-card span {
  color: #444a7a;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

/* Feature Item */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Category/Benefit/Infographic Styles */
.benefit-list ul, .infographic-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
}
.benefit-list li, .infographic-list li {
  background: var(--pastel-yellow);
  padding: 18px 20px;
  border-radius: 12px;
  color: #5d5477;
  font-family: var(--font-body);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 8px var(--shadow);
  min-width: 220px;
}
.benefit-list li img {
  width: 30px;
  height: 30px;
}

/* --- Buttons & Calls to Action --- */
.cta, .button, button.cta {
  font-family: var(--font-display);
  font-weight: 600;
  color: #274046;
  background: linear-gradient(90deg, var(--brand-accent) 60%, #FFE9A0 100%);
  border-radius: 26px;
  box-shadow: 0 1px 10px var(--shadow);
  padding: 13px 36px;
  font-size: 1.13rem;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.21s, box-shadow 0.21s, color 0.23s, transform 0.14s;
  display: inline-block;
  letter-spacing: 0.02em;
}
.cta:hover, .button:hover, button.cta:hover {
  background: linear-gradient(90deg, #FFD440 70%, #FFF7D1 100%);
  color: var(--brand-primary);
  box-shadow: 0 3px 22px var(--shadow-strong);
  transform: translateY(-2px) scale(1.03);
}

/* ----- HEADER & NAVIGATION ----- */
header {
  background: var(--white);
  border-bottom: 1.5px solid var(--brand-secondary);
  position: sticky;
  top: 0;
  z-index: 999;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 70px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1.09rem;
  color: var(--brand-primary);
  padding: 6px 12px;
  border-radius: 14px;
  transition: background 0.2s, color 0.19s;
}
header nav a:hover, header nav a:focus {
  background: var(--brand-secondary);
  color: #60A0C2;
}
header img {
  height: 42px;
  width: auto;
}

/* HAMBURGER BUTTON (MOBILE) */
.mobile-menu-toggle {
  background: var(--pastel-blue);
  color: var(--brand-primary);
  border-radius: 16px;
  font-size: 2rem;
  padding: 4px 10px;
  margin-left: 14px;
  border: none;
  box-shadow: 0 1px 6px var(--shadow);
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.16s, transform 0.17s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--pastel-pink);
  transform: scale(1.08);
}

@media (max-width: 900px) {
  header nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(140deg, #E5F1F9 80%, #FEE8E6 140%);
  z-index: 3000;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(0.75,0,0.2,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 32px;
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 28px;
  right: 24px;
  font-size: 2rem;
  color: var(--brand-primary);
  background: var(--pastel-pink);
  padding: 7px 18px;
  border-radius: 14px;
  border: none;
  z-index: 3040;
  transition: background 0.18s, transform 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--pastel-yellow);
  color: #B46B6B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 78px;
  margin-left: 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.28rem;
  padding: 11px 14px;
  color: var(--brand-primary);
  border-radius: 12px;
  background: none;
  transition: background 0.18s, color 0.18s;
  min-width: 170px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-accent);
  color: #2b485a;
}

/* Hide desktop nav, show mobile only on mobile */
@media (max-width: 900px) {
  .mobile-menu {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ------ FOOTER ------ */
footer {
  background: var(--pastel-grey);
  border-top: 1.2px solid #dde4ed;
  padding: 32px 0 12px 0;
  margin-top: 50px;
  font-size: 0.98rem;
}
footer .container {
  flex-direction: column;
  gap: 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px 46px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
footer nav a {
  color: var(--brand-primary);
  font-family: var(--font-body);
  transition: color 0.16s;
  font-size: 1.02rem;
}
footer nav a:hover, footer nav a:focus {
  color: #60A0C2;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 1.02rem;
  color: #466880;
}
.footer-contact img {
  width: 21px;
  margin-right: 8px;
  vertical-align: middle;
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-social img {
  width: 30px;
  height: 30px;
  filter: grayscale(0.4) opacity(0.7);
  transition: filter 0.2s;
}
.footer-social a:hover img, .footer-social a:focus img {
  filter: none;
}

/* CONTACT DETAILS */
.contact-details {
  font-size: 1.10rem;
  color: #32505B;
  background: var(--pastel-green);
  padding: 20px 24px;
  border-radius: 14px;
  margin: 18px 0 14px 0;
  box-shadow: 0 1.5px 9px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.contact-details img {
  width: 20px;
  margin-right: 7px;
}

.text-section {
  margin-bottom: 12px;
  font-size: 1.07rem;
  color: #465770;
}

/* Responsive spacing for sections */
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
  }
  .section {
    padding: 28px 6px;
    margin-bottom: 42px;
  }
  .feature-grid {
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 6px;
  }
  .content-wrapper, .footer .content-wrapper {
    gap: 18px;
  }
  .hero {
    border-radius: 0;
    margin: 0 -6px 34px -6px;
    min-height: unset;
    padding: 18px 0;
  }
  .feature-grid, .card-container, .content-grid, .benefit-list ul, .infographic-list ul {
    flex-direction: column;
    gap: 14px;
  }
  .card, .feature-grid > div, .testimonial-card {
    min-width: 0;
    width: 100%;
    max-width: none;
  }
  .card, .feature-grid>div {
    padding: 19px 11px;
  }
  .section {
    padding: 18px 2px;
    margin-bottom: 24px;
  }
  .stepper li {
    padding: 11px 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  header .container {
    min-height: 62px;
    padding: 0 4px;
  }
}

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5500;
  background: linear-gradient(110deg, #E5F1F9 80%, #FFF7D1 100%);
  color: #32405a;
  box-shadow: 0 -4px 24px var(--shadow);
  padding: 24px 12px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  font-family: var(--font-body);
  animation: fadeinbanner 0.8s cubic-bezier(.54,0,.2,1);
}
@keyframes fadeinbanner {
  from {opacity: 0; transform: translateY(40px);}
  to {opacity: 1; transform: translateY(0);}
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cookie-banner button,
.cookie-banner .button {
  font-family: var(--font-display);
  padding: 10px 22px;
  border-radius: 21px;
  background: var(--brand-accent);
  color: #233850;
  border: none;
  margin: 0;
  font-size: 1.03rem;
  font-weight: 600;
  transition: background 0.18s, transform 0.18s, color 0.2s;
  box-shadow: 0 1px 8px var(--shadow);
}
.cookie-banner .button.reject {
  background: var(--pastel-pink);
  color: #8B3446;
}
.cookie-banner .button.settings {
  background: var(--pastel-blue);
  color: #235A7B;
}
.cookie-banner button:hover, .cookie-banner .button:hover {
  background: #FFD440;
  color: #2e4960;
  transform: scale(1.04);
}
.cookie-banner .button.reject:hover {
  background: #FEE8E6;
  color: #B76D72;
}
.cookie-banner .button.settings:hover {
  background: #B7DBF7;
  color: #3A5A7B;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 95vw;
  max-width: 400px;
  background: #fff;
  border-radius: 20px;
  transform: translate(-50%,-50%) scale(1);
  box-shadow: 0 6px 40px var(--shadow-strong);
  z-index: 6500;
  padding: 32px 18px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 1;
  transition: opacity 0.25s, transform 0.23s;
  animation: fadeinmodal 0.46s cubic-bezier(.42,0,.28,1);
}
@keyframes fadeinmodal {
  from { opacity:0; transform: translate(-50%,-50%) scale(0.9);}
  to { opacity:1; transform: translate(-50%,-50%) scale(1);}
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-50%) scale(0.98);
}
.cookie-modal h3 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--pastel-grey);
  padding: 10px 14px;
  border-radius: 11px;
  font-size: 1.01rem;
  margin-bottom: 8px;
}
.cookie-category .toggle {
  margin-left: 14px;
}
.cookie-category .toggle input[type=checkbox] {
  width: 34px;
  height: 18px;
  position: relative;
  accent-color: var(--brand-primary);
}

/* Essential cookies disabled toggle */
.cookie-category.essential .toggle input[type=checkbox] {
  accent-color: #ccd;
  pointer-events: none;
}

.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.cookie-modal .close-modal {
  background: var(--pastel-pink);
  color: #a34059;
  border-radius: 16px;
  font-size: 1.1rem;
  padding: 8px 18px;
  border: none;
  margin-left: auto;
  transition: background 0.19s, color 0.19s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: #FFD8C8;
  color: #83385A;
}

/* Cookie Modal Overlay */
.cookie-modal-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 6400;
  background: rgba(80, 97, 161, 0.23);
  animation: fadebg 0.33s;
}
@keyframes fadebg { from { opacity: 0; } to { opacity: 1; } }

/* ----------- MEDIA QUERIES ---------- */
@media (max-width: 600px) {
  .cookie-modal {
    max-width: 98vw;
    padding: 15vw 2vw;
  }
}

/* --- MICRO-ANIMATIONS and EFFECTS --- */
a, .button, .cta, button, input[type=submit] {
  transition: background 0.19s, color 0.17s, box-shadow 0.15s, transform 0.10s;
}
.card, .feature-grid > div, .testimonial-card {
  will-change: transform, box-shadow;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--brand-primary);
  background: #E5F1F9;
}

/* -------- ACCESSIBILITY ENHANCEMENTS ---------- */
:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* ----------- SPACING AND GAP ENFORCEMENT ------------- */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
  }
  .content-grid, .card-container { 
    flex-direction: column;
    gap: 20px;
  }
}

/* Make sure all cards/sections have at least 20px margin between */
.card:not(:last-child), .testimonial-card:not(:last-child) {
  margin-bottom: 24px;
}
section + section {
  margin-top: 28px;
}

/* ------- END OF CSS ------- */
