/* =====================================
   CSS Reset & Normalize (Mobile First)
======================================== */
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: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #FAF7EF;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #24613A;
  background: #FAF7EF;
  min-height: 100vh;
  line-height: 1.6;
}
*, *::before, *::after {
  box-sizing: inherit;
}
a {
  color: #24613A;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
a:hover, .cta-primary:hover {
  color: #8DAB5B;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}
img {
  width: auto;
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  background: none;
  outline: none;
}
hr {
  border: 0;
  border-top: 1.5px solid #8DAB5B;
  margin: 32px 0;
}

/* =============================
   Brand Colors & Typography
=============================== */
:root {
  --color-primary: #24613A;
  --color-secondary: #8DAB5B;
  --color-accent: #FAF7EF;
  --color-heading: #2B3827;
  --color-muted: #ddddcc;
  --color-shadow: rgba(36,97,58,0.07);
  --color-shadow-strong: rgba(36,97,58,0.17);
  --color-contrast-dark: #19241c;
  --color-link-hover: #6f8f37;
  --radius: 16px;
  --radius-small: 8px;
  --box-shadow: 0 2px 12px var(--color-shadow);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bree Serif', 'Open Sans', serif;
  color: var(--color-heading);
  letter-spacing: 0.5px;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.15; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.3rem; line-height: 1.3; }
h4, h5, h6 { font-size: 1.1rem; }
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.12rem; }
}

p, li, ul, blockquote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-primary);
  margin-bottom: 16px;
}
blockquote {
  font-family: 'Bree Serif', 'Open Sans', serif;
  border-left: 5px solid var(--color-secondary);
  background: #f4f9ed;
  padding: 20px;
  border-radius: var(--radius);
  margin-top: 16px;
  margin-bottom: 24px;
  color: var(--color-primary);
}

strong {
  font-weight: bold;
  color: var(--color-primary);
}

/* ==========================
   Container and Sections
============================ */
.container {
  max-width: 1130px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0; /* for structural alignment (do not add unwanted gap) */
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--box-shadow);
}

@media (max-width: 768px) {
 .container {
    padding: 0 12px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 34px;
  }
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =====================
   Header & Navigation
======================= */
header {
  background: #fff;
  box-shadow: 0 3px 12px var(--color-shadow);
  padding-top: 16px;
  padding-bottom: 16px;
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 20px;
  display: block;
}
nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
nav a {
  font-family: 'Bree Serif', 'Open Sans', serif;
  font-size: 1rem;
  color: var(--color-primary);
  letter-spacing: 0.5px;
  border-bottom: 2.5px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.21s cubic-bezier(.4,0,.2,1), color 0.21s;
  position: relative;
}
nav a:hover, nav a.active {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.cta-primary {
  background: var(--color-secondary);
  color: #fff !important;
  font-family: 'Bree Serif', 'Open Sans', serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 13px 28px;
  border-radius: var(--radius-small);
  border: none;
  box-shadow: 0 5px 16px var(--color-shadow-strong);
  transition: background 0.22s, color 0.22s, box-shadow 0.22s cubic-bezier(.4,0,.2,1);
  margin-left: 20px;
  cursor: pointer;
  outline: none;
  display: inline-block;
  position: relative;
  z-index: 1;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-primary);
  color: #FFF !important;
  box-shadow: 0 10px 24px var(--color-shadow-strong);
}

/* =====================
   Mobile Burger Menu
======================= */
.mobile-menu-toggle {
  position: fixed;
  right: 26px;
  top: 22px;
  z-index: 1101;
  display: none;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 1.5px 8px var(--color-shadow);
  transition: background 0.18s, box-shadow 0.2s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
  box-shadow: 0 3px 16px var(--color-shadow-strong);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(36, 97, 58, 0.98);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
  visibility: visible;
  opacity: 1;
  transition: transform 0.36s cubic-bezier(.4,0,.2,1), opacity 0.23s;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  margin: 20px 24px;
  align-self: flex-end;
  border: none;
  cursor: pointer;
  transition: color 0.16s;
  z-index: 12001;
}
.mobile-menu-close:hover { color: var(--color-secondary); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 36px 40px 24px 44px;
  margin-top: 40px;
}
.mobile-nav a {
  font-family: 'Bree Serif', 'Open Sans', serif;
  color: #fff;
  font-size: 1.4rem;
  letter-spacing: 1.5px;
  border-radius: var(--radius);
  padding: 12px 6px 12px 0;
  transition: color 0.17s, background 0.18s;
  width: calc(100% - 24px);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  padding-left: 14px;
}

@media (max-width: 991px) {
  header .container nav, header .container .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 992px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* =====================
   Section Grids & Cards
======================= */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 14px;
}
.feature-grid > div {
  flex: 1 1 270px;
  min-width: 230px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 14px var(--color-shadow-strong);
  padding: 28px 20px 20px 24px;
  transition: box-shadow 0.21s, transform 0.21s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
  border: 2.5px solid #e7f6eb;
  position: relative;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 28px var(--color-shadow-strong);
  transform: translateY(-8px) scale(1.03) rotate(-2deg);
  border-color: var(--color-secondary);
}
.feature-grid img {
  margin-bottom: 12px;
  width: 44px;
  height: 44px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  max-width: 350px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  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;
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div {
    min-width: unset;
    width: 100%;
    max-width: unset;
    padding: 20px 12px 14px 16px;
  }
  .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}

/* Lists in cards/sections */
ul li, .content-wrapper ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 22px;
  color: var(--color-primary);
}
ul li::before, .content-wrapper ul li::before {
  content: '';
  display: inline-block;
  width: 12px; height: 12px;
  background: var(--color-secondary);
  border-radius: 2.5px;
  position: absolute;
  top: 4px;
  left: 0;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); /* hexagon/octagonal geometric marker */
}

