/* --- 01. CSS Reset & Normalize --- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  padding: 0;
  margin: 0;
  font-size: 16px;
  background: #f4f7f0;
  color: #21392b;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  min-height: 100vh;
}
body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 18px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #155042;
}
h1 { font-size: 2.5rem; line-height: 1.18; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4, h5, h6 { font-size: 1rem; }
p, ul, ol { margin: 0 0 18px 0; }
ul, ol { padding-left: 24px; }
li { margin-bottom: 10px; }
strong { color: #2d4735; }
a { color: #155042; text-decoration: underline; transition: color 0.2s; word-break: break-word; }
a:hover, a:focus { color: #FFD600; text-decoration: none; }
img { max-width: 100%; height: auto; border-radius: 12px; display: block; }

/* --- 02. Brand Colors & Variables (fallbacks for older browsers) --- */
:root {
  --primary: #155042;
  --primary-dark: #104032;
  --secondary: #F4F7F0;
  --accent: #FFD600;
  --earth1: #C2B280;
  --earth2: #9F8662;
  --leaf: #6BA94B;
  --text-main: #21392b;
  --text-dark: #153c28;
}

/* --- 03. Containers & Layouts (Flexbox Only) --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Section Spacing (Required patterns) --- */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 24px;
}
.section:last-child, section:last-child { margin-bottom: 0; }

