/* ------------------
  CSS RESET & BASE
------------------- */
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;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #F7FAFC;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #213441;
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.18s;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
  background: none;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}

/* --------------
  BRAND COLORS
---------------- */
:root {
  --primary: #24538a;
  --secondary: #e6f6fa;
  --accent: #51a16b;
  --accent-alt: #afe9cd;
  --warning: #f9ead3;
  --success: #d6efea;
  --danger: #ffdedb;
  --white: #ffffff;
  --bg: #f7fafc;

  --pastel-blue: #c5dbf7;
  --pastel-green: #d5faeb;
  --pastel-pink: #ffe4ee;
  --pastel-yellow: #fff8dc;
  --pastel-purple: #ece6fb;
}

/* -------------------
  TYPOGRAPHY
-------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #204261;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
}
p, ul, ol {
  font-size: 1rem;
  color: #304454;
  margin-bottom: 16px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
strong, b {
  font-weight: 700;
}
address {
  font-style: normal;
  color: #376077;
  margin-bottom: 12px;
}

/* SCALING ON MOBILE */
@media (max-width: 768px) {
  h1 {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }
  h2 {
    font-size: 1.18rem;
    margin-bottom: 12px;
  }
  h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
}

/* --------------------
  GLOBAL CONTAINERS
--------------------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}
.content-wrapper {
  background: var(--white);
  border-radius: 28px;
  box-shadow: 0 6px 24px 0 rgba(100, 140, 180, 0.05);
  padding: 32px 22px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px 0 rgba(160,180,195,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 24px 0 rgba(100,180,150,0.10);
  transform: translateY(-4px) scale(1.01);
  z-index: 1;
}
.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) {
  .content-wrapper, .card {
    padding: 18px 12px;
  }
  .section {
    padding: 24px 6px;
    margin-bottom: 32px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* ---------------------
  MAIN SITE LAYOUTS
---------------------- */
header {
  width: 100%;
  background: var(--pastel-blue);
  box-shadow: 0 2px 8px rgba(60,100,150,0.02);
  position: relative;
  min-height: 70px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 12px;
}
nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
}
nav.main-nav a {
  color: #24538a;
  font-size: 1rem;
  border-radius: 24px;
  padding: 6px 14px;
  transition: background 0.15s, color 0.18s;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  background: var(--pastel-green);
  color: var(--accent);
}
nav.main-nav .cta {
  background: var(--accent);
  color: var(--white);
  padding: 8px 22px;
  border-radius: 28px;
  margin-left: 6px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 12px rgba(70,170,120,0.09);
  transition: background 0.2s, color 0.18s, transform 0.15s;
}
nav.main-nav .cta:hover, nav.main-nav .cta:focus {
  background: #26774a;
  color: var(--white);
  transform: translateY(-1px) scale(1.03);
}

/* LOGO SIZING */
header img {
  height: 40px;
  width: auto;
  min-width: 95px;
}
@media (max-width: 768px) {
  nav.main-nav {
    display: none;
  }
}

/* ----------------------
  HERO / LANDING
----------------------- */
.hero {
  background: linear-gradient(62deg, var(--pastel-blue) 0%, var(--pastel-green) 100%);
  padding: 54px 0 38px 0;
  margin-bottom: 24px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  background: rgba(255,255,255,0.87);
  border-radius: 35px;
  box-shadow: 0 8px 28px 0 rgba(33, 83, 138, 0.13);
  padding: 46px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.hero h1 {
  font-size: 2.5rem;
  color: var(--primary);
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 8px;
}
.hero p {
  font-size: 1.18rem;
  color: #376077;
  margin-bottom: 22px;
  text-align: center;
}
.hero .cta {
  margin-top: 8px;
}
@media (max-width: 768px) {
  .hero {
    padding: 32px 0 18px 0;
  }
  .hero .content-wrapper {
    padding: 18px 8px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
}

/* --------------------
FEATURES LANDING PAGE
---------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.feature {
  background: linear-gradient(120deg, var(--pastel-purple) 80%, var(--pastel-green) 100%);
  border-radius: 24px;
  box-shadow: 0 2px 15px 0 rgba(80,120,120,0.08);
  padding: 26px 20px 24px 20px;
  flex: 1 1 215px;
  min-width: 185px;
  max-width: 270px;
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.16s, transform 0.14s;
  gap: 10px;
}
.feature img {
  width: 48px;
  margin-bottom: 12px;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 8px 30px 0 rgba(33,83,138,0.12);
  transform: translateY(-2px) scale(1.04);
}
.feature h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  color: #24538a;
  margin-bottom: 5px;
  margin-top: 0px;
}
.feature p {
  color: #345260;
  font-size: 0.97rem;
}
@media (max-width: 768px) {
  .feature-grid {
    gap: 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .feature {
    min-width: unset;
    max-width: unset;
    width: 100%;
  }
}

/* -----------------
  CTA BUTTONS
------------------ */
.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  padding: 13px 32px;
  border-radius: 30px;
  margin-top: 8px;
  box-shadow: 0 2px 12px 0 rgba(70,160,120,0.09);
  transition: background 0.2s, color 0.18s, transform 0.14s;
  border: none;
  cursor: pointer;
}
.cta:hover, .cta:focus {
  background: #26774a;
  color: var(--white);
  transform: translateY(-1px) scale(1.035);
}
.cta-secondary {
  display: inline-block;
  background: var(--pastel-yellow);
  color: #24538a;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 28px;
  border-radius: 28px;
  margin-top: 6px;
  margin-left: 6px;
  box-shadow: 0 2px 8px 0 rgba(210,180,100,0.10);
  transition: background 0.16s, color 0.18s, transform 0.14s;
  border: none;
  cursor: pointer;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #fff2be;
  color: #26774a;
  transform: translateY(-1px) scale(1.027);
}

/* ---------------
   INFOBOX
---------------- */
.infobox {
  background: var(--pastel-blue);
  border-left: 6px solid var(--primary);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 24px 0 12px 0;
  color: #1e2838;
  box-shadow: 0 1px 6px 0 rgba(180, 180, 230, 0.06);
}

.infobox h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 3px;
}

