/* ============================================================
   Natural Care Clinic — shared styles (plain HTML/CSS/JS)
   ============================================================ */

/* Fonts — must be at the very top */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Newsreader:wght@400;500;600;700;800&display=swap');

:root {
  --primary-dark: #0d1a12;
  --brand-orange: #1f7a4d;
  --brand-orange-light: #6fbd8f;
  --brand-green: #14291c;
  --card-bg: #eef5ee;
  --text-gray: #5f7a6b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--primary-dark);
  color: #ffffff;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.font-display {
  letter-spacing: -0.02em;
}

/* ---------- Hero (from hero-new.html) ---------- */
/* Establish a stacking context on the hero section so its background image and
   overlay are painted ABOVE the section's own background colour instead of
   behind it (a section with z-index:auto + negative z-index children hides them). */
#top {
  position: relative;
  z-index: 0;
}

/* Hero background video — desktop only (hidden on mobile for a plain, compact background) */
.hero-bg {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background-color: #0d1a12;
  z-index: 1;
}

/* Dulls the left half of the hero video so the headline stays readable */
.hero-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(6, 19, 12, 0.98) 0%,
    rgba(6, 19, 12, 0.92) 48%,
    rgba(6, 19, 12, 0.55) 72%,
    rgba(6, 19, 12, 0) 100%
  );
}

@media (min-width: 768px) {
  .hero-bg {
    display: block;
  }
  .hero-overlay {
    display: block;
  }
}

.stat-bar-gradient {
  background: linear-gradient(to top, rgba(13, 26, 18, 1) 0%, rgba(13, 26, 18, 0.9) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Shared header ---------- */
/* Header always sits on a uni solid dark-green background — same tone as the footer */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: #0d1a12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease, border-color 0.2s ease, backdrop-filter 0.2s ease;
}

/* On section pages the header sits in normal flow (sticky) with the same solid background */
body.solid-header #site-header {
  position: sticky;
  background-color: #0d1a12;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* On the home page the header keeps the same solid background on scroll */
#site-header.scrolled {
  background-color: #0d1a12;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Video masonry ---------- */
.videos-masonry {
  columns: 1;
  column-gap: 1.5rem;
}
@media (min-width: 640px) {
  .videos-masonry {
    columns: 2;
  }
}
@media (min-width: 1024px) {
  .videos-masonry {
    columns: 3;
  }
}
.video-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}
.video-card video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background-color: #0d1a12;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
