/* =======================================
   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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #EFF7F2;
  color: #1B1400;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
a {
  background-color: transparent;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}

/* =======================================
   VARIABLES & THEME TOKENS (FALLBACKS)
======================================= */
:root {
  --primary: #28753E;
  --secondary: #1B1400;
  --accent: #F4B831;
  --neutral-bg: #EFF7F2;
  --card-bg: #fffbe6;
  --testimonial-bg: #fffefa;
  --shadow-main: 0 6px 24px 0 rgba(40,117,62,0.08);
  --shadow-card: 0 4px 16px 0 rgba(40,117,62,0.07);
}

/* =======================================
   TYPOGRAPHY
======================================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  line-height: 1.15;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 28px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 22px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
p, li, ul, ol, a, strong, em {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.7;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
}
strong {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
}

/* =======================================
   GENERAL & LAYOUT UTILITIES
======================================= */
.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: box-shadow 0.18s, transform 0.22s;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 32px rgba(40,117,62,0.14);
  transform: translateY(-2px) scale(1.011);
  z-index: 2;
}
.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: flex-start;
  gap: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--testimonial-bg);
  box-shadow: 0 2px 16px 0 rgba(244,184,49,0.10);
  color: var(--secondary);
  font-size: 1.08rem;
}
.testimonial-card strong {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.98rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 12px;
}
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 0;
  position: relative;
  font-size: 1rem;
}
ul li img {
  width: 26px;
  height: 26px;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
}

/* =======================================
   BUTTONS & INTERACTIVES
======================================= */
.cta, .btn, button, .cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  text-decoration: none;
  box-shadow: 0 3px 12px 0 rgba(244,184,49,0.09);
  transition: background 0.19s, box-shadow 0.22s, transform 0.13s;
}
.cta:focus, .btn:focus, button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.cta:hover, .btn:hover, button:hover, .cookie-btn:hover {
  background: var(--accent);
  color: var(--secondary);
  box-shadow: 0 6px 24px 0 rgba(244,184,49,0.21);
  transform: translateY(-2px) scale(1.015);
}

/* Ghost Style Button */
.btn-ghost, .cookie-btn-ghost {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 26px;
  transition: background 0.19s, color 0.19s, border 0.17s;
}
.btn-ghost:hover, .cookie-btn-ghost:hover {
  background: var(--primary);
  color: #fff;
}

/* Accent Style */
.btn-accent, .cookie-btn-accent {
  background: var(--accent);
  color: var(--secondary);
}
.btn-accent:hover, .cookie-btn-accent:hover {
  background: var(--primary);
  color: #fff;
}

/* =======================================
   HEADER & NAVIGATION
======================================= */
header {
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(40,117,62,0.03);
  position: sticky;
  top: 0; left: 0; width: 100%;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 0;
}
header a img {
  height: 40px;
  border-radius: 12px;
}
nav {
  display: flex;
  gap: 18px;
}
nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  padding: 8px 0;
  border-radius: 7px;
  font-size: 1rem;
  transition: color 0.17s, background 0.19s;
}
nav a:hover, nav a:focus {
  color: var(--accent);
}

header .cta {
  margin-left: 24px;
}

.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--primary);
  border-radius: 7px;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: background 0.16s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--primary);
  color: #fff;
}

