/* --- 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body { line-height: 1; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { border: 0; max-width: 100%; height: auto; display: block; }
table { border-collapse: collapse; border-spacing: 0; }
button, [type="submit"] {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* --- CSS Variables for Nature Organic Style --- */
:root {
  --brand-primary: #253756;
  --brand-secondary: #659ADB;
  --brand-accent: #F4F7FA;

  /* Nature-inspired palette */
  --earth-green: #486130;
  --fern-green: #7da15a;
  --sage: #b7c8b5;
  --sand-beige: #f5efe8;
  --clay-brown: #9a8461;
  --wood-brown: #735c43;
  --organic-white: #fbfbf8;
  --stone-grey: #dde3e1;
  --deep-forest: #223a25;

  --heading-font: 'Montserrat', Arial, Helvetica, sans-serif;
  --body-font: 'Open Sans', Arial, Helvetica, sans-serif;

  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow-lg: 0 8px 36px 0 rgba(34,58,37,0.11);
  --shadow-md: 0 4px 16px 0 rgba(77, 110, 78, 0.13);
  --shadow-sm: 0 2px 6px 0 rgba(125, 161, 90, 0.09);

  --transition: 0.2s cubic-bezier(.4,0,.2,1);
}

/* --- Body and Typography --- */
body {
  font-family: var(--body-font);
  font-size: 16px;
  color: var(--deep-forest);
  background: var(--sand-beige);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--earth-green);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.45rem; font-weight: 500; }
h4, h5, h6 { font-size: 1.05rem; font-weight: 500; }

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1.05rem; }
}

p, li, table, ul, ol {
  font-size: 1rem;
  color: var(--deep-forest);
  line-height: 1.6;
  font-family: var(--body-font);
}
p { margin-bottom: 16px; }

strong, b { color: var(--earth-green); font-weight: 600; }

/* --- Container & Content Section --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
}

/* --- Section Spacing --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: var(--organic-white);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 40px;
  }
}

/* --- Header & Navigation --- */
header {
  background: var(--earth-green);
  box-shadow: var(--shadow-md);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px 20px;
  gap: 24px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: var(--heading-font);
  font-size: 1rem;
  color: var(--sage);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
header nav a:hover, header nav a:focus {
  background: var(--fern-green);
  color: var(--organic-white);
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  background: var(--fern-green);
  color: var(--organic-white);
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--heading-font);
  border-radius: 34px 24px 34px 24px;
  box-shadow: var(--shadow-md);
  border: none;
  outline: none;
  transition: background var(--transition), box-shadow var(--transition); 
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--deep-forest);
  color: var(--organic-white);
  box-shadow: var(--shadow-lg);
}
header img {
  height: 44px;
  width: auto;
}
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  header nav {
    display: none;
  }
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 1100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fern-green);
  color: var(--organic-white);
  font-size: 2rem;
  border: none;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--deep-forest);
}

@media (min-width: 769px) {
  .mobile-menu-toggle,
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: var(--organic-white);
  box-shadow: -4px 0 36px 0 rgba(34,58,37,0.08);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.63,0,0.11,1);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 22px 0 0;
  background: var(--fern-green);
  color: var(--organic-white);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 2rem;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--deep-forest);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 40px 0 0 32px;
  gap: 16px;
}
.mobile-nav a {
  font-size: 1.15rem;
  font-family: var(--heading-font);
  padding: 10px 0;
  color: var(--earth-green);
  transition: color var(--transition);
  min-width: 220px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--fern-green);
  outline: none;
}

/* Hide main header nav on mobile */
@media (max-width: 768px) {
  header nav {
    display: none !important;
  }
}

/* --- Main Layout Containers --- */
main {
  min-height: 65vh;
  padding-top: 16px;
  padding-bottom: 16px;
}

/* --- FLEXBOX PATTERNS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--organic-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 32px 24px;
  flex: 1 1 320px;
  min-width: 270px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover,
.card:focus {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) scale(1.025);
  z-index: 3;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.content-grid,
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
/* Responsive stacking */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .content-grid,
  .features {
    flex-direction: column;
    gap: 16px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--stone-grey);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--deep-forest);
  position: relative;
  transition: box-shadow var(--transition), background var(--transition);
}
.testimonial-card:hover,
.testimonial-card:focus {
  box-shadow: 0 8px 38px 0 rgba(77, 110, 78, 0.16);
  background: var(--sage);
}
.testimonial-card p {
  font-size: 1.05rem;
  color: var(--deep-forest);
  margin-bottom: 0;
}
.testimonial-card span {
  color: var(--earth-green);
  font-weight: 600;
  font-style: normal;
  margin-left: 16px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--organic-white);
  padding: 24px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* --- LISTS AND ULs --- */
ul, ol {
  margin-bottom: 20px;
  margin-top: 7px;
}
ul li, ol li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
  color: var(--deep-forest);
}
ul li:before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--fern-green);
  box-shadow: 0 1px 2px rgba(77, 110, 78, 0.12);
}

/* --- TABLES (Pricelist) --- */
table {
  width: 100%;
  background: var(--organic-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: 16px 0 24px 0;
  overflow: hidden;
  font-size: 1rem;
}
thead tr {
  background: var(--fern-green);
  color: var(--organic-white);
}
th, td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid var(--sage);
}
th:last-child, td:last-child {
  text-align: right;
}
tbody tr:hover {
  background: var(--sage);
}