/* ---------------
  TESTIMONIALS
---------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(110, 140, 180, 0.11);
  background: var(--pastel-pink);
  margin-bottom: 24px;
  color: #202c38;
  font-size: 1.02rem;
  flex-wrap: wrap;
}
.testimonial-card p {
  margin: 0 0 0 0;
  color: #213441;
  font-size: 1.09rem;
  flex: 1 1 80%;
}
.testimonial-card strong {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    padding: 12px 9px;
  }
}

/* --------------
   FOOTER
---------------- */
footer {
  background: linear-gradient(45deg, var(--pastel-blue), var(--pastel-green) 65%);
  padding-top: 48px;
  padding-bottom: 18px;
  color: #2b4058;
  border-top-left-radius: 44px;
  border-top-right-radius: 44px;
  margin-top: 56px;
  box-shadow: 0 -1px 16px 0 rgba(73, 150, 120, 0.08);
}
.footer-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-navigation nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-navigation a {
  color: #24538a;
  font-size: 0.99rem;
  padding: 3px 0;
  border-radius: 4px;
  transition: background 0.16s, color 0.17s;
}
.footer-navigation a:hover, .footer-navigation a:focus {
  background: var(--pastel-purple);
  color: var(--accent);
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.footer-brand img {
  width: 56px;
  height: auto;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 3px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 7px 0 2px 0;
}
.footer-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  color: #26774a;
}
.footer-links a img {
  width: 20px;
  height: 20px;
  margin-right: 2px;
}
.footer-legal {
  font-size: 0.85rem;
  color: #19507b;
  margin-top: 16px;
  text-align: center;
}
.footer-legal a {
  color: #247aac;
  text-decoration: underline;
  transition: color 0.17s;
}
.footer-legal a:hover, .footer-legal a:focus {
  color: #51a16b;
}
@media (max-width: 750px) {
  .footer-navigation {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }
  .footer-brand {
    flex-direction: column;
    gap: 8px;
  }
}

