/* ====================== 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 { line-height: 1; }
ol, ul {
  list-style: none;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  outline: none;
  box-sizing: border-box;
}
button { cursor: pointer; background: none; }
strong { font-weight: 700; }

/* ==================== CSS Variables ==================== */
:root {
  --color-primary: #212131;
  --color-secondary: #A6A8B6;
  --color-accent: #F5C869;
  --color-green: #4F7F59;
  --color-earth: #E6DFD7;
  --color-taupe: #CBBFA7;
  --color-contrast: #F8F6F2;
  --color-error: #c34242;
  --color-bg: #FAF9F6;
  --shadow-card: 0 2px 16px rgba(79, 127, 89, 0.10);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* ============= Base Styles, Backgrounds, Typography ============= */
body {
  background-color: var(--color-bg);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  letter-spacing: 0.01em;
  /* slight paper texture */
  background-image: url('../assets/textures/paper-light.png'), linear-gradient(122deg, var(--color-bg) 86%, var(--color-contrast) 100%);
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 20px;
  font-weight: 600;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--color-primary);
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.content-wrapper {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  background: var(--color-contrast);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ========== NATURE ORGANIC: Color & Texture Accents ========== */
main section {
  border-radius: var(--radius-lg);
  background: var(--color-earth);
  box-shadow: 0 2px 24px 0 rgba(79,127,89,0.04);
  margin-bottom: 30px;
  /* subtle organic edge with custom shape (faux) */
  position: relative;
  overflow: visible;
}
main section:nth-child(even) {
  background: var(--color-contrast);
}
main section:before {
  content: "";
  display: block;
  position: absolute;
  left: -36px;
  top: 36px;
  width: 56px;
  height: 84px;
  background: rgba(79,127,89,0.07);
  border-radius: 60% 80% 70% 70% / 70% 70% 90% 90%;
  z-index: 0;
  pointer-events: none;
}
main section:nth-child(odd):before {
  left: unset; right: -36px;
  background: rgba(165,153,106,0.06);
}
main section .container, main section .content-wrapper {
  position: relative;
  z-index: 1;
}

/* ======================== HEADER & NAV ========================= */
header {
  background: var(--color-contrast);
  border-bottom: 2px solid var(--color-taupe);
  position: sticky;
  top: 0;
  z-index: 99;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 14px 12px;
}
header nav a {
  font-family: var(--font-display);
  color: var(--color-green);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
header nav a:hover, header nav a:focus {
  background: var(--color-green);
  color: #fff;
  box-shadow: 0 1px 8px 0 rgba(79,127,89,0.08);
  outline: none;
}
header nav a img {
  height: 32px;
  width: auto;
  margin-right: 10px;
  border-radius: 6px;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.15rem;
  border-radius: 50%;
  background: var(--color-earth);
  color: var(--color-green);
  border: 2px solid var(--color-taupe);
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: background 0.18s, color 0.18s, border 0.18s;
  position: relative;
  z-index: 202;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-green);
  color: #fff;
  border-color: var(--color-green);
}

/* ============= MOBILE MENU (burger, nav overlay) ============= */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(48, 80, 39, 0.95);
  z-index: 201;
  padding: 32px 0 0 0;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.show {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  color: #fff;
  font-size: 2.4rem;
  background: none;
  margin-left: 20px;
  margin-bottom: 30px;
  border-radius: 10px;
  padding: 4px 8px;
  border: 2px solid rgba(255,255,255,0.16);
  transition: background 0.22s, border 0.22s;
  align-self: flex-end;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 36px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.4rem;
  padding: 9px 18px 9px 2px;
  border-radius: var(--radius-md);
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.03em;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #fff;
  color: var(--color-green);
}

/* =================== HERO / CTA BUTTONS =================== */
.cta-btn {
  display: inline-block;
  background: var(--color-green);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  border-radius: 32px 18px 32px 18px;
  padding: 14px 40px;
  margin-top: 16px;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  transition: background 0.22s, color 0.22s, box-shadow 0.27s, transform 0.19s;
  box-shadow: 0 2px 10px 0 rgba(79,127,89,0.10);
  border: 2px solid transparent;
  position: relative;
}
.cta-btn:focus, .cta-btn:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 4px 20px 0 rgba(245,200,105,0.16);
  outline: none;
  border-color: var(--color-green);
  transform: translateY(-3px) scale(1.04);
}

/* ===================== Feature Grid ======================= */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}
.feature-grid li {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  flex: 1 1 250px;
  min-width: 230px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 22px;
  border: 2px solid var(--color-earth);
  transition: box-shadow 0.17s, border 0.17s, transform 0.18s;
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
}
.feature-grid li:hover {
  box-shadow: 0 6px 28px 0 rgba(79,127,89,0.13);
  border: 2px solid var(--color-green);
  transform: translateY(-4px) scale(1.015);
}
.feature-grid li img {
  width: 42px;
  height: 42px;
  background: var(--color-taupe);
  border-radius: 18px 9px 30px 9px;
  padding: 7px;
  margin-bottom: 4px;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(79,127,89,0.11);
}
.feature-grid li h3 {
  color: var(--color-green);
  font-size: 1.20rem;
  margin-bottom: 6px;
  margin-top: 0;
}
.feature-grid li span {
  display: block;
  font-weight: bold;
  color: var(--color-accent);
  margin-top: 10px;
  font-size: 1.06rem;
}

