/* ========== CSS RESET & NORMALIZE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F9F7F1;
  color: #2A3928;
  min-height: 100vh;
  line-height: 1.6;
}
img, picture, video {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #30547E;
  outline-offset: 2px;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: inherit;
}

/* ========== VARIABLES (WITH FALLBACKS) ========== */
:root {
  --color-primary: #30547E;
  --color-secondary: #E3B34A;
  --color-accent: #F9F7F1;
  --color-green: #536D1B;
  --color-earth: #A98A5D;
  --color-bg: #F9F7F1;
  --color-text: #2A3928;
  --color-card: #fff;
  --color-hover: #E3B34A;
}

/* ========== TYPOGRAPHY ========== */
h1, .section h1 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 18px;
  letter-spacing: 1px;
}
h2, .section h2 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--color-green);
  letter-spacing: 0.5px;
}
h3, .section h3 {
  font-size: 1.32rem;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--color-primary);
  letter-spacing: 0.2px;
}
p, li, blockquote {
  font-size: 1rem;
  color: var(--color-text);
}
blockquote {
  font-style: italic;
  color: #38503B;
}

/* Typography Scale Utility */
.text-section p,
.text-section ul,
.text-section li {
  font-size: 1.06rem;
}
.text-section h3 {
  font-size: 1.13rem;
  margin-top: 18px;
  color: var(--color-green);
}

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 32px;
  box-shadow: 0 4px 24px rgba(72, 89, 67, 0.04);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card);
  border-radius: 28px;
  box-shadow: 0 2px 16px rgba(87,133,71,0.08);
  margin-bottom: 20px;
  padding: 28px 22px;
  transition: box-shadow 0.25s, transform 0.21s;
  position: relative;
  border: 1.5px solid #ebecd8;
  min-width: 260px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 30px rgba(87,133,71,0.18);
  transform: translateY(-2px) scale(1.015);
}
.content-grid, .feature-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;
  padding: 20px 28px 16px 24px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(162,180,132,0.10);
  margin-bottom: 20px;
  border-left: 6px solid var(--color-green);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Ensure spacing between all sections and cards */
.section + .section, section + section {
  margin-top: 30px;
}

/* ========== HERO SECTION ========== */
.hero {
  background: #EBEFE9 url('../assets/bg-organic-leaf.svg') bottom right no-repeat;
  background-size: 260px auto;
  border-radius: 0 0 52px 52px;
  box-shadow: 0 2px 24px rgba(72, 89, 67, 0.10);
  padding-top: 48px;
  margin-bottom: 60px;
}
.hero h1 {
  color: var(--color-green);
  font-size: 2.6rem;
  letter-spacing: 1.2px;
}
.hero p {
  color: #445C3C;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 2px solid #e9e8e0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px 20px;
  gap: 0;
}
header img {
  height: 54px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  padding: 7px 12px;
  border-radius: 18px;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--color-green);
  color: #fff;
}
.button.primary {
  background: var(--color-green);
  color: #fff;
  border: none;
  padding: 11px 32px;
  border-radius: 26px;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 1.14rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-left: 20px;
  transition: background 0.22s, box-shadow 0.22s, transform 0.1s;
  box-shadow: 0 2px 12px rgba(83, 109, 27, 0.12);
}
.button.primary:hover, .button.primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 6px 24px rgba(163, 146, 54, 0.17);
  transform: scale(1.03);
}
.button {
  display: inline-block;
  outline: none;
  cursor: pointer;
}

/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
  background: #D7E7BA;
  color: var(--color-primary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 18px;
  transition: background 0.2s, color 0.2s, box-shadow 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-green);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(77, 93, 65, 0.96);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.6,.05,.2,1);
  z-index: 4000;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  position: absolute;
  top: 26px;
  right: 32px;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.65rem;
  border: none;
  z-index: 4100;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-green);
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  min-height: 100vh;
  width: 100vw;
  padding: 90px 38px 30px 38px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 12px 0 8px 4px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-green);
}

