/* ==========================================================================
   Encore components. Each block starts with a usage comment.
   Colors come from tokens.css only. Page-specific CSS belongs in
   public/css/pages/<page>.css, not here — add a component here only when
   two or more pages share it.
   ========================================================================== */

/* --------------------------------------------------------------------------
   SECTIONS — separate content by alternating backgrounds, not borders.
     <section class="section">              page background (green-tinted off-white)
     <section class="section section-sage"> pale sage
     <section class="section section-green">green gradient band, white text
     <section class="section section-navy"> navy, white text
     <section class="section section-photo" style="<%= bg_style('/img/photos/x.webp') %>">
                                             full-bleed photo + dark overlay, white text;
                                             add .is-parallax for fixed bg on desktop
     .section-tight   smaller vertical padding     .section-flush-top  no top padding
   -------------------------------------------------------------------------- */
.section { padding: var(--section-pad) 0; position: relative; }
.section-tight { padding: var(--section-pad-sm) 0; }
.section-flush-top { padding-top: 0; }
.section-flush-bottom { padding-bottom: 0; }
.section-sage { background-color: var(--surface-sage); }
.section-white { background-color: var(--surface-card); }

.section-green, .section-navy, .section-photo, .cta-band, .page-hero, .hero {
  --section-heading-color: var(--white);
  color: var(--color-text-on-dark-muted);
}
.section-green { background: var(--gradient-green-band); }
.section-navy { background: var(--brand-navy); }
.section-photo {
  background-color: var(--brand-grass-green);
  background-image: var(--overlay-photo), var(--bg-image, none), var(--gradient-green-band);
  background-size: cover; background-position: center;
}
@media (min-width: 992px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .section-photo.is-parallax { background-attachment: scroll, fixed, scroll; }
}
:is(.section-green, .section-navy, .section-photo, .cta-band, .page-hero, .hero) :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4) { color: var(--white); }
:is(.section-green, .section-navy, .section-photo, .cta-band, .page-hero, .hero) a:not(.btn) { color: var(--white); }
:is(.section-green, .section-navy, .section-photo, .cta-band, .page-hero, .hero) a:not(.btn):hover { color: var(--brand-lime); }

/* --------------------------------------------------------------------------
   EYEBROW — small uppercase pill above a heading.
     <span class="eyebrow">Our Services</span>
   Automatically switches to the white-tint variant on dark sections;
   force it with .eyebrow-light.
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: var(--fs-eyebrow); font-weight: var(--fw-medium);
  text-transform: uppercase; letter-spacing: var(--ls-eyebrow); line-height: 1;
  padding: .55em 1.1em; border-radius: var(--radius-eyebrow);
  background: var(--surface-green-tint); color: var(--color-primary);
  margin-bottom: 1.25rem;
}
.eyebrow .bi { font-size: 1.05em; }
.eyebrow-light,
:is(.section-green, .section-navy, .section-photo, .cta-band, .page-hero, .hero) .eyebrow {
  background: var(--surface-white-tint); color: var(--white);
}

/* --------------------------------------------------------------------------
   TWO-TONE HEADING — last word(s) in green.
     <h2>Rooted in <span class="accent">Service</span></h2>
   Light bg: grass green. Navy/photo: summer green. Green band: lime (contrast).
   -------------------------------------------------------------------------- */
.accent { color: var(--color-primary); }
:is(.section-navy, .section-photo, .page-hero, .hero, .cta-band) .accent { color: var(--brand-summer-green); }
.section-green .accent { color: var(--brand-lime); }

/* --------------------------------------------------------------------------
   SECTION HEADING — eyebrow + heading + lead (views/partials/_section_heading.erb)
     .section-heading            left aligned, max ~720px
     .section-heading--center    centered
   -------------------------------------------------------------------------- */