/* ======================= Card Styles ======================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}

/* ==================== Testimonial Card ==================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 18px 0 rgba(33,33,49,0.06);
  padding: 20px 24px;
  border-left: 5px solid var(--color-green);
  margin-bottom: 20px;
  min-width: 230px;
  max-width: 420px;
  margin-right: 24px;
  margin-top: 6px;
  transition: box-shadow 0.21s, border 0.21s, background 0.21s;
}
.testimonial-card p {
  font-style: italic;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  font-family: var(--font-body);
  font-size: 1.08rem;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--color-green);
  font-weight: 700;
  margin-left: 8px;
}
.testimonial-card:hover {
  background: var(--color-taupe);
  border-left: 5px solid var(--color-accent);
  box-shadow: 0 6px 32px 0 rgba(165,153,106,0.11);
}

/* ================= Text-Image, Grid, Flex Groups ================= */
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===================== Footer ======================= */
footer {
  background: var(--color-green);
  color: #fff;
  padding: 0;
  margin-top: 50px;
  border-top: 4px solid var(--color-taupe);
}
footer .container {
  padding-top: 36px;
  padding-bottom: 30px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
footer nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.04rem;
  transition: color 0.21s, background 0.21s, font-weight 0.21s;
  border-radius: 8px;
  padding: 3px 8px;
}
footer nav a:focus, footer nav a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
}
footer .branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
footer .branding img {
  width: 48px; height: auto;
  border-radius: 50%;
}
footer .contact-short {
  font-size: 0.97rem;
  margin-top: 12px;
}
footer .contact-short a {
  color: var(--color-accent);
  text-decoration: underline;
}
footer .contact-short a:hover {
  color: #fff;
}

/* ================== General Lists ================== */
ul, ol {
  margin-left: 0;
  margin-bottom: 18px;
  padding-left: 0;
}
ul li, ol li {
  padding-left: 0;
  margin-bottom: 8px;
  line-height: 1.8;
  position: relative;
  font-size: 1.025rem;
}
ul li:before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--color-green);
  border-radius: 50%;
  margin-right: 14px;
  vertical-align: middle;
}
ul li img {
  width: 26px; height: 26px; vertical-align: middle; margin-right: 10px;
  background: var(--color-taupe);
  border-radius: 9px 18px 9px 18px;
  padding: 3px;
  box-shadow: 0 1px 6px rgba(165,153,106,0.10);
}

/* Only add bullets for primary unordered lists, not for lists inside .feature-grid, .card, .testimonial-card etc. */
.feature-grid li:before, .testimonial-card li:before, .card li:before {
  display: none;
}

/* ====================== Forms ======================= */
input, textarea, select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-taupe);
  background: #fff;
  padding: 12px 14px;
  font-family: var(--font-body);
  margin-bottom: 18px;
  font-size: 1.07rem;
  transition: border 0.2s, box-shadow 0.18s;
  color: var(--color-primary);
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--color-green);
  box-shadow: 0 2px 7px rgba(79,127,89,0.13);
  outline: none;
}

