/* ==========================================================================
   GaiaCare — theme stylesheet
   Mobile-first. Breakpoints: 480 / 768 / 1024.
   ========================================================================== */

:root {
  --forest-deep: #1e2b22;
  --forest: #14261c;
  --forest-dark: #0f1c15;
  --gold: #d8a84b;
  --gold-dark: #b8863a;
  --sage: #a9b6a3;
  --cream: #f4f1e8;
  --cream-2: #e6e0d2;
  --cream-3: #efe8da;
  --red: #e0392b;
  --ink: #eef0e6;
  --ink-soft: #c3ceba;
  --text-on-cream: #1e2b22;
  --text-on-cream-soft: #4d564a;
  --text-on-cream-muted: #5c6558;
  --font-serif: 'Spectral', Georgia, serif;
  --font-sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 8px 24px rgba(30, 43, 34, .07);
  --shadow-lg: 0 14px 40px rgba(30, 43, 34, .1);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --header-h: 72px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--forest);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* Fluid type scale */
h1, .h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3.5rem); }
h2, .h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); }
h3, .h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--forest); padding: 12px 18px; font-weight: 700; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
@media (min-width: 1024px) { .wrap { padding: 0 44px; } }

.section { padding: var(--space-8) 0; }
.section-sm { padding: var(--space-7) 0; }
.bg-cream { background: var(--cream); color: var(--text-on-cream); }
.bg-cream-2 { background: var(--cream-3); color: var(--text-on-cream); }
.bg-forest { background: var(--forest); color: var(--ink); }
.bg-forest-dark { background: var(--forest-dark); color: var(--ink); }

