/* ---------------- 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  background: #FFFFFF;
  color: #315E39;
  line-height: 1.5;
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: 100%;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ---------------- BRAND TOKEN VARIABLES (fallbacks) ------------------- */
:root {
  --color-primary: #315E39;
  --color-secondary: #FFFFFF;
  --color-accent: #547A4F;
  --color-success: #85B97B;
  --color-neutral: #EDF1EC;
  --color-dark: #1C241D;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* -------------------- GEOMETRIC STRUCTURED TYPOGRAPHY ---------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.13;
  color: #1C241D;
  font-weight: bold;
  letter-spacing: -0.02em;
  text-transform: none;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}
p, li, blockquote {
  font-family: var(--font-body);
  color: #315E39;
}
strong {
  font-weight: 600;
  color: #315E39;
}

/* Typography structure using geometric/structured spacings */
p, ul, ol, blockquote {
  margin-bottom: 18px;
  font-size: 1rem;
}
.text-section ul, .text-section ol {
  margin-bottom: 20px;
  margin-left: 1.3em;
}
.text-section li {
  list-style-type: disc;
  margin-bottom: 10px;
}

/* ------------------- GENERAL LAYOUT & SPACING PATTERNS --------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

main {
  padding-top: 40px;
  padding-bottom: 40px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--color-secondary);
  border-radius: 18px;
  box-shadow: 0 3px 12px 0 #E2ECE5;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  min-width: 260px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 2.5px solid #E3E3E3;
  transition: box-shadow .18s cubic-bezier(.4,.17,.3,.86);
}
.card:hover,
.card:focus {
  box-shadow: 0 6px 24px 0 #BDD8C1;
  border-color: var(--color-success);
}
.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;
  background: #EDF1EC;
  border-radius: 18px;
  padding: 20px 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px 0 #D7E8D1;
  border: 2px solid #D2DED9;
  font-size: 1.09rem;
}
.testimonial-card blockquote {
  font-style: italic;
  color: #26492D;
  font-family: var(--font-display);
  margin-bottom: 12px;
  quotes: "\201C" "\201D";
}
.testimonial-card p {
  color: #315E39;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  max-width: 700px;
}

/* Overwrite space between main sections for geometric layout */
section {
  margin-bottom: 60px;
}
section:last-of-type {
  margin-bottom: 0;
}

/* -------------------- HEADER & NAVIGATION ----------------------- */
header {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-secondary);
  box-shadow: 0 3px 14px 0 rgba(80,125,100,0.09);
  position: relative;
  z-index: 1000;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-secondary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 3px solid transparent;
  transition: border-color .16s, color .14s;
  border-radius: 2px;
}
header nav a:hover, header nav a:focus {
  color: var(--color-success);
  border-color: var(--color-accent);
}
header img {
  height: 46px;
  width: auto;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 2.0em;
  min-height: 44px;
  border-radius: 13px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-transform: uppercase;
  transition: background .18s, color .13s, box-shadow .15s;
  box-shadow: 0 2px 8px 0 #D0DECC;
  margin-left: 16px;
}
.cta.primary {
  background: var(--color-accent);
  color: var(--color-secondary);
  border: none;
}
.cta.secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
  box-shadow: 0 1px 6px 0 #D5E6D3;
}
.cta.primary:hover, .cta.primary:focus {
  background: #315E39;
  color: #FFFFFF;
  box-shadow: 0 4px 16px 0 #A5C5A9;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-success);
  color: var(--color-primary);
  box-shadow: 0 5px 20px 0 #CAE3C4;
  border-color: var(--color-success);
}

/* --------- MOBILE MENU + BURGER --------- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: var(--color-secondary);
  border: none;
  padding: 11px 18px;
  font-size: 2.1rem;
  line-height: 1;
  border-radius: 12px;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.15s;
  z-index: 1101;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: var(--color-success);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FEFFFB;
  box-shadow: 0px 6px 40px 0 rgba(49,94,57,0.09);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 42px 30px 24px 30px;
  transform: translateX(-110vw);
  transition: transform .33s cubic-bezier(.45, .02, .18, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--color-primary);
  font-size: 2.5rem;
  border: none;
  position: absolute;
  top: 26px;
  right: 32px;
  cursor: pointer;
  line-height: 1;
  z-index: 2001;
  transition: color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 40px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 0.07em;
  padding: 12px 0 10px 4px;
  border-radius: 3px;
  transition: background .13s, color .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-success);
  color: var(--color-secondary);
  box-shadow: 0 1px 6px 0 #B5D6AE;
}

/* Hide nav and show burgers on mobile */
@media (max-width: 1023px) {
  header nav { display: none; }
  .mobile-menu-toggle {
    display: block;
  }
  header .cta.primary {
    margin-left: auto;
    margin-right: 0;
  }
}

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