/* ========== FEATURE GRIDS & ICONS ========== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 14px 0 0 0;
}
.feature-grid li {
  flex: 1 1 220px;
  background: #fff;
  border-radius: 22px;
  padding: 26px 18px 20px 18px;
  box-shadow: 0 1px 8px rgba(162,180,132,0.07);
  color: #38503B;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.13s;
  min-width: 185px;
  min-height: 188px;
  position: relative;
}
.feature-grid li img {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  filter: drop-shadow(0 1px 3px #cfd5cb16);
}
.feature-grid li:hover {
  box-shadow: 0 2px 18px rgba(162,180,132,0.15);
  transform: translateY(-3px) scale(1.012);
}
.icon-list {
  display: flex;
  flex-direction: row;
  gap: 28px;
  margin: 20px 0;
}
.icon-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.03rem;
  color: var(--color-green);
}
.icon-list img {
  width: 28px;
  height: 28px;
  filter: grayscale(20%);
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  background: #eef3e8;
  border-radius: 36px;
  box-shadow: 0 2px 20px #b6cfb530;
  padding-top: 42px;
  padding-bottom: 44px;
  margin-bottom: 54px;
}
.testimonial-card {
  background: #fff;
  border-left: 6px solid var(--color-green);
  color: #234226;
  margin-right: 14px;
  margin-bottom: 22px;
  max-width: 560px;
  transition: box-shadow 0.19s, transform 0.14s;
  box-shadow: 0 1px 6px #b6cfb540;
}
.testimonial-card blockquote {
  font-size: 1.12rem;
  color: #38503B;
  line-height: 1.5;
}
.testimonial-card p strong {
  color: var(--color-primary);
  font-size: 1rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.testimonial-card:hover {
  box-shadow: 0 2px 16px #b6cfb556;
}

/* ========== ABOUT/LEGAL/CONTACT SECTIONS ========== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}
.text-section ul {
  margin-top: 12px;
  padding-left: 22px;
  list-style: disc inside;
}
.text-section ul li {
  margin-bottom: 6px;
}
.text-section a {
  color: var(--color-green);
  text-decoration: underline;
  transition: color 0.18s;
}
.text-section a:hover, .text-section a:focus {
  color: var(--color-primary);
}
.contact img {
  width: 22px;
  height: 22px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ========== FOOTER ========== */
