/* ==================================================
   CSS RESET & BASELINE
   ================================================== */
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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background-color: #F5F6FA;
  color: #253627;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background-image: url('../assets/textures/leaves-bg.png'); /* subtle leaf bg, fallback if available */
  background-repeat: repeat;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #31613C; /* rich green */
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #203649;
}

/* ==================================================
   TYPOGRAPHY
   ================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  font-weight: 700;
  color: #203649;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.12;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.subheadline {
  font-size: 1.15rem;
  color: #31613C;
  margin-bottom: 18px;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
}
strong {
  font-weight: 700;
}
ul,
ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 10px;
  line-height: 1.6;
}
p {
  margin-bottom: 18px;
  font-size: 1rem;
}

/* Typography scale responsive adjustment */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.08rem; }
  body { font-size: 15px; }
}

/* ==================================================
   BASIC CONTAINERS
   ================================================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  background: rgba(255,255,255,0.98);
  border-radius: 18px;
  box-shadow: 0 2px 20px rgba(44, 67, 49, 0.06);
  padding: 36px 28px;
  margin-bottom: 20px;
}

/* spacing/sections from requirements */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.text-section {
  background: #F2EFE9;
  border-radius: 22px;
}
@media (max-width: 768px) {
  .content-wrapper {
    padding: 20px 8px;
  }
  .section {
    padding: 25px 5px;
    margin-bottom: 36px;
  }
}

/* ==================================================
   HEADER/NAVIGATION
   ================================================== */
header {
  background: #F5F6FA;
  border-bottom: 2px solid #e0e3db;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 18px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  color: #203649;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 0;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #E0E7DA;
  color: #31613C;
}
.cta-button {
  background: #31613C;
  color: #fff;
  border: none;
  border-radius: 28px;
  padding: 13px 36px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(44, 67, 49, 0.08);
  margin-left: 16px;
  transition: background 0.15s, transform 0.15s;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-button:hover, .cta-button:focus {
  background: #20391E;
  transform: translateY(-1px) scale(1.04);
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 14px;
  }
  .cta-button {
    padding: 12px 22px;
    font-size: 1rem;
  }
}

@media (max-width: 820px) {
  header .container {
    flex-wrap: wrap;
  }
  .main-nav {
    gap: 8px;
  }
}

/* ====================
  MOBILE BURGER MENU
   ==================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #203649;
  font-size: 2.1rem;
  cursor: pointer;
  z-index: 1011;
  margin-left: 12px;
}
@media (max-width: 900px) {
  .main-nav, .cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #F7F6F3;
  box-shadow: 0 4px 32px rgba(32,52,73,0.12);
  z-index: 2100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(0.65, 0, 0.35, 1);
  padding: 0 0 36px 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #31613C;
  align-self: flex-end;
  margin: 18px 20px 0 0;
  cursor: pointer;
  z-index: 2102;
  transition: color 0.2s;
}
.mobile-menu-close:hover {
  color: #203649;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 50px 0 0 36px;
}
.mobile-nav a {
  color: #203649;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 600;
  padding: 14px 0;
  border-radius: 8px;
  transition: background 0.16s, color 0.19s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: #cbead7;
  color: #31613C;
}

/* Ensure mobile menu covers all. */
@media (max-width: 900px) {
  .mobile-menu {
    display: flex;
  }
}

