/*-----------------------------------------------------
  RESET & BASELINE NORMALIZATION
-----------------------------------------------------*/
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;
}

html {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  height: 100%;
  background-color: #F5F7F2; /* subtle parchment background */
  color: #22334A;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F4F7F1 url('../assets/texture-paper.jpg') repeat;
  line-height: 1.7;
  position: relative;
  color: #22334A;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background-color: transparent;
  border: none;
  outline: none;
}

ul, ol {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}
a {
  text-decoration: none;
  color: #387045;
  transition: color .2s;
}
a:hover, a:focus {
  color: #6BA866;
  text-decoration: underline;
}


/*-----------------------------------------------------
  FREQUENTLY USED FLEXBOX LAYOUTS
-----------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #FFF;
  margin-bottom: 20px;
  padding: 28px 24px;
  border-radius: 32px 18px 36px 24px / 26px 38px 22px 30px; /* organic shape */
  box-shadow: 0 2px 12px 0 rgba(51, 75, 54, 0.08);
  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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  margin-bottom: 24px;
  background: #F8FBF5;
  border-radius: 22px 28px 27px 19px / 26px 21px 30px 33px;
  box-shadow: 0 2px 10px 0 rgba(80, 100, 80, 0.07);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}


/* Section spacing */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Organic shapes using border-radius */
.organic-shape {
  border-radius: 22px 40px 26px 32px / 32px 22px 34px 48px;
}


/*-------------------------
  BRAND COLORS
--------------------------*/
:root {
  --color-primary: #22334A;
  --color-secondary: #5DB1E2;
  --color-accent: #F2F2F2;
  --color-green1: #6BA866;
  --color-green2: #387045;
  --color-earth1: #BAA77F;
  --color-earth2: #F5EBDA;
  --color-bark: #6D5831;
  --color-dark: #192A21;
  --color-offwhite: #FAFAF5;
}


/*-------------------------
  TYPOGRAPHY
--------------------------*/
h1, h2, h3, h4, .button, .newsletter-signup label {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 700;
  color: #22334A;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
  color: #387045;
  margin-bottom: 10px;
}
h3 {
  font-size: 1.35rem;
  line-height: 1.24;
  font-weight: 600;
  color: #192A21;
  margin-bottom: 8px;
}
h4 {
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 480;
  color: #387045;
}
p, li, span, label {
  color: #22334A;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 8px;
}
strong {
  font-weight: 600;
  color: #387045;
}
blockquote {
  font-size: 1.05rem;
  font-style: italic;
  margin: 0 0 8px 0;
  color: #22334A;
}

.text-section {
  margin-bottom: 16px;
}

/*-------------------------
  BUTTONS
--------------------------*/
.button {
  display: inline-block;
  padding: 12px 32px;
  border: none;
  font-size: 1.125rem;
  border-radius: 36px 18px 36px 22px / 24px 32px 18px 36px;
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  box-shadow: 0 1.5px 8px 0 rgba(61, 93, 51, 0.05);
  background: var(--color-green1);
  color: #fff;
  transition: background .18s, color .19s, transform .15s;
  margin-top: 12px;
  cursor: pointer;
  letter-spacing: .5px;
}
.button.primary {
  background: linear-gradient(92deg, #387045 10%, #6BA866 85%);
  color: #fff;
}
.button.secondary {
  background: #F2F2F2;
  color: #387045;
  border: 2px solid #387045;
}
.button:hover, .button:focus {
  background: #387045;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 28px 0 rgba(61, 93, 51, 0.11);
}


/*-------------------------
  HEADER
--------------------------*/
header {
  width: 100%;
  background: #F5EBDA;
  box-shadow: 0 2px 12px 0 rgba(120, 142, 119, 0.09);
  position: relative;
  z-index: 10;
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  gap: 24px;
}
header img {
  height: 48px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: #22334A;
  font-weight: 600;
  padding: 8px 0;
  font-size: 1rem;
  border-bottom: 2.5px solid transparent;
  border-radius: 6px;
  transition: border .19s, background .15s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #387045;
  border-bottom: 2.5px solid #6BA866;
  background: #F8FBF5;
}
/* Hide nav on mobile */
@media (max-width: 970px) {
  .main-nav {
    display: none;
  }
}

header .button {
  margin-left: 12px;
}

/*-------------------------
  MOBILE MENU
--------------------------*/
.mobile-menu-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 18px;
  right: 22px;
  width: 48px;
  height: 48px;
  background: #387045;
  color: #fff;
  font-size: 2rem;
  border-radius: 28px 12px 28px 16px / 22px 32px 16px 24px;
  z-index: 101;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(86, 100, 86, 0.07);
  transition: background .18s, color .16s, transform .13s;
}
.mobile-menu-toggle:active {
  transform: scale(.96);
}
@media (min-width: 971px) {
  .mobile-menu-toggle {
    display: none;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 51, 74, 0.93);
  transition: transform .33s cubic-bezier(.87,.18,.19,.92);
  transform: translateX(-100vw);
  z-index: 103;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  margin-top: 32px;
  margin-left: 20px;
  font-size: 2rem;
  color: #fff;
  background: transparent;
  border-radius: 50%;
  height: 42px;
  width: 42px;
  align-self: flex-start;
  cursor: pointer;
  border: none;
  padding: 4px;
  transition: background .18s, color .16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #6BA866;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 48px 0 0 32px;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: #F2F2F2;
  padding: 12px 0 12px 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border-radius: 6px;
  transition: background .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #6BA866;
  color: #fff;
}