footer {
  background: #DEEDCF url('../assets/bg-organic-footer.svg') left bottom no-repeat;
  background-size: 310px auto;
  padding: 40px 0 18px 0;
  border-radius: 50px 50px 0 0;
  box-shadow: 0 -2px 20px #d0dbb71b;
  margin-top: 56px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.05em;
}
.footer-nav a {
  color: var(--color-green);
  font-weight: 500;
  transition: color 0.18s;
}
.footer-nav a:hover {
  color: var(--color-primary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-size: 0.98rem;
  color: #3e582f;
}
.footer-contact img {
  width: 38px;
  height: 38px;
  margin-bottom: 2px;
}
footer small {
  color: #778975;
  font-size: 0.94rem;
  margin-top: 9px;
  letter-spacing: 0.5px;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #F6FBEF;
  color: #243D21;
  box-shadow: 0 -2px 16px #b6cfb545;
  padding: 20px 24px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 9999;
  transition: transform 0.36s cubic-bezier(.34,1.56,.64,1), opacity 0.21s;
}
.cookie-banner.hide {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  font-size: 1.08rem;
  flex: 2 1 340px;
  margin-bottom: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  flex: 1 0 180px;
}
.cookie-banner button {
  font-size: 1.02rem;
  padding: 11px 23px;
  border-radius: 19px;
  border: none;
  font-family: 'Bebas Neue', Impact, sans-serif;
  background: var(--color-green);
  color: #fff;
  transition: background 0.16s, color 0.16s;
}
.cookie-banner .cookie-accept {
  background: var(--color-green);
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-banner .cookie-reject {
  background: #eee9da;
  color: var(--color-green);
  border: 1px solid #dad6bc;
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: #e4e0cd;
  color: #915E09;
}
.cookie-banner .cookie-settings {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: var(--color-green);
  color: #fff;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(38, 49, 21, 0.56);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.26s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 8px 36px #b1cfb380;
  padding: 42px 32px 32px 32px;
  max-width: 380px;
  width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cookie-modal h3 {
  margin-bottom: 12px;
  color: var(--color-green);
}
.cookie-modal label {
  font-size: 1rem;
  color: #3e582f;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.cookie-modal input[type='checkbox'] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #90a569;
  border-radius: 5px;
  background: #eef6e8;
  cursor: pointer;
  position: relative;
  margin-right: 7px;
}
.cookie-modal input[type='checkbox']:checked {
  background: var(--color-green);
  border-color: var(--color-secondary);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 17px;
  margin-top: 11px;
}
.cookie-modal .cookie-save {
  background: var(--color-green);
  color: #fff;
}
.cookie-modal .cookie-save:hover, .cookie-modal .cookie-save:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-modal .cookie-cancel {
  background: #e4e0cd;
  color: #243D21;
}
.cookie-modal .cookie-cancel:hover, .cookie-modal .cookie-cancel:focus {
  background: #cfc79c;
  color: var(--color-primary);
}

/* ========== UTILITIES & ORGANIC FORMS ========== */
section, .section {
  border-radius: 44px 28px 40px 52px;
  box-shadow: 0 2px 18px rgba(163,155,110, 0.04);
  margin-bottom: 60px;
  overflow: visible;
}
@media (max-width: 860px) {
  .hero {
    background-size: 140px;
    padding-top: 22px;
    border-radius: 0 0 36px 36px;
  }
  .container {
    max-width: 94vw;
  }
  .footer-contact span {
    font-size: 0.93rem;
  }
}

@media (max-width: 1050px) {
  .feature-grid li {
    flex: 1 1 180px;
    min-width: 135px;
  }
}

/* ========== RESPONSIVE BREAKPOINTS ========== */
@media (max-width: 768px) {
  html, body {
    font-size: 15px;
  }
  .section, section {
    padding: 20px 9px 28px 9px;
    border-radius: 34px 18px 22px 34px;
    margin-bottom: 38px;
  }
  body {
    padding-bottom: 56px;
  }
  .hero h1, h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.34rem;
  }
  .footer-contact img {
    width: 26px;
    height: 26px;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .button.primary {
    margin-left: 10px;
    padding: 10px 22px;
    font-size: 1rem;
  }
  header .container {
    gap: 0;
    padding-bottom: 4px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid li {
    min-width: unset;
    width: 100%;
    padding: 16px 15px 14px 14px;
    font-size: 1em;
  }
  .content-grid, .icon-list {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding: 15px 10px 12px 15px;
  }
  .footer-nav {
    gap: 14px;
    font-size: 0.98rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 17px 9px 12px 9px;
    font-size: 15px;
  }
  .cookie-banner .cookie-actions {
    gap: 7px;
    width: 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 512px) {
  .hero,
  .section {
    padding: 13px 2vw 20px 2vw;
    border-radius: 19px 9px 13px 18px;
  }
  .hero h1 {
    font-size: 1.32rem;
  }
}

/***** VISUAL MICRO-INTERACTIONS AND ORGANIC BUTTON MOTION *****/
.button, .cookie-banner button, .cookie-modal button {
  transition: background 0.19s, color 0.19s, box-shadow 0.18s, transform 0.14s;
}
.button:active, .cookie-banner button:active, .cookie-modal button:active {
  transform: scale(0.98);
}

/***** FOCUS AND ACCESSIBILITY *******/
a:focus, .button:focus, input:focus, select:focus, textarea:focus, .cookie-banner button:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: 8px;
}

/***** MODAL SCROLL LOCK (TO BE CONTROLLED VIA JS) *****/
body.modal-open {
  overflow: hidden;
}

/***** MISCELLANEOUS ORGANIC TEXTURES (OPTIONAL, illustrative) *****/
/*
.section {
  background: url('../assets/organic-paper.png') repeat;
  background-blend-mode: lighten;
}
*/

/***** PRINT IMPROVEMENTS *****/
@media print {
  .mobile-menu, .cookie-banner, .cookie-modal, header, footer {
    display: none !important;
  }
  body, .container, .content-wrapper, section, .section, .main {
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
  }
}