/* -------------------- HERO BANNERS, MAIN SECTIONS ------------------- */
.hero {
  padding: 36px 0 36px 0;
  background: linear-gradient(90deg,#E8F6EB 53%,#FFFFFF 100%);
  border-radius: 0 0 30px 30px;
  box-shadow: 0 8px 38px 0 #E9F1EA;
  margin-bottom: 50px;
  position: relative;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
.hero h1 {
  color: var(--color-primary);
}
.hero p {
  font-size: 1.18rem;
  color: #48664E;
  max-width: 605px;
  margin-bottom: 18px;
}
.hero .cta.primary {
  margin-top: 18px;
  margin-left: 0;
}

/* -------------------- FEATURES LISTS ------------------------- */
.features .content-wrapper > ul,
section.features ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin: 0;
  padding: 14px 0 0 0;
}
.features li {
  display: flex;
  align-items: center;
  background: #FCFDF8;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 15px 22px 15px 16px;
  border-radius: 15px;
  gap: 13px;
  min-width: 250px;
  border: 2px solid #E3E8E2;
  box-shadow: 0 2px 8px 0 #E3EFE5;
  margin-bottom: 0;
  transition: box-shadow .14s, border-color .13s;
}
.features li:hover, .features li:focus {
  border-color: var(--color-success);
  box-shadow: 0 6px 24px 0 #E2EFE1;
}
.features li img {
  display: inline-block;
  width: 36px;
  height: 36px;
}

/* -------------------- SERVICES LISTS ------------------------- */
.services ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
  margin: 18px 0 26px 0;
}
.services li {
  background: #F7FAF6;
  border-radius: 13px;
  padding: 20px 14px 20px 22px;
  border: 2px solid #E3E8E2;
  font-size: 1.09rem;
  color: #315E39;
  box-shadow: 0 2px 8px 0 #E3EFE5;
  margin-bottom: 0;
}
.services li strong {
  font-family: var(--font-display);
  font-weight: bold;
  color: #315E39;
  font-size: 1.12rem;
}
.services ol {
  padding-left: 1.3em;
  gap: 14px;
}
.services ol li {
  list-style-type: decimal;
  margin-bottom: 0.7em;
}

/* -------------------- TESTIMONIAL CARDS --------------------- */
.testimonials .testimonial-card {
  /* already defined above */
}
.testimonials .content-wrapper > p {
  color: #315E39;
  font-size: 1.09rem;
  padding: 6px 6px 0 4px;
}

.testimonial-card p strong {
  font-family: var(--font-display);
  font-weight: bold;
  color: #315E39;
}

/* -------------------- ABOUT / TEXT SECTION ------------------ */
.about .text-section,
.contact .text-section {
  background: #FCFEFA;
  border-radius: 15px;
  box-shadow: 0 2px 10px 0 #EDF4EB;
  padding: 32px 23px 20px 26px;
}

/* -------------------- CONTACT SECTION ----------------------- */
.contact .text-section ul {
  padding-left: 1.2em;
  margin-bottom: 22px;
}
.contact .text-section li {
  list-style: disc;
  color: #315E39;
  font-size: 1.08rem;
  margin-bottom: 0.7em;
}
.contact .cta.primary {
  margin-top: 6px;
  margin-left: 0;
}

/* -------------------- FOOTER -------------------------------- */
footer {
  background: #F7FAF6;
  width: 100%;
  padding: 36px 0 0 0;
  color: #315E39;
  border-top: 2px solid #BDD8C1;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}
footer nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
footer nav a {
  color: #315E39;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  transition: color .11s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-accent);
}
footer img {
  height: 40px;
}
footer p {
  font-size: 0.95rem;
  color: #4B624C;
  font-family: var(--font-body);
}

/* -------------------- RESPONSIVE: TABLET & MOBILE ----------- */
@media (max-width: 1023px) {
  .container {
    max-width: 97vw;
    padding: 0 11px;
  }
  .features .content-wrapper > ul,
  section.features ul,
  .card-container,
  .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .content-wrapper {
    gap: 13px;
  }
  .about .text-section, .contact .text-section {
    padding: 20px 9px 14px 13px;
  }
  .features li {
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
  }
  .footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 3vw;
  }
  main { padding: 14px 0; }
  .section, section {
    margin-bottom: 30px;
    padding: 22px 2vw;
  }
  .hero {
    padding: 24px 0 24px 0;
    border-radius: 0 0 18px 18px;
    margin-bottom: 23px;
  }
  .hero h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  h1, h2, h3, h4 { margin-bottom: 11px; }
  .content-wrapper, .content-grid {
    gap: 10px;
  }
  .text-image-section,
  .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .card-container {
    flex-direction: column;
    gap: 13px;
  }
  .testimonial-card {
    padding: 13px 7px;
    border-radius: 11px;
    font-size: 0.99rem;
  }
  .about .text-section, .contact .text-section {
    padding: 15px 4px 10px 7px;
    border-radius: 10px;
  }
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.93rem;
  }
}

