/* RESET & BASE TYPOGRAPHY */
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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  color: #22543D;
  background: linear-gradient(135deg, #F7F4EA 0%, #e0eee5 100%);
  min-height: 100vh;
}

ol, ul {
  list-style: none;
}
a {
  background: none;
  color: #22543D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #3b8761;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #22543D;
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; margin-bottom: 18px; }
h2 { font-size: 1.75rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4 { font-size: 1rem; margin-bottom: 8px; }
@media (min-width: 768px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.1rem; }
  h3 { font-size: 1.35rem; }
}
p, li, ul, ol { font-size: 1rem; margin-bottom: 14px; }
strong, b { font-weight: 700; }

/* CONTAINER & FLEXBOX UTILS */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section { max-width: 900px; margin: 0 auto; text-align: left; }
.resources-links { margin-top: 16px; font-size: 1.1rem; text-align: left; }
.resources-links a { color: #22543D; background: #e8f6ef; border-radius: 8px; padding: 4px 12px; margin: 0 2px; transition: background 0.3s; }
.resources-links a:hover { background: #6FB98F; color: #fff; }

/* HEADER NAVIGATION / BURGER MENU */
header {
  background: #fff;
  box-shadow: 0 2px 18px 0 rgba(34,84,61,0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 14px 0;
  min-height: 72px;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: #22543D;
  border-radius: 18px;
  padding: 7px 14px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #e8f6ef;
  color: #22543D;
}
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22543D;
  color: #fff;
  border: none;
  border-radius: 50%;
  height: 44px;
  width: 44px;
  cursor: pointer;
  font-size: 2rem;
  transition: background 0.2s;
  margin-left: 14px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #397e66;
}
/* Desktop: hide mobile toggle */
@media (min-width: 1024px) {
  .mobile-menu-toggle { display: none; }
}
/* Mobile Nav Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #22543D;
  color: #fff;
  z-index: 2000;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.6,-0.2,.45,1.65);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  padding: 16px 18px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #6FB98F;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
  padding: 30px 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  color: #fff;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  width: 100%;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #397e66;
  color: #F7F4EA;
}
@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}
@media (max-width: 1023px) {
  .main-nav { display: none !important; }
}

/* HERO SECTION */
.hero {
  background: linear-gradient(120deg, #6FB98F 0%, #F7F4EA 80%);
  border-radius: 0 0 32px 32px;
  padding: 32px 0 48px 0;
  min-height: 380px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 270px;
}
.hero .content-wrapper {
  text-align: center;
  gap: 16px;
}
.subheadline {
  font-size: 1.15rem;
  color: #22543D;
  line-height: 1.8;
  font-weight: 400;
}
.cta-button {
  display: inline-block;
  background: #22543D;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 24px;
  padding: 13px 36px;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 18px 0 rgba(34,84,61,0.12);
  border: none;
  outline: none;
  margin-top: 8px;
  text-align: center;
  cursor: pointer;
  transition: background 0.23s, box-shadow 0.23s, transform 0.18s;
}
.cta-button:hover, .cta-button:focus {
  background: #6FB98F;
  color: #fff;
  box-shadow: 0 2px 24px 0 rgba(34,84,61,0.22);
  transform: translateY(-2px) scale(1.02);
}

/* FLEXBOX PATTERNS & SPACING */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 18px 0 rgba(34,84,61,0.07);
  padding: 28px 22px;
  transition: box-shadow 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(34,84,61,0.13);
  transform: translateY(-3px) scale(1.01);
}
.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F7F4EA;
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 rgba(34,84,61,0.06);
  margin-bottom: 20px;
  max-width: 370px;
  min-width: 220px;
}
.testimonial-card p {
  font-size: 1.07rem;
  color: #1b3127;
  line-height: 1.6;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-weight: bold;
  color: #22543D;
  font-size: 0.98rem;
  margin-bottom: 0;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FEATURE GRID (used in multiple sections) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 10px;
}
.feature-grid li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(34,84,61,0.06);
  padding: 30px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  flex: 1 1 220px;
  transition: box-shadow 0.18s, transform 0.15s;
}
.feature-grid li:hover {
  box-shadow: 0 8px 28px 0 rgba(34,84,61,0.16);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}
.feature-grid h3 {
  margin: 0;
  font-size: 1.08rem;
  color: #22543D;
}
.feature-grid p {
  font-size: 1rem;
  color: #397e66;
  margin: 0 0 2px 0;
}

