/* ========================================================
   CSS RESET & BASE NORMALIZATION
======================================================== */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #f6f5f1;
}
ol, ul {
  list-style: none;
}
a {
  background-color: transparent;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  border-style: none;
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}
*, *::before, *::after {
  box-sizing: border-box;
}

/* ========================================================
   BRAND & NATURE ORGANIC THEME VARIABLES
======================================================== */
:root {
  /* Brand colors */
  --primary: #253E70; /* deep navy blue */
  --secondary: #58A4B0; /* fresh green-blue accent */
  --accent: #F2F2F2; /* gentle light neutral */
  /* Nature Organic -- earth palette */
  --nature-bg: #f6f5f1;
  --nature-green: #6cb185;
  --nature-forest: #4d704d;
  --nature-earth: #b59d7c;
  --nature-clay: #aa8762;
  --nature-moss: #96b293;
  --nature-gray: #e7e3dd;
  --nature-brown: #816953;
  --white: #fff;
  --black: #231f20;
  --shadow: 0 2px 6px 0 rgba(43, 64, 47, 0.07), 0 1.5px 6px rgba(124,106,97,.08);
  --radius: 18px;
  /* Typography scale */
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --h1: 2.5rem;
  --h2: 2rem;
  --h3: 1.25rem;
  --h4: 1.15rem;
  --body-lg: 1.15rem;
  --body: 1rem;
  --body-sm: 0.92rem;
  /* Spacing */
  --space-xxs: 8px;
  --space-xs: 12px;
  --space-s: 16px;
  --space-m: 20px;
  --space-l: 30px;
  --space-xl: 40px;
  --space-xxl: 60px;
}

body {
  font-family: var(--font-body);
  background: var(--nature-bg);
  color: var(--nature-brown);
  font-size: var(--body);
  font-weight: 400;
  letter-spacing: 0.01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--nature-forest);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  line-height: 1.15;
  letter-spacing: -0.012em;
}
h1 { font-size: var(--h1); margin-bottom: var(--space-s); }
h2 { font-size: var(--h2); margin-bottom: var(--space-s); }
h3 { font-size: var(--h3); margin-bottom: var(--space-xs); }
h4 { font-size: var(--h4); }

strong { font-weight: 700; color: var(--nature-forest); }

p, li, span {
  font-size: var(--body);
  color: var(--nature-brown);
  line-height: 1.6;
}

.section {
  margin-bottom: var(--space-xxl);
  padding: var(--space-xl) var(--space-m);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* Container for layout consistency */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 var(--space-m);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}

.text-section, .article-list, .expert-tips-list, .faq-snippet {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

/* =====================================================================
   HEADER & NAVIGATION
===================================================================== */
header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(68,77,62,0.06);
  position: sticky;
  top: 0;
  z-index: 1003;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
}
nav {
  display: flex;
  align-items: center;
  gap: var(--space-l);
}
nav > a img {
  width: 145px;
  height: auto;
  margin-right: var(--space-m);
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  align-items: center;
}
nav li {
  margin-bottom: 0;
}
nav a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--nature-forest);
  font-size: var(--body);
  border-radius: 8px;
  padding: 7px 14px;
  transition: background 0.16s, color 0.16s;
}
nav a:hover, nav a:focus {
  background: var(--nature-moss);
  color: var(--white);
  outline: 0;
}
.btn-primary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--body-lg);
  background: var(--nature-green);
  color: var(--white) !important;
  padding: 12px 28px;
  border: none;
  border-radius: 9999px;
  box-shadow: 0 2px 16px rgba(38,108,110,0.09);
  cursor: pointer;
  display: inline-block;
  margin-left: var(--space-s);
  letter-spacing: 0.02em;
  transition: background 0.18s, transform 0.18s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--nature-forest);
  transform: scale(1.045);
  color: var(--nature-green)!important;
}

