/* ===== home.css — landing / about page (myapp/about.html) =====
   Page-specific styles for the marketing landing page: the video hero
   and the "five regions" panel. Loaded after style.css via {% block extra_css %}.
   Design tokens, buttons, cards, grid and typography stay in style.css. */

/* ===== HERO =====
   A looping background video (static/videos/hero-loop.mp4 — no poster image, by
   design) grounds the platform in the actual work volunteers do. Until its first
   frame paints, the hero is a plain solid brand navy (--hero-from, theme-aware)
   rather than a photo, so nothing flashes before the video. A gradient scrim in
   the brand colors sits over it so the headline stays legible in both themes;
   the "five peaks" mark lives in the footer and the regions panel. */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 82vh;
    display: grid;
    align-items: center;
    padding: clamp(2.2rem, 6vw, 5rem);
    background: var(--hero-from);
    color: var(--hero-ink);
}
.hero-photo {
    position: absolute;
    inset: 0;
    background: var(--hero-from);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    z-index: 0;
}
.hero::before {
    content: '';
    opacity: 0.3;
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        var(--hero-scrim),
        radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
    background-size: cover, 22px 22px;
    pointer-events: none;
}
.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    max-width: var(--container-lg);
    margin: 0 auto;
    width: 100%;
}
.hero-content { max-width: 640px; }
.hero .eyebrow { color: #c3d3ff; }
.hero h1 { color: white; }
/* The brand name opens the page's single <h1> (SEO: the name people search
   for) but is visually hidden, so the hero looks exactly as it did before the
   SEO pass; the <span> also carries .visually-hidden in about.html. */
/* On the dark hero the accent word stays white; only the teal underline reads. */
.hero h1 .h-accent { color: #fff; text-decoration-color: #6ee0d0; }
.hero p { color: var(--hero-ink-muted); font-size: 1.08rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.hero-actions .ghost { color: white; border-color: rgba(255,255,255,0.35); }
.hero-actions .ghost:hover { border-color: white; background: rgba(255,255,255,0.08); }
/* Primary CTA on the dark hero: a solid white pill with blue text for contrast. */
.hero-actions .primary { background: #fff; color: var(--primary); }
.hero-actions .primary:hover { background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,0.28); }
.hero-strip {
    position: relative;
    z-index: 2;
    max-width: var(--container-lg);
    margin: clamp(2rem, 5vw, 3.5rem) auto 0;
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255,255,255,0.14);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}
.hero-strip-label { color: var(--hero-ink-muted); font-size: 0.85rem; font-weight: 600; }
.region-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.region-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

/* ===== REGIONS PANEL (about page) ===== */
.regions-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: var(--space-5);
    box-shadow: var(--shadow);
}
.regions-photo {
    width: 100%;
    /* height:auto — the <img> width/height attributes (kept for layout-shift
       hints) would otherwise act as a fixed pixel height and override aspect-ratio. */
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: var(--space-4);
}
.regions-panel .peaks-mark { width: 96px; margin-bottom: var(--space-4); }
.volunteers-photo {
    width: 100%;
    /* height:auto — the <img> width/height attributes (kept for layout-shift
       hints) would otherwise act as a fixed pixel height and override aspect-ratio. */
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 16px;
    box-shadow: var(--shadow);
}
/* Five equal region cards. grid-auto-rows: 1fr + auto-fit means every card is
   exactly the same size regardless of the label length or how many fit per row. */
.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    grid-auto-rows: 1fr;
    gap: var(--space-3);
}
.region-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: var(--surface);
    font-weight: 600;
    font-size: 0.92rem;
}
.region-card .peak-dot { width: 0.6rem; height: 0.6rem; border-radius: 2px; flex-shrink: 0; }

/* ===== STATS BAND (about page) =====
   The gradient-blue block: full container width, rounded-2xl, a white serif
   heading over four number plates on a translucent overlay. */
.stats-band {
    background: var(--stats-gradient);
    border-radius: 16px;
    padding: clamp(1.75rem, 4vw, 3rem);
    color: #fff;
}
.stats-band h2 { color: #fff; margin-bottom: var(--space-5); }
.stats-band .eyebrow { color: rgba(255,255,255,0.72); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: var(--space-4);
}
.stat-plate {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 16px;
    padding: var(--space-5);
}
.stat-plate .metric { display: block; color: #fff; font-size: 2.1rem; line-height: 1.1; }
.stat-plate span:not(.metric) {
    display: block;
    margin-top: var(--space-2);
    color: rgba(255,255,255,0.82);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== CTA BAND (about page, before footer) =====
   A pale-blue full-bleed section: centered heading + subhead, then two soft
   action plates (icon tile, heading, text, pill button). */
.cta-band {
    background: var(--cta-bg);
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 5vw, 3.5rem);
}
.cta-inner { max-width: var(--container-md); margin: 0 auto; text-align: center; }
.cta-inner > p { margin: 0 auto var(--space-6); max-width: 36rem; }
.cta-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
    text-align: left;
}
.cta-actions .card { display: flex; flex-direction: column; }
.cta-actions .card .button { margin-top: auto; align-self: flex-start; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
    .hero-photo { object-position: center 20%; }
}
@media (max-width: 480px) {
    .hero-strip { flex-direction: column; align-items: flex-start; }
}
