/* ========= 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
*, *:before, *:after { box-sizing: inherit; }
body {
  background: #fcfbf8;
  color: #243015;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #215B2B;
  text-decoration: underline;
  transition: color .15s;
}
a:hover, a:focus {
  color: #5D8841;
}

/* ========= Brand variables ========= */
:root {
  --primary: #215B2B;
  --secondary: #5D8841;
  --accent: #E6F2EA;
  --white: #fff;
  --offwhite: #fcfbf8;
  --gray: #6e7057;
  --text: #243015;
  --error: #ad3827;
  --shadow: 0 2px 12px 0 rgba(33, 91, 43, 0.07);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 10px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ========= Layout Containers ========= */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 18px;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ========= Spacing & Section Patterns ========= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 900px) {
  section {
    padding: 32px 10px;
    margin-bottom: 40px;
  }
}
.card-container,
.features-grid ul,
.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  background: var(--offwhite);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  position: relative;
  padding: 24px 20px;
  min-width: 250px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.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;
  padding: 20px;
  background: var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  min-width: 260px;
  flex: 1 1 300px;
  margin-bottom: 20px;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
.testimonial-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 22px 0 rgba(93, 136, 65, 0.16);
}
.feature-item, .features-grid li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 18px 18px 18px 18px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .content-grid { flex-direction: column; gap: 16px; }
  .testimonial-cards, .features-grid ul { flex-direction: column; gap: 18px; }
  .card-container { flex-direction: column; gap: 18px; }
}

/* ========= Header & Navigation ========= */
header {
  background: var(--white);
  box-shadow: 0 1px 10px 0 rgba(33,91,43, 0.07);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 900;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 80px;
}
.logo {
  display: inline-flex;
  align-items: center;
  height: 56px;
}
.logo img {
  height: 40px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--primary);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}

.btn-primary, .btn-secondary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 32px;
  margin-left: 20px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 12px 0 rgba(33,91,43,.08);
  transition: background .18s, color .18s, box-shadow .18s, transform .16s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 7px 20px 0 rgba(93, 136, 65, 0.16);
}
.btn-secondary {
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
  font-weight: 500;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--secondary);
  transform: translateY(-2px) scale(1.03);
}

@media (max-width: 900px) {
  header .container {
    min-height: 60px;
    gap: 10px;
  }
  .main-nav { gap: 14px; }
  .btn-primary, .btn-secondary { margin-left: 6px; padding: 10px 14px; font-size: 16px; }
}
@media (max-width: 768px) {
  .main-nav, .btn-primary {
    display: none !important;
  }
  .logo {
    height: 38px;
  }
}

/* ========= Mobile Menu (Hamburger) ========= */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2em;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  margin-left: auto;
  z-index: 1001;
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 2.1em;
    background: var(--accent);
    border-radius: 12px;
    margin-right: 9px;
    box-shadow: 0 2px 10px 0 rgba(33,91,43,.06);
    transition: background .14s;
  }
  .mobile-menu-toggle:active, .mobile-menu-toggle:focus {
    background: var(--primary);
    color: #fff;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(230,242,234,0.98);
  transform: translateX(-110%);
  transition: transform .44s cubic-bezier(.8,.2,.2,1);
  z-index: 1800;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  box-shadow: 0 6px 22px 0 rgba(33,91,43,0.17);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.1em;
  position: absolute;
  top: 20px;
  right: 24px;
  cursor: pointer;
  z-index: 2001;
  padding: 6px;
  border-radius: 8px;
  transition: background .14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 90px 24px 12px 35px;
  gap: 20px;
}
.mobile-nav a {
  font-size: 1.25em;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  border-radius: 6px;
  padding: 14px 8px 14px 0;
  width: 100%;
  display: block;
  margin-bottom: 3px;
  transition: background .17s, color .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* ========= Typography ========= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.16;
  margin-bottom: 10px;
}
h1 {
  font-size: 2.6em;
  margin-bottom: 20px;
}
h2 {
  font-size: 2.05em;
  color: var(--secondary);
  margin-bottom: 12px;
}
h3 {
  font-size: 1.35em;
  color: var(--primary);
  margin-bottom: 8px;
}
h4, h5, h6 { font-size: 1.11em; color: var(--text); font-weight: 600; }
p, li, dl, dd, dt { font-size: 1em; line-height: 1.65; color: var(--text); }
p { margin-bottom: 10px; }
strong { font-weight: 700; color: var(--primary); }
em { font-style: italic; }
ul, ol, dl {
  margin-left: 1.2em;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
ul li, ol li { margin-left: 0; }
dl dt { font-weight: 700; color: var(--primary); margin-bottom: 3px; }
dl dd { margin-bottom: 10px; }
small { font-size: .93em; color: var(--gray); }

.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  h1 { font-size: 1.6em; }
  h2 { font-size: 1.2em; }
  .text-section { padding: 18px 5px; gap: 12px; }
}

