/* ============================
   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, main, 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F2F6EB;
  color: #243C2E;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  text-decoration: none;
  color: inherit;
}
img {
  border-style: none;
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  border: none;
  outline: none;
  background: none;
}

:root {
  --primary: #236635;
  --secondary: #98BC62;
  --accent: #F2F6EB;
  --dark: #243C2E;
  --white: #FFF;
  --shadow: 0 4px 24px rgba(35, 102, 53,0.07), 0 1.5px 5px rgba(35,102,53,0.04);
  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Helvetica, Arial, sans-serif;
}

/* ============================
   BASE TYPOGRAPHY
   ============================ */
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--accent);
  font-size: 16px;
}
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--primary);
  line-height: 1.12;
  margin-bottom: 18px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--primary);
  line-height: 1.2;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary);
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--primary);
}
p, li {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 10px;
  font-family: var(--font-body);
  line-height: 1.6;
}
strong, b {
  font-weight: 600;
  color: var(--primary);
}

/* ============================
   LAYOUT & CONTAINER HELPERS
   ============================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 28px 22px;
  position: relative;
  flex: 1 1 270px;
  transition: box-shadow 0.25s;
}
.card:hover,
.card:focus {
  box-shadow: 0 4px 26px 0 rgba(35,102,53,0.13), 0 1.5px 5px rgba(35,102,53,0.08);
}

.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 {
  background: var(--accent);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  font-size: 1.08rem;
  color: var(--dark);
  transition: box-shadow .25s, transform .23s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 32px rgba(35,102,53,0.13), 0 1.5px 8px rgba(35,102,53,0.11);
  transform: translateY(-2px) scale(1.012);
}
.testimonial-meta {
  font-size: 0.96em;
  color: var(--primary);
  font-weight: 500;
  margin-left: 10px;
  letter-spacing: .01em;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid > div {
  flex: 1 1 250px;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow .2s;
  margin-bottom: 20px;
}
.features-grid > div:hover {
  box-shadow: 0 4px 24px rgba(152,188,98,0.22);
}
.features-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
}

/* ============================
   HEADER & NAVIGATION
   ============================ */
header {
  background: var(--white);
  box-shadow: 0 2.5px 9px rgba(152,188,98,0.05);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 0 0 6px 0;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
}
header .container {
  padding-top: 12px;
  padding-bottom: 12px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 1.08rem;
}
.main-nav a {
  color: var(--primary);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}
.cta-btn {
  display: inline-block;
  padding: 10px 32px;
  font-family: var(--font-display);
  font-size: 1.07em;
  font-weight: 600;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: 0 3px 10px rgba(35,102,53,0.09);
  letter-spacing: 0.01em;
  transition: box-shadow 0.16s, background 0.18s, color 0.18s, transform 0.12s;
  cursor: pointer;
  margin-left: 12px;
  text-align: center;
  text-decoration: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: var(--dark);
  box-shadow: 0 8px 24px 0 rgba(35,102,53,0.15);
  transform: translateY(-1px) scale(1.025);
}

/* ============================
   MOBILE NAVIGATION
   ============================ */
.mobile-menu-toggle {
  position: fixed;
  z-index: 1003;
  top: 24px;
  right: 28px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  box-shadow: 0 2px 8px rgba(152,188,98,.11);
  transition: background .2s, transform 0.14s;
  cursor: pointer;
  outline: none;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.05);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  box-shadow: 0 0 24px rgba(35,102,53,0.14);
  padding-top: 28px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
  transition: transform 0.44s cubic-bezier(.21,.92,.49,1);
}
.mobile-menu-close {
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 1202;
  transition: background .16s, transform .10s;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.08);
}
.mobile-nav {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.24rem;
  color: var(--primary);
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.16s;
  min-width: 90vw;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}

@media (min-width: 990px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}
@media (max-width: 989px) {
  .main-nav {
    display: none !important;
  }
}

/* ============================
   FOOTER
   ============================ */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 54px 0 34px 0;
  margin-top: 44px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -1.5px 12px rgba(35,102,53,0.07);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer-brand img {
  width: 86px;
  height: auto;
  margin-bottom: 12px;
}
.footer-menu {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-menu a {
  color: var(--white);
  opacity: 0.96;
  transition: text-decoration .18s, opacity 0.1s;
  margin: 0 2px;
}
.footer-menu a:hover, .footer-menu a:focus {
  text-decoration: underline;
  opacity: 1;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-social img {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--secondary);
  transition: background .18s;
}
.footer-social a:hover img, .footer-social a:focus img {
  background: var(--white);
}
.footer-contact {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--accent);
  opacity: 0.95;
  margin-top: 14px;
}

/* ============================
   FORMS & INPUTS
   ============================ */
input, textarea {
  background: var(--accent);
  border: 1.5px solid var(--secondary);
  border-radius: var(--radius-sm);
  min-height: 44px;
  padding: 9px 16px;
  font-size: 1rem;
  box-shadow: none;
  transition: border-color .16s, box-shadow .18s;
}
input:focus, textarea:focus {
  border-color: var(--primary);
}
label {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 7px;
  display: block;
}

/* ============================
   LISTS, CODE, MISC
   ============================ */
