/* --------------------------------------------
   CSS RESET & BASE STYLES
--------------------------------------------- */
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,
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #f7f5f0;
  color: #25352b;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #297b52;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #32A89F;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.5em;
}
strong { font-weight: bold; }
button, input, select, textarea {
  font-family: inherit;
}

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

/* CSS Vars for Brand (with fallbacks) */
:root {
  --color-primary: #213E60;
  --color-secondary: #32A89F;
  --color-accent: #FFD965;
  --color-earth: #bca88e;
  --color-forest: #3f513a;
  --color-leaf: #7fc89a;
  --color-bark: #685345;
  --color-bg: #f7f5f0;
  --color-white: #fff;
  --color-black: #20281F;
  --color-error: #b34040;
  --shadow-card: 0 2px 14px rgba(79,87,81,0.10);
  --radius-card: 18px;
  --radius-button: 32px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* --------------------------------------------
   LAYOUT CONTAINERS & SECTIONS
--------------------------------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 992px) {
  .content-wrapper {
    gap: 32px;
  }
}

.text-section {
  max-width: 660px;
}

/* --------------------------------------------
   TYPOGRAPHY
--------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 0.5em;
  font-weight: 700;
  line-height: 1.15;
}
h1 {
  font-size: 2.75rem;
  color: var(--color-forest);
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.25em;
}
h3 {
  font-size: 1.3rem;
  color: var(--color-forest);
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, ul, ol, .card, .feature-item, li, .faq-answer {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: #25352b;
}
p {
  margin-bottom: 0.8em;
}
ul li, ol li {
  margin-bottom: 0.4em;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
}

/* --------------------------------------------
   HEADER & NAVIGATION
--------------------------------------------- */
header {
  background: var(--color-white);
  box-shadow: 0 3px 10px rgba(106, 122, 105, 0.05);
  border-bottom: 1px solid #eae6df;
  position: relative;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-height: 74px;
}
header a img {
  height: 44px;
  width: auto;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  gap: 20px;
  flex-grow: 1;
}
.main-nav a {
  font-family: var(--font-body);
  color: var(--color-forest);
  font-weight: 500;
  font-size: 1rem;
  padding: 7px 0 6px;
  border-radius: 12px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-leaf);
  color: var(--color-black);
}
.cta-btn {
  background: var(--color-secondary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  padding: 11px 34px;
  border: none;
  border-radius: var(--radius-button);
  margin-left: 14px;
  box-shadow: 0 1px 9px rgba(50,168,159,0.12);
  transition: background 0.18s, box-shadow 0.22s, transform 0.16s;
  cursor: pointer;
  letter-spacing: 0.01em;
  outline: none;
  display: inline-block;
  text-align: center;
  min-width: 144px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-forest);
  color: var(--color-accent);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 4px 16px rgba(127,200,154,0.10);
}

/* Hamburger Icon */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  padding: 6px 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.22s, box-shadow 0.22s;
  position: relative;
  z-index: 1200;
  display: none;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-leaf);
  box-shadow: 0 2px 8px rgba(50,168,100,0.15);
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(56, 67, 40, 0.96);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.58,.13,.63,.98);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0%);
  pointer-events: auto;
  transition: transform 0.36s cubic-bezier(.18,1.12,.40,0.95);
}
/* Close button */
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 28px 0 0;
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2rem;
  cursor: pointer;
  z-index: 2100;
  transition: color 0.18s, background 0.15s;
  border-radius: 50%;
  padding: 6px 16px 7px 14px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-leaf);
  color: var(--color-forest);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 54px 40px 32px 40px;
  width: 100vw;
  max-width: 340px;
  height: 100vh;
  box-sizing: border-box;
}
.mobile-nav a {
  color: var(--color-bg);
  background: none;
  font-size: 1.18rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 22px;
  transition: background 0.16s, color 0.18s;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-leaf);
  color: var(--color-black);
}