/* ========= Features Section Specifics ========= */
.features-grid ul {
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 0;
}
.features-grid li {
  flex: 1 1 250px;
  min-width: 210px;
  background: var(--accent);
  align-items: flex-start;
  box-shadow: var(--shadow);
  margin: 0;
  padding: 20px 18px 17px 16px;
  border-radius: var(--radius-md);
  transition: box-shadow .17s, transform .17s;
}
.features-grid li img {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 7px #6e705715);
}
.features-grid li:hover {
  box-shadow: 0 6px 22px 0 rgba(33,91,43,0.12);
  transform: translateY(-2px) scale(1.02);
}
.features-grid h3 {
  font-size: 1.15em;
  margin-bottom: 6px;
  color: var(--primary);
}
.features-grid p {
  font-size: 1em;
  color: var(--gray);
}

/* ========= Card Styles ========= */
.card {
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: box-shadow .19s, transform .17s;
}
.card:hover {
  box-shadow: 0 9px 28px 0 rgba(93,136,65,0.18);
  transform: translateY(-2px) scale(1.02);
}

/* ========= Testimonial Cards ========= */
.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.testimonial-card {
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  min-width: 260px;
  flex: 1 1 300px;
  margin-bottom: 20px;
  padding: 24px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.testimonial-card p {
  color: #243015;
  font-size: 1.07em;
}
.testimonial-card strong {
  color: var(--secondary);
  font-size: 1em;
  margin-top: 4px;
}

/* Make sure testimonials have adequate contrast */
.testimonial-card,
.testimonial-card p,
.testimonial-card strong {
  color: #243015;
  background: var(--accent);
}

/* ========= Footer ========= */
footer {
  background: var(--primary);
  color: #fff;
  width: 100%;
  margin-top: 34px;
  padding: 38px 0 24px 0;
  box-shadow: 0 -1px 12px 0 rgba(33,91,43,.09);
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: underline;
  opacity: 0.89;
  font-size: 1em;
  transition: color .18s, opacity .14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  opacity: 1;
}
footer small {
  color: #F2F9F6;
  font-size: 0.98em;
  letter-spacing: 0.01em;
}
@media (max-width: 700px) {
  footer .container { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer-nav { gap: 10px; font-size: 0.98em; }
}

/* ========= Utility ========= */
::-webkit-input-placeholder { color: #788966; opacity: .7; }
:-moz-placeholder { color: #788966; opacity: .7; }
::-moz-placeholder { color: #788966; opacity: .7; }
:-ms-input-placeholder { color: #788966; opacity: .7; }

/* ========= Cookie Consent Banner ========= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 14px 0 rgba(33,91,43,0.11);
  border-top: 2.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2999;
  padding: 20px 32px 20px 22px;
  flex-wrap: wrap;
  transition: opacity .25s, transform .27s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(90px);
}
.cookie-banner .cookie-text {
  flex: 2 1 250px;
  color: #243015;
  font-size: 1em;
  margin-bottom: 6px;
}
.cookie-banner .cookie-actions {
  display: flex; gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1em;
  border: none;
  border-radius: 7px;
  padding: 10px 22px;
  cursor: pointer;
  margin: 0 2px;
  box-shadow: 0 1px 8px 0 rgba(93,136,65,.08);
  transition: background .16s, color .14s, transform .14s;
}
.cookie-banner .accept {
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--primary);
}
.cookie-banner .reject {
  background: #fff9f8;
  color: var(--error);
  border: 1.5px solid var(--error);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--error);
  color: #fff;
}
.cookie-banner .settings {
  background: var(--accent);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--primary);
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 7px 14px 10px;
  }
  .cookie-banner .cookie-actions {
    gap: 7px;
    width: 100%;
    justify-content: flex-end;
  }
}

/* ========= Cookie Preferences Modal ========= */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(33,91,43, .20);
  z-index: 3101;
  opacity: 1;
  pointer-events: auto;
  animation: fadeIn .25s;
}
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -51%) scale(1);
  background: #fff;
  box-shadow: 0 7px 28px 0 rgba(33,91,43,0.22);
  border-radius: var(--radius-lg);
  z-index: 3102;
  min-width: 350px;
  max-width: 98vw;
  padding: 30px 25px 22px 25px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: modalIn .27s cubic-bezier(.65, .21, .33, 1);
}
@keyframes modalIn { 
  0% { opacity:0; transform: translate(-50%,-57%) scale(.92); } 
  100% { opacity:1; transform: translate(-50%, -51%) scale(1); } 
}
@keyframes fadeIn { 
  0% { opacity:0; } 
  100% { opacity:1; }
}
.cookie-modal h2 {
  font-size: 1.25em;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}
.cookie-category label {
  flex: 0 0 auto;
  font-weight: 500;
  color: var(--primary);
}
.cookie-category input[type="checkbox"] {
  display: inline-block;
  accent-color: var(--secondary);
  width: 22px;
  height: 22px;
  margin-right: 8px;
}
.cookie-category input[disabled] {
  filter: grayscale(.93) brightness(1.14);
  pointer-events: none;
}
.cookie-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 8px;
}
.cookie-modal .modal-close {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 2.05em;
  position: absolute;
  top: 13px;
  right: 25px;
  cursor: pointer;
  z-index: 3103;
  transition: color .12s;
}
.cookie-modal .modal-close:hover { color: var(--primary); }
@media (max-width: 500px) {
  .cookie-modal { min-width: 97vw; padding: 10px 7px; }
  .cookie-modal h2 { font-size: 1.02em; }
  .cookie-category { gap: 8px; }
}

/* ========= Organic/Nature-Inspired Visual Accents ========= */
section, .text-section, .card, .feature-item, .testimonial-card {
  background: linear-gradient(125deg, #f3fbf5 60%, #e6f2ea 100%);
  background-repeat: no-repeat;
  background-attachment: local;
  border-radius: var(--radius-lg);
}
@media (max-width: 700px) {
  section, .text-section, .card, .feature-item, .testimonial-card {
    border-radius: var(--radius-md);
    padding-left: 4vw;
    padding-right: 4vw;
  }
}

/* Subtle shadow for organic 'lift' effect for all main blocks */
section, .text-section, .testimonial-card, .feature-item, .card {
  box-shadow: 0 3px 16px 0 rgba(33,91,43,0.06);
}

/* ========= Micro-Interactions & Subtle Animations ========= */
button, .btn-primary, .btn-secondary, a {
  transition: color .18s, background .18s, box-shadow .19s, transform .17s;
}
button:active, .btn-primary:active, .btn-secondary:active { transform: scale(0.98); }

/* Animate nav underline on focus */
.main-nav a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2.5px;
  background: var(--secondary);
  transition: width .18s;
  margin-top: 2px;
  border-radius: 2px;
}
.main-nav a:focus::after, .main-nav a:hover::after {
  width: 80%;
}

/* Subtle organic border for cards on focus */
.card:focus-within, .testimonial-card:focus-within {
  outline: 2.5px solid var(--secondary);
}

/* ========= Misc Form Styling ========= */
input, select, textarea {
  font-family: var(--font-body);
  font-size: 1em;
  background: var(--accent);
  border: 1.5px solid var(--secondary);
  border-radius: 6px;
  padding: 9px 12px;
  margin-bottom: 14px;
  transition: border .13s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
}

/* ========= Hero Section Modifier (for strong hero statements) ========= */
section .content-wrapper.text-section {
  background: linear-gradient(120deg, #F3FBF5 72%, #E6F2EA 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px 0 rgba(33,91,43,0.10);
  padding: 48px 34px 36px 38px;
}
@media (max-width: 700px) {
  section .content-wrapper.text-section {
    padding: 22px 5px !important;
    border-radius: var(--radius-md);
  }
}

/* ========= Accessibility ========= */
:focus {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2px;
}

@media (max-width: 500px) {
  html, body { font-size: 15px; }
  h1 { font-size: 1.13em; }
  h2 { font-size: 1em; }
}
