/* ========================== */
/* === CSS RESET & NORMAL === */
/* ========================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #21406a;
  background: #f6fbfc;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #5f8a4f;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #3c6d2f;
}
ul, ol {
  margin: 0 0 16px 20px;
  padding: 0;
}
table {border-collapse: collapse;}
hr {border: none; border-bottom: 1px solid #e4e8de; margin: 32px 0;}

/* =============== */
/* BRAND VARIABLES */
/* =============== */
:root {
  --primary: #21406a;
  --secondary: #ffcc70;
  --accent: #f6fbfc;
  --green-main: #5f8a4f;
  --green-light: #a3c07f;
  --brown-earth: #95775b;
  --tan: #eae6d8;
  --clay: #8f7256;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --radius-section: 36px;
  --radius-card: 18px;
  --shadow-section: 0 4px 30px 0 rgba(64, 81, 42, 0.06);
  --shadow-card: 0 2px 12px 0 rgba(40, 60, 20, 0.10);
}

/* =================== */
/* LAYOUT CONTAINERS   */
/* =================== */
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius-section);
  box-shadow: var(--shadow-section);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-section {
  font-size: 1.08rem;
  color: #3a3d22;
  margin-bottom: 12px;
}

/* Headings Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.7rem; line-height: 1.13; margin-top: 8px;}
h2 { font-size: 2rem; margin-top: 0; }
h3 { font-size: 1.3rem; }

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

/* Paragraphs and lists */
p, li {
  font-family: var(--font-body);
  color: #2d2317;
  font-size: 1rem;
  margin-bottom: 10px;
}
strong {color: var(--primary); font-weight: 700;}

/* ============= HEADER & NAVIGATION ============== */
header {
  background: #f6fbfc;
  border-bottom: 1px solid #e4e8de;
  box-shadow: 0 4px 16px -10px rgba(162,179,120,0.07);
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 0;
  min-height: 80px;
}
header a img {
  height: 58px;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
nav a {
  color: var(--primary);
  padding: 8px 13px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 14px;
  transition: background 0.16s, color 0.19s;
}
nav a:hover, nav a:focus {
  background: var(--green-main);
  color: #fff;
}

/* Mobile Nav */
.mobile-menu-toggle {
  background: var(--green-main);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 10px;
  width: 44px; height: 44px;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 105;
  margin-left: 8px;
  cursor: pointer;
  transition: background 0.16s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--green-light);
  color: var(--primary);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(214, 229, 205, 0.97);
  box-shadow: 0 4px 40px 0 rgba(64, 81, 42, 0.24);
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.7,0,.35,1);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.3rem;
  align-self: flex-end;
  margin: 22px 24px 10px 0;
  cursor: pointer;
  z-index: 3001;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--green-main);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 24px;
  width: 100%;
}
.mobile-nav a {
  display: block;
  padding: 15px 0 15px 12px;
  font-size: 1.25rem;
  background: none;
  color: var(--primary);
  width: 100%;
  font-weight: 600;
  border-radius: 14px;
  transition: background 0.14s, color 0.16s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--green-light);
  color: #fff;
}

@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ============= HERO / CTA BUTTONS ============== */
.cta,
.cta.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 196px;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 1.13rem;
  font-weight: 700;
  background: var(--green-main);
  color: #fff;
  border: none;
  border-radius: 32px;
  box-shadow: 0 2px 12px 0 rgba(70,81,47,.16);
  cursor: pointer;
  text-align: center;
  margin-top: 14px;
  margin-bottom: 0;
  transition: background 0.22s, box-shadow 0.13s, color 0.19s;
}
.cta.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(33,64,106,0.16);
}
.cta:hover, .cta:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 8px 28px 0 rgba(95, 138, 79, 0.16);
}

/* =========== ORGANIC CARDS & FEATURE LAYOUTS ========== */
.card-container, .card-grid, .feature-grid, .features, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-container .card, .card-grid .card, .card, .feature-grid > div, .features > div {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  flex: 1 1 240px;
  min-width: 220px;
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  transition: box-shadow 0.18s, transform 0.17s;
  border: 1.6px solid #eae6d8;
  position: relative;
}
.card:hover,
.feature-grid > div:hover {
  box-shadow: 0 8px 36px 0 rgba(95,138,79,0.13);
  transform: translateY(-4px) scale(1.015);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 24px 0;
}
.feature-grid > div {
  background: #eae6d8;
  border-radius: 22px 38px 26px 30px;
  border: none;
  box-shadow: 0 2px 18px 0 rgba(223, 222, 215, 0.11);
  padding: 26px 22px 19px 22px;
  min-width: 205px;
  flex: 1 1 222px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.18s, background 0.13s;
}
.feature-grid > div img {
  height: 36px;
  margin-bottom: 8px;
}

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

