/* RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F8F8F6;
  color: #322C28;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #202E59;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #AECF4F;
  text-decoration: underline;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}
ul, ol {
  margin-left: 1.4em;
  margin-bottom: 1.2em;
  padding-left: 1.4em;
}
li + li {
  margin-top: 0.5em;
}

/* BRAND VARIABLES (for fallbacks) */
:root {
  --primary: #202E59;
  --secondary: #AECF4F;
  --accent: #F8F8F6;
  --shade-bg: #FFF8F1;
  --neutral-text: #322C28;
  --card-bg: #FFF;
  --light-shadow: 0 2px 12px rgba(36,30,30,0.08), 0 2px 4px rgba(100,88,59,0.04);
}

/******************
  TYPOGRAPHY
*******************/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #202E59;
  font-weight: 700;
  margin-bottom: 0.6em;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 0.7em;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5em;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4em;
}
@media (min-width:600px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.25rem; }
}
strong {
  color: #202E59;
  font-weight: 700;
}
blockquote {
  background: #FFF8F1;
  color: #904621;
  border-left: 5px solid #AECF4F;
  padding: 14px 26px;
  border-radius: 22px;
  font-style: italic;
  margin: 24px 0 24px 0;
  box-shadow: var(--light-shadow);
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 1em;
}
span.highlight {
  background: #AECF4F;
  color: #202E59;
  border-radius: 10px;
  padding: 2px 10px;
  font-size: 0.98em;
  font-weight: 600;
}

/******************
  LAYOUT & CONTAINERS
*******************/
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px 40px 20px;
  background: none;
}
@media (min-width:900px) {
  section, .section {
    padding: 60px 0 60px 0;
  }
}

/******************
  HEADER & NAV
*******************/
header {
  background: #FFF;
  box-shadow: 0 2px 16px rgba(36,30,30,0.07);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header > .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  height: 76px;
}
header img {
  height: 44px;
  border-radius: 16px;
  transition: box-shadow 0.2s;
}
header img:hover { box-shadow: 0 2px 6px rgba(174,207,79,0.17); }
nav.main-nav {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-left: 40px;
}
nav.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  color: #202E59;
  text-decoration: none;
  font-size: 1rem;
  padding: 7px 16px;
  border-radius: 18px;
  transition: background 0.18s, color 0.18s;
}
nav.main-nav a:hover, nav.main-nav a:focus {
  background: #AECF4F;
  color: #202E59;
}
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #FFF;
  background: #202E59;
  border: none;
  border-radius: 32px;
  padding: 11px 32px;
  margin-left: auto;
  box-shadow: 0 2px 18px rgba(174,207,79,0.085), var(--light-shadow);
  transition: background 0.25s, transform 0.15s, box-shadow 0.22s;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  letter-spacing: 0.01em;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #AECF4F;
  color: #202E59;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(174,207,79,0.19), var(--light-shadow);
}
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
  font-size: 2rem;
  color: #202E59;
  background: #AECF4F;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  transition: box-shadow 0.18s, background 0.18s;
  border: none;
  z-index: 1202;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:active {
  background: #d9ee93;
  box-shadow: 0 2px 10px rgba(174,207,79,0.14);
}
@media (min-width: 1100px) {
  nav.main-nav {
    display: flex;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/******
 MOBILE MENU
******/
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff9f1;
  box-shadow: 0px 4px 24px 0px rgba(32, 46, 89, 0.12);
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.7,.19,.31,.99);
  z-index: 1200;
  padding: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  margin: 22px 22px 0 0;
  padding: 0 16px;
  color: #202E59;
  background: #aecf4f;
  border-radius: 50%;
  height: 44px;
  width:44px;
  transition: background 0.18s;
}
.mobile-menu-close:hover {
  background: #bfdc75;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 30px;
  align-items: stretch;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: #202E59;
  background: #fff;
  padding: 15px 32px;
  border-radius: 19px;
  margin: 0 20px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  box-shadow: var(--light-shadow);
  outline: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #AECF4F;
  color: #202E59;
}
@media (min-width: 1100px) {
  .mobile-menu {
    display: none!important;
  }
}