.section-heading { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-heading--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading h2 { margin-bottom: .5em; }
.section-heading .lead-text { color: var(--color-text-muted); margin-bottom: 0; }
:is(.section-green, .section-navy, .section-photo, .cta-band) .section-heading .lead-text { color: var(--color-text-on-dark-muted); }

/* --------------------------------------------------------------------------
   BUTTONS — pill, uppercase, letter-spaced. Combine with Bootstrap's .btn.
     <a class="btn btn-encore" href="/contact">Get a Quote</a>         solid green
     <a class="btn btn-encore-outline" href="...">Learn More</a>       green outline (light bg)
     <a class="btn btn-encore-outline-light" href="...">Contact</a>    white outline (dark/photo bg)
     <a class="btn btn-encore-navy" href="...">Careers</a>             solid navy
     <a class="btn btn-encore-light" href="...">...</a>                solid white (dark bg)
   Sizes: .btn-encore-sm / .btn-encore-lg. Icons: <i class="bi bi-arrow-right" aria-hidden="true"></i>
   -------------------------------------------------------------------------- */
.btn-encore, .btn-encore-outline, .btn-encore-outline-light, .btn-encore-navy, .btn-encore-light {
  --bs-btn-padding-x: 1.75rem;
  --bs-btn-padding-y: .85rem;
  --bs-btn-font-size: .8125rem;
  --bs-btn-font-weight: var(--fw-semibold);
  --bs-btn-border-radius: var(--radius-pill);
  --bs-btn-border-width: 2px;
  --bs-btn-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color);
  text-transform: uppercase; letter-spacing: var(--ls-button); line-height: 1.2; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast),
              box-shadow var(--dur) var(--ease-out), transform var(--dur-fast);
}
.btn-encore .bi, .btn-encore-outline .bi, .btn-encore-outline-light .bi, .btn-encore-navy .bi, .btn-encore-light .bi { font-size: 1.1em; transition: transform var(--dur-fast); }
.btn-encore:hover .bi-arrow-right, .btn-encore-outline:hover .bi-arrow-right,
.btn-encore-outline-light:hover .bi-arrow-right, .btn-encore-navy:hover .bi-arrow-right { transform: translateX(3px); }

.btn-encore {
  --bs-btn-color: var(--white); --bs-btn-bg: var(--brand-grass-green); --bs-btn-border-color: var(--brand-grass-green);
  --bs-btn-hover-color: var(--white); --bs-btn-hover-bg: var(--brand-deep-green); --bs-btn-hover-border-color: var(--brand-deep-green);
  --bs-btn-active-color: var(--white); --bs-btn-active-bg: var(--brand-deep-green); --bs-btn-active-border-color: var(--brand-deep-green);
}
.btn-encore:hover { box-shadow: var(--shadow-glow); }

.btn-encore-outline {
  --bs-btn-color: var(--brand-grass-green); --bs-btn-bg: transparent; --bs-btn-border-color: var(--brand-grass-green);
  --bs-btn-hover-color: var(--white); --bs-btn-hover-bg: var(--brand-grass-green); --bs-btn-hover-border-color: var(--brand-grass-green);
  --bs-btn-active-color: var(--white); --bs-btn-active-bg: var(--brand-deep-green); --bs-btn-active-border-color: var(--brand-deep-green);
}

.btn-encore-outline-light {
  --bs-btn-color: var(--white); --bs-btn-bg: transparent; --bs-btn-border-color: var(--white);
  --bs-btn-hover-color: var(--brand-navy); --bs-btn-hover-bg: var(--white); --bs-btn-hover-border-color: var(--white);
  --bs-btn-active-color: var(--brand-navy); --bs-btn-active-bg: var(--white); --bs-btn-active-border-color: var(--white);
}

.btn-encore-navy {
  --bs-btn-color: var(--white); --bs-btn-bg: var(--brand-navy); --bs-btn-border-color: var(--brand-navy);
  --bs-btn-hover-color: var(--white); --bs-btn-hover-bg: var(--brand-grass-green); --bs-btn-hover-border-color: var(--brand-grass-green);
  --bs-btn-active-color: var(--white); --bs-btn-active-bg: var(--brand-deep-green); --bs-btn-active-border-color: var(--brand-deep-green);
}

.btn-encore-light {
  --bs-btn-color: var(--brand-navy); --bs-btn-bg: var(--white); --bs-btn-border-color: var(--white);
  --bs-btn-hover-color: var(--white); --bs-btn-hover-bg: var(--brand-grass-green); --bs-btn-hover-border-color: var(--brand-grass-green);
  --bs-btn-active-color: var(--white); --bs-btn-active-bg: var(--brand-deep-green); --bs-btn-active-border-color: var(--brand-deep-green);
}