/* ARTICLE LIST (in themes) */
.article-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.article-list > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(34,84,61,0.07);
  padding: 22px 16px 18px 16px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  min-width: 220px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.article-list > div:hover {
  box-shadow: 0 8px 32px 0 rgba(34,84,61,0.13);
  transform: scale(1.015);
}
.article-list h3 {
  color: #22543D;
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.article-list p {
  color: #395b41;
  font-size: 0.99rem;
}

/* FOOTER */
footer {
  background: linear-gradient(120deg, #6FB98F 30%, #22543D 90%);
  color: #fff;
  padding: 30px 0 12px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  justify-content: center;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.footer-links a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  border-radius: 12px;
  padding: 5px 14px;
  background: rgba(34,84,61,0.1);
  transition: background 0.2s, color 0.2s;
}
.footer-links a:hover { background: #22543D; color: #6FB98F; }
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
  font-size: 0.98rem;
}
.contact-info img {
  margin-right: 6px;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  display: inline-block;
}
.social-media {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
}
.social-media a {
  display: flex;
  align-items: center;
  height: 38px;
  width: 38px;
  background: #22543D;
  border-radius: 50%;
  justify-content: center;
  transition: background 0.16s;
}
.social-media a:hover {
  background: #6FB98F;  
}
.social-media img {
  width: 20px;
  height: 20px;
}
.brand-copyright {
  font-size: 0.93rem;
  margin-top: 12px;
  color: #fff;
  opacity: 0.93;
}

div.map-location {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 30px 0 12px 0;
}
div.map-location img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e0eee5;
  padding: 5px;
}
div.map-location p {
  align-self: center;
}

/* COOKIE CONSENT BANNER & MODAL */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #22543D;
  box-shadow: 0 -2px 18px 0 rgba(34,84,61,0.07);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  z-index: 3000;
  border-radius: 18px 18px 0 0;
  animation: slideUpCookie 0.45s cubic-bezier(0.45, 0.11, 0.18, 1.48);
}
@keyframes slideUpCookie {
  from { transform: translateY(120%); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-banner-text {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 700px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 22px;
  border: none;
  padding: 10px 22px;
  margin: 0 2px;
  box-shadow: 0 2px 12px 0 rgba(34,84,61,0.07);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.22s;
  outline: none;
}
.cookie-btn.accept {
  background: #22543D;
  color: #fff;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #397e66;
  color: #fff;
  box-shadow: 0 4px 28px 0 rgba(34,84,61,0.22);
}
.cookie-btn.reject {
  background: #e8f6ef;
  color: #22543D;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #6FB98F;
  color: #fff;
}
.cookie-btn.settings {
  background: #6FB98F;
  color: #fff;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #22543D;
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px 13px;
  }
  .cookie-banner .cookie-banner-text { font-size: 0.98rem; max-width: 96vw; }
  .cookie-banner .cookie-actions { justify-content: flex-end; }
}
/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,84,61, 0.55);
  display: flex;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 48px 0 rgba(34,84,61,0.17);
  padding: 36px 26px 32px 26px;
  max-width: 430px;
  width: 98vw;
  animation: cookieIn 0.28s cubic-bezier(.68,-0.55,.27,1.55);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@keyframes cookieIn {
  from { transform: translateY(60px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #22543D;
}
.cookie-category {
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-category label {
  flex: 1;
  font-size: 1.05rem;
  color: #22543D;
}
.cookie-switch {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #e2e8e4;
  border-radius: 18px;
  position: relative;
  outline: none;
  transition: background 0.16s;
  cursor: pointer;
}
.cookie-switch:checked {
  background: #6FB98F;
}
.cookie-switch::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: left 0.16s;
}
.cookie-switch:checked::before {
  left: 19px;
}
.cookie-modal-footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #22543D;
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  top: 9px;
  right: 16px;
  transition: color 0.18s;
}
.cookie-modal-close:hover { color: #6FB98F; }

/* RESPONSIVE DESIGN: MOBILE-FIRST */
@media (max-width: 1023px) {
  .feature-grid,
  .article-list,
  .testimonial-slider {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .feature-grid li, .article-list > div, .testimonial-card {
    min-width: 0;
    max-width: unset;
    flex: 1 1 100%;
  }
  .container {
    padding: 0 9px;
  }
  .footer-links, .contact-info, .social-media {
    flex-direction: column;
    gap: 6px;
    align-items: start;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 16px 0 24px 0;
    min-height: 220px;
    border-radius: 0 0 16px 16px;
  }
  .hero .container {
    min-height:140px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .resources-links { font-size: 1rem; }
  .section {
    padding: 24px 4px;
    margin-bottom: 34px;
  }
  .card {
    padding: 17px 8px;
    margin-bottom: 14px;
  }
  .feature-grid li, .article-list > div, .testimonial-card {
    padding: 16px 10px 12px 10px;
  }
  .map-location img {
    width: 34px; height: 34px;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.1rem; }
  .cta-button { font-size: 0.98rem; padding: 10px 18px; }
}

/* VISUAL HIERARCHY, SPACING & MODERN EFFECTS */
.section, section, .content-wrapper, .container, .feature-grid, .card, .card-container, .article-list, .testimonial-slider, .testimonial-card {
  box-sizing: border-box;
}
.section, section, .card, .feature-grid li, .article-list > div, .testimonial-card {
  margin-bottom: 20px;
}

/* Focus States for Accessibility */
a:focus, button:focus {
  outline: 2px solid #6FB98F;
  outline-offset: 2px;
}

/* MICRO-INTERACTIONS & HOVER */
.cta-button, .cookie-btn, .feature-grid li, .article-list > div, .testimonial-card, .card {
  transition: box-shadow 0.2s, background 0.18s, color 0.18s, transform 0.18s;
}
/* Hide visually but keep for screen readers */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* MISC UTILS */
.hide { display: none !important; }