/* ========================
   MOBILE MENU
======================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right:0;
  bottom: 0;
  background: rgba(239,247,242,0.98);
  box-shadow: 0 0 32px 0 rgba(40,117,62,0.16);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.38,1.28,.52,1), opacity 0.22s;
  opacity: 0;
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  will-change: transform, opacity;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: var(--accent);
  border-radius: 50%;
  color: var(--primary);
  font-size: 2.3rem;
  width: 48px;
  height: 48px;
  align-self: flex-end;
  margin: 24px 20px 16px 0;
  transition: background 0.15s, color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 90vw;
  max-width: 380px;
  margin: 0 0 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: var(--primary);
  font-size: 1.29rem;
  text-decoration: none;
  border-radius: 8px;
  padding: 12px 0;
  transition: background 0.17s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}

/* Kill desktop nav on mobile */
@media (max-width: 1080px) {
  header .container {
    gap: 0;
  }
}
@media (max-width: 920px) {
  nav {
    gap: 10px;
  }
  header .cta {
    margin-left: 8px;
  }
}
@media (max-width: 768px) {
  nav, header .cta {
    display:none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  header .container {
    padding-top: 6.5px; padding-bottom: 6.5px;
  }
}
/* Revisit hamburger and nav for better touch targets on really small widths */
@media (max-width: 420px) {
  .mobile-nav {
    margin-left: 10px;
  }
  .mobile-menu-close {
    margin-right: 7px;
  }
}

/* =======================================
   FOOTER
======================================= */
footer {
  padding: 32px 0 12px 0;
  background: #ffffff;
  border-top: 1px solid #e7efeb;
  margin-top: 48px;
  box-shadow: 0 -2px 16px 0 rgba(40,117,62, 0.03);
}
footer .container {
  align-items: center;
}
footer .footer-nav a {
  color: var(--primary);
  font-size: 1rem;
  transition: color 0.18s;
  border-radius: 8px;
  padding: 5px 8px;
}
footer .footer-nav a:hover {
  color: var(--accent);
}
footer p {
  font-size: 0.96rem;
  color: var(--secondary);
  margin-bottom: 0;
  opacity: 0.7;
  text-align: center;
}

/* =======================================
   COOKIE CONSENT BANNER & MODAL
======================================= */
#cookie-consent-banner {
  position: fixed;
  width: 100vw;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fffbe6;
  border-top: 1px solid #eed894;
  box-shadow: 0 -2px 16px rgba(244,184,49,0.14);
  padding: 24px 10px 24px 10px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(28px);
  transition: opacity 0.33s, transform 0.32s;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
#cookie-consent-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-btn, .cookie-btn-accent, .cookie-btn-ghost { margin: 0 6px; min-width: 128px; }
#cookie-preferences-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 94vw;
  max-width: 370px;
  transform: translate(-50%,38px) scale(0.98);
  opacity: 0;
  z-index: 2050;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 48px 6px rgba(40,117,62,0.18);
  padding: 36px 26px 32px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 21px;
  pointer-events: none;
  transition: opacity 0.33s, transform 0.34s;
}
#cookie-preferences-modal.active {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1.02);
  pointer-events: auto;
}
#cookie-preferences-modal h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--primary);
}
.cookie-pref-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 1rem;
}
.cookie-pref-category input[type=checkbox] {
  width: 22px; height: 22px;
  accent-color: var(--primary);
  margin-right: 2px;
  cursor: pointer;
}
.cookie-pref-info {
  font-size: 0.98rem;
  opacity: 0.77;
}
#cookie-pref-close {
  position: absolute;
  top:16px; right: 18px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 1.45rem;
  display: flex;
  align-items:center; justify-content:center;
  z-index: 10;
  transition: background 0.15s;
}
#cookie-pref-close:hover {
  background: var(--primary);
  color: #fff;
}
@media (max-width:430px) {
  #cookie-preferences-modal {
    padding: 16px 6vw 16px 6vw;
    max-width: 99vw;
  }
}

/* =======================================
   RESPONSIVE SPACING & SECTIONS
======================================= */
@media (max-width: 960px) {
  .section {
    margin-bottom: 48px;
    padding: 28px 8px;
  }
  .card {
    padding: 16px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 22px 2vw 22px 2vw;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 6px;
  }
  h1 {
    font-size: 1.52rem;
    margin-bottom: 20px;
  }
  h2 {
    font-size: 1.18rem;
    margin-bottom: 13px;
  }
  .content-wrapper,
  .content-grid,
  .card-container,
  .footer-nav {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}
@media (max-width:540px) {
  .card, .testimonial-card {
    padding: 12px;
  }
  #cookie-consent-banner {
    padding: 18px 2vw 18px 2vw;
  }
  .footer-nav a {
    font-size: 0.96rem;
    padding: 4px 4px;
  }
}