.btn-encore-sm { --bs-btn-padding-x: 1.25rem; --bs-btn-padding-y: .6rem; --bs-btn-font-size: .75rem; }
.btn-encore-lg { --bs-btn-padding-x: 2.25rem; --bs-btn-padding-y: 1.05rem; --bs-btn-font-size: .875rem; }

/* Text link with arrow:  <a class="link-arrow" href="...">View service <i class="bi bi-arrow-right" aria-hidden="true"></i></a> */
.link-arrow {
  display: inline-flex; align-items: center; gap: .45em; text-decoration: none;
  font-size: .8125rem; font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-button);
}
.link-arrow .bi { transition: transform var(--dur-fast); }
.link-arrow:hover .bi { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   CARDS
     <div class="card-soft">...</div>     white card, 8px radius, very soft shadow
     <div class="glass-card">...</div>    frosted glass on photos/dark bands, white text
   -------------------------------------------------------------------------- */
.card-soft {
  background: var(--surface-card); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-soft); height: 100%;
}
.glass-card {
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius); color: var(--white);
  padding: 1.5rem 1.75rem;
}
.glass-card :is(h2, h3, h4, p, a:not(.btn)) { color: var(--white); }
.glass-card p:last-child { margin-bottom: 0; }

/* Round icon badge:  <span class="icon-badge"><i class="bi bi-telephone" aria-hidden="true"></i></span>
     .icon-badge--accent  summer-green disc with a navy icon (values lists on navy bands)
     .icon-badge--sm      40px */
.icon-badge {
  width: 56px; height: 56px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: var(--surface-green-tint); color: var(--color-primary); font-size: 1.5rem;
}
:is(.section-green, .section-navy, .section-photo, .hero, .page-hero, .cta-band, .glass-card) .icon-badge { background: var(--surface-white-tint); color: var(--white); }
.icon-badge.icon-badge--accent { background: var(--brand-summer-green); color: var(--brand-navy); }
.icon-badge--sm { width: 40px; height: 40px; font-size: 1.1rem; }

/* Translucent tile for navy/green/photo bands (steps, values):  <div class="tile-on-dark">...</div> */
.tile-on-dark { background: var(--surface-white-tint); border: 1px solid var(--divider-on-dark); border-radius: var(--radius); }

/* Big faded step number, top-right of a position:relative card:
     <span class="step-num" aria-hidden="true">01</span>
   Sage on light cards; summer green (faded) on dark bands. */
.step-num {
  position: absolute; top: 1.25rem; right: 1.5rem;
  font-size: 2.5rem; font-weight: var(--fw-bold); line-height: 1; color: var(--surface-sage);
  font-variant-numeric: tabular-nums;
}
:is(.section-green, .section-navy, .section-photo) .step-num { color: var(--brand-summer-green); opacity: .55; }

/* Chips: small pills listing tags/offerings.
     <ul class="chips"><li>BOMA</li>...</ul>            green tint
     <ul class="chips chips--division" ...>              tinted with the closest [data-division] color */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.chips > li {
  font-size: .75rem; font-weight: var(--fw-medium); letter-spacing: .03em; line-height: 1;
  padding: .45em .85em; border-radius: var(--radius-pill);
  background: var(--surface-green-tint); color: var(--color-primary);
}
.chips--division > li {
  background: color-mix(in srgb, var(--division-color, var(--color-primary)) 18%, transparent);
  color: var(--color-heading);
}

/* --------------------------------------------------------------------------
   IMAGE FALLBACK — rendered by img_tag when the file does not exist yet.
   A calm green gradient block instead of a broken image.
   -------------------------------------------------------------------------- */
.img-fallback {
  display: block; width: 100%; min-height: 160px;
  background: var(--gradient-green); border-radius: inherit;
}
img.img-cover, .img-fallback.img-cover { width: 100%; height: 100%; object-fit: cover; }
.img-rounded { border-radius: var(--radius); }

/* --------------------------------------------------------------------------
   PHOTO CARD — image with hover reveal (views/partials/_photo_card.erb)
     image scales 1.06, green overlay fades in, title slides up.
     <a class="photo-card" href="..."> <div class="photo-card__media">img</div>
        <div class="photo-card__body"><span class="photo-card__meta">Phoenix</span>
        <h3 class="photo-card__title">Title</h3></div> </a>
   Modifiers: .photo-card--tall (4:5) / .photo-card--wide (16:9); default 4:3.
   -------------------------------------------------------------------------- */
