/* --- RESET & BASE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #f9fbf8;
  color: #1c2d22;
  min-height: 100vh;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #26734D;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #34bfa3;
  outline: none;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.4em;
  margin-bottom: 1.4em;
}
li {
  margin-bottom: 0.7em;
}
button, input, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
}

/* --- BRAND TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #26734D;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.15;
}
h2 {
  font-size: 1.7rem;
}
h3 {
  font-size: 1.3rem;
}
h4, h5, h6 {
  font-size: 1rem;
}
.section h2 {
  font-size: 1.9rem;
}
.subheadline {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #247048;
  font-size: 1.15rem;
  margin-bottom: 24px;
  font-weight: 600;
}
strong {
  color: #257047;
}

/* --- LAYOUT HELPERS --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 0; /* don't use bottom margin on last */
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 1px 10px 2px rgba(38,115,77,0.06);
  position: relative;
}

/* --- HEADER & MAIN NAV --- */
header {
  background: #257047;
  color: #fff;
  position: relative;
  z-index: 101;
  box-shadow: 0 2px 10px 0 rgba(38, 115, 77, 0.05);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
}
header a {
  color: #fff;
  font-weight: 700;
  padding: 6px 0px;
  border-radius: 9px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.2s, color 0.2s;
}
header nav {
  display: flex;
  gap: 18px;
}
header nav a:hover, header nav a:focus {
  background: #8FD19E;
  color: #254c35;
}
header img {
  height: 45px;
  width: auto;
  margin-right: 22px;
}

/* CTA BUTTONS */
.cta.primary {
  background: #8FD19E;
  color: #257047;
  padding: 12px 32px;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 800;
  border: none;
  outline: none;
  box-shadow: 0 2px 16px 0 rgba(143,209,158, 0.18);
  transition: background 0.2s, color 0.17s, transform 0.14s;
  cursor: pointer;
  position: relative;
  letter-spacing: 0.04rem;
}
.cta.primary:hover, .cta.primary:focus {
  background: #26734D;
  color: #fff;
  transform: translateY(-2px) scale(1.045);
}

header .cta.primary {
  margin-left: 26px;
  white-space: nowrap;
}

/* --- BURGER MENU --- */
.mobile-menu-toggle {
  display: none;
  background: #8FD19E;
  color: #257047;
  border: none;
  font-size: 2.1rem;
  border-radius: 8px;
  padding: 6px 16px;
  margin-left: 16px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.24s;
  box-shadow: 0 1px 7px 0 rgba(38,115,77, 0.09);
  z-index: 150;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #34bfa3;
  color: #fff;
}

.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  left: 100vw;
  width: 100vw; height: 100vh;
  background: #ffffff;
  color: #257047;
  z-index: 2050;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  box-shadow: -4px 0 18px 0 rgba(38,115,77,0.09);
  transition: transform 0.39s cubic-bezier(.66,0,.36,1), left 0s 0.29s;
  transform: translateX(0);
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.mobile-menu-open {
  left: 0;
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
  transition: transform 0.39s cubic-bezier(.66,0,.36,1), left 0s;
}
.mobile-menu-close {
  margin: 24px 24px 0 24px;
  align-self: flex-end;
  font-size: 2.1rem;
  background: #8FD19E;
  color: #26734D;
  border: none;
  border-radius: 6px;
  padding: 6px 18px;
  cursor: pointer;
  transition: background 0.14s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #26734D;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
  margin-left: 34px;
}
.mobile-nav a {
  color: #26734D;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  padding: 16px 10px;
  border-radius: 10px;
  margin-bottom: 7px;
  background: none;
  transition: background 0.15s, color 0.2s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #8FD19E;
  color: #17432b;
}

