/* ===========================
   CSS RESET & BASE SETTINGS
=========================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #2E573C;
  background: #F6FAF4;
  min-height: 100vh;
  line-height: 1.75;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #21744d;
  text-decoration: none;
  transition: color .2s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #456e4a;
}
ul, ol {
  list-style: none;
  padding: 0;
}

/* ===========================
   BRAND FONTS
=========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .01em;
  color: #2E573C;
  margin-bottom: 16px;
  line-height: 1.14;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 16px; }
h4 { font-size: 1.15rem; margin-bottom: 14px; }

p, li, label, cite, input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
}
p, li {
  font-size: 1rem;
  color: #324E3C;
  margin-bottom: 12px;
}
cite {
  font-style: normal;
  color: #6D855C;
  font-size: 0.96rem;
  margin-left: 4px;
}

strong {
  color: #28513C;
  font-weight: 700;
}

/* ===========================
   CONTAINER & SPACING
=========================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 768px) {
  .section, .accent-bg.section {
    padding: 32px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ===========================
   HEADER & NAVIGATION
=========================== */
header {
  background: #2E573C;
  width: 100%;
  padding: 0;
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo img {
  height: 46px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 18px;
  transition: background .2s cubic-bezier(.4,0,.2,1), color .2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #AACA84;
  color: #2E573C;
}
.btn.btn-primary {
  background: linear-gradient(88deg, #AACA84 0%, #F2E7CF 100%);
  color: #2E573C;
  border-radius: 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 12px 36px;
  font-size: 1.05rem;
  box-shadow: 0 2px 16px 0 rgba(46,87,60,0.08);
  border: none;
  cursor: pointer;
  margin-left: 18px;
  transition: background .22s cubic-bezier(.4,0,.2,1), color .18s, box-shadow .25s;
}
.btn.btn-primary:hover, .btn.btn-primary:focus {
  background: linear-gradient(90deg,#F2E7CF 0%, #AACA84 100%);
  color: #21744d;
  box-shadow: 0 4px 24px 0 rgba(46,87,60,0.20);
}

/* Hide .main-nav and .btn-primary on mobile, show burger */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  font-size: 2rem;
  color: #AACA84;
  cursor: pointer;
  z-index: 41;
  border-radius: 4px;
  border: 0;
  align-items: center;
  margin-left: auto;
  transition: background .16s, color .18s;
  padding: 2px 12px;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #AACA84;
  background: #3E724C;
}
@media (max-width: 1070px) {
  .main-nav {
    display: none;
  }
  .btn.btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ===========================
   MOBILE SLIDE MENU OVERLAY
=========================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(46,87,60,0.98);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 100;
  transform: translateX(-100vw);
  transition: transform .33s cubic-bezier(.4,0,.2,1);
  opacity: 0.98;
  box-shadow: 0 3px 24px 0 rgba(46,87,60,0.18);
}
.mobile-menu.open {
  transform: translateX(0);
  transition: transform .45s cubic-bezier(.24,.96,.57,1);
}
.mobile-menu-close {
  font-size: 2.3rem;
  color: #AACA84;
  background: transparent;
  border: 0;
  position: absolute;
  top: 22px;
  right: 29px;
  cursor: pointer;
  z-index: 150;
  transition: color .17s;
}
.mobile-menu-close:focus {
  color: #F2E7CF;
  outline: 2px solid #AACA84;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 76px;
  width: 100%;
  padding-left: 36px;
  padding-right: 24px;
}
.mobile-nav a {
  color: #F2E7CF;
  font-size: 1.4rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  padding: 10px 0;
  border-radius: 5px;
  transition: color .19s, background .19s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #2E573C;
  background: #AACA84;
}
@media (min-width: 1071px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===========================
   HERO & ACCENT BACKGROUNDS
=========================== */
.hero {
  background: linear-gradient(95deg,#F2E7CF 0%, #AACA84 100%);
  padding: 64px 0 54px 0;
  margin-bottom: 60px;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 24px;
}
.hero h1 {
  color: #2E573C;
  font-size: 2.7rem;
}
.hero p {
  font-size: 1.22rem;
  letter-spacing: .01em;
  color: #374B3A;
  margin-bottom: 16px;
}

.accent-bg {
  background: linear-gradient(97deg,#AACA84 0%, #F2E7CF 80%);
  border-radius: 18px;
}
@media (max-width: 768px) {
  .hero {
    padding: 30px 0 18px 0;
    margin-bottom: 34px;
  }
  .accent-bg {
    border-radius: 10px;
  }
}

/* ===========================
   FLEXBOX LAYOUTS (MANDATORY)
=========================== */
.features, .content-grid, .card-container, .feature-grid, .service-listing, .service-list-preview, .expert-tips, .footer-contact, .footer-nav, .trust-signals, .text-image-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(46,87,60,0.09);
  padding: 30px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .22s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 28px rgba(46,87,60,0.17);
}

.feature-grid {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 22px 40px;
  margin-top: 18px;
}
.feature-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 13px 22px;
  box-shadow: 0 2px 10px #2E573C11;
  font-size: 1.05rem;
  color: #2E573C;
  font-weight: 500;
}
.feature-grid img {
  width: 28px;
  height: 28px;
}

@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .features {
    flex-direction: column;
  }
}

/* ===========================
   TESTIMONIALS & CARDS
=========================== */
.testimonials {
  background: #fff;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 28px 20px 28px;
  margin-bottom: 20px;
  background: #F6FAF4;
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(46,87,60,0.13);
  font-style: italic;
  position: relative;
  color: #234128;
  font-size: 1.09rem;
  transition: box-shadow .18s;
}
.testimonial-card cite {
  align-self: flex-end;
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  color: #619c4f;
  letter-spacing: .01em;
  margin-top: 3px;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px 0 rgba(46,87,60,0.19);
}
@media (max-width: 700px) {
  .testimonial-card {
    padding: 14px 13px 16px 13px;
  }
}

.card, .testimonial-card, .newsletter-signup, .accent-bg, .newsletter-signup.accent-bg {
  box-shadow: 0 2px 16px 0 rgba(46,87,60,0.08);
}

/* ===========================
   SERVICE LISTINGS
=========================== */
.services-list .service-listing, .service-list-preview {
  flex-direction: column;
  gap: 26px;
  margin-bottom: 20px;
}
.service-listing li, .service-list-preview li {
  background: #fff;
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: 0 1px 6px 0 #AACA8411;
  color: #365034;
  font-size: 1.07rem;
  margin-bottom: 12px;
}
.service-listing strong, .service-list-preview strong {
  color: #205B39;
  font-size: 1.09rem;
}
.service-price {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #7F906E;
  background: #F2E7CF;
  border-radius: 8px;
  padding: 2px 10px;
  font-size: .98rem;
  margin-left: 4px;
  margin-top: 7px;
  display: inline-block;
}

/* ===========================
   FORMS & NEWSLETTER
=========================== */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
input[type=email], input[type=text], input[type=tel], textarea {
  width: 100%;
  padding: 11px 16px;
  background: #fff;
  border: 2px solid #AACA84;
  border-radius: 8px;
  font-size: 1rem;
  color: #2E573C;
  margin-bottom: 6px;
  transition: border-color .18s, box-shadow .18s;
  outline: none;
}
input[type=email]:focus, input[type=text]:focus, input[type=tel]:focus, textarea:focus {
  border-color: #2E573C;
  box-shadow: 0 2px 10px 0 #AACA8444;
}
button[type=submit]:not(.btn-primary) {
  background: #AACA84;
  color: #2E573C;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  padding: 11px 18px;
  cursor: pointer;
  margin-top: 8px;
  transition: background .18s;
}
button[type=submit]:hover {
  background: #90b061;
}
.newsletter-signup, .newsletter-signup.accent-bg {
  margin-bottom: 60px;
  padding: 40px 20px 24px 20px;
  background: #fff8ec;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(46,87,60,0.09);
}
.newsletter-signup h2 {
  font-size: 2rem;
  color: #245637;
}
.newsletter-signup form {
  flex-direction: row;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
}
.newsletter-signup input[type="email"] {
  max-width: 300px;
  min-width: 142px;
}
@media (max-width: 700px) {
  .newsletter-signup form {
    flex-direction: column;
    align-items: stretch;
  }
  .newsletter-signup input[type=email] {
    max-width: 100%;
  }
}

.privacy-disclaimer {
  font-size: .98rem;
  color: #387141;
  margin-bottom: 10px;
  margin-top: 4px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.privacy-disclaimer a {
  color: #205B39;
  text-decoration: underline;
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: #2E573C;
  padding: 0;
  color: #fff;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  padding-top: 36px;
  padding-bottom: 26px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
  font-size: 1rem;
  margin-bottom: 14px;
}
.footer-nav a {
  color: #F2E7CF;
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 9px;
  border-radius: 8px;
  transition: background .19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #AACA84;
  color: #205B39;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 14px 40px;
  align-items: flex-start;
  justify-content: center;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #E3F0DC;
  font-size: 0.99rem;
}
.footer-contact a {
  color: #F2E7CF;
  text-decoration: underline dotted;
}
.footer-copy {
  color: #e9efea;
  font-size: 0.95rem;
  margin-top: 8px;
  text-align: center;
}
@media (max-width: 900px) {
  footer .container {
    padding-top: 24px;
    padding-bottom: 16px;
    gap: 20px;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
}

/* ===========================
   FLEX UTILITIES (MANDATORY)
=========================== */
.content-grid {
  display: flex;
  flex-direction: row;
  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 !important;
    gap: 18px;
    align-items: stretch;
  }
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}

/* =============================
   CTAS, ACCENT & MISC SECTIONS
============================= */
.cta, .service-cta, .enrollment-cta {
  background: linear-gradient(97deg,#AACA84 0%, #F2E7CF 70%);
  border-radius: 18px;
  padding: 40px 24px;
  margin-bottom: 60px;
  text-align: center;
  align-items: center;
}
.cta h2, .service-cta h2, .enrollment-cta h2 {
  color: #245637;
}
@media (max-width: 600px) {
  .cta, .service-cta, .enrollment-cta {
    padding: 24px 8px;
    border-radius: 10px;
  }
}

/* ===========================
   LEGAL & COOKIE POLICY
=========================== */
.legal-info {
  background: #fff;
  padding: 40px 22px;
  border-radius: 14px;
  box-shadow: 0 2px 14px #2E573C14;
  margin-bottom: 44px;
}
.legal-info h1 {
  color: #246137;
}
.legal-info ul {
  margin-bottom: 16px;
}
.legal-info li {
  margin-bottom: 7px;
  font-size: 1rem;
  color: #34533F;
}

/* ===========================
   GALLERIA
=========================== */
@media (max-width: 800px) {
  .gallery-intro .content-wrapper, .project-highlights .content-wrapper, .galleria-section .content-wrapper {
    gap: 14px;
  }
}
.gallery-intro ul {
  gap: 8px;
  display: flex;
  flex-direction: column;
}
.project-highlights .testimonial-card {
  margin-top: 10px;
  margin-bottom: 24px;
  /* inherit card/tc styles */
}

/* ===========================
   ANIMATIONS
=========================== */
section, .card, .testimonial-card, .accent-bg, .newsletter-signup {
  transition: box-shadow .2s, background .19s, border-color .18s;
}
.btn, button, .mobile-menu, .mobile-menu-toggle {
  transition: background .2s, color .18s, box-shadow .23s, transform .22s;
}

/* ===========================
   COOKIE CONSENT BANNER
=========================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9998;
  background: linear-gradient(90deg, #fff8ec 70%, #AACA84 100%);
  box-shadow: 0 -3px 22px 0 rgba(46,87,60,0.14);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 34px;
  font-size: 1rem;
  color: #2E573C;
  animation: cookie-fadein 0.6s cubic-bezier(.4,0,.2,1);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    padding: 16px 9px;
    font-size: .96rem;
  }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner button {
  border-radius: 8px;
  font-size: .98rem;
  padding: 7px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .2s, color .2s;
  margin-right: 0;
}
.cookie-banner .accept {
  background: #AACA84;
  color: #245637;
}
.cookie-banner .accept:hover {
  background: #8CAB63;
}
.cookie-banner .reject {
  background: #fff;
  color: #28513C;
  border: 1.7px solid #2E573C;
}
.cookie-banner .reject:hover {
  background: #efeeb8;
}
.cookie-banner .settings {
  background: #F2E7CF;
  color: #2E573C;
}
.cookie-banner .settings:hover {
  background: #dfd7b9;
}

@keyframes cookie-fadein {
  from { bottom: -100px; opacity: 0; }
  to   { bottom: 0;      opacity: 1; }
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(46,87,60,0.32);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: modal-fadein .22s cubic-bezier(.4,0,.2,1);
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 44px 8px rgba(46,87,60,0.17);
  width: 98%;
  max-width: 400px;
  padding: 34px 28px 26px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-zoom .27s cubic-bezier(.4,0,.2,1);
}
@media (max-width: 475px) {
  .cookie-modal {
    padding: 16px 7px 14px 7px;
    max-width: 98vw;
  }
}
.cookie-modal h3 {
  font-size: 1.13rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2E573C;
  margin-bottom: 8px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.01rem;
  color: #205B39;
  margin-bottom: 4px;
}
.cookie-modal input[type=checkbox] {
  accent-color: #AACA84;
  width: 18px;
  height: 18px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 13px;
  right: 18px;
  background: transparent;
  color: #6D855C;
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}
.cookie-modal .close-modal:focus {
  color: #205B39;
  outline: 2px solid #AACA84;
}

@keyframes modal-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modal-zoom {
  from { transform: scale(0.92); }
  to   { transform: scale(1); }
}

/* Cookie Modal primary action buttons  */
.cookie-modal .accept, .cookie-modal .reject, .cookie-modal .settings-save {
  margin: 9px 7px 0 0;
  padding: 8px 20px;
}
.cookie-modal .settings-save {
  background: #AACA84;
  color: #245637;
}
.cookie-modal .settings-save:hover {
  background: #90b061;
}

.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 9px 0;
}
.cookie-modal .category-essential input[disabled] {
  opacity: 0.59;
}

/* ===========================
   OVERRIDES & EDGE IMPROVEMENTS
=========================== */
.content-wrapper > * + * {
  margin-top: 0 !important; /* controlled by flex gap */
}
.card:last-child, .testimonial-card:last-child {
  margin-bottom: 0;
}
@media (max-width: 500px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.22rem; }
  .card, .accent-bg, .newsletter-signup {
    padding: 18px 6px;
  }
}
/* Large Section Spacing */
section {
  margin-bottom: 60px;
  padding-top: 40px;
  padding-bottom: 40px;
}
@media (max-width: 768px) {
  section {
    padding-top: 24px;
    padding-bottom: 24px;
    margin-bottom: 36px;
  }
}

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