.photo-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background: var(--gradient-green); color: var(--white); text-decoration: none;
  isolation: isolate;
}
.photo-card--tall { aspect-ratio: 4 / 5; }
.photo-card--wide { aspect-ratio: 16 / 9; }
.photo-card__media, .photo-card__media > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo-card__media img, .photo-card__media .img-fallback {
  object-fit: cover; border-radius: 0; min-height: 0;
  transition: transform var(--dur-slow) var(--ease-out);
}
.photo-card::before { /* constant bottom shade so the title is always legible */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--overlay-card-shade);
}
.photo-card::after { /* green hover overlay */
  content: ""; position: absolute; inset: 0; z-index: 1; background: var(--overlay-green);
  opacity: 0; transition: opacity var(--dur) var(--ease-out);
}
.photo-card__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.5rem;
  transform: translateY(12px); transition: transform var(--dur) var(--ease-out);
}
.photo-card__meta {
  display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: var(--ls-eyebrow);
  color: var(--brand-lime); margin-bottom: .35rem; font-weight: var(--fw-medium);
}
.photo-card__title { color: var(--white); font-size: 1.25rem; margin: 0; text-transform: uppercase; line-height: 1.15; }
.photo-card__more {
  display: inline-flex; align-items: center; gap: .4em; margin-top: .6rem;
  font-size: .75rem; text-transform: uppercase; letter-spacing: var(--ls-button); font-weight: var(--fw-semibold);
  opacity: 0; transition: opacity var(--dur) var(--ease-out);
}
.photo-card:hover .photo-card__media img, .photo-card:focus-visible .photo-card__media img,
.photo-card:hover .photo-card__media .img-fallback { transform: scale(1.06); }
.photo-card:hover::after, .photo-card:focus-visible::after { opacity: 1; }
.photo-card:hover .photo-card__body, .photo-card:focus-visible .photo-card__body { transform: translateY(0); }
.photo-card:hover .photo-card__more, .photo-card:focus-visible .photo-card__more { opacity: 1; }
.photo-card:hover, .photo-card:focus-visible { color: var(--white); }

/* --------------------------------------------------------------------------
   STAT TILE — big number + label. Animate with data-count-to (site.js).
     <div class="stat-tile">
       <span class="stat-tile__value" data-count-to="600" data-count-suffix="+">600+</span>
       <span class="stat-tile__label">Team members</span></div>
   Put the FINAL value in the markup (no-JS / reduced-motion show it as-is).
   -------------------------------------------------------------------------- */
.stat-tile { display: flex; flex-direction: column; gap: .35rem; padding: 1.5rem 0; }
.stat-tile__value {
  font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: var(--fw-bold); line-height: 1;
  color: var(--color-heading); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.stat-tile__label { font-size: .8125rem; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--color-text-muted); font-weight: var(--fw-medium); }
:is(.section-green, .section-navy, .section-photo) .stat-tile__value { color: var(--white); }
:is(.section-green, .section-navy, .section-photo) .stat-tile__label { color: var(--color-text-on-dark-muted); }

/* --------------------------------------------------------------------------
   DIVISION COLORS — set --division-color from a division key, on ANY element:
     <div class="division-tile" data-division="irrigation">
   Keys: maintenance | arbor | enhancements | irrigation | plant-health
   Division colors are ACCENTS ONLY (bars, icons, dots) — never text or big fills.
   -------------------------------------------------------------------------- */
[data-division="maintenance"] { --division-color: var(--division-maintenance); }
[data-division="arbor"] { --division-color: var(--division-arbor); }
[data-division="enhancements"] { --division-color: var(--division-enhancements); }
[data-division="irrigation"] { --division-color: var(--division-irrigation); }
[data-division="plant-health"] { --division-color: var(--division-plant-health); }