@media (max-width: 950px) {
  header .container nav,
  header .container .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 951px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- HERO --- */
.hero {
  background: #8FD19E;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 6px 36px 0 rgba(38,115,77, 0.08);
  margin-bottom: 66px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  align-items: stretch;
  justify-content: center;
  animation: heroFadeIn 1.1s cubic-bezier(.31,1.5,.64,1) 0.1s both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(-60px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  padding: 38px 0 22px 0;
}
.hero h1 {
  color: #257047;
  font-size: 2.2rem;
  line-height: 1.1;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 16px;
  text-shadow: 1px 2px 8px #bceede25;
  animation: slideInFromLeft 0.7s cubic-bezier(.66,0,.36,1) 0.11s both;
}
@keyframes slideInFromLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- FEATURE GRID & LISTS --- */
.feature-grid,
.service-list,
.blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.feature-grid > li,
.feature-grid > div,
.service-list > div,
.blog-post-list > div {
  flex: 1 1 240px;
  background: #f3faf5;
  border-radius: 20px;
  box-shadow: 0 2px 10px 0 rgba(38,115,77, 0.066);
  padding: 28px 20px 30px 20px;
  display: flex;
  align-items: flex-start;
  gap: 17px;
  min-width: 180px;
  min-height: 100px;
  transition: transform 0.19s, box-shadow 0.17s;
  margin-bottom: 0;
  position: relative;
}
.feature-grid img,
.feature-grid > div > img,
.service-list img {
  width: 46px;
  height: 46px;
}
.feature-grid > li:hover, .feature-grid > div:hover, .service-list > div:hover, .blog-post-list > div:hover {
  transform: scale(1.03) translateY(-5px) rotateZ(-1deg);
  box-shadow: 0 4px 22px 0 #8fd19e42;
  background: #eafff3;
  z-index: 6;
}

/* --- BLOG POSTS --- */
.blog-post-list {
  width: 100%;
  gap: 24px;
  margin-bottom: 24px;
}
.blog-post {
  flex: 1 1 260px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(38,115,77, 0.055);
  padding: 26px 18px 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.03rem;
  transition: box-shadow 0.17s, background 0.14s;
}
.blog-post h3 {
  font-size: 1.22rem;
}
.blog-post:hover {
  background: #eafff3;
  box-shadow: 0 8px 34px 0 #8fd19e23;
}
.blog-highlight {
  margin-top: 14px;
  background: #fff0c6;
  color: #694a00;
  padding: 15px 19px;
  border-radius: 10px;
  font-size: 1.08rem;
}
.blog-highlight a {
  color: #26734D;
  font-weight: bold;
}

/* --- DOWNLOADS / CHECKLIST ICONS --- */
.download-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 18px;
}
.download-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.05rem;
  margin-bottom: 0;
}
.download-list img {
  width: 30px;
  height: 30px;
}
.checklist-icons,
.infographic-elements,
.feature-icons {
  display: flex;
  gap: 18px;
  margin: 10px 0 0 0;
}
.checklist-icons img,
.infographic-elements img,
.feature-icons img {
  width: 35px;
  height: 35px;
}
/* --- GENERIC CARD CONTAINERS --- */
.card-container,
.training-overview-grid,
.workshop-overview,
.card-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card,
.training-overview-grid > ul,
.workshop-overview > ul {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 1px 8px 0 #c4eada36;
  padding: 22px 15px;
}