/* ====================
   MAIN HERO & LAYOUT
   ==================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 370px;
  background: #e3e9e1 url('../assets/textures/organic-shape.svg') bottom right no-repeat;
  border-radius: 22px 22px 28px 28px;
  box-shadow: 0 2px 50px 0 rgba(45,68,45,.04);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}

/* ===================
   CARDS & FEATURES
   =================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 18px 0 4px 0;
}
.feature-grid > div {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 3px 24px 0 rgba(76, 104, 83, 0.07);
  flex: 1 1 240px;
  min-width: 230px;
  padding: 26px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
  border-top: 4px solid #9ccf83;
  transition: box-shadow 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 32px 0 rgba(52, 94, 54, 0.15);
}
.feature-grid img {
  width: 46px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(44, 67, 49, 0.09);
  background: #E8F5E1;
  padding: 4px;
  margin-bottom: 8px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  padding: 28px 20px;
  border-radius: 20px;
  box-shadow: 0 2px 14px 0 rgba(52, 94, 54, 0.09);
  flex: 1 1 310px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.19s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(52, 94, 54, 0.15);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .feature-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
}

/* FAQ LISTS */
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}
.faq-list > div {
  background: #F4F7F2;
  border-radius: 16px;
  box-shadow: 0 1px 8px 0 rgba(44, 67, 49, 0.04);
  padding: 20px 16px;
  min-width: 220px;
  flex: 1 1 250px;
}
.faq-list h3 {
  margin-bottom: 7px;
  font-size: 1.15rem;
  color: #31613C;
}

/* SECTIONS & LAYOUT PATTERNS FROM SPEC */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}
.secondary-contact {
  background: #ebf5ea;
  border-radius: 14px;
  padding: 16px 18px 16px 20px;
  margin-top: 28px;
}
.secondary-contact h3 {
  font-size: 1.05rem;
  margin-bottom: 7px;
  color: #203649;
}
.secondary-contact ul {
  padding-left: 14px;
}
.secondary-contact li {
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
}
.secondary-contact img {
  width: 20px;
  height: auto;
  margin-right: 7px;
}

/* --------------------------------------------------
   Testimonials
--------------------------------------------------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #FCFFF8;
  border-radius: 18px;
  box-shadow: 0 1px 14px 0 rgba(76, 104, 83, 0.10);
  padding: 20px;
  margin-bottom: 24px;
  border-left: 7px solid #A9DF89;
  min-width: 220px;
}
.testimonial-card p {
  color: #253627;
  font-size: 1.08rem;
  margin-bottom: 7px;
  text-align: center;
}
.testimonial-card strong {
  color: #31613C;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .testimonial-card {
    padding: 15px;
    margin-bottom: 20px;
    min-width: 0;
  }
}

/* --------------------------------------------------
   Footer Styles
--------------------------------------------------- */
footer {
  background: #203649;
  padding: 35px 0 10px 0;
  color: #fff;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}
.footer-logo img {
  width: 54px;
  height: auto;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav a {
  color: #A9DF89;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
}
.footer-contact {
  font-size: 0.97rem;
  color: #d7efe2;
  margin-top: 6px;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
  }
  .footer-nav {
    flex-direction: row;
    gap: 17px;
    justify-content: center;
  }
}

/* ==============
   BUTTONS, FORMS
   ============== */
button, .cta-button {
  cursor: pointer;
}
button:focus-visible, .cta-button:focus-visible {
  outline: 2px solid #31613C;
  outline-offset: 2px;
}
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  border: 1px solid #a8bdab;
  background: #f7faf6;
  border-radius: 12px;
  padding: 12px;
  font-size: 1rem;
  color: #253627;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 8px;
  width: 100%;
  transition: border-color 0.19s;
}
input:focus, textarea:focus {
  border-color: #9ccf83;
  outline: none;
}