/*******************
  HERO SECTION
*******************/
.hero {
  background: linear-gradient(96deg, #f9ead9 0%, #FEFAF5 100%);
  border-radius: 30px;
  box-shadow: var(--light-shadow);
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  padding-top: 34px;
  padding-bottom: 34px;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: inherit;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: #202E59;
}

/******************
  FEATURES + GRIDS
*******************/
.features, .feature-grid, .services-grid, .card-container {
  width: 100%;
}
.features .feature-grid, .services-grid, .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.feature-grid {
  margin-top: 16px;
}
.feature-item {
  background: #fff;
  box-shadow: var(--light-shadow);
  border-radius: 24px;
  padding: 28px 20px 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
  max-width: 320px;
  min-width: 210px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.feature-item img {
  width: 50px;
  height: 50px;
  margin-bottom: 8px;
}
.feature-item:hover {
  box-shadow: 0 8px 32px rgba(174,207,79,0.13), var(--light-shadow);
  transform: translateY(-4px) scale(1.03);
}
@media (max-width: 900px) {
  .feature-item {
    min-width: 150px;
    max-width: 100%;
  }
  .feature-grid {
    flex-direction: column;
    align-items: stretch;
  }
}

.services-grid {
  margin-top: 16px;
}
.services-grid > div {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--light-shadow);
  padding: 24px 20px 24px 20px;
  flex: 1 1 270px;
  min-width: 220px;
  max-width: 355px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.19s, transform 0.15s;
}
.services-grid > div:hover {
  box-shadow: 0 8px 32px rgba(32,46,89,0.13), var(--light-shadow);
  transform: translateY(-3px) scale(1.025);
}
@media (max-width: 900px) {
  .services-grid {
    flex-direction: column;
     gap: 22px;
  }
  .services-grid > div {
    max-width: 100%;
    margin-bottom: 0;
  }
}

/******************************
  TESTIMONIALS/ CARDS
*******************************/
.testimonials-preview {
  background: #FEFCF4;
  border-radius: 26px;
  box-shadow: var(--light-shadow);
  padding-top: 34px;
  padding-bottom: 36px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  box-shadow: 0 2px 14px rgba(32,46,89,0.11), var(--light-shadow);
  border-radius: 26px;
  padding: 20px 28px;
  margin-bottom: 22px;
  color: #202E59;
  font-size: 1.06rem;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: box-shadow 0.19s;
}
.testimonial-card p {
  font-size: 1.03rem;
  color: #322C28;
  margin-bottom: 0;
  line-height: 1.6;
}
.testimonial-card strong {
  color: #AECF4F;
  font-size: 0.96rem;
  font-weight: 700;
  margin-left: auto;
  letter-spacing:0.01em;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(174,207,79,0.20), 0 2px 10px rgba(32,46,89,0.08);
}

@media (max-width: 900px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 14px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: var(--light-shadow);
  border-radius: 20px;
  margin-bottom: 20px;
  position: relative;
}

/*************************
  RESPONSIVE FLEX LAYOUTS
**************************/
.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-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/*************************
  CTA SECTIONS
**************************/
.cta {
  background: #202E59;
  border-radius: 32px;
  box-shadow: 0 2px 18px 0 rgba(32,46,89,0.09), var(--light-shadow);
  color: #fff;
  text-align: center;
  margin-bottom: 38px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.cta h2 {
  color: #fff;
  margin-bottom: 22px;
}
.cta .cta-btn {
  background: #AECF4F;
  color: #202E59;
  margin-left: 0;
}
.cta .cta-btn:hover, .cta .cta-btn:focus {
  background: #fff;
  color: #202E59;
  box-shadow: 0 8px 28px rgba(174,207,79,0.19), var(--light-shadow);
}

/*******************
  ABOUT TEXT SECTIONS
********************/
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 800px) {
  .text-section {
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
  }
}
.text-section strong {
  font-weight: 700;
  color: #202E59;
}

/*******************
  FOOTER
*******************/
footer {
  background: #202E59;
  color: #fff;
  padding: 38px 0 20px 0;
  margin-top: 32px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin-bottom: 19px;
}
.footer-menu a {
  color: #AECF4F;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.22s, text-decoration 0.18s;
  font-size: 1rem;
}
.footer-menu a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
  font-size: 0.95rem;
  color: #fff;
}