/* --- Cards, Grids & Alignments --- */
.card-container, .card-grid, .feature-grid, .case-highlights, .success-stories {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.card, .feature-grid > div, .case-highlights > div, .success-stories > div {
  flex: 1 1 260px;
  min-width: 250px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(44,91,68,0.06);
  margin-bottom: 20px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  border: 1.5px solid #e8ebdf;
  transition: box-shadow 0.22s, transform 0.18s;
}
.card:hover, .feature-grid > div:hover {
  box-shadow: 0 8px 32px 0 rgba(44,91,68,0.14);
  transform: translateY(-3px) scale(1.01);
}
.comparison-chart ul {
  list-style-type: disc;
  margin-bottom: 0;
}

/* --- Feature Grid: Icons, Headers --- */
.feature-grid img {
  width: 48px;
  height: 48px;
  background: #6ba94b1c;
  border-radius: 50%;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(107,169,75,0.05);
}
.feature-grid h3 { margin: 0 0 6px 0; color: #155042; font-size: 1.1rem; }
.feature-grid p { font-size: 1rem; color: #324128; }

/* --- Testimonial Cards --- */
.testimonial-card {
  background: #F4F7F0;
  color: #21392b;
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(44,91,68,0.10);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  min-width: 0;
  border: 1px solid #e1e9d9;
  transition: box-shadow 0.16s;
}
.testimonial-card p { font-size: 1.15rem; flex: 2 1 0; margin: 0; font-weight: 500; }
.testimonial-card > div {
  flex: 1 1 120px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1rem;
  align-items: flex-start;
}
.testimonial-card strong {
  color: #155042;
  font-size: 1.09rem;
}
.testimonial-card img {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin: 2px 0 0 0;
  border-radius: 0;
}

/* --- Typographic Accents --- */
.note {
  background: #f7faef;
  padding: 18px 22px;
  border-left: 5px solid #155042;
  border-radius: 10px;
  color: #2d4735;
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 1rem;
}

/* --- Buttons / CTA --- */
.cta, .btn, .cta.primary, .cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1.06rem;
  padding: 0.8em 2.3em;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, box-shadow 0.15s, color 0.18s, transform 0.15s;
  box-shadow: 0 2px 14px 0 rgba(21,80,66,0.08);
  margin-top: 12px;
}
.cta.primary, .btn.primary {
  background: var(--primary);
  color: #fff;
}
.cta.primary:hover, .btn.primary:hover, .cta.primary:focus,
.cta:hover, .btn:hover, .cookie-btn:hover {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 18px 0 rgba(252, 229, 71, 0.13);
  transform: translateY(-2px) scale(1.05);
}
.cta:not(.primary), .btn:not(.primary) {
  background: #f6fbea;
  color: var(--primary);
}
.cta:not(.primary):hover, .btn:not(.primary):hover { background: var(--earth1); color: #155042; }

/* --- Lists and Tables --- */
ul, ol { color: #284823; }
li strong { color: #6BA94B; font-weight: 700; }

/* --- Header & Navigation --- */
header { padding: 0 0 6px 0; background: #fffdf7; border-bottom: 1.5px solid #ebe6dc; box-shadow: 0 2px 8px 0 rgba(107,169,75,0.07); z-index: 5; position: relative; }
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  flex-wrap: wrap;
}
.logo { display: flex; align-items: center; min-width: 110px; }
.logo img { width: 120px; height: auto; background: none; border-radius: 0; box-shadow: none; }
nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
nav a {
  color: #155042;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition: color 0.16s, background 0.16s;
}
nav a:hover, nav a:focus {
  background: #f6fbea;
  color: #6ba94b;
}
nav .cta.primary {
  margin-left: 10px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
}
nav .cta.primary:hover, nav .cta.primary:focus {
  background: var(--primary);
  color: #fff;
}
/* Hide mobile menu elements by default */
.mobile-menu-toggle { display: none; }
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #f4f7f0;
  z-index: 9999;
  flex-direction: column;
  padding: 36px 28px 32px 28px;
  box-shadow: 0 10px 28px 2px rgba(21,80,66,0.22);
  transform: translateX(110vw);
  transition: transform 0.34s cubic-bezier(.4,.52,.21,.99);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: transparent;
  color: #155042;
  font-size: 2.1rem;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 2;
  border-radius: 40px;
  transition: background 0.18s;
}
.mobile-menu-close:hover {
  background: #e5eddd;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 50px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #155042;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 0;
  border-radius: 8px;
  width: 100%;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e5eddd;
  color: #6BA94B;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background: #eaf3e1;
  padding-top: 40px;
  padding-bottom: 40px;
  border-radius: 32px;
  box-shadow: 0 4px 24px 0 rgba(107,169,75,0.08);
  background-image: url('../assets/organic-bg.svg'), linear-gradient(120deg, #f5ecd6 60%, #eaf3e1 100%);
  background-size: cover, 100%;
  background-repeat: no-repeat, no-repeat;
  margin-bottom: 50px;
}
.hero .container {
  display: flex;
  align-items: center;
  min-height: 270px;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  flex: 1 1 0;
  gap: 16px;
  background: rgba(255,255,255,0.85);
  border-radius: 22px;
  padding: 28px 22px;
  box-shadow: 0 4px 18px 0 rgba(107,169,75,0.07);
}
.hero h1 {
  color: #155042;
  font-size: 2.2rem;
  letter-spacing: -0.01em;
}
.hero p {
  font-size: 1.17rem;
  color: #284823;
}

/* --- Visual Accents: Organic/Earthy Touch --- */
section, .section, .hero, .card, .feature-grid > div, .testimonial-card {
  border-radius: 22px 30px 24px 18px / 30px 22px 18px 26px;
  /* organic/irregular border radii */
  box-shadow: 0 1px 8px 0 rgba(33,57,43,0.03);
}

/* --- Footer --- */
footer {
  background: #ecebe1;
  color: #48664b;
  font-size: 0.98rem;
  padding: 26px 0 5px 0;
  margin-top: 40px;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -2px 14px 0 rgba(33,57,43,0.08);
}
footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
footer a { color: #155042; text-decoration: none; transition: color 0.18s; font-weight: 500; }
footer a:hover { color: #6BA94B; }

/* --- Misc Sections (case highlights etc.) --- */
.case-highlights, .success-stories {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.case-highlights > div, .success-stories > div {
  flex: 1 1 260px;
  min-width: 220px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(44,91,68,0.07);
  border: 1.5px solid #e8ebdf;
  padding: 20px 18px 18px 20px;
  margin-bottom: 20px;
}
.sector-overview {
  background: #faf8ec;
  padding: 22px 20px;
  border-radius: 15px;
  font-size: 1.03rem;
}

/* --- Cookie Consent Banner + Modal --- */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; width: 100vw;
  z-index: 10011;
  background: #fffef6;
  border-top: 3px solid #6BA94B;
  box-shadow: 0 -2px 26px 0 rgba(33,57,43,0.12);
  padding: 22px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  transition: transform 0.37s cubic-bezier(.4,.52,.21,.99), opacity 0.17s;
}
.cookie-banner.hide {
  transform: translateY(105%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-btn {
  margin-right: 12px;
  margin-top: 5px;
  margin-bottom: 0;
  min-width: 132px;
}
.cookie-banner .cookie-btn.settings {
  background: #f6fbea;
  color: #315638;
  border: 1.5px solid #e8ebdf;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #6ba94b;
  color: #fff;
}

/* Modal overlay */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10012;
  background: rgba(21,80,66,0.36);
  align-items: center;
  justify-content: center;
}
.cookie-modal.open { display: flex; animation: fadeInModal 0.29s; }
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: #fcfff7;
  padding: 34px 24px 28px 24px;
  border-radius: 28px;
  box-shadow: 0 6px 38px 1px rgba(33,57,43,0.16);
  min-width: 320px;
  max-width: 94vw;
  max-height: 93vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-content h2 { margin-top: 0; }
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  color: #155042;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  border-radius: 40px;
  transition: background 0.15s;
  padding: 4px;
}
.cookie-modal-close:hover { background: #e5eddd; }
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #e8ebdf;
  font-size: 1.08rem;
}
.cookie-modal .cookie-category:last-child { border-bottom: none; }
.cookie-modal .cookie-toggle {
  width: 46px;
  height: 26px;
  border-radius: 16px;
  background: #e1e9d9;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
  margin-left: 14px;
  flex-shrink: 0;
}
.cookie-modal .cookie-toggle[data-active="true"] {
  background: #6BA94B;
}
.cookie-modal .cookie-toggle::after {
  content: '';
  position: absolute;
  left: 4px; top: 3.5px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(33,57,43,0.09);
  transition: left 0.17s cubic-bezier(.45,.53,.28,.77);
}
.cookie-modal .cookie-toggle[data-active="true"]::after {
  left: 23px;
}
.cookie-modal .cookie-toggle[data-disabled="true"] {
  background: #d3dbc7;
  opacity: 0.7;
  cursor: not-allowed;
}
.cookie-modal .cookie-toggle[data-disabled="true"]::after {
  background: #eee;
}

/* --- Forms (Simple) --- */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  background: #fbfbf3;
  border: 1.5px solid #dbe2d0;
  border-radius: 8px;
  padding: 10px 11px;
  margin-bottom: 14px;
}
input:focus, textarea:focus, select:focus {
  outline: 1.5px solid #6BA94B;
  border-color: #6BA94B;
}
button {
  font-family: 'Montserrat', Arial, sans-serif;
}

/* --- Responsive / Mobile-first --- */
@media (max-width: 1050px) {
  .container { max-width: 100vw; padding: 0 10px; }
  section, .section, .hero { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 900px) {
  .feature-grid, .card-container, .card-grid, .case-highlights, .success-stories {
    gap: 16px;
  }
  .card, .feature-grid > div, .case-highlights > div, .success-stories > div {
    min-width: 80vw;
    flex: 1 1 95vw;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .container { padding-left: 5px; padding-right: 5px; }
  .content-wrapper, .text-section {
    padding: 0;
    gap: 18px;
  }
  .feature-grid, .card-container, .card-grid, .case-highlights, .success-stories {
    flex-direction: column;
    gap: 18px;
  }
  .card, .feature-grid > div, .case-highlights > div, .success-stories > div {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
    padding: 18px 12px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    background: #eff8e7;
    color: #155042;
    border: 1.5px solid #e1e9d9;
    font-size: 2rem;
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.13s;
    margin-left: auto;
  }
  .mobile-menu-toggle:active, .mobile-menu-toggle:focus {
    background: #cee0c3;
  }
  .comparison-chart, .sector-overview {
    padding: 12px 4px 8px 9px;
    font-size: 0.97rem;
  }
  .hero {
    padding: 16px 4px 18px 5px;
  }
  .hero .content-wrapper {
    padding: 13px 6px;
    min-width: 0;
  }
  .section, section {
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 22px; padding-bottom: 22px;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.33rem !important; }
  h2 { font-size: 1.07rem !important; }
  .card, .feature-grid > div, .case-highlights > div, .success-stories > div {
    padding: 10px 5px;
  }
  .cookie-banner { padding-left: 7px; padding-right: 7px; }
  .cookie-modal-content { min-width: 90vw !important; padding: 14px 4px 13px 8px; }
}

/* --- Custom Utility --- */
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* --- Micro-interactions & Animations --- */
.card, .feature-grid > div, .cta, .btn, .testimonial-card,
.cookie-banner, .mobile-menu, .mobile-menu-toggle, .cookie-modal-content {
  transition: box-shadow 0.18s, background 0.16s, transform 0.15s, color 0.15s;
}

/* --- Utility: Hide Scroll on Body When Mobile Menu/Cookie Modal Open --- */
body.menu-open, body.cookie-modal-open { overflow: hidden; }

/* --- Misc: Icon alignments --- */
li img, .feature-item img, ul img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  width: 22px; height: 22px; background: none; border-radius: 0; box-shadow: none;
}

/* --- Special Section Class (why-us, cta etc.) --- */
.why-us {
  background: #f3fbe3;
  border-left: 8px solid #6ba94b;
  border-radius: 18px;
}
.cta {
  background: #effcec;
  text-align: center;
  border-radius: 24px;
}
.cta.primary { background: var(--primary); color: #fff; }

/* --- Improving focus accessibility --- */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2.5px solid #6BA94B; outline-offset: 2px; }

/* --- Accessibility contrast for testimonials/review sections --- */
section .testimonial-card, .testimonial-card {
  background: #f5fbee;
  color: #144733;
  border-color: #e0efc7;
}
section .testimonial-card p, .testimonial-card p { color: #214023; font-weight: 600; }
section .testimonial-card strong, .testimonial-card strong { color: #155042; }

/* --- Cookie Banner: High Contrast Text --- */
.cookie-banner { color: #154024; font-size: 1.05rem; }

/* --- [END OF STYLESHEET] --- */