/* ================= Cookie Consent Banner ================ */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 300;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-contrast);
  border-top: 3px solid var(--color-green);
  box-shadow: 0 -2px 14px 0 rgba(79,127,89,0.09);
  padding: 24px 12px 24px 24px;
  transition: transform 0.35s;
  gap: 30px;
  font-size: 1.08rem;
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner-content {
  max-width: 620px;
  color: var(--color-primary);
  font-family: var(--font-body);
}
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-left: 12px;
}
.cookie-banner button {
  min-width: 125px;
  padding: 10px 18px;
  border-radius: 18px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.19s, color 0.19s, border 0.19s, box-shadow 0.20s;
  margin-bottom:4px;
}
.cookie-banner .accept {
  background: var(--color-green);
  color: #fff;
  border: 2px solid var(--color-green);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
  box-shadow: 0 3px 12px 0 rgba(245,200,105,0.13);
}
.cookie-banner .reject {
  background: #fff;
  color: var(--color-green);
  border: 2px solid var(--color-green);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--color-error);
  color: #fff;
  border-color: var(--color-error);
}
.cookie-banner .settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--color-green);
  color: #fff;
  border-color: var(--color-green);
}

/* =============== Cookie Modal Popup ================ */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  z-index: 401;
  align-items: center;
  justify-content: center;
  background: rgba(33,33,49,0.62);
  animation: fadeInBg 0.32s;
}
.cookie-modal.show {
  display: flex;
}
@keyframes fadeInBg { from { background: rgba(33,33,49,0.0);} to {background:rgba(33,33,49,0.62);} }
.cookie-modal-content {
  background: #fff;
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 7px 40px 0 rgba(79,127,89,0.19);
  padding: 44px 36px 32px 36px;
  max-width: 400px;
  min-width: 270px;
  width: 98%;
  font-family: var(--font-body);
  position: relative;
  animation: modalOpen 0.37s cubic-bezier(.7,1.5,.4,1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@keyframes modalOpen {
  from { transform: scale(0.92) translateY(28px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 8px; right: 18px;
  background: none;
  color: var(--color-green);
  border: none;
  font-size: 2.2rem;
  border-radius: 8px;
  padding:2px 9px;
  transition: background 0.2s;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  background: var(--color-accent);
  color: #fff;
}
.cookie-modal h3 {
  margin-bottom: 0;
  font-size: 1.42rem;
  color: var(--color-green);
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 1.03rem;
}
.cookie-category input[type=checkbox] {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: var(--color-green);
}
.cookie-category label {
  font-weight: 600;
  margin-left: 8px;
  color: var(--color-primary);
}
.cookie-category.essential {
  opacity: 0.8;
  font-style: italic;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}
.cookie-modal .modal-actions button {
  flex: 1 1 0px;
}

/* =============== Responsive & Mobile-First =============== */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
    padding: 0 6vw;
  }
}
@media (max-width: 1025px){
  .feature-grid, .content-grid, .card-container, .content-wrapper {
    gap: 14px;
  }
  .section, main section {
    padding: 30px 6vw;
  }
}
@media (max-width: 900px){
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.175rem; }
  .feature-grid li { min-width: 175px; }
}
@media (max-width: 768px){
  .mobile-menu-toggle {
    display: flex;
  }
  header nav {
    display: none;
  }
  .container {
    padding: 0 4vw;
  }
  .section, main section {
    padding: 20px 6vw;
  }
  h1 { font-size: 1.47rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.025rem; }
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid li { max-width: 100%; width: 100%; }
  .testimonial-card, .card {
    max-width: 100%;
    min-width: 0;
    margin-right: 0;
  }
  .content-wrapper, .footer .content-wrapper {
    gap: 14px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 15px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 12px 18px 12px;
    gap: 14px;
    font-size: 1rem;
  }
  .cookie-banner .cookie-btn-group {
    margin-left: 0;
    gap: 9px;
  }
  .cookie-modal-content {
    padding: 30px 13px 20px 13px;
    max-width: 98vw;
  }
}

@media (max-width: 480px){
  main section:before {
    display: none;
  }
}

/* ===================== Misc: Micro-interactions ===================== */
.card, .feature-grid li, .testimonial-card, .cta-btn, .content-grid, .mobile-menu, .cookie-banner, .cookie-modal-content {
  transition: box-shadow 0.2s, border 0.2s, background 0.18s, color 0.13s, transform 0.15s;
}

/* Focus outlines for accessibility on buttons/links */
a:focus, button:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

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

/* ======================== End Of CSS ======================== */