/* =========== TEXT-IMAGE SECTION FLEX =========== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .card-container, .card-grid, .feature-grid, .features {
    gap: 13px;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
  .card, .feature-grid > div {
    min-width: 165px;
    padding: 17px 10px 12px 11px;
  }
  header .container {
    padding: 0 7px;
    min-height: 62px;
  }
}

/* =========== TESTIMONIAL CARDS =========== */
.testimonial-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 23px;
  border: 1.6px solid #e4e8de;
  box-shadow: var(--shadow-card);
  padding: 20px;
  margin-bottom: 20px;
  max-width: 800px;
  color: #21406a;
  font-size: 1.08rem;
  line-height: 1.55;
  transition: box-shadow 0.16s;
}
.testimonial-card strong {
  color: var(--green-main);
  font-size: 1.05em;
}
.testimonial-card span {
  color: var(--secondary);
  letter-spacing: 0.1em;
  font-size: 1.18em;
  margin-left: 5px;
}
.testimonial-card > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 4px 20px 0 rgba(33, 64, 106, 0.18);
}

/* Visual Consistency & Spacing */
.section, .card, .feature-grid > div, .testimonial-card {
  margin-bottom: 20px;
}

/* ==================== */
/* Section Spacing AND Alignment (MANDATORY) */
.section             { margin-bottom: 60px; padding: 40px 20px; }
.card-container      { display: flex; flex-wrap: wrap; gap: 24px; }
.card                { margin-bottom: 20px; position: relative; }
.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; }
.feature-item        { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* =================== */
/*        FOOTER       */
/* =================== */
footer {
  background: #eae6d8;
  padding: 40px 0 35px;
  border-top: 1.6px solid #e4e8de;
  font-size: 1.02rem;
  color: var(--primary);
}
footer .container {
  flex-direction: column;
  gap: 26px;
  align-items: center;
}
.footer-brand img {
  height: 52px;
  margin-bottom: 8px;
}
footer nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin-bottom: 11px;
}
footer nav a {
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 7px 10px;
  border-radius: 8px;
  transition: background 0.13s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--green-main);
  color: #fff;
}
.footer-contact p {
  color: #5d4c33;
  font-size: 0.96rem;
  margin-bottom: 3px;
  text-align: center;
}
@media (max-width: 650px) {
  footer .container {
    gap: 15px;
    padding: 0 6px;
  }
  .footer-brand img {
    height: 38px;
  }
  footer nav {
    gap: 8px;
  }
}

/* ========== FORMS and INPUTS (future proof) =========== */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 14px;
  border: 1.3px solid #b0c69f;
  background: #fff;
  padding: 10px 16px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--green-main);
}

label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  display: inline-block;
}

/* ================== */
/*    ORGANIC STYLE   */
/* ================== */
/* Rounded organic corners for card/sections */
.card, .testimonial-card, .feature-grid > div, .section { border-radius: 27px 38px 22px 25px; }
/* Subtle paper grain texture */
.section, .feature-grid > div {
  background-image: url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='48' cy='48' rx='47' ry='47' fill='%23eae6d8' fill-opacity='0.08'/%3E%3C/svg%3E");
  background-blend-mode: lighten;
}

