/* --- 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%;
  scroll-behavior: smooth;
}
body {
  background: #fff;
  color: #23302B;
  font-family: 'Roboto', Georgia, serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  background: transparent;
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  background: none;
  border: none;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid #347A51;
  outline-offset: 2px;
}

/* --- Brand Variables --- */
:root {
  --brand-primary: #236834;
  --brand-secondary: #E1E9D2;
  --brand-accent: #347A51;
  --brand-accent2: #49735C;
  --brand-dark: #23302B;
  --brand-bg: #ffffff;
  --text-main: #253326;
  --text-light: #667068;
  --text-invert: #fff;
  --shadow-base: 0 2px 8px rgba(35, 48, 43, 0.06);
  --shadow-elevated: 0 4px 24px rgba(35, 48, 43, 0.12);
  --radius-base: 12px;
  --radius-btn: 8px;
  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 32px;
  --space-xl: 48px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--brand-primary);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-m);
}
h1 {
  font-size: 2.75rem; /* 44px */
  margin-bottom: var(--space-l);
}
h2 {
  font-size: 2rem;
  margin-bottom: var(--space-m);
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.125rem;
  font-weight: 600;
}
p, li {
  font-family: 'Roboto', Georgia, serif;
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: var(--space-xs);
}
strong,b {
  font-weight: 700;
}
.text-section h2 {
  margin-top: 0;
}
.text-section ul, .text-section ol {
  margin-bottom: var(--space-s);
  padding-left: var(--space-m);
  list-style-type: disc;
}
.text-section ul li {
  margin-bottom: 8px;
  color: var(--text-light);
}
.text-section {
  margin-bottom: var(--space-l);
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-m);
  padding-right: var(--space-m);
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

/* --- Layout Patterns (Flexbox Only) --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
  padding: var(--space-l);
  min-width: 260px;
  max-width: 340px;
  flex: 1 1 260px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-elevated);
}
.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: 20px;
  padding: 20px;
  border-radius: var(--radius-base);
  background: var(--brand-secondary);
  color: var(--brand-primary);
  box-shadow: var(--shadow-base);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 500px;
  transition: box-shadow 0.2s, background 0.2s;
}
.testimonial-card p {
  color: var(--brand-dark);
  font-style: italic;
}
.testimonial-card span {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--brand-accent2);
  font-size: 1rem;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-elevated);
  background: #f4f7ef;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Features/Services/Product grid helpers */
.features-grid, .services-list, .product-categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid > div, .services-list > div, .product-categories-grid > div {
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
  padding: var(--space-m);
  min-width: 220px;
  flex: 1 1 220px;
  max-width: 270px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.2s;
}
.features-grid > div:hover, .services-list > div:hover, .product-categories-grid > div:hover {
  box-shadow: var(--shadow-elevated);
}
.features-grid img, .services-list img, .product-categories-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
}
.features-grid h3, .services-list h3, .product-categories-grid h3 {
  color: var(--brand-accent2);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

/* Callouts */
.callout {
  background: var(--brand-secondary);
  padding: var(--space-m);
  border-left: 4px solid var(--brand-primary);
  margin-bottom: var(--space-l);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
}
.callout p {
  margin-bottom: 0;
}

.topic-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: var(--space-m);
}
.topic-tags span {
  font-size: 0.95rem;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  padding: 6px 12px;
  border-radius: var(--radius-btn);
  font-family: 'Roboto', Georgia, serif;
}

/* --- Header & Navigation --- */
header {
  background: var(--brand-bg);
  border-bottom: 1px solid #dde1d4;
  box-shadow: 0 2px 8px rgba(35, 48, 43, 0.04);
  position: relative;
  z-index: 10;
}
header .container {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-l);
}
header nav {
  display: flex;
  gap: var(--space-m);
}
header nav a {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.08rem;
  color: var(--brand-primary);
  border-radius: var(--radius-btn);
  padding: 8px 12px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-accent);
}
.cta-primary, .cta-secondary {
  display: inline-block;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 600;
  font-size: 1.07rem;
  border-radius: var(--radius-btn);
  padding: 12px 32px;
  border: none;
  background: var(--brand-primary);
  color: var(--text-invert);
  box-shadow: var(--shadow-base);
  transition: background 0.18s, color 0.14s, box-shadow 0.19s;
  margin-top: 8px;
  cursor: pointer;
  text-align: center;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--brand-accent2);
}
.cta-secondary {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--brand-primary);
  color: var(--text-invert);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(120deg, #E1E9D2 40%, #ffffff 100%);
  padding-top: 64px;
  padding-bottom: 64px;
  min-height: 410px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}
.hero .content-wrapper {
  max-width: 700px;
  gap: var(--space-m);
}
.hero h1 {
  color: var(--brand-accent2);
  font-size: 2.4rem;
}
.hero p {
  color: var(--text-light);
  font-size: 1.16rem;
  margin-bottom: var(--space-m);
}

/* --- Footer --- */
footer {
  background: #fafcf7;
  border-top: 1px solid #dde1d4;
  padding-top: 32px;
  padding-bottom: 32px;
  margin-top: 56px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Merriweather', Georgia, serif;
  color: var(--brand-primary);
  font-size: 1.25rem;
  font-weight: 700;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: var(--brand-accent2);
  font-family: 'Roboto', Georgia, serif;
  font-size: 1rem;
  padding: 4px 0;
  border-radius: 0;
  transition: color 0.14s, background 0.14s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--brand-primary);
  background: var(--brand-secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.98rem;
  color: var(--brand-dark);
}

