/* =========================
  CSS RESET & 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,
b, u, i, center,
dl, dt, dd, menu, 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,
main, 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;
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100%;
  background-color: #FAF8F2;
  color: #2b3a33;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: url('../assets/pattern-nature.png');
  background-repeat: repeat;
  background-size: 340px 340px;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}
a {
  color: #276678;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B3C43C;
  outline: none;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  box-sizing: border-box;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* =========================
      CSS VARIABLES
========================= */
:root {
  --color-primary: #276678;
  --color-secondary: #DDE8F0;
  --color-accent: #B3C43C;
  --color-earth-bg: #FAF8F2;
  --color-earth-light: #F5EEE2;
  --color-brown: #7C6848;
  --color-leaf: #85972A;
  --color-dark: #222C25;
  --color-card-bg: #FFFFFF;
  --color-border: #DFDDD1;
  --color-shadow: rgba(106, 139, 103, 0.09);
  --color-accent-contrast: #21341B;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* =========================
      TYPOGRAPHY
========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.16;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.27rem;
  color: var(--color-leaf);
}
h4 {
  font-size: 1.08rem;
  color: var(--color-brown);
}

p, ul, ol, blockquote {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 18px;
}
blockquote {
  font-size: 1.06rem;
  color: var(--color-dark);
  font-style: italic;
  background: var(--color-earth-light);
  border-left: 4px solid var(--color-accent);
  padding: 18px 20px 18px 26px;
  border-radius: 14px 26px 18px 22px;
  margin-bottom: 8px;
}

.text-section h2, .text-section h3 {
  margin-top: 6px;
}

ul > li, ol > li {
  margin-bottom: 10px;
  list-style: disc inside;
  font-size: 1rem;
  color: var(--color-dark);
}

/* =========================
      LAYOUT & CONTAINERS
========================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 0; /* Spacing handled by section */
}
.text-section {
  background: var(--color-earth-light);
  border-radius: 26px 14px 26px 20px;
  box-shadow: 0 2px 16px var(--color-shadow);
  padding: 32px 22px 32px 30px;
  margin-bottom: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* =========================
      ORGANIC/NATURE SHAPES
========================= */
.card, .feature-item, .testimonial-card, .team-member {
  background: var(--color-card-bg);
  border-radius: 24px 34px 18px 30px;
  box-shadow: 0 4px 28px var(--color-shadow);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover,
.feature-item:hover,
.testimonial-card:hover,
.team-member:hover {
  box-shadow: 0 6px 32px rgba(163, 206, 131, 0.16);
  transform: translateY(-3px) scale(1.02);
}

/* =========================
        FLEXBOX LAYOUTS
========================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  flex: 1 1 250px;
  margin-bottom: 20px;
  position: relative;
  padding: 26px 22px;
  min-width: 250px;
}
.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;
  margin-bottom: 20px;
  min-width: 0;
  background: #fffbe7;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 28px 22px;
  min-width: 238px;
  flex: 1 1 238px;
  margin-bottom: 20px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 24px 18px 20px 18px;
  min-width: 180px;
  flex: 1 1 208px;
  margin-bottom: 20px;
}
/* Contact info & social links */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  align-items: flex-start;
  margin-bottom: 18px;
  font-size: 1rem;
}
.contact-info div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-links {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}
.address-map {
  padding: 12px 0 12px 0;
  color: var(--color-dark);
  font-size: 1rem;
}

/* Footer */
footer {
  background: var(--color-secondary);
  border-top: 3px solid var(--color-accent);
  padding: 30px 0 18px 0;
}
footer .content-wrapper {
  flex-direction: column;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--color-brown);
}
.footer-contact {
  color: var(--color-dark);
  font-size: 0.97rem;
  margin-bottom: 12px;
}
/* ==============================
      NAVIGATION STYLES
============================== */
header {
  background: var(--color-earth-bg);
  border-bottom: 3px solid var(--color-accent);
  z-index: 20;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-height: 64px;
  position: relative;
}
.logo img {
  display: block;
  width: 145px;
  height: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-left: 24px;
  flex: 1 1 auto;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 11px;
  border-radius: 18px 14px 18px 24px;
  color: var(--color-dark);
  transition: background 0.18s, color 0.16s;
}
.main-nav a:focus, .main-nav a:hover {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
}