@media (max-width: 480px) {
  .mobile-nav a {
    font-size: 1.1rem;
  }
}


/*-------------------------
  HERO SECTIONS
--------------------------*/
.hero {
  padding: 64px 0 44px 0;
  background: #F8FBF5 url('../assets/leaf-bg.png') left 0 top -48px no-repeat;
  min-height: 340px;
}
.hero .container {
  align-items: flex-start;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 16px;
}
.hero h1 {
  color: #387045;
  margin-bottom: 8px;
}
.hero p {
  font-size: 1.15rem;
  color: #22334A;
  margin-bottom: 0;
}


/*-------------------------
  FEATURES / SERVICE CARDS
--------------------------*/
.feature-grid,
.service-grid,
.case-grid,
.team-list,
.post-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
  justify-content: flex-start;
}
.feature-grid li,
.service-grid li,
.case-grid li,
.team-list li,
.post-previews li {
  background: #fff;
  border-radius: 32px 36px 24px 32px / 34px 24px 30px 28px;
  box-shadow: 0 1px 12px 0 rgba(51, 76, 54, 0.07);
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 384px;
  padding: 28px 24px 22px 24px;
  position: relative;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .21s, transform .21s;
}
.feature-grid li:hover,
.service-grid li:hover,
.case-grid li:hover,
.team-list li:hover,
.post-previews li:hover {
  box-shadow: 0 8px 32px 0 rgba(106, 168, 102, 0.24);
  transform: translateY(-5px) scale(1.025);
}
.feature-grid img, .service-grid img, .case-grid img {
  width: 44px;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 8px #E5F8EA);
}

/* For content-specific lists (like bullet points in .about, .benefits, .impact) */
.about ul, .why-us ul, .benefits ul, .impact ul, .text-section ul {
  padding-left: 22px;
  margin-bottom: 18px;
}
.about ul li, .why-us ul li, .benefits ul li, .impact ul li, .text-section ul li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 14px;
}
.about ul li::before, .why-us ul li::before, .benefits ul li::before, .impact ul li::before, .text-section ul li::before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0;
  top: .65em;
  width: 8px;
  height: 8px;
  background: linear-gradient(93deg, #6BA866 68%, #BAA77F);
  border-radius: 50%;
}


/*-------------------------
  TESTIMONIALS
--------------------------*/
.testimonials {
  background: #e8f3e5;
  min-height: 240px;
  border-top: 3px solid #6BA866;
  border-bottom: 3px solid #BAA77F;
  margin-bottom: 0;
}
.testimonials .content-wrapper {
  align-items: flex-start;
  gap: 0;
}
.testimonial-card {
  max-width: 560px;
  background: #FFF;
  color: #22334A;
  box-shadow: 0 6px 32px 0 rgba(46, 82, 53, 0.13);
  margin-bottom: 28px;
}
.testimonial-card blockquote {
  font-weight: 500;
  color: #192A21;
  margin-bottom: 4px;
}
.testimonial-author {
  color: #387045;
  font-family: 'Montserrat';
  font-size: 1.01rem;
  font-style: italic;
  align-self: flex-end;
}
.client-logos {
  display: flex;
  gap: 24px;
  margin-top: 6px;
  margin-bottom: 24px;
}
.client-logos img {
  height: 32px;
  filter: grayscale(0.2) contrast(1.15);
}