/* ==============
  COOKIE BANNER
   ============== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  z-index: 3000;
  background: #F3F8EC;
  box-shadow: 0 -4px 24px rgba(44, 67, 49, 0.12);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  padding: 28px 18px 24px 18px;
  font-size: 1rem;
  border-top: 4px solid #A9DF89;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.20s cubic-bezier(.45,.03,.52,.8);
  will-change: opacity;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-content {
  flex: 1 1 310px;
  color: #253627;
  max-width: 540px;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.cookie-banner button, .cookie-banner .cta-button {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 30px;
  padding: 10px 24px;
  transition: background 0.16s, color 0.14s, transform 0.13s;
  border: none;
  cursor: pointer;
  margin: 0 0 0 0;
}
.cookie-banner .accept {
  background: #31613C;
  color: #fff;
}
.cookie-banner .accept:hover {
  background: #20391E;
}
.cookie-banner .reject {
  background: #fff;
  color: #31613C;
  border: 1px solid #A9DF89;
}
.cookie-banner .reject:hover {
  background: #F3F8EC;
}
.cookie-banner .settings {
  background: #F8E8C6;
  color: #203649;
  border: none;
}
.cookie-banner .settings:hover {
  background: #E8D3AA;
}
@media (max-width: 900px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    padding: 21px 7px 16px 7px;
  }
  .cookie-banner-actions {
    gap: 12px;
  }
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3100;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(35,55,21,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 8px 44px rgba(32,52,73,0.13);
  width: 94%;
  max-width: 390px;
  padding: 28px 25px 22px 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  animation: fadeinup 0.4s cubic-bezier(.73,-0.03,.26,1.08);
}
@keyframes fadeinup {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #31613C;
  font-size: 2rem;
  position: absolute;
  top: 16px; right: 18px;
  cursor: pointer;
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.24rem;
  font-weight: 700;
  color: #203649;
  margin-bottom: 6px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #31613C;
  width: 18px;
  height: 18px;
}
.cookie-category label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.02rem;
  color: #203649;
}
.cookie-category .disabled {
  color: #b8baa9;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  border-radius: 26px;
  padding: 8px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  background: #31613C;
  color: #fff;
  transition: background 0.16s;
}
.cookie-modal-actions .close-modal {
  background: #fff;
  color: #31613C;
  border: 1px solid #b8e38e;
}
.cookie-modal-actions .close-modal:hover {
  background: #E8F5E1;
}
.cookie-modal-actions .accept {
  background: #31613C;
  color: #fff;
}
.cookie-modal-actions .accept:hover {
  background: #20391E;
}

/* ==============
   ORGANIC SHAPES/ACCENTS
   ============== */
.organic-shape {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  width: 180px; height: 180px;
  opacity: 0.12;
  top: -40px; right: -68px;
  background: url('../assets/textures/organic-shape.svg') no-repeat center/contain;
}
@media (max-width: 600px) {
  .organic-shape {
    width: 100px; height: 100px;
    top: -32px; right: -22px;
  }
}

/* ==============
   ORGANIC/NATURE DETAILS
   ============== */
.section {
  background:
    linear-gradient(100deg, #EFF7EE 70%, #F9F8EF 100%);
  border-radius: 20px;
  box-shadow: 0 1px 16px rgba(141, 187, 134, 0.06);
}

/* Subtle shadow and organic border radius for cards */
.card,
.feature-grid > div,
.testimonial-card,
.content-wrapper,
.text-section,
.faq-list > div {
  border-radius: 20px 22px 27px 14px/22px 18px 21px 25px;
  /* Organic/deformed border radius look */
}

/* ==============
   RESPONSIVE UTILITIES
   ============== */
@media (max-width: 500px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.05rem; }
  .container { padding: 0 3vw; }
  .content-wrapper { padding: 13px 4px; }
  .section { padding: 8px 2px; margin-bottom: 18px; }
  footer .container { padding: 0 12px; }
}

/* Ensures all content cards/sections spacing */
.card, .feature-grid > div, .testimonial-card, .faq-list > div, .section, .content-wrapper, .text-section {
  margin-bottom: 20px;
}

/* ===============================================
   Miscellaneous: Animations, Micro-Interactions
   =============================================== */
.cta-button, .cookie-banner button, .cookie-modal-actions button {
  transition: background 0.19s, color 0.14s, box-shadow 0.14s, transform 0.14s;
}
.cta-button:active, .cookie-banner button:active {
  transform: scale(0.98);
}

.card, .feature-grid > div, .testimonial-card, .faq-list > div {
  transition: box-shadow 0.19s, transform 0.19s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 10px 36px 0 rgba(52, 94, 54, 0.19);
  transform: translateY(-2px) scale(1.01);
}

.mobile-menu, .cookie-modal-overlay, .cookie-banner {
  transition: opacity 0.16s, transform 0.23s;
  will-change: opacity, transform;
}

/* Accessibility utilities */
.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