/* --- FAQ --- */
.faq {
  margin-top: 32px;
  background: var(--stone-grey);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
}
.faq h3 { margin-bottom: 14px; color: var(--earth-green); font-size: 1.18rem; }
.faq ul li {
  margin-bottom: 9px;
  color: var(--deep-forest);
}
.faq strong { color: var(--fern-green); }

/* --- Buttons, Links, Interactivity --- */
a, button {
  transition: color var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  outline: none;
}
a:active, a:focus, button:focus {
  outline: 2px solid var(--fern-green);
  outline-offset: 1.5px;
}

/* --- Forms (if any) --- */
input, textarea, select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--sage);
  padding: 10px 14px;
  font-size: 1rem;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
  background: var(--organic-white);
  color: var(--deep-forest);
  transition: border var(--transition);
}
input:focus, textarea:focus, select:focus {
  border: 1.7px solid var(--fern-green);
}
::placeholder { color: var(--stone-grey); }

/* --- Footer --- */
footer {
  background: var(--earth-green);
  color: var(--organic-white);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 20px 16px 20px;
}
footer .content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--organic-white);
  font-size: 1rem;
  font-family: var(--heading-font);
  opacity: 0.85;
  transition: opacity var(--transition);
}
footer nav a:hover, footer nav a:focus {
  opacity: 1;
}
footer img {
  height: 36px;
}
footer p {
  color: var(--sage);
  margin: 0;
  font-size: 0.97rem;
}
@media (max-width: 768px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: var(--organic-white);
  border-top: 2.5px solid var(--fern-green);
  box-shadow: 0 -4px 24px 0 rgba(77, 110, 78, 0.09);
  padding: 30px 14px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  font-family: var(--body-font);
  font-size: 1.02rem;
  color: var(--deep-forest);
  animation: cookieBannerIn 0.32s cubic-bezier(.25,.8,.55,1.65);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 9px 22px;
  font-weight: 600;
  color: var(--organic-white);
  background: var(--fern-green);
  border-radius: 22px;
  border: none;
  font-size: 1rem;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.cookie-btn.cookie-reject {
  background: var(--clay-brown);
}
.cookie-btn.cookie-settings {
  background: var(--earth-green);
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: var(--deep-forest);
}
/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(68, 99, 48, 0.32);
  z-index: 2300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalIn 0.31s cubic-bezier(.25,.8,.55,1.65);
}
@keyframes cookieModalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: var(--organic-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 28px;
  max-width: 400px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--deep-forest);
  font-family: var(--body-font);
  font-size: 1.05rem;
  position: relative;
}
.cookie-modal-content h3 {
  margin-bottom: 7px;
  font-family: var(--heading-font);
  color: var(--fern-green);
  font-size: 1.15rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category label {
  font-weight: 500;
  color: var(--earth-green);
}
.cookie-category input[type=checkbox] {
  accent-color: var(--fern-green);
  width: 18px;
  height: 18px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: var(--clay-brown);
  color: var(--organic-white);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  font-size: 1.25rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: var(--deep-forest);
}

/* --- Utility & Helper Classes --- */
.hide { display: none !important; }

/* Animated micro-interactions for cta-primary, buttons and cards */
.cta-primary, .cookie-btn, .card {
  will-change: background, box-shadow, transform;
}

/* --- Organic Elements & Textures --- */
.card, .section, .testimonial-card, .faq, .footer, .cookie-modal-content {
  background: var(--organic-white);
  border-radius: var(--radius-lg);
  /* Subtle shadow for organic look */
}

.section {
  /* Subtle organic pattern using radial gradient for gentle visual texture */
  background: 
    radial-gradient(ellipse at 120% 10%, var(--sand-beige) 67%, var(--organic-white) 97%),
    var(--organic-white);
}
.testimonial-card {
  /* Touch of green for the soft testimonial background */
  background: linear-gradient(99deg, var(--stone-grey) 85%, var(--sage) 100%);
}
.feature-item {
  background: linear-gradient(140deg, var(--organic-white) 81%, var(--sage) 100%);
}

/* --- Spacing adjustment for min 20px between all cards/sections --- */
.card, .testimonial-card, .section {
  margin-bottom: 20px;
}
.section:last-child, .testimonial-card:last-child {
  margin-bottom: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 480px) {
  .container {
    padding: 0 5vw;
  }
  main {
    padding-top: 10px;
  }
  .section {
    padding: 18px 4vw;
    margin-bottom: 21px;
    border-radius: var(--radius-md);
  }
  .card {
    padding: 18px 11px;
    border-radius: var(--radius-md);
  }
  .testimonial-card, .faq, .feature-item {
    padding: 13px 10px;
    border-radius: var(--radius-sm);
  }
}

/* --- Visual Hierarchy / Headings --- */
@media (max-width: 480px) {
  h1, h2 {
    margin-bottom: 9px;
  }
}

/* --- Z-index for overlays, mobile menu, and cookies --- */
.mobile-menu { z-index: 1200; }
.cookie-banner { z-index: 2000; }
.cookie-modal { z-index: 2300; }

/* --- Accessibility --- */
@media (forced-colors: active) {
  header, footer, .cta-primary, .cookie-banner, .cookie-modal-content {
    forced-color-adjust: auto !important;
  }
}

/* --- Print Styles --- */
@media print {
  nav, .mobile-menu-toggle, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