.cta {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 600;
  border-radius: 28px 18px 24px 28px;
  padding: 10px 28px;
  box-shadow: 0 2px 14px var(--color-shadow);
  border: none;
  outline: none;
  margin-left: 10px;
  transition: background 0.18s, color 0.16s, box-shadow 0.21s;
  display: inline-block;
}
.cta.primary {
  background: var(--color-primary);
  color: #ffffff;
}
.cta:hover, .cta:focus {
  background: var(--color-leaf);
  color: #fff;
  box-shadow: 0 4px 24px rgba(140, 183, 82, 0.14);
}

/* ==============================
      MOBILE NAVIGATION
============================== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  border-radius: 40px;
  font-size: 2.1rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  box-shadow: 0 2px 8px rgba(191,212,151,0.17);
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: #fff;
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(245, 238, 226, 0.96);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.24,.42,.29,1.24);
  box-shadow: 0 12px 32px rgba(51, 72, 39, 0.20);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-primary);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  margin: 16px 10px 8px 18px;
  align-self: flex-end;
  border: none;
  outline: none;
  box-shadow: 0 3px 12px rgba(39,102,120,0.08);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 24px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--color-dark);
  padding: 12px 14px;
  border-radius: 21px 15px 18px 17px;
  transition: background 0.18s;
  min-width: 150px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-leaf);
  color: #fff;
}

@media (max-width: 1050px) {
  .main-nav {
    gap: 8px;
    margin-left: 13px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 5px;
    margin-left: 0;
    font-size: 0.97rem;
  }
}
@media (max-width: 820px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .feature-grid, .team-list {
    gap: 15px;
  }
  .content-wrapper {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    min-width: 0;
    padding-left: 6px;
    padding-right: 6px;
  }
  .section {
    margin-bottom: 34px;
    padding: 26px 8px;
  }
  .feature-grid, .team-list, .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 14px 10px;
  }
  .feature-item, .card, .team-member {
    min-width: 0 !important;
    width: 100%;
    padding: 18px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  .footer-branding {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
}
@media (max-width: 550px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.18rem; }
  .section { padding: 16px 2px; }
  .feature-item, .card, .testimonial-card, .team-member {
    padding: 12px 7px;
    border-radius: 14px 10px 18px 13px;
  }
  .container { padding-left: 2px; padding-right: 2px; }
}

/* ==================================================
     MICRO-INTERACTIONS & HOVER TRANSITIONS
================================================== */
.card, .feature-item, .testimonial-card, .team-member, .cta, .main-nav a, .footer-nav a, .mobile-nav a {
  transition: box-shadow 0.16s, background 0.16s, color 0.13s, transform 0.18s;
}
.card:active, .feature-item:active, .testimonial-card:active, .cta:active {
  transform: scale(0.99);
}
.footer-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-brown);
  padding: 6px 10px;
  border-radius: 14px 18px 18px 20px;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-leaf);
  color: #fff;
}

/* ============== TESTIMONIALS =============== */
.testimonial-card {
  background: #fffbe7;
  color: var(--color-dark);
  border-left: 6px solid var(--color-accent);
  border-radius: 20px 12px 32px 24px;
  font-size: 1rem;
  box-shadow: 0 6px 24px 0 rgba(210,220,160,0.13);
  margin-bottom: 20px;
  min-width: 0;
}
.testimonial-meta {
  font-family: var(--font-display);
  font-size: .98rem;
  color: var(--color-leaf);
  padding-left: 4px;
  font-weight: 500;
  margin-bottom: 0;
}
.testimonial-card blockquote {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 0;
  font-size: 1.09rem;
  color: var(--color-dark);
}