/******************
  CONTACT LIST ITEMS
********************/
section ul li img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 8px;
  margin-bottom: 4px;
}

/* SPACING UTILITIES */
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/*****************
  COOKIE BANNER
******************/
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1300;
  background: #fff9f1;
  box-shadow: 0 -2px 14px 0 rgba(202,180,53,0.11);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 28px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s;
  font-size: 1rem;
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 24px;
  padding: 9px 23px;
  margin: 0 3px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--light-shadow);
  background: #202E59;
  color: #fff;
  transition: background 0.18s, color 0.18s;
}
.cookie-btn.settings {
  background: #fff;
  color: #202E59;
  border: 1.5px solid #202E59;
}
.cookie-btn.accept {
  background: #AECF4F;
  color: #202E59;
}
.cookie-btn.reject {
  background: #e0e0e0;
  color: #404040;
}
.cookie-btn:hover, .cookie-btn:focus {
  box-shadow: 0 4px 14px rgba(32,46,89,0.09);
}

/**********************
  COOKIE MODAL
***********************/
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32,46,89,0.24);
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 6px 40px rgba(32,46,89,0.13), var(--light-shadow);
  padding: 34px 28px 28px 28px;
  width: 95%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  color: #202E59;
  background: #AECF4F;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category label {
  font-size: 1rem;
  color: #202E59;
  font-weight: 600;
}
.cookie-toggle {
  width: 46px;
  height: 26px;
  background: #e7e4d9;
  border-radius: 16px;
  position: relative;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.19s;
}
.cookie-toggle.enabled {
  background: #AECF4F;
}
.cookie-toggle .handle {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.19s;
}
.cookie-toggle.enabled .handle { left: 23px; }
.cookie-category .toggle-disabled {
  opacity: 0.55;
  pointer-events: none;
}

/*************************
  RESPONSIVE LAYOUT & FLEX ADJUSTMENTS
**************************/
@media (max-width: 768px) {
  header > .container {
    height: 62px;
    gap: 9px;
  }
  .cta-btn {
    padding: 9px 21px;
    font-size: 1rem;
  }
  section, .section {
    padding: 24px 6px 28px 6px;
  }
  .hero {
    border-radius: 18px;
    min-height: 180px;
    padding: 18px 0;
  }
  .testimonials-preview {
    border-radius: 15px;
    padding: 16px 3px 26px 3px;
  }
}

/*************************
  MICRO-INTERACTIONS
**************************/
.card, .feature-item, .services-grid > div, .testimonial-card, .cta-btn, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: box-shadow 0.16s, transform 0.17s, background 0.18s, color 0.18s;
}
.card:hover, .feature-item:focus, .services-grid > div:focus, .testimonial-card:focus {
  box-shadow: 0 8px 32px rgba(174,207,79,0.17), var(--light-shadow);
  outline: none;
}

/*************************
  ACCESSIBILITY
**************************/
:focus {
  outline: 2px dashed #AECF4F;
  outline-offset: 2px;
}

/***** HIDE ONLY FOR ACCESSIBILITY *****/
.sr-only {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/***************
  GENERAL MISC
****************/
main {
  flex: 1;
  width: 100%;
}
.body--no-scroll { overflow: hidden !important; }

/* All major flex containers from requirements duplicated for safety */
.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; }

/***************
  PRINT STYLING (optional)
***************/
@media print {
  header, .mobile-menu, .cookie-consent-banner, footer, .cta, .hero {
    display: none !important;
  }
  section, .section, main, .container {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