/* --- TESTIMONIALS --- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fffceb;
  color: #1A372B;
  border-radius: 15px;
  box-shadow: 0 2px 16px 0 #8fd19e22;
  min-width: 230px;
  max-width: 360px;
  flex: 1 1 270px;
  margin-bottom: 0;
  font-size: 1.1rem;
  position: relative;
  transition: transform 0.14s, box-shadow 0.13s;
}
.testimonial-card strong {
  color: #26734D;
}
.testimonial-card:hover {
  background: #fff7c6;
  box-shadow: 0 7px 25px 0 #8fd19e36;
  transform: scale(1.025) rotateZ(0.5deg);
  z-index: 7;
}

/* --- FEATURE ITEMS, CONTENT PATTERNS --- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.text-section ul,
.feature-list,
.feature-grid ul {
  margin-bottom: 0;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.address-block,
.opening-hours,
.phone-mail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.contact-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 17px 0 0 0;
  color: #26734D;
  background: #eafff3;
  border-radius: 12px;
  padding: 18px 28px;
  font-weight: 500;
  font-size: 1rem;
}

.map-embed,
.training-overview-grid {
  display: flex;
  gap: 16px;
  align-items: center;
}
.map-embed img {
  width: 90px;
  height: auto;
  border-radius: 12px;
  margin-right: 14px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #eafff3;
  border-radius: 15px;
  padding: 18px 24px;
  font-size: 1.07em;
}

/* --- FOOTER --- */
footer {
  background: #26734D;
  color: #fff;
  padding: 30px 0 0 0;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  box-shadow: 0 -4px 24px 0 rgba(38,115,77,0.10);
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: center;
  padding-bottom: 20px;
}
footer nav {
  display: flex;
  gap: 22px;
  margin-bottom: 6px;
}
footer nav a {
  color: #fff;
  font-weight: 700;
  font-size: 1.04rem;
  border-radius: 9px;
  padding: 5px 9px;
  transition: background 0.18s, color 0.18s;
}
footer nav a:hover,footer nav a:focus {
  background: #8FD19E;
  color: #26734D;
}
footer p {
  color: #fff;
  font-size: 1rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .container {
    max-width: 100vw;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .service-list, .blog-post-list {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > li, .feature-grid > div, .service-list > div, .blog-post-list > div {
    min-width: unset;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .section {
    margin-bottom: 36px;
    padding: 27px 7px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .hero .content-wrapper {
    padding: 22px 0 10px 0;
  }
  .feature-grid,
  .service-list,
  .blog-post-list,
  .testimonial-slider,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .map-embed,
  .training-overview-grid,
  .workshop-overview {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .contact-summary {
    gap: 7px;
    padding: 12px 11px;
  }
  .testimonial-slider {
    gap: 14px;
  }
  .testimonial-card {
    max-width: unset;
    padding: 15px 7px;
  }
  footer {
    margin-top: 33px;
    border-top-left-radius: 23px;
    border-top-right-radius: 23px;
    padding: 18px 0 0 0;
  }
}
@media (max-width: 540px) {
  html {
    font-size: 14px;
  }
}

/* --- COOKIES BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 6000;
  background: #fffde3;
  color: #234b3b;
  box-shadow: 0 -1px 16px 0 #cddbca54;
  padding: 28px 16px 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.31s, opacity 0.31s;
  opacity: 1;
  transform: translateY(0);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner p {
  font-size: 1.07rem;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 23px;
  border: none;
  border-radius: 11px;
  font-size: 1rem;
  font-weight: 700;
  background: #8FD19E;
  color: #257047;
  cursor: pointer;
  margin-right: 5px;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #26734D;
  color: #fff;
}
.cookie-banner .settings-btn {
  background: #fffceb;
  color: #26734D;
  border: 2px solid #8fd19e;
}
.cookie-banner .settings-btn:hover, .cookie-banner .settings-btn:focus {
  background: #8FD19E;
  color: #254c35;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 6060;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(38, 115, 77, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #234b3b;
  border-radius: 17px;
  box-shadow: 0 6px 32px 0 rgba(38,115,77,0.19);
  padding: 35px 28px 22px 28px;
  max-width: 330px;
  min-width: 230px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  position: relative;
  animation: cookieModalIn 0.41s cubic-bezier(.77,1.9,.57,1) both;
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: translateY(140px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 17px;
  background: #8FD19E;
  border: none;
  color: #257047;
  font-size: 1.25rem;
  border-radius: 7px;
  padding: 3px 14px;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #26734D;
  color: #fff;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
  padding: 4px 0;
}
.cookie-category label {
  font-weight: bold;
  margin-left: 12px;
}
.cookie-toggle {
  position: relative;
  width: 45px;
  height: 24px;
  background: #8FD19E;
  border-radius: 24px;
  margin-left: 6px;
  transition: background 0.15s;
}
.cookie-toggle input[type="checkbox"] {
  appearance: none;
  width: 45px;
  height: 24px;
  position: absolute;
  left: 0; top: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}
.cookie-toggle:before {
  content: '';
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.17s, background 0.13s;
}
.cookie-toggle input[type="checkbox"]:checked + .toggle-slider:before {
  left: 24px;
  background: #26734D;
}
.toggle-slider:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.17s, background 0.13s;
}
.cookie-toggle input[type="checkbox"]:checked + .toggle-slider:before {
  left: 24px;
  background: #26734D;
}

.cookie-modal .cookie-btns {
  margin-top: 13px;
  display: flex;
  gap: 9px;
  justify-content: flex-end;
}
.cookie-category .label-disabled {
  color: #abbfa9;
  font-weight: 500;
}

/* --- PLAYFUL DYNAMIC ANIMATIONS --- */
.cta.primary,
.card,
.testimonial-card,
.feature-grid > li,
.feature-grid > div,
.service-list > div,
.blog-post,
.cookie-banner,
.cookie-modal {
  will-change: transform, box-shadow, background;
}
.cta.primary:active {
  transform: scale(0.96);
  box-shadow: 0 2px 5px 0 #8fd19e11;
}

/* --- Fun Fonts & Accents --- */
h1, h2, h3, .cta.primary, .cookie-banner button, .mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.01em;
}

/* --- ADDED WHITESPACE --- */
.section, .card, .testimonial-card, .newsletter-form, .download-list li {
  margin-bottom: 24px;
}
.card-container > *,
.content-grid > *,
.testimonial-slider > *,
.feature-grid > *,
.service-list > * {
  margin-bottom: 0 !important;
}

/* --- REMOVE ABSOLUTE LAYOUT FOR CONTENT --- */
.card, .testimonial-card, .blog-post, .section, .newsletter-form {
  position: relative !important;
}

/* --- Z-INDEX FOR POPUPS & NAV --- */
.mobile-menu, .cookie-banner, .cookie-modal-overlay {
  z-index: 10000;
}

/* -- Accessibility --- */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.3rem;
  }
  .cta.primary {
    width: 100%;
    font-size: 1rem;
    padding: 9px 0;
    border-radius: 18px;
  }
}
/* Hide scroll for mobile-menu when open */
body.mobilemenu-open {
  overflow: hidden;
}