/* --------------------------------------------
  HERO & FEATURE SECTIONS
--------------------------------------------- */
section {
  border-radius: 38px;
  box-sizing: border-box;
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  box-shadow: 0 4px 36px -8px rgba(88,97,80,0.07), 0 1.5px 6px rgba(110,166,92,0.04);
}
@media (max-width: 640px) {
  section {
    padding: 28px 6vw;
    margin-bottom: 32px;
    border-radius: 20px;
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-top: 10px;
}
.feature-grid > div {
  background: linear-gradient(140deg, #FAF6E8 70%, #E9F6EB 100%);
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 320px;
  border-radius: 22px;
  box-shadow: 0 1.5px 7px rgba(70, 92, 63, 0.09);
  padding: 28px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.22s, transform 0.19s;
  position: relative;
}
.feature-grid > div:hover {
  box-shadow: 0 10px 40px -8px rgba(90,140,80,0.13);
  transform: translateY(-4px) scale(1.012);
}
.feature-grid img {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--color-leaf);
  object-fit: contain;
  margin-bottom: 2px;
}
.feature-grid h3 {
  margin: 0 0 4px 0;
  color: var(--color-primary);
  font-size: 1.12em;
  font-weight: 600;
}
.feature-grid p {
  color: #25352b;
}
@media (max-width: 1024px) {
  .feature-grid {
    gap: 16px;
  }
  .feature-grid > div {
    padding: 22px 10px;
  }
}
@media (max-width: 640px) {
  .feature-grid {
    flex-direction: column;
    gap: 22px;
  }
  .feature-grid > div {
    min-width: 160px;
    width: 100%;
    max-width: unset;
  }
}

.cta-link {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-secondary);
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: 0.01em;
  transition: color 0.18s;
}
.cta-link:hover,
.cta-link:focus {
  color: var(--color-forest);
}
/* --------------------------------------------
   TESTIMONIALS
--------------------------------------------- */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px 18px 24px;
  background: var(--color-bg);
  border-radius: 18px;
  box-shadow: 0 4px 22px -10px rgba(33, 62, 96, 0.12), 0 1.5px 6px rgba(110,166,92,0.04);
  min-width: 260px;
  max-width: 350px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  border: 1.5px solid #eae3cd;
  transition: box-shadow 0.18s, border 0.16s, transform 0.14s;
}
.testimonial-card p {
  font-size: 1.06rem;
  color: #1c1d19;
  font-family: var(--font-body);
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: var(--color-primary);
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px -12px rgba(50,168,159,0.11); 
  border-color: var(--color-leaf);
  transform: translateY(-2px) scale(1.012);
}
@media (max-width: 960px) {
  .testimonial-list {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    max-width: 100%;
  }
}

/* --------------------------------------------
   FAQ
--------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #F5F9F3;
  border-radius: 16px;
  box-shadow: 0 3px 12px -8px rgba(58,73,41,0.06);
  padding: 18px 22px 16px 20px;
  margin-bottom: 8px;
  transition: box-shadow 0.17s, background 0.16s;
  border: 1.2px solid #e0ead8;
}
.faq-item h3 {
  color: var(--color-primary);
  font-size: 1.09rem;
  margin-bottom: 5px;
  font-weight: 600;
}
.faq-item .faq-answer {
  color: #344320;
  font-size: 1rem;
  font-family: var(--font-body);
}
.faq-item:hover {
  background: #e3f1e0;
  box-shadow: 0 7px 28px -11px rgba(127,200,154,0.08);
  border-color: var(--color-leaf);
}

/* --------------------------------------------
   PAGE CARDS & SECTION FLEXBOX
--------------------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card:hover {
  box-shadow: 0 11px 44px -12px rgba(98,150,91,0.12), 0 1.5px 9px rgba(110,166,92,0.06);
  transform: translateY(-2px) scale(1.012);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f8f6ef;
  border-radius: 13px;
  padding: 14px 22px;
  margin-bottom: 10px;
  box-shadow: 0 1.5px 6px rgba(70,92,63,0.07);
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .content-grid, .text-image-section, .card-container {
    flex-direction: column;
    gap: 22px;
  }
}

/* --------------------------------------------
   BUTTONS & INTERACTIONS
--------------------------------------------- */
button, .cta-btn, .cta-link {
  cursor: pointer;
  outline: none;
  transition: background 0.18s, color 0.16s, box-shadow 0.17s, transform 0.13s;
}
button:active, .cta-btn:active {
  transform: scale(0.97);
}