.eyebrow {
  font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: var(--space-4);
  display: inline-block;
}
.bg-cream .eyebrow, .bg-cream-2 .eyebrow { color: #8a6a2c; }

.lede { font-size: 1.0625rem; line-height: 1.65; color: var(--ink-soft); }
.bg-cream .lede, .bg-cream-2 .lede { color: var(--text-on-cream-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 4px; padding: 13px 26px; font-size: .875rem; font-weight: 700;
  min-height: 44px; cursor: pointer; border: 0; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.btn-primary { background: var(--gold); color: var(--forest); }
.btn-primary:hover { background: #e6b95c; transform: translateY(-1px); }
.btn-outline { border: 1.5px solid rgba(238,240,230,.4); color: var(--ink); background: transparent; }
.btn-outline:hover { background: rgba(238,240,230,.08); }
.bg-cream .btn-outline, .bg-cream-2 .btn-outline { border-color: #cfc6ac; color: var(--text-on-cream); }
.btn-dark { background: var(--forest); color: var(--cream); border-radius: 100px; }
.btn-dark:hover { background: var(--forest-deep); }
.btn-pill { border-radius: 100px; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20, 38, 28, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(238, 240, 230, .12);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand img { height: 40px; width: auto; background: var(--cream); border-radius: 8px; padding: 4px 8px; }
.brand-text { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.brand-text span { color: var(--gold); }

.nav-links { display: none; }
.nav-cta { display: none; }
@media (min-width: 1024px) {
  .nav-links { display: flex; gap: 28px; font-size: .92rem; font-weight: 500; color: var(--ink-soft); }
  .nav-links a { padding: 4px 2px; border-bottom: 2px solid transparent; transition: color .15s; }
  .nav-links a:hover, .nav-links a.active { color: var(--gold); }
  .nav-links a.active { border-color: var(--gold); }
  .nav-cta { display: inline-flex; }
}

.hamburger {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 8px; border: 1px solid rgba(238,240,230,.25);
  background: transparent; color: var(--ink); cursor: pointer;
}
@media (min-width: 1024px) { .hamburger { display: none; } }
.hamburger .icon-x { display: none; }
.hamburger[aria-expanded="true"] .icon-menu { display: none; }
.hamburger[aria-expanded="true"] .icon-x { display: block; }

.mobile-drawer {
  position: fixed; inset: 0; z-index: 150;
  background: var(--forest-dark);
  display: flex; flex-direction: column;
  padding: 24px 24px 40px;
  transform: translateX(100%);
  transition: transform .25s ease;
  visibility: hidden;
}
.mobile-drawer.is-open { transform: translateX(0); visibility: visible; }
.mobile-drawer-top { display: flex; justify-content: flex-end; margin-bottom: var(--space-7); }
.mobile-drawer-close {
  width: 44px; height: 44px; border-radius: 8px; border: 1px solid rgba(238,240,230,.25);
  background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.mobile-drawer nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mobile-drawer nav a {
  font-family: var(--font-serif); font-size: 1.6rem; padding: 14px 4px; color: var(--ink);
  border-bottom: 1px solid rgba(238,240,230,.08); min-height: 44px; display: flex; align-items: center;
}
.mobile-drawer nav a.active { color: var(--gold); }
.mobile-drawer .btn { margin-top: var(--space-6); align-self: flex-start; }
@media (min-width: 1024px) { .mobile-drawer { display: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; }
.hero-grid {
  display: grid; gap: var(--space-7); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr .95fr; min-height: 560px; } }
.hero-copy { padding: var(--space-8) 0 var(--space-6); }
@media (min-width: 1024px) { .hero-copy { padding: var(--space-9) 0; } }
.hero-copy .lede { max-width: 520px; margin: var(--space-5) 0 var(--space-6); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
@media (min-width: 1024px) { .hero-media { aspect-ratio: auto; min-height: 100%; } }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15,28,21,.15), rgba(15,28,21,.55));
}
@media (min-width: 1024px) {
  .hero-media::after { background: linear-gradient(to right, var(--forest) 0%, rgba(20,38,28,0) 18%); }
}
.hero-page { padding: var(--space-8) 0 var(--space-6); }
.hero-page h1 { max-width: 820px; margin-bottom: var(--space-5); }
.hero-page .lede { max-width: 680px; }
.hero-page-media { border-radius: var(--radius); overflow: hidden; }

/* Stat ribbon */
.stat-ribbon {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5);
  padding: var(--space-6) 0;
}
@media (min-width: 768px) { .stat-ribbon { grid-template-columns: repeat(4, 1fr); } }
.stat-item .stat-value { font-family: var(--font-serif); font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.75rem); font-weight: 600; color: var(--gold); line-height: 1; }
.stat-item .stat-label { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sage); margin-top: var(--space-2); }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-5 { grid-template-columns: repeat(5, 1fr); } }

.card {
  background: #fff; color: var(--text-on-cream); border-radius: var(--radius);
  padding: var(--space-6); box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .icon-badge {
  width: 46px; height: 46px; border-radius: 10px; background: var(--cream-3);
  display: flex; align-items: center; justify-content: center; color: var(--forest); margin-bottom: var(--space-4);
}
.card-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #2e5a3f; margin-bottom: var(--space-3); }
.card-dark { background: var(--forest); color: var(--ink); }
.card-dark .card-cta { color: var(--gold); font-family: var(--font-serif); font-size: 1.2rem; }

.stat-box { background: var(--forest); color: var(--ink); border-radius: 8px; padding: var(--space-5); }
.stat-box .stat-value { font-family: var(--font-serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); font-weight: 600; color: var(--gold); line-height: 1; }
.stat-box .stat-label { font-size: .76rem; color: var(--sage); margin-top: var(--space-2); }
.stat-box-alt { background: var(--forest-dark); }

/* Track record group */
.trg-card { background: var(--forest); color: var(--ink); border-radius: 8px; padding: var(--space-6); }
.trg-title { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: var(--gold); margin-bottom: var(--space-5); }
.trg-item + .trg-item { margin-top: var(--space-4); }
.trg-value { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 600; line-height: 1; }
.trg-label { font-size: .78rem; color: var(--sage); margin-top: 4px; }

/* ==========================================================================
   Testimonial / impact slider
   ========================================================================== */
.slider-wrap { position: relative; }
.slider {
  display: flex; gap: var(--space-5); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--space-3); scrollbar-width: thin;
}
.slider::-webkit-scrollbar { height: 8px; }
.slider::-webkit-scrollbar-thumb { background: #cdbfa0; border-radius: 4px; }
.slide-card {
  flex: 0 0 86%; scroll-snap-align: start; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; min-height: 340px;
}
@media (min-width: 640px) { .slide-card { flex: 0 0 480px; flex-direction: row; } }
.slide-photo { flex: 0 0 210px; overflow: hidden; }
.slide-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.slide-body { padding: var(--space-6); display: flex; flex-direction: column; flex: 1; color: var(--text-on-cream); }
.slide-quote { font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.5; color: #22302a; flex: 1; }
.slide-attrib { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid #e7e2d5; }
.slide-attrib .name { font-size: .95rem; font-weight: 700; color: var(--text-on-cream); }
.slide-attrib .role { font-size: .8rem; color: #6a7266; }

.sarrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--forest); color: var(--cream); font-size: 20px; cursor: pointer;
  display: none; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); z-index: 6;
}
.sarrow:hover { background: var(--gold); color: var(--forest); }
.sarrow-prev { left: -8px; } .sarrow-next { right: -8px; }
@media (min-width: 768px) { .sarrow { display: flex; } }

.testimonial-card {
  background: rgba(238,240,230,.05); border: 1px solid rgba(238,240,230,.12);
  border-radius: var(--radius); padding: var(--space-6); display: flex; flex-direction: column; min-height: 220px;
}
.testimonial-card .quote-mark { color: var(--gold); margin-bottom: var(--space-3); }
.testimonial-card .quote-text { font-family: var(--font-serif); font-size: 1rem; line-height: 1.55; color: var(--ink-soft); font-style: italic; flex: 1; }
.testimonial-card .attrib { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid rgba(238,240,230,.12); }
.testimonial-card .attrib .name { font-size: .9rem; font-weight: 700; color: var(--sage); }
.testimonial-card .attrib .org { font-size: .78rem; color: #7f8c7a; }

/* ==========================================================================
   Project rows / gallery
   ========================================================================== */
.project-row {
  display: grid; gap: var(--space-5); align-items: center;
  background: rgba(238,240,230,.05); border: 1px solid rgba(238,240,230,.1); border-radius: 8px; padding: var(--space-5);
  transition: background .15s;
}
.project-row:hover { background: rgba(238,240,230,.09); }
@media (min-width: 768px) { .project-row { grid-template-columns: 200px 1fr auto; } }
.project-row .thumb { height: 130px; border-radius: 6px; overflow: hidden; }
.project-row .thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; position: relative; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(10,15,12,.92);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: 6px; }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(238,240,230,.15); color: #fff; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(238,240,230,.15); color: #fff; cursor: pointer; font-size: 22px; }
.lightbox-prev { left: 16px; } .lightbox-next { right: 16px; }

/* Breadcrumbs */
.breadcrumbs { font-size: .82rem; color: var(--sage); margin-bottom: var(--space-5); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { margin: 0 8px; opacity: .5; }

/* Video grid */
.video-card { display: block; position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #000; }
.video-card img { width: 100%; height: 100%; object-fit: cover; }
.video-card .play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15,28,21,.25);
}
.video-card .play-btn { width: 60px; height: 60px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; color: #fff; }

/* Contact form */
.contact-form { background: #fff; color: var(--text-on-cream); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-lg); }
.form-row { display: grid; gap: var(--space-4); margin-bottom: var(--space-4); }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.form-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5c6558; margin-bottom: 7px; }
.form-control {
  width: 100%; border: 1px solid #d8d0bd; border-radius: 8px; padding: 12px 14px;
  font-size: .95rem; color: #1e2b22; background: #fbf9f3; min-height: 44px;
}
textarea.form-control { resize: vertical; }
.form-control:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.honeypot-field { position: absolute; left: -9999px; top: -9999px; }
.form-errors { color: var(--red); font-size: .85rem; margin-top: 6px; }
.alert { border-radius: 8px; padding: 14px 18px; font-size: .9rem; margin-bottom: var(--space-5); }
.alert-success { background: #e4f2e7; color: #1c4a2c; border: 1px solid #bfe0c8; }
.alert-error { background: #fbe6e3; color: #8a281f; border: 1px solid #f0bcb4; }

/* Partner logos / memberships */
.partner-logos { display: flex; justify-content: center; align-items: center; gap: var(--space-7); flex-wrap: wrap; }
.partner-logos img { height: 52px; width: auto; object-fit: contain; }
.membership-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.membership-badge {
  border: 1px solid #d8d0bd; border-radius: 100px; padding: 11px 22px; font-size: .85rem; font-weight: 600;
  color: #3a4038; background: #fbf9f3;
}

/* Footer */
.site-footer { background: var(--forest-dark); border-top: 1px solid rgba(238,240,230,.1); padding: var(--space-6) 0 var(--space-4); }
.footer-top { display: flex; flex-direction: column; gap: var(--space-5); justify-content: space-between; align-items: flex-start; padding-bottom: var(--space-5); }
@media (min-width: 768px) { .footer-top { flex-direction: row; align-items: center; } }
.footer-brand { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; }
.footer-brand span { color: var(--gold); }
.footer-tag { font-size: .82rem; color: var(--sage); margin-top: 4px; }
.footer-links { display: flex; gap: var(--space-6); font-size: .9rem; color: var(--ink-soft); flex-wrap: wrap; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(238,240,230,.2); display: flex; align-items: center; justify-content: center; }
.footer-bottom { font-size: .78rem; color: #6b7a67; padding-top: var(--space-4); border-top: 1px solid rgba(238,240,230,.08); }

/* Back to top */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: var(--forest); border: 0; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s; z-index: 90;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Team */
.team-card { background: #fff; border-radius: 12px; padding: 18px; box-shadow: var(--shadow-card); color: var(--text-on-cream); }
.team-card .photo { width: 100%; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.05rem; margin: 14px 0 4px; }
.team-card .role { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: #8a6a2c; font-weight: 700; }
.team-card .bio { font-size: .82rem; color: #5c5546; margin-top: 10px; }
.team-card .bio.placeholder { color: #8a8271; font-style: italic; }
.team-card .bio a { color: #0a66c2; font-weight: 700; }

.team-mini { text-align: center; }
.team-mini .photo { width: 100%; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; }
.team-mini .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-mini .name { font-size: .9rem; font-weight: 600; margin-top: 10px; color: #8a7c5e; }
.team-mini .role { font-size: .7rem; letter-spacing: .03em; text-transform: uppercase; color: #a99a7c; margin-top: 2px; }

/* Section header row */
.section-head { display: flex; flex-direction: column; gap: var(--space-2); justify-content: space-between; margin-bottom: var(--space-6); }
@media (min-width: 768px) { .section-head { flex-direction: row; align-items: flex-end; } }
.section-head .link-more { font-size: .875rem; font-weight: 600; color: var(--gold); white-space: nowrap; }

.split { display: grid; gap: var(--space-6); }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; } }
.border-accent { border-left: 3px solid var(--gold); padding-left: 22px; }

.divider { height: 1px; background: rgba(30,43,34,.15); margin: var(--space-6) 0; }
.divider-light { background: rgba(238,240,230,.15); }

.error-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--space-9) var(--space-5); }
.error-page .code { font-family: var(--font-serif); font-size: 5rem; color: var(--gold); }