/* Hamburger & mobile menu */
.mobile-menu-toggle {
  display: block;
  background: var(--nature-clay);
  color: var(--white);
  font-size: 2.15rem;
  border: none;
  border-radius: 10px;
  padding: 6px 16px 5px 16px;
  position: absolute;
  right: var(--space-m);
  top: 18px;
  cursor: pointer;
  z-index: 1050;
  box-shadow: 0 2px 8px rgba(127,166,123,0.14);
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--nature-green);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 100vw; right:0;
  width: 100%;
  min-height: 100vh;
  background: var(--nature-bg);
  box-shadow: -3px 0 18px rgba(62,79,54,.16);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0;
  transition: transform .35s cubic-bezier(.8,.15,.3,1), left .15s;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  left: 0;
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  transition: transform .32s cubic-bezier(.43,.23,.36,1.03), opacity .2s;
}
.mobile-menu-close {
  background: var(--nature-green);
  color: var(--white);
  border: none;
  font-size: 2.2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 22px 16px 18px 16px;
  align-self: flex-end;
  cursor: pointer;
  box-shadow: 0 3px 16px rgba(82,124,92,.1);
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--nature-brown);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  width: 100%;
  padding: 0 var(--space-l);
}
.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--nature-forest);
  padding: 15px 10px;
  border-radius: 8px;
  background: transparent;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--nature-green);
  color: var(--white);
}
@media (min-width: 1025px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
}
@media (max-width: 1024px) {
  nav ul {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ========================================================
   HERO SECTION
======================================================== */
.hero {
  display: flex;
  align-items: center;
  background: linear-gradient(95deg, var(--nature-moss) 0%, var(--accent) 100%);
  min-height: 340px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 24px rgba(149,165,141,0.12);
  padding: var(--space-xl) 0 var(--space-xl) 0;
  margin-bottom: var(--space-xxl);
}
.hero .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: var(--space-s);
  background: rgba(255,255,255,0.72);
  padding: var(--space-l) var(--space-xl);
  border-radius: var(--radius);
  box-shadow: 0 2px 20px rgba(127,153,119,0.10);
  margin-top: var(--space-l);
}
.hero h1 {
  color: var(--primary);
}
.hero p {
  color: var(--nature-brown);
  max-width: 540px;
}
.hero .btn-primary {
  margin-top: var(--space-s);
}

/* =========================================================
   FLEXBOX LAYOUT UTILITIES & MANDATORY SPACING
========================================================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.card {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin-bottom: 20px;
  position: relative;
  padding: var(--space-l);
  min-width: 270px;
  flex: 1 1 270px;
  transition: box-shadow .18s, transform .16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px rgba(80,124,108,.13);
  transform: translateY(-4px) scale(1.02);
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  color: var(--nature-forest);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(132,160,148,0.13);
  margin-bottom: var(--space-m);
  flex: 1 1 300px;
  min-width: 280px;
  transition: box-shadow .17s;
}
.testimonial-card p {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: var(--space-xs);
  font-size: var(--body-lg);
}
.testimonial-card span {
  font-size: var(--body-sm);
  color: var(--nature-brown);
  font-style: italic;
  margin-top: auto;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 12px 32px rgba(147,192,159,0.22);
  background: var(--white);
}

/* FEATURE GRID / CARDS */
.feature-grid, .benefit-grid, .team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: var(--space-m);
  margin-bottom: 0;
}
.feature-grid > div, .benefit-grid > div, .team-profiles > div {
  flex: 1 1 200px;
  background: var(--accent);
  border-radius: calc(var(--radius) * 0.7);
  box-shadow: 0 2px 8px rgba(72, 95, 66, 0.06);
  padding: var(--space-m) var(--space-m) var(--space-l) var(--space-m);
  transition: background 0.15s, box-shadow 0.12s, transform 0.15s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
  min-width: 220px;
  position: relative;
}
.feature-grid > div:hover, .benefit-grid > div:hover, .team-profiles > div:hover {
  background: var(--white);
  box-shadow: 0 10px 36px rgba(110,120,105,0.11);
  transform: translateY(-3px) scale(1.02);
}
.feature-grid img, .benefit-grid img, .team-profiles img {
  width: 42px;
  height: 42px;
  margin-bottom: var(--space-xs);
}