/* Cookie banner (fixed at bottom) */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #ecebe6;
  color: #222e1e;
  border-top: 2px solid #dad7c7;
  box-shadow: 0px -2px 30px -6px rgba(50,168,90,.08);
  z-index: 5000;
  padding: 19px 24px 19px 18px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 1.01rem;
  transition: transform 0.28s cubic-bezier(.58,.13,.63,.98), opacity 0.28s cubic-bezier(.58,.13,.63,.98);
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-btn {
  border: 0;
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin-left: 8px; margin-right: 5px;
  padding: 10px 24px;
  background: var(--color-secondary);
  color: var(--color-white);
  transition: background 0.17s, color 0.19s, box-shadow 0.16s;
  box-shadow: 0 1.5px 7px rgba(50,168,159,0.06);
  cursor: pointer;
}
.cookie-banner .cookie-btn.settings {
  background: var(--color-leaf);
  color: var(--color-black);
}
.cookie-banner .cookie-btn.deny {
  background: var(--color-bark);
  color: var(--color-white);
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  opacity: 0.93;
  box-shadow: 0 3px 14px -5px rgba(50,168,159,0.14);
}
.cookie-banner .cookie-btn.settings:hover {
  background: var(--color-forest);
  color: var(--color-accent);
}
/* Cookie modal/popup */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(60,75,44,0.26);
  z-index: 5050;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .modal-content {
  background: #f7f5f0;
  border-radius: 28px;
  box-shadow: 0 8px 44px -11px rgba(33,62,96,0.15);
  padding: 30px 28px 26px 28px;
  max-width: 425px;
  width: 92vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: cookieModalPop 0.41s cubic-bezier(.67,-0.05,.32,1.15);
}
@keyframes cookieModalPop {
  from { transform: scale(0.96) translateY(60px); opacity:0; }
  to { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal .modal-title {
  font-family: var(--font-display);
  font-size: 1.34rem;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-weight: bold;
}
.cookie-modal .modal-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 8px;
}
.cookie-modal .category-label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-modal .category-toggle {
  margin-left: auto;
  background: var(--color-leaf);
  border-radius: 13px;
  min-width: 36px;
  height: 22px;
  border: none;
  position: relative;
  transition: background 0.14s;
  cursor: pointer;
}
/* Essential cookies locked */
.cookie-modal .category-toggle[disabled] {
  background: #CAB98B;
  opacity: 0.8;
  cursor: not-allowed;
}
.cookie-modal .toggle-switch {
  width: 36px;
  height: 22px;
  position: relative;
  background: var(--color-leaf);
  border-radius: 13px;
  transition: background 0.15s;
}
.cookie-modal .toggle-switch[aria-checked='true'] {
  background: var(--color-secondary);
}
.cookie-modal .toggle-knob {
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 1.5px 4px rgba(37,53,43,0.13);
  transition: left 0.19s;
}
.cookie-modal .toggle-switch[aria-checked='true'] .toggle-knob {
  left: 17px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal .modal-btn {
  padding: 10px 26px;
  border-radius: var(--radius-button);
  border: none;
  background: var(--color-secondary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.cookie-modal .modal-btn.cancel {
  background: #eae9e2;
  color: var(--color-bark);
}
.cookie-modal .modal-btn.cancel:hover {
  background: #dad7c7;
}
.cookie-modal .modal-btn:hover {
  background: var(--color-forest);
  color: var(--color-accent);
}


/* --------------------------------------------
   FOOTER
--------------------------------------------- */
footer {
  background: #e8ede1;
  color: #222e1e;
  border-top: 1.5px solid #dcd6c5;
  margin-top: 80px;
  padding: 28px 0 16px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 48px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-navigation {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}
.footer-navigation a {
  color: var(--color-primary);
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  transition: color 0.17s;
}
.footer-navigation a:hover {
  color: var(--color-secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact img {
  width: 22px; height: 22px;
  margin-right: 7px;
  vertical-align: middle;
}
.footer-contact span {
  color: #353e27;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-right: 9px;
}
.footer-legal {
  color: #6c7152;
  font-size: 0.99rem;
  margin-top: 12px;
  font-family: var(--font-body);
}
@media (max-width: 960px) {
  footer .container {
    flex-direction: column;
    gap: 19px;
    align-items: flex-start;
  }
  .footer-navigation {
    gap: 16px;
  }
}

/* --------------------------------------------
   MISC/UTILITIES
--------------------------------------------- */
.hide { display: none !important; }
.visible { display: inherit !important; }

.rounded-bg {
  background: #e4eed8;
  border-radius: 38px 10px 34px 34px/20px 34px 18px 34px;
}
.shadowed {
  box-shadow: 0 3px 18px rgba(40,99,50,0.09);
}
::-webkit-scrollbar {
  width: 8px;
  background: #f5f8f0;
}
::-webkit-scrollbar-thumb {
  background: #dedacb;
  border-radius: 5px;
}

/* Make keyboard only focus visibly outline */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* --------------------------------------------
   RESPONSIVE FIXES
--------------------------------------------- */
@media (max-width: 520px) {
  header .container {
    padding: 0 4vw;
  }
  .footer-navigation, .footer-contact { font-size: 0.97rem; }
}

/* --------------------------------------------
   ORGANIC DECORATIVE SHAPES (Subtle)
--------------------------------------------- */
section {
  position: relative;
  overflow: hidden;
}
section:before, section:after {
  content: '';
  position: absolute;
  z-index: 0;
  border-radius: 76% 44% 70% 38% / 54% 63% 34% 60%;
  opacity: 0.085;
  pointer-events: none;
  display: block;
}
section:before {
  background: var(--color-leaf);
  width: 210px; height: 110px;
  bottom: 18%; left: -60px;
  transform: rotate(-13deg);
}
section:after {
  background: var(--color-accent);
  width: 130px; height: 70px;
  top: -24px; right: -34px;
  transform: rotate(17deg);
}
@media (max-width: 720px) {
  section:before, section:after { display: none; }
}

/* --------------------------------------------
   ORGANIC BUTTON SHAPE (only for cta-btn)
--------------------------------------------- */
.cta-btn {
  border-radius: 999px 40% 999px 999px / 99px 40% 999px 88px;
}

/* --------------------------------------------
   ACCESSIBILITY
--------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .cookie-banner, .mobile-menu { transition: none !important; }
}