/* =======================================
   FORM ELEMENTS (for future expansions)
======================================= */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  font-family: inherit;
  background: #fff;
  color: var(--secondary);
  border-radius: 12px;
  border: 1.5px solid #e7efeb;
  transition: border 0.22s, box-shadow 0.14s;
  padding: 13px 14px;
  box-shadow: 0 2px 8px 0 rgba(40,117,62,0.10);
  margin-bottom: 12px;
  font-size: 1rem;
}
input:focus, textarea:focus {
  border: 1.7px solid var(--primary);
  box-shadow: 0 2px 8px 0 rgba(40,117,62,0.16);
}

/* =======================================
   ADDITIONAL UTILITIES & ANIMATIONS
======================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  } to {
    opacity: 1;
    transform: none;
  }
}
.fade-in-up {
  animation: fadeInUp 0.74s cubic-bezier(.33,1.08,.61,.95) both;
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-24px);} to { opacity:1; transform: none;}
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(24px);} to { opacity:1; transform: none;}
}

/* =======================================
   WARM FRIENDLY CUSTOM TOUCHES
======================================= */
.card, .testimonial-card, .section, #cookie-consent-banner, #cookie-preferences-modal {
  border-radius: 18px;
}
.card, .testimonial-card, .section, #cookie-consent-banner, #cookie-preferences-modal {
  box-shadow: 0 4px 18px 0 rgba(244,184,49,0.06), 0 1.5px 4px 0 rgba(40,117,62,0.05);
}
.cta, .btn, button, .cookie-btn {
  border-radius: 999px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

/* --- MICRO-INTERACTIONS --- */
a, .cta, .btn, .cookie-btn, button {
  transition: background 0.18s, color 0.18s, box-shadow 0.19s, transform 0.13s;
}

/* --- VISUAL HIERARCHY & WHITE SPACE --- */
.section, .footer-nav, .content-wrapper, .text-section, .card, .testimonial-card {
  margin-bottom: 0; /* Flex gap used for true spacing */
}
.section:not(:last-child) {
  margin-bottom: 60px;
}
main > .section{
  background: none;
}

/* --- LIST ICONS --- */
ud li img, ul.feature-icons li img {
  border-radius: 50%;
  background: var(--neutral-bg);
  box-shadow: 0 1.5px 4px 0 rgba(40,117,62,0.07);
}

/* --- COLOR CONTRAST (testimonials/reviews) --- */
.testimonial-card, .testimonial-card p, .testimonial-card strong {
  color: var(--secondary) !important;
  background: var(--testimonial-bg);
}

/* =======================================
   Z-INDEX FOR OVERLAYS
======================================= */
#cookie-consent-banner { z-index: 2000; }
#cookie-preferences-modal { z-index: 2050; }
.mobile-menu { z-index: 1200; }
header { z-index: 1300; }

/* =======================================
   ENSURE NO OVERLAPS / PROTECT SPACING
======================================= */
.card, .testimonial-card, .section, .card-container > *, .content-wrapper > * {
  margin-bottom: 0;
}
.card-container, .content-grid, .content-wrapper, .footer-nav {
  gap: 24px;
}
@media (max-width:768px) {
  .card-container, .content-grid, .content-wrapper, .footer-nav {
    gap:20px;
  }
}
.card + .card, .testimonial-card + .testimonial-card, .feature-item + .feature-item, .section + .section {
  margin-top: 20px;
}

/* =======================================
   HELPERS + HIDE ELEMENTS
======================================= */
.hide { display: none !important; }

/* =======================================
   PRINT OPTIMIZATION
======================================= */
@media print {
  header, footer, .mobile-menu, #cookie-consent-banner, #cookie-preferences-modal {
    display: none !important;
  }
  .section { padding: 0 !important; margin-bottom:20px !important; }
}