/* =============== TEAM/PEOPLE CARDS ============== */
.team-list {
  gap: 22px;
  flex-wrap: wrap;
}
.team-member {
  min-width: 150px;
  flex: 1 1 180px;
  background: #fff;
}
.team-member img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 14px;
}

/* ============= BUTTONS & FORMS ============ */
button, .cta {
  cursor: pointer;
  border: none;
  outline: none;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 10010;
  background: #fcf9ee;
  border-top: 4px solid var(--color-accent);
  box-shadow: 0 -2px 24px rgba(65, 97, 53, 0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 10px 13px 10px;
}
.cookie-banner p {
  color: var(--color-dark);
  font-family: var(--font-body);
  margin-bottom: 13px;
  max-width: 530px;
  font-size: 1rem;
  text-align: center;
}
.cookie-btns {
  display: flex;
  gap: 16px;
  margin-bottom: 4px;
}
.cookie-btn {
  border-radius: 36px 21px 28px 30px;
  padding: 9px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.07rem;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.15s, color 0.12s;
}
.cookie-btn.accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-leaf);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-earth-light);
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-leaf);
  color: #fff;
}
/* Hide by default (shown via JS) */
.cookie-banner[aria-hidden='true'] {
  display: none !important;
}

/* ======= COOKIE PREFERENCES MODAL ======= */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100vh;
  background: rgba(65, 97, 53, 0.14);
  z-index: 10012;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.open {
  pointer-events: all;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: 32px 22px 30px 18px;
  padding: 37px 30px;
  box-shadow: 0 14px 40px rgba(65,97,53,0.17);
  width: 94vw;
  max-width: 420px;
  font-size: 1rem;
  color: var(--color-dark);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInCookie 0.44s cubic-bezier(.31,1.21,.27,1);
  position: relative;
  z-index: 10013;
}
@keyframes fadeInCookie {
  from { opacity: 0; transform: scale(.93) translateY(44px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h3 {
  margin-bottom: 7px;
  color: var(--color-leaf);
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.cookie-modal .cookie-cat {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-size: 1.08rem;
  margin-bottom: 11px;
  padding: 7px 3px;
  border-radius: 16px 9px 10px 12px;
}
.cookie-modal .cookie-toggle {
  accent-color: var(--color-accent);
  width: 28px;
  height: 28px;
}
.cookie-modal .cookie-toggle[disabled] {
  opacity: 0.47;
  cursor: not-allowed;
}
.cookie-modal .cookie-btn-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 19px;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  text-align: center;
  line-height: 36px;
  cursor: pointer;
  z-index: 1;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-leaf);
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-modal { padding: 21px 7px; }
}

/* ========== ORGANIC/NATURE DECORATION EXTRAS ========== */
section, .text-section, .feature-item, .testimonial-card, .team-member {
  position: relative;
}
section::before {
  content: '';
  pointer-events: none;
  position: absolute;
  left: -28px; top: -18px;
  width: 60px; height: 60px;
  background: url('../assets/organic-leaf.svg') no-repeat center center / 60px 60px;
  opacity: 0.10;
  z-index: 0;
  display: block;
}
.text-section::after {
  content: '';
  pointer-events: none;
  position: absolute;
  right: -20px; bottom: -15px;
  width: 48px; height: 48px;
  background: url('../assets/organic-pebble.svg') no-repeat center center / 48px 48px;
  opacity: 0.11;
  z-index: 0;
  display: block;
}
@media (max-width: 600px) {
  section::before, .text-section::after { display: none; }
}

/* Ensure no overlapping for cards, sections, etc. */
section, .card, .feature-item, .testimonial-card, .team-member, .card-container, .feature-grid { margin-bottom: 20px; }

/* ========== ACCESSIBILITY ========== */
:focus {
  outline: 2px dashed var(--color-primary);
  outline-offset: 2px;
}

/* ========== PRINT STYLES ========== */
@media print {
  header, nav, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; color: #2b3a33; }
}