ul, ol {
  margin-left: 24px;
  margin-bottom: 12px;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark);
}
li img {
  vertical-align: middle;
  margin-right: 10px;
  display: inline-block;
  width: 26px;
}
del { color: #a2a2a2; }

/* ============================
   CONTACT NOTE
   ============================ */
.contact-note {
  background: var(--secondary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 14px;
  font-size: 1.15em;
}

/* ============================
   BUTTONS (INCLUDING IN MODALS)
   ============================ */
button, .button, .btn {
  font-family: var(--font-display);
  background: var(--secondary);
  color: var(--white);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1.05em;
  padding: 10px 28px;
  margin: 5px 12px 5px 0;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(152,188,98,0.13);
  transition: background 0.19s, box-shadow 0.14s, color 0.19s, transform 0.11s;
  outline: none;
}
button:hover, button:focus, .button:hover, .btn:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4.5px 15px rgba(35,102,53,0.13);
  transform: scale(1.022);
}
.button-secondary {
  background: var(--primary);
  color: var(--white);
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--secondary);
  color: var(--primary);
}
.button-ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--secondary);
  box-shadow: none;
}
.button-ghost:hover, .button-ghost:focus {
  background: var(--secondary);
  color: var(--white);
}

/* ============================
   COOKIE BANNER & MODAL
   ============================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 1400;
  background: var(--white);
  color: var(--primary);
  font-family: var(--font-body);
  box-shadow: 0 -4px 40px rgba(35,102,53,0.085);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 20px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  gap: 16px;
  transition: transform 0.5s cubic-bezier(.18,.97,.48,1);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner__text {
  flex: 1 1 60%;
  font-size: 1rem;
  color: var(--primary);
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.cookie-banner .button-ghost {
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  padding: 9px 20px;
  margin-right: 0;
}
.cookie-banner .button-ghost:hover, .cookie-banner .button-ghost:focus {
  background: var(--primary);
  color: var(--white);
}

.cookie-modal-backdrop {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(35,102,53,0.14);
  z-index: 1420;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.open {
  display: flex;
}
.cookie-modal {
  background: var(--white);
  color: var(--dark);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 48px #23663522;
  padding: 32px 22px 26px 22px;
  max-width: 95vw;
  width: 410px;
  z-index: 1430;
  text-align: left;
  position: relative;
  min-height: 220px;
  animation: cookieFadeIn .36s cubic-bezier(0.17, 0.84, 0.44, 1) both;
}
@keyframes cookieFadeIn {
  0% { opacity: 0; transform: translateY(30px) scale(.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h3 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1.25rem;
}
.cookie-modal__close {
  position: absolute;
  top: 14px; right: 17px;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: background 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal__close:hover {
  background: var(--primary);
  color: var(--white);
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 14px 0;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal__category label {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
}
.toggle-switch {
  width: 42px;
  height: 24px;
  border-radius: 14px;
  background: var(--accent);
  border: 1.5px solid var(--secondary);
  position: relative;
  cursor: pointer;
  transition: background .18s;
  flex-shrink: 0;
}
.toggle-switch input {
  display: none;
}
.toggle-switch .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--secondary);
  transition: transform .22s, background .14s;
}
.toggle-switch input:checked + .slider {
  background: var(--primary);
  transform: translateX(17px);
}
.toggle-switch input:disabled + .slider {
  background: #ccc;
  opacity: 0.8;
}

/* ============================
   RESPONSIVE FLEXBOX LAYOUTS
   ============================ */
@media (max-width: 989px) {
  .footer-brand, .footer-social, .footer-contact, .footer-menu {
    flex: 1 1 100%;
    margin-bottom: 16px;
    min-width: 220px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 30px 6px;
    margin-bottom: 40px;
  }
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .content-wrapper {
    padding: 20px 8px;
    gap: 10px;
  }
  .card-container, .content-grid, .features-grid {
    flex-direction: column;
    gap: 16px;
  }
  .features-grid > div {
    min-width: 0;
    width: 100%;
    padding: 18px 12px;
  }
  .testimonial-card {
    flex-direction: column;
    padding: 17px 12px;
    gap: 6px;
    text-align: center;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    text-align: center;
  }
  h1, .h1 {
    font-size: 2.1rem;
  }
  h2, .h2 {
    font-size: 1.44rem;
  }
  .cta-btn {
    width: 100%;
    margin: 8px auto 0 auto;
    font-size: 1.12em;
    text-align: center;
  }
}

/* Prevent accidental overlapping */
*[class*="card"],
.content-wrapper, .section, .feature-item, .features-grid > div {
  margin-bottom: 20px;
}

/* ============================
   UTILITIES & ANIMATIONS
   ============================ */
.fade-in {
  animation: fadeInUp 0.64s cubic-bezier(.15,.96,.36,1.06) both;
}
@keyframes fadeInUp {
  0% {opacity:0;transform: translateY(30px) scale(.98);}
  80% {opacity:.85;}
  100% {opacity:1;transform: none;}
}

/* ============================
   ACCESSIBILITY/FOCUS
   ============================ */
a:focus, button:focus, .cta-btn:focus {
  box-shadow: 0 0 0 3px var(--secondary), 0 3px 10px rgba(35,102,53,0.10);
  outline: none;
}
::-webkit-input-placeholder { color: #828282; }
::-moz-placeholder { color: #828282; }
:-ms-input-placeholder { color: #828282; }
::placeholder { color: #828282; }

/* ============================
   SPECIALS / THANK-YOU / ETC
   ============================ */
.thank-you-icon {
  font-size: 3.2rem;
  color: var(--secondary);
  margin-bottom: 16px;
}

/* ============================
   HIDE COMPONENTS INITIALLY
   ============================ */
.mobile-menu { display: none; }

@media (max-width: 989px) {
  .mobile-menu { display: flex; }
}

/* ============================
   PRINT
   ============================ */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner,
  .cookie-modal-backdrop, .nav-row, .footer-brand, .footer-social {
    display: none !important;
  }
}