/* --------------------
    MOBILE MENU
---------------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 101;
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    margin-left: 10px;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(232,245,255,0.98);
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.49,.25,.6,.99);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  margin: 24px 0 10px 18px;
  align-self: flex-start;
  cursor: pointer;
  box-shadow: 0 1px 6px 0 rgba(80,170,120,0.08);
  z-index: 2001;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0 0 28px;
}
.mobile-nav a {
  color: #24538a;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  padding: 10px 0 7px 0;
  border-radius: 12px;
  transition: background 0.15s, color 0.13s;
  min-width: 210px;
  font-weight: 700;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-blue);
  color: #51a16b;
  padding-left: 16px;
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* --------------------
  COOKIE CONSENT BANNER
---------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff7fa;
  box-shadow: 0 -1px 18px 0 rgba(80,150,130,0.12);
  color: #214161;
  font-family: 'Roboto', Arial;
  font-size: 1rem;
  padding: 24px 16px 22px 16px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.34s cubic-bezier(.49,.28,.5,.99), transform 0.32s cubic-bezier(.38,.59,.67,.82);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(65px);
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 18px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.cookie-banner .cookie-btn {
  min-width: 130px;
  padding: 9px 20px;
  border-radius: 19px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 2px;
  box-shadow: 0 1px 6px rgba(140,180,120,0.08);
  transition: background 0.17s, color 0.16s, transform 0.14s;
}
.cookie-banner .cookie-btn.accept {
  background: var(--accent);
  color: var(--white);
}
.cookie-banner .cookie-btn.accept:hover {
  background: #26774a;
}
.cookie-banner .cookie-btn.reject {
  background: var(--pastel-pink);
  color: #285460;
}
.cookie-banner .cookie-btn.reject:hover {
  background: #ffe4ec;
}
.cookie-banner .cookie-btn.settings {
  background: var(--pastel-blue);
  color: #204261;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #d5eafd;
}
@media (max-width: 750px) {
  .cookie-banner {
    padding: 13px 7px 15px 9px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-btns {
    gap: 10px;
  }
}

/* ---------------
 COOKIE MODAL
---------------- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3001;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(160, 200, 255, 0.18);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.34s, background 0.2s;
}
.cookie-modal {
  background: #ffffff;
  min-width: 315px;
  max-width: 97vw;
  margin-bottom: 16vh;
  border-radius: 22px;
  box-shadow: 0 6px 22px 0 rgba(33,83,138,0.18);
  padding: 26px 32px 18px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal h3 {
  color: var(--primary);
  font-size: 1.12rem;
  margin-bottom: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal .cookie-cats {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 13px;
}
.cookie-cat {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 11px 0 6px 0;
  border-bottom: 1px solid #e0e6ef;
}
.cookie-cat-label {
  font-weight: 600;
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  margin-right: 6px;
}
.cookie-cat-toggle {
  margin-left: auto;
  min-width: 54px;
}
/* Cookie toggles (switches) */
.cookie-toggle {
  width: 36px;
  height: 20px;
  border-radius: 13px;
  background: var(--pastel-blue);
  position: relative;
  transition: background 0.18s;
  cursor: pointer;
  display: inline-block;
}
.cookie-toggle input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #c5dbf7;
  transition: left 0.19s, background 0.15s;
  box-shadow: 0 1px 4px rgba(100,160,230,0.1);
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  left: 18px;
  background: var(--accent);
}
.cookie-cat-desc {
  font-size: 0.95rem;
  color: #45506a;
  margin-left: 7px;
}
.cookie-modal .cookie-btns {
  display: flex;
  gap: 13px;
  margin-top: 10px;
}
@media (max-width: 520px) {
  .cookie-modal {
    min-width: 90vw;
    padding: 15px 7px 11px 12px;
  }
  .cookie-modal .cookie-btns {
    gap: 7px;
  }
}

/* ---------------
   OTHER ELEMENTS
---------------- */
.text-section {
  margin-bottom: 24px;
}
.text-section h3 {
  margin-bottom: 0.3em;
  font-size: 1.03rem;
  color: #247aac;
}
.text-section ul li, .text-section ul {
  margin-bottom: 3px;
}

ul, ol {
  margin-bottom: 16px;
}

/* ---------------
   CARD LAYOUTS
---------------- */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

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

/* Assign pastel backgrounds based on section order (for variety) */
.section:nth-child(4n+1) .content-wrapper {
  background: var(--pastel-blue);
}
.section:nth-child(4n+2) .content-wrapper {
  background: var(--pastel-green);
}
.section:nth-child(4n+3) .content-wrapper {
  background: var(--pastel-pink);
}
.section:nth-child(4n+4) .content-wrapper {
  background: var(--pastel-purple);
}

/* ---------------
   ANIMATIONS
---------------- */
@keyframes fadeInUp {
  to { opacity:1; transform: translateY(0); }
  from { opacity:0; transform: translateY(24px); }
}
.hero .content-wrapper, .feature, .card, .testimonial-card, .cookie-banner, .cookie-modal {
  animation: fadeInUp 0.7s cubic-bezier(.31,.57,.41,1) 0.13s 1 both;
}

/* ---------------------
  ACCESSIBILITY & FOCUS
---------------------- */
a:focus, button:focus, .cta:focus, .cta-secondary:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  z-index: 10;
}

/* --------------
   SCROLLBAR
---------------- */
::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: #e6f6fa;
  border-radius: 8px;
}
::-webkit-scrollbar-track {
  background: #f6fcfd;
}

/* ----------------------
   PRINT SIMPLIFICATION
---------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {display:none;}
  .container, main {padding:0;}
}