/* LISTS IN FEATURES/ARTICLES/FAQ */
ul, ol {
  margin-left: var(--space-s);
  padding-left: var(--space-s);
  list-style: none;
}
ul li {
  position: relative;
  padding-left: var(--space-s);
  margin-bottom: var(--space-xs);
  color: var(--nature-brown);
  font-size: var(--body);
}
ul li::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--nature-green);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 8px;
}
.tag {
  display: inline-block;
  background: var(--nature-moss);
  color: var(--white);
  font-size: var(--body-sm);
  border-radius: 7px;
  padding: 3px 10px;
  margin-left: var(--space-xs);
  font-family: var(--font-display);
}

/* FAQ Preview & Snippet */
.faq-preview, .faq-snippet {
  background: var(--accent);
  border-radius: var(--radius);
  padding: var(--space-m);
  margin-top: var(--space-s);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.faq-preview h3 {
  font-size: var(--h3);
  color: var(--nature-forest);
  margin-bottom: var(--space-xs);
}
.faq-preview a, .faq-snippet a {
  color: var(--secondary);
  font-weight: 600;
  font-family: var(--font-display);
  transition: color .13s;
}
.faq-preview a:hover, .faq-snippet a:hover {
  color: var(--nature-forest);
  text-decoration: underline;
}

/* ========================================================
   FOOTER
======================================================== */
footer {
  background: var(--nature-gray);
  padding: var(--space-xl) 0 var(--space-m) 0;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -1px 8px rgba(80,120,95,0.07);
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-l);
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  gap: var(--space-l);
  align-items: flex-end;
  width: 100%;
  flex-wrap: wrap;
}
footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  align-items: center;
}
footer li a {
  color: var(--nature-brown);
  font-size: var(--body-sm);
  padding: 4px 8px;
  border-radius: 6px;
}
footer li a:hover, footer li a:focus {
  background: var(--nature-moss);
  color: var(--white);
}
footer span {
  color: #7e7d77;
  font-size: var(--body-sm);
  margin-top: 9px;
}
footer a img {
  width: 62px;
  height: auto;
}

/* ========================================================
   COOKIE CONSENT BANNER & MODAL
======================================================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  color: var(--nature-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  padding: var(--space-l) var(--space-m) var(--space-l) var(--space-m);
  box-shadow: 0 -6px 32px rgba(86,102,70,0.09);
  border-top: 2px solid var(--nature-green);
  z-index: 3000;
  opacity: 1;
  transition: opacity 0.3s, transform 0.3s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
}
.cookie-consent-banner p {
  font-size: var(--body-sm);
  color: var(--nature-forest);
  max-width: 430px;
}
.cookie-banner-btn {
  margin-left: var(--space-xs);
  margin-right: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--body);
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: var(--nature-moss);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(90,110,100,0.08);
  transition: background 0.13s, color 0.13s;
}
.cookie-banner-btn.accept {
  background: var(--nature-green);
}
.cookie-banner-btn.reject {
  background: var(--nature-brown);
}
.cookie-banner-btn.settings {
  background: var(--secondary);
}
.cookie-banner-btn:hover, .cookie-banner-btn:focus {
  filter: brightness(1.13);
  outline: none;
}

/* Cookie preferences modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(62, 88, 65, 0.28);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.23s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 40px rgba(77,110,93,.16);
  padding: var(--space-xl);
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  position: relative;
  animation: modalIn .38s cubic-bezier(.48,.04,.36,1.11);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}
.cookie-modal h2 {
  color: var(--nature-forest);
  font-size: var(--h2);
  margin-bottom: var(--space-xs);
}
.cookie-modal .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-s);
}
.cookie-modal .category-label {
  font-family: var(--font-display);
  font-size: var(--body);
  font-weight: 500;
  color: var(--primary);
}
.cookie-modal .category-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-toggle {
  width: 40px;
  height: 23px;
  border-radius: 100px;
  background: var(--nature-gray);
  position: relative;
  border: 1px solid var(--nature-moss);
  cursor: pointer;
  appearance: none;
  outline: none;
  transition: background .17s, border .12s;
}
.cookie-toggle:checked {
  background: var(--nature-green);
  border: 1px solid var(--nature-green);
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 6px rgba(92,123,85,.09);
  transition: left .13s;
}
.cookie-toggle:checked::before {
  left: 19px;
}
.cookie-modal .btn-row {
  display: flex;
  gap: var(--space-s);
  justify-content: flex-end;
  margin-top: var(--space-m);
}
.cookie-modal .btn-row .cookie-banner-btn {
  min-width: 100px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--nature-clay);
  font-size: 1.7rem;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.13s, background 0.13s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: var(--nature-green);
  background: var(--nature-gray);
}

/* ========================================================
   ORGANIC SHAPE DECORATION & DETAILS
======================================================== */
.section, .feature-grid > div, .testimonial-card, .card, .benefit-grid > div, .faq-preview {
  /* Subtle organic borders */
  border-bottom-left-radius: 38px 32px;
  border-bottom-right-radius: 30px 41px;
}
.section {
  border-top-left-radius: 70px 54px;
}
.section:not(:first-child) {
  margin-top: var(--space-m);
}

