/* ================== CSS RESET & NORMALIZE ================== */
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 {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  background-color: #F3F5F7;
  color: #27402c;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
a {
  color: #307542;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #16A8C1;
}
ul, ol {
  padding-left: 1.35em;
  margin: 0 0 16px 0;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}

/* ============= FONT IMPORT (VIA CSS) ============== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Roboto:wght@400;500;700&display=swap');

/* ============== COLOR PALETTE (EARTH TONES) ============== */
:root {
  --color-primary: #22244D; /* Deep woodland blue/navy */
  --color-secondary: #3B6846; /* Herbal deeper green */
  --color-accent: #A3BE8C; /* Muted green accent */
  --color-green: #307542; /* Organic green accent (for buttons) */
  --color-bg: #F3F5F7; /* Misty fog */
  --color-brown: #A1885C; /* Soft brown/beige sand */
  --color-earth: #e1d5c2; /* Light earthy background for cards */
  --color-white: #fff;
  --color-grey: #6C7263; /* muted earth grey */
  --color-offblack: #1E2220;
}

/* ============== TYPOGRAPHY & HEADINGS ============== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  margin-top: 0;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.section h2 {
  margin-top: 0;
  margin-bottom: 18px;
}
p, .content-wrapper ul, .content-wrapper ol, blockquote {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  color: var(--color-offblack);
  margin-bottom: 16px;
  max-width: 820px;
}
strong, b {
  color: var(--color-secondary);
}
blockquote {
  font-style: italic;
  color: var(--color-secondary);
  margin-bottom: 12px;
  border-left: 4px solid var(--color-green);
  padding-left: 18px;
  background-color: #f8f9f8;
  border-radius: 0 18px 18px 0;
}

/* ================ LAYOUT CONTAINERS ================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--color-earth);
  border-radius: 22px;
  box-shadow: 0 2px 12px rgba(63, 76, 57, 0.10);
  padding: 28px 18px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(72,120,64,0.15);
  transform: translateY(-2px) 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;
  align-items: center;
  gap: 20px;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(60, 80, 60, 0.08);
  padding: 20px 26px 20px 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  transition: box-shadow 0.2s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(56,90,72,0.18);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-author {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-earth);
  border-radius: 18px;
  box-shadow: 0 1px 8px rgba(70, 80, 60, 0.09);
  padding: 23px 18px 18px 18px;
  transition: box-shadow 0.22s, transform 0.18s;
  flex: 1 1 270px;
  max-width: 350px;
  min-width: 200px;
}
.feature-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
}
.feature-item:hover {
  box-shadow: 0 8px 30px rgba(36,54,38,0.13);
  transform: scale(1.02);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  align-items: stretch;
}

.section:last-child,
main > section:last-child {
  margin-bottom: 0;
}

/* Blog article cards */
.blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.blog-post-list article {
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 1px 8px rgba(80, 120, 80, 0.07);
  padding: 22px 16px;
  flex: 1 1 310px;
  max-width: 380px;
  min-width: 200px;
  transition: box-shadow 0.18s, transform 0.18s;
  margin-bottom: 10px;
}
.blog-post-list article:hover {
  box-shadow: 0 8px 26px rgba(64,70,54,0.14);
  transform: translateY(-2px) scale(1.01);
}

.categories, .featured-posts {
  margin-top: 16px;
}

/* =================== ORGANIC BUTTONS ================== */
.button, .button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  padding: 13px 28px;
  border-radius: 36px 16px 32px 18px;
  border: none;
  outline: none;
  transition: background 0.15s, box-shadow 0.19s, color 0.12s, transform 0.12s;
  background: linear-gradient(88deg, var(--color-green) 65%, var(--color-secondary) 100%);
  color: #fff;
  box-shadow: 0 2px 9px rgba(40,96,54,0.08);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-top: 10px;
}
.button.primary:hover, .button.primary:focus {
  background: linear-gradient(90deg, #31994d 60%, #1e4030 100%);
  box-shadow: 0 6px 20px rgba(41, 96, 60, 0.16);
  color: #d0ffd6;
  transform: translateY(-1px) scale(1.03);
}

.button.secondary {
  background: var(--color-earth);
  color: var(--color-green);
  border: 2px solid var(--color-green);
}
.button.secondary:hover,
.button.secondary:focus {
  background: #e8f5e9;
  color: #1e4030;
  box-shadow: 0 3px 16px rgba(60, 120, 64, 0.09);
}

/* ================= HEADER & NAVIGATION ================== */
header {
  background: #fff;
  box-shadow: 0 2px 20px rgba(50,60,35,0.08);
  padding: 0 0 0 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 15px;
}
.logo img {
  display: block;
  height: 46px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 12px;
  border-radius: 16px;
  transition: background 0.13s, color 0.12s;
  position: relative;
}
.main-nav a:hover:not(.button), .main-nav a:focus:not(.button) {
  background: #e3eddb;
  color: var(--color-green);
}
.main-nav .button.primary {
  margin-left: 14px;
  padding: 11px 22px;
  font-size: 1rem;
}

.mobile-menu-toggle {
  display: inline-flex;
  font-size: 2.1rem;
  color: var(--color-green);
  background: none;
  border: none;
  padding: 4px 12px;
  cursor: pointer;
  border-radius: 12px;
  margin-left: 8px;
  transition: background 0.16s, color 0.08s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #e1d5c2;
  color: #27402c;
}

/* ================= MOBILE MENU STYLES ================== */
.mobile-menu {
  position: fixed;
  z-index: 1800;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(247, 252, 249, 0.98);
  box-shadow: 0 0 100px #22244d59 inset;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.7,.1,.2,1);
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-close {
  font-size: 2.1rem;
  background: none;
  border: none;
  color: var(--color-green);
  align-self: flex-end;
  margin: 23px 24px 0 0;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  text-align: center;
  transition: background 0.12s, color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #e1d5c259;
  color: #1f5236;
}

.mobile-nav {
  margin: 48px 0 0 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  color: var(--color-primary);
  padding: 13px 28px;
  border-radius: 20px;
  transition: background 0.14s, color 0.10s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e3eddb;
  color: var(--color-green);
}

/* Hide nav on mobile, show burger */
@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (min-width: 1021px) {
  .mobile-menu, .mobile-menu.open {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
  .main-nav {
    display: flex;
  }
}

/* ================= HERO SECTION ================== */
.hero {
  background: linear-gradient(119deg,#F3F5F7 80%,#cdecd2 90%, #e8dcc0 100%);
  border-radius: 0 0 80px 0;
  box-shadow: 0 6px 46px -26px #1a402719;
  padding-top: 62px;
  padding-bottom: 60px;
}
.hero .container {
  padding-top: 0;
}
.hero .content-wrapper {
  margin: 0 auto;
  align-items: flex-start;
}
.hero h1 {
  color: var(--color-secondary);
  font-size: 2.7rem;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.21rem;
  color: var(--color-primary);
  font-weight: 500;
}

/* =============== ORGANIC SHAPE UTILITIES (SVG OR DIV) ================ */
/* Example: background/section organic shapes here if needed. */
/* .section-organic-bg { ... } */

/* ================= FOOTER ================== */
footer {
  background: #F3F5F7;
  border-top: 2px solid #e1d5c2;
  padding: 40px 0 28px 0;
}
.footer-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-block {
  min-width: 190px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-block strong {
  color: var(--color-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.footer-block img {
  max-width: 44px;
  margin-bottom: 8px;
}
.footer-block nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-block nav a {
  color: var(--color-primary);
  font-size: 0.97rem;
  padding-left: 1px;
  transition: color 0.1s;
}
.footer-block nav a:hover, .footer-block nav a:focus {
  color: var(--color-green);
}
.footer-block p, .footer-block strong {
  font-size: 0.97rem;
}
.footer-block a img {
  margin-right: 6px;
}
@media (max-width: 900px) {
  .footer-navigation {
    gap: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================== SECTIONS, CARDS, IMPACT/BENEFITS ================== */
.services ul, .features ul, .about ul, .content-wrapper ul {
  list-style-type: disc;
  margin-left: 1.3em;
  margin-bottom: 18px;
}
.benefits-highlights ul, .impact-overview ul {
  background: #f5efe5;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 14px 0 12px 0;
  list-style-type: circle;
}
.benefits-highlights ul li, .impact-overview ul li {
  margin-bottom: 6px;
}
.impact-overview {
  background: #e3eddb;
  border-radius: 14px;
  padding: 16px 14px;
  margin-top: 14px;
  color: var(--color-primary);
  font-weight: 500;
}
.partner-logos {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 15px;
  flex-wrap: wrap;
}
.partner-logos img {
  height: 38px;
  width: auto;
}

/* =================== CONTACT PAGE ================== */
.contact-details {
  background: #f5efe5;
  border-radius: 30px 8px 36px 16px;
  box-shadow: 0 4px 26px rgba(64, 124, 94, 0.06);
  margin-bottom: 40px;
}
.contact-details .content-wrapper p {
  display: flex;
  align-items: center;
  gap: 10px;
}
.map-embed {
  margin-top: 14px;
  min-height: 160px;
  background: #e7edd6 url('../assets/icons/icon-location.svg') center 48px no-repeat;
  border-radius: 16px;
}

/* =============== LEGAL PAGES =============== */
.legal h2 {
  font-size: 1.3rem;
}
.legal ul {
  list-style-type: square;
}

/* =============== CTA BANNERS =============== */
.cta {
  background: linear-gradient(90deg,#e3eddb 80%,#f3f5f7 100%);
  border-radius: 34px 64px 44px 12px;
  box-shadow: 0 8px 30px -18px #2444212a;
  margin-bottom: 48px;
  margin-top: 38px;
  text-align: left;
}
.cta h2 {
  color: var(--color-green);
}
.cta p {
  color: var(--color-primary);
  font-weight: 500;
}

/* =============== RESPONSIVE DESIGN =============== */
@media (max-width: 1020px) {
  .container {
    padding: 0 12px;
    max-width: 100vw;
  }
  .footer-navigation {
    flex-direction: column;
    gap: 12px;
  }
  .hero {
    padding-top: 36px;
    padding-bottom: 38px;
    border-radius: 0 0 38px 0;
  }
}
@media (max-width: 800px) {
  .feature-grid, .blog-post-list {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .footer-navigation {
    gap: 10px;
  }
  .cta {
    padding: 32px 10px;
    border-radius: 18px 27px 20px 8px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .container {
    padding: 0 6px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.36rem;
  }
  .section {
    padding: 30px 6px;
  }
  .card {
    padding: 16px 7px;
    border-radius: 12px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .feature-item {
    max-width: 100%;
    min-width: 0;
    border-radius: 12px;
    padding: 13px 8px 14px 10px;
  }
  .footer-navigation {
    gap: 10px;
    flex-direction: column;
  }
  .cta {
    margin-bottom: 20px;
    padding: 24px 4px;
  }
  .partner-logos {
    gap: 12px;
  }
}

/* =============== SHADOWS, SPACING, RADIUS =============== */
.section, .about, .features, .services, .cta, .legal, .contact-details {
  margin-bottom: 60px;
  border-radius: 22px;
}
.card, .feature-item, .testimonial-card, .blog-post-list article {
  margin-bottom: 20px;
  border-radius: 18px;
}

/* ============ TRANSITIONS & MICRO-INTERACTIONS ========= */
a, button, .button {
  transition: color 0.16s, background 0.18s, box-shadow 0.15s, transform 0.18s;
}
input, textarea, select {
  outline-color: var(--color-green);
  border: 1.5px solid #cdecd2;
  padding: 9px 15px;
  border-radius: 9px;
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border-color 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
}

/* ================= COOKIE BANNER ================== */
.cookie-banner {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 18px;
  z-index: 2000;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  background: #f5efe5;
  box-shadow: 0 4px 30px rgba(60, 70, 32, 0.17);
  border-radius: 30px 40px 16px 23px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 30px 15px 26px;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  transform: translateY(50px);
  transition: opacity 0.33s cubic-bezier(.7,.1,.2,1), transform 0.33s cubic-bezier(.7,.1,.2,1);
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner p {
  color: #3b6846;
}
.cookie-banner-actions {
  display: flex;
  gap: 18px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.cookie-banner .button {
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 18px 26px 12px 23px;
  min-width: 130px;
}
.cookie-banner .button.accept {
  background: linear-gradient(86deg, var(--color-green) 70%, var(--color-secondary) 100%);
  color: #fff;
}
.cookie-banner .button.accept:hover {
  background: #31994d;
}
.cookie-banner .button.reject {
  background: #fff;
  border: 2px solid var(--color-green);
  color: var(--color-green);
}
.cookie-banner .button.reject:hover {
  background: #e3eddb;
  color: #1e4030;
}
.cookie-banner .button.settings {
  background: #f8f9f8;
  color: var(--color-green);
  border: 1.5px solid #cdecd2;
}
.cookie-banner .button.settings:hover {
  background: #e7edd6;
}

/* ========== COOKIE MODAL POPUP ========== */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(36,60,28,0.21);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.24s cubic-bezier(.7,.1,.2,1);
}
.cookie-modal.active {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-content {
  background: #fffbe7;
  border-radius: 33px 18px 26px 38px;
  box-shadow: 0 12px 55px -10px #24442144;
  padding: 32px 28px 25px 32px;
  min-width: 308px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.cookie-modal-content h2 {
  margin-bottom: 9px;
  color: var(--color-green);
}
.cookie-modal-section {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}
.cookie-modal-section label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  color: var(--color-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-modal-btn-row {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cookie-modal .button {
  font-size: 1rem;
  padding: 9px 24px;
  border-radius: 18px 22px 16px 20px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--color-green);
  font-size: 2rem;
  align-self: flex-end;
  margin-bottom: 4px;
  margin-top: -21px;
  margin-right: -7px;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal-close:hover {
  color: #1e4030;
}
.cookie-modal-section input[type="checkbox"] {
  accent-color: var(--color-green);
  margin-right: 7px;
}
/* Accessibility for modal */
@media (max-width: 600px){
  .cookie-modal-content{
    padding: 18px 3vw 12px 3vw;
    min-width: 180px;
    border-radius: 16px 11px 17px 16px;
  }
}

/* =============== MICRO-DECOR & EFFECTS =============== */
.section, .about, .features, .services {
  background: #F3F5F7;
  position: relative;
}
.section::before, .about::before, .features::before, .cta::before {
  content: '';
  position: absolute;
  top: -42px; left: -42px;
  width: 88px; height: 88px;
  background: rgba(163, 190, 140, 0.12);
  border-radius: 40% 60% 34% 66% / 58% 32% 68% 42%;
  z-index: 0;
  filter: blur(7px);
}

.section::after, .about::after, .services::after, .cta::after {
  content: '';
  position: absolute;
  bottom: -32px; right: -44px;
  width: 75px; height: 55px;
  background: rgba(49, 153, 77, 0.16);
  border-radius: 60% 40% 34% 66% / 68% 52% 48% 32%;
  z-index: 0;
  filter: blur(4px);
}
/* Remove behind child content */
.content-wrapper, .feature-grid, .feature-item, .testimonial-card, .card, .blog-post-list {
  position: relative;
  z-index: 2;
}

/* =============== UTILITY: Hide visually, Accessible only =============== */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* =============== ACCESSIBILITY & FOCUS =============== */
a:focus, button:focus, .button:focus, input:focus {
  outline: 2px solid var(--color-green);
  outline-offset: 1.5px;
  z-index: 3;
}

/* =============== OVERRIDE PRINT =============== */
@media print {
  header, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal, footer {
    display: none !important;
  }
  body {
    background: #fff;
  }
}