/* -------------------- HOVER & MICRO-INTERACTIONS ------------ */
a, button, .cta {
  transition: all 0.16s cubic-bezier(.4,.17,.3,.86);
}

.card:active, .features li:active, .testimonial-card:active {
  transform: scale(.98);
}

/* Focus states for accessibility */
:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

button:focus:not(:active), .cta:focus {
  outline: 2px solid var(--color-success);
  outline-offset: 3px;
}

/* ------------- COOKIE CONSENT BANNER & MODAL --------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #F3FCF6;
  box-shadow: 0 -2px 20px 0 #D3E9DD;
  border-top: 2px solid #BDD8C1;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4vw 18px 4vw;
  animation: slideInBottom 0.35s cubic-bezier(.45, .02, .18, 1);
}
@keyframes slideInBottom {
  from { transform: translateY(120%); opacity: 0.5; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1.02rem;
  color: #315E39;
  line-height: 1.4;
  max-width: 440px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  background: var(--color-accent);
  color: var(--color-secondary);
  border: none;
  border-radius: 7px;
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1.01rem;
  padding: 10px 19px;
  cursor: pointer;
  transition: background .14s, color .14s;
}
.cookie-btn.secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
}
.cookie-btn.settings {
  background: #E8F6EB;
  color: var(--color-primary);
  border: 2px solid #BDD8C1;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-success);
  color: var(--color-primary);
  border: 2px solid var(--color-success);
}

/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(31,62,46,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.18s cubic-bezier(.4,.17,.3,.86);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #FEFFFB;
  border-radius: 16px;
  box-shadow: 0 6px 32px 0 #A9CBA4;
  max-width: 450px;
  width: 92vw;
  padding: 34px 28px 20px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--font-body);
  animation: slideInModal .25s cubic-bezier(.4,.17,.3,.86);
}
@keyframes slideInModal {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.cookie-modal label {
  font-size: 1rem;
  color: #315E39;
  margin-bottom: 7px;
  display: flex; align-items: center; gap: 11px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 20px; height: 20px;
  border-radius: 3px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--color-primary);
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  transition: color .11s;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  color: var(--color-success);
}

/* Cookies modal categories */
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 13px;
  font-size: 1rem;
}
.cookie-modal .cookie-category.essential label {
  color: #315E39;
}
.cookie-modal .cookie-category.essential input[type="checkbox"] {
  pointer-events: none;
  opacity: .45;
}
/* ------------------ ACCESSIBILITY/UTILITIES --------------- */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(1px, 1px, 1px, 1px);
  border: 0; padding: 0; margin: -1px;
}

/* ------------------ GEOMETRIC ANGULAR DECORATIONS --------- */
/* Add geometric accents for cards/buttons (decorative only, not content) */
.card::before {
  content: "";
  position: absolute;
  top: -10px; right: -10px;
  width: 28px; height: 28px;
  background: #E8F6EB;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 0;
  border-radius: 7px 0 0 0;
  opacity: 0.35;
}
.card::after {
  content: "";
  position: absolute;
  bottom: -7px; left: -7px;
  width: 18px; height: 18px;
  background: #BDD8C1;
  clip-path: polygon(100% 100%, 100% 0, 0 100%);
  z-index: 0;
  border-radius: 0 0 0 5px;
  opacity: 0.15;
}
@media (max-width: 768px) {
  .card::before, .card::after { display: none; }
}

/* --------------- PRINT STYLES (for pages) ---------- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  main { padding: 0; }
  body { background: #FFF; color: #000; }
  .container { max-width: 96vw; }
  section, .section { padding: 0; margin-bottom: 18px; }
}