/* Decorative SVGs or abstract backgrounds can be applied via ::before */
.section::before {
  content: '';
  display: block;
  position: absolute;
  left: -48px;
  top: -32px;
  width: 64px;
  height: 50px;
  background: radial-gradient(ellipse at top left, var(--nature-moss) 58%, transparent 100%);
  opacity: 0.13;
  border-radius: 60% 40% 40% 60%;
  pointer-events: none;
  z-index: 0;
}
.section {
  position: relative;
  z-index: 1;
}

/* =====================================================================
   TABLES & FORMS (if present)
===================================================================== */
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  margin-bottom: var(--space-l);
}
th, td {
  padding: var(--space-s);
  border-bottom: 1px solid var(--accent);
  text-align: left;
}
th {
  background: var(--nature-gray);
  color: var(--nature-forest);
  font-family: var(--font-display);
}

input:not([type=checkbox]):not([type=radio]), textarea, select {
  width: 100%;
  font-size: var(--body);
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--nature-gray);
  margin-bottom: var(--space-m);
  background: var(--white);
  transition: border .14s;
  box-shadow: 0 0.5px 2px rgba(190,188,180,.05);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--nature-green);
  outline: none;
}

label {
  display: block;
  font-size: var(--body-sm);
  color: var(--nature-brown);
  margin-bottom: 6px;
  font-weight: 500;
}

/* ========================================================
   RESPONSIVENESS
======================================================== */
@media (max-width: 1024px) {
  .container {
    max-width: 94vw;
    padding: 0 var(--space-s);
  }
  .feature-grid, .benefit-grid, .team-profiles {
    flex-wrap: wrap;
    gap: var(--space-m);
    flex-direction: row;
  }
  .footer .content-wrapper {
    flex-wrap: wrap;
    gap: var(--space-m);
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .container {
    padding: 0 var(--space-xs);
    max-width: 100vw;
  }
  .section {
    padding: var(--space-l) var(--space-s);
  }
  .hero .content-wrapper {
    padding: var(--space-m) var(--space-m);
    margin-top: 0;
  }
  .feature-grid, .benefit-grid, .team-profiles {
    flex-direction: column;
    gap: var(--space-s);
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: var(--space-s);
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
    min-width: 90vw;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-m);
  }
  .footer .content-wrapper, footer .container {
    flex-direction: column;
    gap: var(--space-s);
    align-items: flex-start;
  }
  .hero {
    min-height: 200px;
    padding: var(--space-l) 0 var(--space-m) 0;
  }
  .cookie-modal {
    padding: var(--space-l) var(--space-s);
    max-width: 96vw;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.12rem;
  }
}

/* ========================================================
   MICRO-ANIMATIONS
======================================================== */
a, button, .btn-primary, .cookie-banner-btn, .card, .feature-grid > div, .testimonial-card {
  transition: background 0.17s, color 0.15s, box-shadow 0.16s, transform 0.13s;
}
input, textarea {
  transition: border-color 0.13s, box-shadow 0.13s;
}

/* ========================================================
   PRINT & SELECTION COLORS
======================================================== */
::selection {
  background: var(--nature-moss);
  color: var(--white);
}

@media print {
  header, footer, .cookie-consent-banner, .mobile-menu {
    display: none !important;
  }
  body, .container, main, .section {
    box-shadow: none !important;
    background: #fff !important;
  }
}