/* --- Mobile Navigation --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
  z-index: 1001;
  border: none;
  box-shadow: var(--shadow-base);
  transition: background 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--brand-accent2);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1003;
  background: #ffffff;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.6,.3,.4,1);
  display: flex;
  flex-direction: column;
  padding: 0 32px 32px;
  box-shadow: 0 0 24px 0 rgba(35,48,43,0.08);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 32px;
  right: 32px;
  background: var(--brand-accent2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  font-size: 1.4rem;
  z-index: 1100;
  box-shadow: 0 2px 8px rgba(35,48,43,0.06);
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--brand-primary);
}
.mobile-nav {
  margin-top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav a {
  color: var(--brand-primary);
  padding: 14px 0;
  font-size: 1.18rem;
  font-family: 'Merriweather', Georgia, serif;
  border-radius: var(--radius-btn);
  background: none;
  text-align: left;
  transition: background 0.18s, color 0.14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-accent2);
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: #fff;
  box-shadow: 0 -4px 16px rgba(35, 48, 43, 0.06);
  border-top: 1px solid #dde1d4;
  padding: 20px 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-family: 'Roboto', Georgia, serif;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s, transform 0.28s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner__text {
  flex: 2 1 260px;
  color: var(--brand-dark);
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex: 1 1 120px;
}
.cookie-btn {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1rem;
  border-radius: var(--radius-btn);
  padding: 10px 24px;
  border: none;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  box-shadow: var(--shadow-base);
  transition: background 0.16s, color 0.16s;
}
.cookie-btn.accept {
  background: var(--brand-primary);
  color: #fff;
  font-weight: 600;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: var(--brand-accent2);
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #f6efef;
  color: #bd3838;
}
.cookie-btn.settings {
  background: #f6f8f2;
  color: var(--brand-accent2);
  border: 1px solid var(--brand-primary);
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}

/* --- Cookie Preferences Modal --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2100;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(35, 48, 43, 0.24);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-elevated);
  max-width: 420px;
  width: 95%;
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalPopIn 0.33s cubic-bezier(.43,1.2,.56,0.95);
}
@keyframes modalPopIn {
  0% { transform: scale(0.95) translateY(40px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal .modal-title {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--brand-primary);
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}
.cookie-modal .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category strong {
  font-family: 'Merriweather', Georgia, serif;
}
.cookie-modal .cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}
.cookie-modal .cookie-toggle input[type="checkbox"] {
  opacity: 0;
  width: 44px;
  height: 24px;
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
}
.cookie-modal .cookie-toggle-slider {
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 24px;
  background: #ddd;
  border-radius: 24px;
  transition: background 0.2s;
}
.cookie-modal .cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--brand-accent2);
}
.cookie-modal .cookie-toggle-slider:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(35, 48, 43, 0.10);
  transition: transform 0.2s;
}
.cookie-modal .cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(20px);
}
.cookie-modal .cookie-btn-row {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: var(--space-m);
}

/* --- Lists & Content --- */
ul, ol {
  margin-bottom: var(--space-s);
  padding-left: var(--space-m);
}
ul li, ol li {
  margin-bottom: 8px;
  color: var(--text-light);
}
ul li strong, ol li strong {
  color: var(--brand-accent2);
}

/* --- Misc --- */
::-webkit-input-placeholder {
  color: #a8b197;
}
::-moz-placeholder {
  color: #a8b197;
}
:-ms-input-placeholder {
  color: #a8b197;
}
::placeholder {
  color: #a8b197;
}

/* --- Media Queries: Responsive Design --- */
@media (max-width: 1024px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .features-grid > div, .services-list > div, .product-categories-grid > div {
    max-width: 49%;
    min-width: 160px;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: column;
    gap: 10px;
    min-height: 100px;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  header nav {
    width: 100%;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
  }
  .features-grid, .services-list, .product-categories-grid {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.42rem;
  }
  h3 {
    font-size: 1.10rem;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .hero {
    min-height: unset;
    padding-top: 38px;
    padding-bottom: 38px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .features-grid > div, .services-list > div, .product-categories-grid > div {
    min-width: 96vw;
    max-width: 96vw;
  }
  .features-grid, .services-list, .product-categories-grid {
    gap: 12px;
    flex-direction: column;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    max-width: 96vw;
    min-width: unset;
    padding: 16px;
    margin-bottom: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header nav {
    display: none;
  }
  .cta-primary, .cta-secondary {
    padding-left: 18px;
    padding-right: 18px;
    font-size: 1rem;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}
@media (max-width: 540px) {
  .hero .content-wrapper {
    max-width: 100vw;
    padding: 0;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 14px 6px 14px;
    font-size: 0.97rem;
  }
}

/* --- Animations & Transitions --- */
.card, .testimonial-card, .features-grid > div, .services-list > div, .cta-primary, .cta-secondary {
  transition: box-shadow 0.16s, background 0.14s, color 0.18s, transform 0.14s;
}
.card:hover, .features-grid > div:hover, .services-list > div:hover, .cta-primary:hover, .cta-secondary:hover {
  transform: translateY(-2px) scale(1.013);
}

/* --- Accessibility Enhancements --- */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    transition: none !important;
    animation: none !important;
  }
}

/* --- Utility Classes --- */
.mb-0 { margin-bottom: 0 !important; }
.mb-xs { margin-bottom: var(--space-xs) !important; }
.mb-s { margin-bottom: var(--space-s) !important; }
.mb-m { margin-bottom: var(--space-m) !important; }
.mb-l { margin-bottom: var(--space-l) !important; }
.text-center { text-align: center !important; }
.w-100 { width: 100% !important; }

/* --- Hide visually --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
section {
  padding: 15px;
}