/* DIVISION TILE — icon + name + accent bar (views/partials/_division_tile.erb) */
.division-tile {
  position: relative; display: flex; flex-direction: column; gap: 1rem; height: 100%;
  background: var(--surface-card); border-radius: var(--radius); padding: 2rem 1.75rem 1.75rem;
  color: var(--color-text); text-decoration: none; overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.division-tile::before { /* accent bar */
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  background: var(--division-color, var(--color-primary));
  transform-origin: left; transition: height var(--dur) var(--ease-out);
}
.division-tile__icon {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.6rem; color: var(--color-heading);
  background: color-mix(in srgb, var(--division-color, var(--color-primary)) 22%, transparent);
}
.division-tile__icon img, .division-tile__icon svg { width: 34px; height: 34px; object-fit: contain; }
.division-tile__label { font-size: .75rem; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--color-text-muted); font-weight: var(--fw-medium); }
.division-tile__name { font-size: 1.25rem; margin: 0; text-transform: uppercase; color: var(--color-heading); }
.division-tile__summary { margin: 0; color: var(--color-text-muted); font-size: .9688rem; line-height: 1.6; }
.division-tile .link-arrow { margin-top: auto; }
a.division-tile:hover, a.division-tile:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-soft); color: var(--color-text); }
a.division-tile:hover::before { height: 6px; }

/* Division label pill:  <span class="division-label" data-division="arbor">Arbor Division</span> */
.division-label {
  display: inline-flex; align-items: center; gap: .5em; font-size: .75rem; font-weight: var(--fw-medium);
  text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--color-heading);
}
.division-label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--division-color, var(--color-primary)); }

/* --------------------------------------------------------------------------
   CTA BAND — blue gradient call-to-action (views/partials/_cta_band.erb)
     Full width by default; .cta-band--inset for a rounded box inside a container.
     White uppercase heading + white OUTLINED pill button (brand guide).
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--gradient-blue-band); color: var(--color-text-on-dark-muted);
  padding: clamp(64px, 8vw, 110px) 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band--inset { border-radius: var(--radius-lg); padding: clamp(48px, 6vw, 80px) var(--gutter); }
.cta-band h2 { max-width: 900px; margin: 0 auto .5em; }
.cta-band p { max-width: 640px; margin: 0 auto 2rem; font-size: var(--fs-lead); font-weight: var(--fw-light); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* --------------------------------------------------------------------------
   MARQUEE — slow infinite horizontal scroll of uppercase words.
     <div class="marquee" aria-label="Our services">
       <div class="marquee__track">
         <ul class="marquee__group"> <li class="marquee__item">Maintenance</li> ... </ul>
         <ul class="marquee__group" aria-hidden="true"> ...same items... </ul>
       </div></div>
   Pauses on hover; static under prefers-reduced-motion. --marquee-duration controls speed.
   -------------------------------------------------------------------------- */
.marquee { overflow: hidden; padding: 1.75rem 0; background: var(--surface-sage); user-select: none; }
.marquee__track { display: flex; width: max-content; animation: marquee-scroll var(--marquee-duration) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex: none; align-items: center; list-style: none; margin: 0; padding: 0; }
.marquee__item {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: clamp(1.5rem, 3.2vw, 2.75rem); font-weight: var(--fw-bold); text-transform: uppercase;
  color: var(--color-heading); line-height: 1; padding: 0 1.25rem;
}
.marquee__item::after { content: "\2726"; color: var(--brand-summer-green); font-size: .5em; margin-left: 2.5rem; }
.marquee--outline .marquee__item { color: transparent; -webkit-text-stroke: 1.5px var(--color-heading); }
.marquee--dark { background: var(--brand-navy); }
.marquee--dark .marquee__item { color: var(--white); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee__group[aria-hidden="true"] { display: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; }
}