/*-------------------------
  FORMS & NEWSLETTER
--------------------------*/
.newsletter-signup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0 0;
}
.newsletter-signup input[type=email] {
  padding: 10px 18px;
  border: 2px solid #6BA866;
  border-radius: 32px 12px 24px 18px;
  background: #F8FBF5;
  color: #22334A;
  font-size: 1rem;
  min-width: 180px;
  transition: border .18s;
}
.newsletter-signup input[type=email]:focus,
.newsletter-signup input[type=email]:hover {
  border: 2px solid #387045;
  background: #FFF;
}

/* Blog filters */
.blog-list .blog-tools {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 22px;
  align-items: center;
}
.blog-list .blog-tools input[type=search],
.blog-list .blog-tools select {
  padding: 8px 18px;
  border: 1.5px solid #6BA866;
  border-radius: 18px 22px 16px 19px;
  background: #F8FBF5;
  font-size: 1rem;
  min-width: 128px;
}
.blog-list .blog-tools input[type=search]:focus,
.blog-list .blog-tools select:focus {
  border: 1.5px solid #387045;
  background: #FFF;
}
.read-more {
  font-family: 'Montserrat';
  font-weight: 600;
  color: #387045;
  font-size: 1rem;
  text-decoration: underline;
  transition: color .13s;
}
.read-more:hover, .read-more:focus {
  color: #6BA866;
}


/*-------------------------
  FOOTER
--------------------------*/
footer {
  background: #22334A;
  color: #FFF;
  padding: 48px 0 16px 0;
  font-size: 1rem;
  margin-top: 80px;
  box-shadow: 0 -6px 22px 0 rgba(34, 51, 74, 0.07);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer img {
  height: 46px;
  margin-bottom: 2px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 4px;
}
.footer-nav a {
  color: #F8FBF5;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.04rem;
  transition: color .16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #BAA77F;
}
.contact-details {
  text-align: center;
  margin-bottom: 6px;
  font-size: 0.98rem;
  color: #F5EBDA;
  line-height: 1.5;
}
.contact-details img {
  width: 16px;
  vertical-align: middle;
  display: inline-block;
  margin-right: 4px;
  margin-top: -2px;
  filter: invert(.2) sepia(.3) saturate(1.1) brightness(1.2);
}
.copyright {
  text-align: center;
  color: #F2F2F2;
  font-size: 0.90rem;
  margin-top: 10px;
}


/*-------------------------
  COOKIE CONSENT BANNER & MODAL
--------------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: #fffbe6;
  color: #22334A;
  padding: 24px 32px;
  box-shadow: 0 -2px 18px 0 rgba(90, 120, 50, 0.13);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 18px;
  border-top-right-radius: 32px;
  animation: fadeInCookie .5s cubic-bezier(.82,.23,.33,.93);
}
@keyframes fadeInCookie {
  from {transform: translateY(56px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-banner .button {
  margin: 8px 8px 0 0;
  min-width: 140px;
}
.cookie-banner .button.secondary {
  background: #E8F3E5;
  color: #387045;
  border: 2px solid #6BA866;
}
.cookie-banner .button.secondary:hover {
  background: #387045;
  color: #fff;
}
.cookie-banner .button.settings {
  background: #FFF;
  color: #387045;
  border: 2px solid #BAA77F;
  margin-right: 0;
}
.cookie-banner .button.settings:hover {
  background: #F5EBDA;
  color: #22334A;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(40, 62, 41, 0.48);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 201;
  animation: fadeCookieModal .33s cubic-bezier(.51,.14,.39,.94);
}
@keyframes fadeCookieModal {
  from {opacity: 0;}
  to {opacity: 1;}
}
.cookie-modal-content {
  background: #fffbe6;
  padding: 40px 32px 32px 32px;
  border-radius: 29px 22px 32px 23px;
  box-shadow: 0 4px 48px 0 rgba(40, 62, 41, 0.16);
  min-width: 320px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.25rem;
  color: #6BA866;
  margin-bottom: 3px;
}
.cookie-settings-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0;
}
.cookie-settings-category label {
  font-family: 'Open Sans';
  font-size: 1rem;
  color: #22334A;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  background: #e8f3e5;
  border-radius: 12px 11px 10px 14px;
  position: relative;
  cursor: pointer;
  transition: background .14s;
  flex-shrink: 0;
}
.cookie-toggle[data-checked="true"] {
  background: #6BA866;
}
.cookie-toggle-thumb {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .18s;
  box-shadow: 0 1.5px 8px 0 rgba(61, 93, 51, 0.11);
}
.cookie-toggle[data-checked="true"] .cookie-toggle-thumb {
  transform: translateX(16px);
}
.cookie-modal-content .button {
  margin-top: 3px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.6rem;
  color: #b1aa80;
  background: none;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: background .13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #eee3bc;
  color: #387045;
}


/*-------------------------
  UTILS & MICROS
--------------------------*/
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
}
@media (max-width: 970px) {
  .container { padding-left: 10px; padding-right: 10px; }
  header .container { padding: 16px 10px; }
}
@media (max-width: 840px) {
  .feature-grid li,
  .service-grid li,
  .case-grid li,
  .team-list li,
  .post-previews li {
    min-width: 92vw;
    max-width: 99vw;
    width: 100%;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .section {
    margin-bottom: 40px;
    padding: 28px 7px;
  }
  .hero {
    padding: 36px 0 22px 0;
    min-height: 180px;
    background-size: 58vw auto;
  }
  .features, .about, .services,
  .cta-primary, .testimonials {
    padding: 0 0 12px 0;
  }
  .content-wrapper,
  .section .content-wrapper {
    gap: 16px;
  }
  .content-grid, .card-container {
    gap: 10px;
  }
  .feature-grid, .service-grid, .case-grid, .team-list, .post-previews {
    gap: 14px;
  }
  .testimonial-card {
    padding: 15px 7px;
    min-width: 90vw;
  }
  .client-logos {
    gap: 14px;
  }
}
@media (max-width: 600px) {
  html { font-size: 14px; }
  .section {
    padding: 16px 2px;
    margin-bottom: 24px;
  }
  .hero {
    padding: 16px 0 14px 0;
    background-size: 90vw auto;
  }
  .feature-grid li,
  .service-grid li,
  .case-grid li,
  .team-list li,
  .post-previews li {
    padding: 16px 8px 14px 12px;
    min-width: 94vw;
    max-width: 100vw;
    font-size: .98rem;
  }
  .testimonial-card {
    padding: 9px 3px;
    font-size: .99rem;
  }
  .cookie-modal-content {
    padding: 22px 7px 16px 7px;
  }
}
/* FLEX DIRECTION COLUMN FOR sections on mobile */
@media (max-width: 900px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 12px;
  }
}