/* ========== RESPONSIVENESS ========== */
@media (max-width: 1170px) {
  .container {max-width: 1000px;}
}
@media (max-width: 820px) {
  .container {max-width: 97vw;}
  .feature-grid, .card-grid, .card-container {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  nav {gap: 10px;}
}
@media (max-width: 650px) {
  .section {padding: 17px 4px; margin-bottom: 32px;}
  h1, h2 {margin-bottom: 7px;}
}
@media (max-width: 520px) {
  .footer-contact p {font-size: 0.9rem;}
  .cta, .cta.primary {font-size: 1rem; min-width: 142px; padding: 10px 14px;}
}

/* ========== COOKIES BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 5010;
  background: #fffdfa;
  border-top: 3.5px solid var(--secondary);
  box-shadow: 0 -4px 32px 0 rgba(61, 87, 41, 0.14);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 30px;
  min-height: 50px;
  font-size: 1.07rem;
  transition: transform 0.33s cubic-bezier(.87,0,.2,.97);
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
  opacity: 0.25;
}
.cookie-banner__text {
  color: #43331c;
  flex: 2 1 340px;
  margin-right: 14px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}

.button-cookie {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 20px;
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 8px 0 rgba(188,167,103,0.10);
  margin-bottom: 0;
  margin-right: 0;
  transition: background 0.18s, color 0.17s, box-shadow 0.21s;
}
.button-cookie.accept {
  background: var(--green-main);
  color: #fff;
}
.button-cookie.reject {
  background: #eae6d8;
  color: var(--primary);
}
.button-cookie.settings {
  background: #fff;
  color: var(--green-main);
  border: 2px solid var(--green-main);
}
.button-cookie.accept:hover, .button-cookie.accept:focus {
  background: var(--primary);
}
.button-cookie.reject:hover, .button-cookie.reject:focus {
  background: #e2795c; color: #fff;
}
.button-cookie.settings:hover, .button-cookie.settings:focus {
  background: var(--green-light);
  color: #fff;
}
@media (max-width: 620px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 10px;
  }
  .cookie-banner__actions {
    flex-direction: row;
    gap: 10px;
  }
  .cookie-banner__text {margin-right: 0;}
}

/* ========== COOKIE PREFERENCES MODAL ========== */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 12000;
  background: rgba(33, 64, 106, 0.16);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.22s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal__window {
  background: #fffdfa;
  border-radius: 28px 40px 18px 38px;
  box-shadow: 0 8px 64px 0 rgba(46, 71, 28, 0.15);
  max-width: 420px;
  width: 97vw;
  padding: 39px 25px 30px 25px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal__header {
  font-family: var(--font-display);
  font-size: 1.44rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.4em;
}
.cookie-modal__close {
  position: absolute;
  top: 17px;
  right: 23px;
  font-size: 2.2rem;
  background: none;
  color: var(--primary);
  border: none;
  cursor: pointer;
  padding: 3px 10px;
  border-radius: 14px;
  transition: background 0.13s, color 0.18s;
  z-index: 12001;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #eae6d8;
  color: #5f8a4f;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0;
}
.cookie-category .toggle {
  appearance: none;
  width: 40px;
  height: 22px;
  background: #e4e8de;
  border-radius: 14px;
  position: relative;
  outline: none;
  transition: background 0.16s;
  cursor: pointer;
}
.cookie-category .toggle:checked {
  background: var(--green-main);
}
.cookie-category .toggle:before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.18s;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,0.11);
}
.cookie-category .toggle:checked:before {
  left: 20px;
}
.cookie-category .cookie-essential {
  font-size: 0.97rem;
  color: #b7b6af;
  margin-left: 8px;
}

.cookie-modal__footer {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 15px;
  justify-content: flex-end;
}
@media (max-width: 440px) {
  .cookie-modal__window {padding: 18px 4vw 14px 4vw;}
  .cookie-modal__header {font-size: 1.14rem;}
}

/* =========== ANIMATIONS FOR INTERACTIONS =========== */
.cta, .cta.primary, .button-cookie {
  transition: background 0.21s, color 0.18s, box-shadow 0.16s, transform 0.19s;
}
.mobile-menu, .cookie-banner, .cookie-modal {
  will-change: transform, opacity;
}
.card, .feature-grid > div {
  transition: transform 0.14s, box-shadow 0.21s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  transform: translateY(-2px) scale(1.013);
  box-shadow: 0 6px 22px 0 rgba(33, 64, 106, 0.13);
}
a:focus-visible, button:focus-visible {
  outline: 2.5px solid var(--green-main);
  outline-offset: 2.5px;
  border-radius: 6px;
}

/* =========== ACCESSIBILITY / CONTRAST =========== */
.testimonial-card, .testimonial-card p, .testimonial-card strong {
  color: #2d2317;
  background: #fff;
}
.testimonial-card span {
  color: #e0b22d;
  font-weight: bold;
  letter-spacing: 0.07em;
}

/* ============ UTILITY =========== */
.link {color: var(--green-main); text-decoration: underline;}
.link:hover, .link:focus {color: var(--primary);}

/* ============ OVERRIDES FOR SECTIONS =========== */
.section > h2 {margin-bottom: 8px;}
.section ul, .section ol {margin-bottom: 10px;}

/* ============ FLEXBOX FOR LAYOUTS ONLY =============== */
/* Ensured above for all containers - required by brief */

/* ============ END =========== */