/* --------------------------------------------------------------------------
   PAGE HERO — interior page banner (views/partials/_page_hero.erb)
     photo bg + overlay, breadcrumb pill, big uppercase white h1, ~45vh.
     Missing photo -> green gradient. Adds body.has-hero (transparent header).
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: max(45vh, 360px);
  padding: calc(var(--header-height) + 3rem) 0 clamp(48px, 6vw, 80px);
  background-color: var(--brand-grass-green);
  background-image: var(--overlay-page-hero-narrow), var(--bg-image, none), var(--gradient-green-band);
  background-size: cover; background-position: center;
}
@media (min-width: 768px) { .page-hero { background-image: var(--overlay-page-hero), var(--bg-image, none), var(--gradient-green-band); } }
@media (min-width: 1200px) { .page-hero { padding-top: calc(var(--topbar-height) + var(--header-height) + 3rem); } }
.page-hero h1 { margin: 0; max-width: 18ch; text-wrap: balance; }
.page-hero__lead { max-width: 640px; margin: 1.25rem 0 0; font-size: var(--fs-lead); font-weight: var(--fw-light); color: var(--white); }

.breadcrumb-pill {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  list-style: none; margin: 0 0 1.25rem; padding: .5rem 1.1rem; border-radius: var(--radius-pill);
  background: var(--surface-glass); border: 1px solid var(--surface-glass-border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .8125rem; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); font-weight: var(--fw-medium);
}
.breadcrumb-pill li { color: var(--white); display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumb-pill li + li::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: .7em; opacity: .7; }
.breadcrumb-pill a { color: var(--color-text-on-dark-muted) !important; text-decoration: none; }
.breadcrumb-pill a:hover { color: var(--white) !important; }

/* --------------------------------------------------------------------------
   HERO — home page full-screen slider (views/partials/_hero.erb)
     2–4 background slides crossfade every ~6s (site.js, data-hero-interval in ms).
     Dark overlay, left-aligned uppercase h1, lead, buttons, glass card bottom-left.
     Missing photos -> green gradient. Adds body.has-hero.
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: var(--gradient-green-band); overflow: hidden; isolation: isolate;
}
.hero__slides { position: absolute; inset: 0; z-index: -2; margin: 0; padding: 0; list-style: none; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0;
  background-image: var(--bg-image, none); background-size: cover; background-position: center;
  transform: scale(1.06);
  transition: opacity var(--hero-fade) ease-in-out, transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--overlay-hero-narrow); }
@media (min-width: 768px) { .hero::before { background: var(--overlay-hero); } }
.hero__inner {
  flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-top: calc(var(--header-height) + 2rem); padding-bottom: 2rem;
}
@media (min-width: 1200px) { .hero__inner { padding-top: calc(var(--topbar-height) + var(--header-height) + 2rem); } }
.hero__title { font-size: clamp(2.75rem, 6.4vw, 5.5rem); line-height: 1.02; max-width: 14ch; margin-bottom: 1.5rem; text-wrap: balance; text-shadow: 0 2px 24px rgba(var(--overlay-ink), .35); }
/* Over a busy photo summer green drops under 3:1; lime keeps the two-tone look at AA-large. */
.hero__title .accent { color: var(--brand-lime); }
.hero__lead { max-width: 560px; font-size: var(--fs-lead); font-weight: var(--fw-regular); color: var(--white); margin-bottom: 2.25rem; text-shadow: 0 1px 12px rgba(var(--overlay-ink), .45); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__footer { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; padding-bottom: clamp(24px, 4vw, 48px); }
.hero__glass { max-width: 380px; }
.hero__glass .stat-tile__value { font-size: 2.5rem; }
.hero__dots { display: flex; gap: .6rem; }
.hero__dot {
  /* 24px-tall hit area; background-clip draws only the 4px bar in the middle. */
  width: 34px; height: 24px; border: 0; padding: 10px 0; border-radius: 4px;
  background: rgba(255, 255, 255, .4); background-clip: content-box;
  cursor: pointer; transition: background-color var(--dur-fast), width var(--dur);
}
.hero__dot[aria-current="true"] { background-color: var(--white); width: 54px; }
@media (max-width: 575.98px) { .hero__glass { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; transform: none; }
}

/* --------------------------------------------------------------------------
   REVEAL ON SCROLL — <div data-reveal> ... </div>, optional data-reveal-delay="150" (ms)
   Hidden only when JS is running (html.js-reveal, set by /js/early.js) and motion is OK.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] {
    opacity: 0; transform: translateY(28px);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js-reveal [data-reveal="fade"] { transform: none; }
  .js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   MISC
   -------------------------------------------------------------------------- */
/* Checklist: <ul class="list-check"><li>...</li></ul> */
.list-check { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.list-check li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
.list-check li::before {
  content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0;
  color: var(--color-primary); font-size: 1.15em;
}
:is(.section-green, .section-navy, .section-photo) .list-check li::before { color: var(--brand-lime); }

/* Placeholder note used by the stub pages until content lands. */
.coming-soon { text-align: center; color: var(--color-text-muted); }