/* ===================================
   Feature/Item Pattern for Consistent Structure
====================================== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==========================
   Testimonial Section Styles
============================ */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-left: 6px solid var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--box-shadow);
  min-width: 250px;
  margin-bottom: 20px;
}
.testimonial-card .avatar {
  width: 56px;
  height: 56px;
  border-radius: 100%;
  background: var(--color-accent);
  border: 2px solid var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.testimonial-card p {
  color: var(--color-contrast-dark);
  font-size: 1.05rem;
}
.testimonial-card cite {
  font-style: normal;
  color: var(--color-secondary);
  font-weight: bold;
  font-size: 0.98rem;
}

/* ====================
   Footer Styling
====================== */
footer {
  background: #f5f9f0;
  border-top: 3px solid var(--color-secondary);
  padding: 36px 0 12px 0;
  margin-top: 40px;
  box-shadow: 0px -2px 16px var(--color-shadow);
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
footer nav {
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  font-size: 1.06rem;
}
.footer-contact {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-direction: row;
}
.footer-contact img {
  width: 42px;
  margin-right: 8px;
  align-self: flex-start;
}
.footer-contact p {
  font-size: 0.98rem;
  color: var(--color-primary);
}
.footer-branding span {
  color: #7c9372;
  font-size: 0.98rem;
  letter-spacing: 0.7px;
}
@media (max-width: 991px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* =========================================
   Cookie Consent Banner & Cookie Modal
=========================================== */
#cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: #fff;
  box-shadow: 0 -2px 20px var(--color-shadow-strong);
  padding: 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 24px 24px 0 0;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.24s;
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
#cookie-consent-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner-text {
  color: #234827;
  font-size: 1rem;
  margin-bottom: 2px;
  text-align: center;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-btn {
  border: none;
  background: var(--color-secondary);
  color: #fff;
  padding: 10px 24px;
  font-family: 'Bree Serif', 'Open Sans', serif;
  letter-spacing: 1px;
  font-size: 1rem;
  border-radius: var(--radius-small);
  margin-right: 0;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 1px 6px var(--color-shadow);
  transition: background 0.16s, color 0.12s, box-shadow 0.14s;
  outline: none;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 16px var(--color-shadow-strong);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus{
  background: var(--color-secondary);
  color: #FFF;
}

/* Cookie Modal */
#cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2100;
  background: rgba(36,97,58,0.90);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(.4,0,.2,1);
}
#cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius);
  padding: 48px 38px 34px 38px;
  min-width: 300px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 6px 36px var(--color-shadow-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  position: relative;
}
.cookie-modal-content h2 {
  color: var(--color-primary);
  font-size: 1.4rem;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 22px;
  background: none;
  color: var(--color-primary);
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  z-index: 1;
  transition: color 0.15s;
}
.cookie-modal-close:hover { color: var(--color-secondary); }
.cookie-category {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: var(--radius-small);
  background: #f8fbe8;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  justify-content: space-between;
}
.cookie-toggle {
  appearance: none;
  width: 40px;
  height: 20px;
  background: #e5f2d4;
  border-radius: 11px;
  position: relative;
  outline: none;
  transition: background 0.15s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: var(--color-secondary);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px var(--color-shadow);
  transition: left 0.18s;
}
.cookie-toggle:checked:before {
  left: 21px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  #cookie-consent-banner {
    padding: 15px 10px;
    border-radius: 12px 12px 0 0;
    font-size: 0.96rem;
  }
  .cookie-modal-content{
    padding: 30px 9px 20px 9px;
    min-width: unset;
    max-width: 96vw;
  }
}

/* ===========================================
   Micro Interactions & Geometric Details
============================================= */
.cta-primary,
.button,
.cookie-btn,
nav a,
.mobile-nav a,
.feature-grid > div,
.card,
.testimonial-card {
  transition: box-shadow 0.2s cubic-bezier(.4,0,.2,1), transform 0.2s cubic-bezier(.4,0,.2,1), background 0.14s, color 0.18s;
}

.feature-grid > div {
  /* add subtle geometric accent pseudo element */
  position: relative;
}
.feature-grid > div::after {
  content: '';
  position: absolute;
  top: -14px;
  right: -18px;
  width: 44px;
  height: 44px;
  background: url(../assets/geo-accent.svg) no-repeat center center/contain;
  opacity: 0.12;
  pointer-events: none;
}

/* Use angular fonts for headings and buttons (Bree Serif is slightly geometric) */
h1, h2, h3, h4, h5, h6, .cta-primary, .cookie-btn, nav a, .mobile-nav a {
  font-family: 'Bree Serif', 'Open Sans', serif !important;
  font-variant-ligatures: none;
  font-feature-settings: "ss01";
  text-shadow: 0 1px 0 rgba(140,170,80,0.10);
}

/* Geometric icon containers */
.icon-wrap {
  background: #d2e4c6;
  border-radius: 28% 72% 54% 46% / 57% 44% 56% 43%; /* adds structure with irregular polygon */
  padding: 8px;
}

/* =============
   Responsive
=============== */
@media (max-width: 684px) {
  html { font-size: 15px; }
  .section { padding: 17px 2px; }
  .content-wrapper { gap: 12px; }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
  .cta-primary { width: 100%; font-size: 1rem; padding: 12px; margin-left: 0; }
  .footer-contact p, .footer-branding span { font-size: 0.9rem; }
}

/* ====================
   Accessibility
====================== */
:focus {
  outline: 2px dashed var(--color-secondary) !important;
  outline-offset: 1.5px;
}

[aria-current], nav a.active, .mobile-nav a.active {
  border-bottom: 2.5px solid var(--color-secondary);
  color: var(--color-secondary) !important;
}

/* ===============
   Utility
=================
*/
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.text-center { text-align: center; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }

/* =======================
   Miscellaneous
======================== */
::-webkit-scrollbar {
  width: 10px;
  background: #f1faef;
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 8px;
}

/* ===
 END
==== */