/*-----------------------------------------------------
EARTH TONES, ORGANIC SHADOWS, MICRO-INTERACTIONS
-----------------------------------------------------*/
.card, .feature-grid li, .service-grid li, .testimonial-card {
  box-shadow: 0 2px 10px 0 rgba(107, 168, 102, 0.08), 0 7px 26px 0 rgba(186, 167, 127, 0.07);
}
.card:hover, .feature-grid li:hover, .service-grid li:hover, .testimonial-card:hover {
  box-shadow: 0 10px 34px 0 rgba(107, 168, 102, 0.13), 0 16px 42px 0 rgba(186, 167, 127, 0.11);
}

 section, .section {
  border-radius: 28px 34px 28px 24px / 22px 27px 32px 16px;
 }

/* Organic SVG texture background overlay (optional, fallback to flat bg) */
.hero, .about, .cta-primary, .cta-newsletter, .cta-contact, .benefits {
  background-color: #F8FBF5;
}


/*-------------------------
  LEGAL & THANK-YOU SECTIONS
--------------------------*/
.legal, .thank-you {
  background: #f7f3ed;
  min-height: 250px;
  border-radius: 24px 36px 27px 30px / 20px 26px 17px 38px;
}
.legal .content-wrapper, .thank-you .content-wrapper {
  gap: 14px;
}
.legal h1, .thank-you h1 {
  color: #387045;
}


/*-------------------------
  MISC: SPACING, Z-INDEX, ETC.
--------------------------*/
main {
  min-height: 60vh;
  margin-bottom: 48px;
  margin-top: 0;
}
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Ensure cards and sections never overlap */
.card + .card, .testimonial-card + .testimonial-card, .feature-grid li + .feature-grid li, .service-grid li + .service-grid li, .case-grid li + .case-grid li {
  margin-top: 20px;
}

/* Z-Index stacking for overlays */
.cookie-banner { z-index: 200; }
.cookie-modal { z-index: 201; }
.mobile-menu { z-index: 103; }
.mobile-menu-toggle { z-index: 101; }
header { z-index: 10; }


/*-------------------------
  ACCESSIBILITY: FOCUS STYLES
--------------------------*/
a:focus, .button:focus, input:focus, select:focus, .mobile-menu-close:focus, .cookie-modal-close:focus {
  outline: 2px dashed #6BA866;
  outline-offset: 2px;
}

/* Hide visually hidden elements (for JS toggling, optional) */
[hidden] {
  display: none !important;
}
