/* ============================================================
   805 PT — FRONT-RUNNER (chosen direction)
   Concept 1's layout & structure  +  Concept 2's full palette,
   fonts, and darker hero/nav treatment.
   Loads AFTER styles.css and only adds the .site--front theme
   plus the dark hero treatment for the portrait layout.
   ============================================================ */

/* Slim "chosen direction" ribbon above the live homepage preview */
.fr-ribbon {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: #0b1014; color: #fff;
  font-size: .82rem; font-weight: 600; letter-spacing: .03em;
  padding: .55rem 1rem; text-align: center;
}
.fr-ribbon b { color: #5eead4; font-weight: 800; }
.fr-ribbon .fr-dot { color: #5eead4; }

/* ---- Concept 2's COMPLETE palette (the slate scheme), applied as .site--front ---- */
.site--front {
  /* DESIGN REFRESH — warm off-white page, white cards, slate ink, teal anchor + coral 2nd accent */
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f1ece4;
  --fg: #1f2937;
  --muted: #6b7280;
  --border: #ece5da;
  --accent: #0d9488;
  --accent-strong: #0f766e;
  --accent-soft: #d6f0ec;
  --accent-ink: #ffffff;
  --accent-bright: #5eead4;
  --accent-shadow: rgba(13, 148, 136, .5);
  --accent-2: #e07856;          /* sunrise-coral — sparing, decorative highlights only */
  --accent-2-soft: #fbe7df;
  --shadow-card: 0 1px 2px rgba(31, 41, 55, .04), 0 8px 20px -12px rgba(31, 41, 55, .16);
  --shadow-card-hover: 0 14px 34px -16px rgba(31, 41, 55, .30);
  --star: #f6b73c;
  /* Concept 2 used Inter for headings + body — same family, kept explicit */
  --font-head: "Inter", system-ui, sans-serif;
}

/* ---- Concept 2's dark header bar, merging into the dark hero ---- */
.site--front .site-nav--onhero {
  background: #0b1014;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site--front .site-nav--onhero .brand,
.site--front .site-nav--onhero .site-nav__links a { color: #fff; }
.site--front .site-nav--onhero .site-nav__links a:hover { color: var(--accent-bright); }
.site--front .site-nav--onhero .brand__mark { background: rgba(255, 255, 255, .16); color: #fff; }
.site--front .site-nav--onhero .brand__suffix { color: rgba(255, 255, 255, .72); }
/* Real logo image (replaces the placeholder mark + text wordmark) */
.brand__logo { display: block; width: auto; height: auto; max-width: 100%; }
/* Header: the FULL white logo, scaled to fit the bar — nothing clipped (pelican + "805" + wordmark all visible). */
.site-nav .brand__logo { height: 74px; max-height: none; width: auto; }
.site-footer .brand__logo { max-height: 50px; }
/* Mobile menu on the dark header */
.site--front .site-nav--onhero .nav-toggle { color: #fff; }
.site--front .site-nav--onhero .nav-toggle:hover { background: rgba(255, 255, 255, .12); }
@media (max-width: 859.98px) {
  .site--front .site-nav--onhero .site-nav__links.is-open { background: #0b1014; border-bottom-color: rgba(255, 255, 255, .12); }
  .site--front .site-nav--onhero .site-nav__links.is-open a:not(.btn) { color: #fff; border-bottom-color: rgba(255, 255, 255, .12); }
  .site--front .site-nav--onhero .site-nav__links.is-open a:not(.btn):hover { color: var(--accent-bright); }
}

/* ---- Concept 1's PORTRAIT hero, given Concept 2's DARK treatment ---- */
.site--front .hero--portrait {
  background: linear-gradient(165deg, #0b1a24 0%, #102633 100%);
  color: #fff;
}
.site--front .hero--portrait .eyebrow { color: var(--accent-bright); }
.site--front .hero--portrait h1 { color: #fff; }
.site--front .hero--portrait .hero__sub { color: rgba(255, 255, 255, .85); }
.site--front .hero--portrait .trust li { color: #fff; }
.site--front .hero--portrait .trust .ic--check { color: var(--accent-bright); }
.site--front .hero--portrait .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.site--front .hero--portrait .btn--ghost:hover { background: rgba(255, 255, 255, .12); }
/* Practitioner credential block — name prominent, credentials in a refined accent treatment, thin accent rule */
.site--front .hero--portrait .hero__by { margin: 1.6rem 0 1.9rem; padding-left: 1rem; border-left: 3px solid var(--accent-bright); }
.site--front .hero--portrait .hero__by__pre { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.site--front .hero--portrait .hero__by__name { display: block; font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.15; margin-top: .12rem; }
.site--front .hero--portrait .hero__by__creds { display: block; margin-top: .3rem; font-size: .82rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-bright); }
@media (max-width: 600px) { .site--front .hero--portrait .hero__by__name { font-size: 1.4rem; } }
/* Services page — soft cash-pay pricing reassurance under the rates head */
.rates-note { display: inline-flex; align-items: flex-start; gap: .5rem; margin: .9rem 0 0; color: var(--accent); font-weight: 600; font-size: .98rem; }
.rates-note .ic { width: 18px; height: 18px; color: var(--accent); flex: none; }
/* Contact form — chip helper + soft-cap hint */
.reqform__hint { margin: .55rem 0 0; font-size: .85rem; color: var(--muted); }
.reqform__hint--cap { color: var(--accent); font-weight: 600; }

/* dark photo placeholder so the portrait spot sits naturally on the dark hero */
.site--front .hero--portrait .photo {
  background-color: #1c2c38;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 10px, transparent 10px 20px);
  border-color: #34464f;
  color: #aab8c1;
}

/* ===================== MULTI-PAGE-ADDITIONS ===================== */
.site--front .pagehead { background: linear-gradient(165deg, #0b1a24 0%, #102633 100%); color: #fff; padding: clamp(1.6rem, 3.5vw, 2.5rem) 0 clamp(1.4rem, 3vw, 2rem); }
.site--front .pagehead .eyebrow { color: var(--accent-bright); }
.site--front .pagehead h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: .2rem 0 .6rem; }
.site--front .pagehead__lede { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 62ch; margin: 0; }
/* Pagehead brand logo (inner pages): big white lockup on the right of the dark banner; hidden on phones. */
.pagehead__logo { display: none; }
@media (min-width: 760px) {
  .pagehead__inner { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; }
  .pagehead__text { flex: 1 1 auto; min-width: 0; }
  .pagehead__logo { display: block; flex: none; height: clamp(72px, 9vw, 108px); width: auto; max-width: 40%; }
}
/* Inner-page feature hero (About/Services/Programs/Contact/Privacy/404): larger centered brand lockup on the right,
   heading text left. min-height keeps every hero a consistent banner height (= the logo); align-items:center
   vertically centers the content so the logo never floats at the top of a taller (long-heading) banner. */
@media (min-width: 760px) {
  .pagehead--feature .pagehead__inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2.5rem; min-height: clamp(130px, 15vw, 180px); }
  .pagehead--feature .pagehead__logo { justify-self: center; height: clamp(130px, 15vw, 180px); max-width: 100%; }
}
.site--front .site-nav--onhero .site-nav__links a[aria-current="page"] { color: var(--accent-bright); }
/* About bio: the portrait sits beside the intro + trust list, vertically centered against that block; the rest of the bio flows full-width below. */
.about-bio { max-width: 900px; margin: 0 auto; }
.about-lead { display: flex; align-items: center; gap: 1.6rem; }
.about-lead__text { flex: 1; min-width: 0; }
.about-lead__text > :first-child { margin-top: 0; }
.about-lead__text > :last-child { margin-bottom: 0; }
.about-portrait {
  flex: none;
  width: 250px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; display: block; }
@media (max-width: 639px) {
  /* Narrow screens: stack the portrait above the text (the side-by-side row would be too cramped). */
  .about-lead { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .about-portrait { width: 200px; }
}
.prog-price { margin: .6rem 0 0; font-weight: 800; font-size: .92rem; color: var(--fg); }
.prog-price span { color: var(--muted); font-weight: 600; }
/* Youth program card lists (Arm Care 5 Pillars / Movement Lab themes) + session meta line */
.membership-card .prog-meta { margin: 0; font-size: .82rem; font-weight: 600; color: var(--muted); }
.membership-card .prog-list-label { margin: 0; font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.membership-card .prog-list { margin: 0; padding-left: 1.25rem; font-size: .9rem; color: var(--muted); }
.membership-card .prog-list li { margin: .12rem 0 0; }
.membership-card .prog-list li:first-child { margin-top: 0; }
.membership-card .prog-img { display: block; width: 100%; max-width: 320px; height: auto; margin: .4rem auto .2rem; border-radius: 12px; }
.callout { display: flex; gap: .9rem; align-items: flex-start; background: var(--accent-soft); border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.3rem; margin-top: 1.5rem; }
.callout .ic { width: 26px; height: 26px; color: var(--accent); flex: none; margin-top: .1rem; }
.callout p { margin: 0; color: var(--fg); }
.contact-cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem; text-align: center; }
.contact-card .ic { width: 26px; height: 26px; color: var(--accent); margin: 0 auto .55rem; }
.contact-card h3 { margin: 0 0 .25rem; font-size: 1rem; }
.contact-card a { color: var(--accent); text-decoration: none; font-weight: 700; word-break: break-word; }

/* ===================== REAL IMAGES (replace PHOTO HERE placeholders) ===================== */
/* When a .photo holds a real <img>, drop the dashed placeholder frame/hatch and let the
   image cover the fixed-aspect box (crop, never distort). Container keeps its aspect ratio. */
.photo--img { padding: 0; }
.photo--img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.photo--img,
.site--front .hero--portrait .photo--img { border: 0; background: none; }
/* Wide banner photos: show the FULL image at its natural ratio — no crop, no dead-space. */
.photo--wide.photo--img { display: block; aspect-ratio: auto; min-height: 0; overflow: hidden; }
.photo--wide.photo--img > img { position: static; width: 100%; height: auto; object-fit: initial; }
/* Contact banner: a shorter, proportioned hero on larger screens (cover-crop, subjects kept up top);
   stays full / natural on phones so it's never a thin sliver. */
@media (min-width: 700px) {
  .photo--wide.photo--banner.photo--img { aspect-ratio: 21 / 9; }
  .photo--wide.photo--banner.photo--img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
}
/* Tall portrait heroes: a shorter, balanced square box; cover-crop biased to the lower frame
   so the clinic background is trimmed from the top and the people stay in view (no dead-space). */
.photo--tall.photo--img { aspect-ratio: 1 / 1; }
.photo--tall.photo--img > img { object-position: 50% 65%; }

/* photo banner used inside the In-Clinic / Mobile service cards */
.photo--card { aspect-ratio: 3 / 2; }
.service-card .photo--card { width: 100%; }

/* Full-logo brand band (homepage body) — room for the stacked lockup */
/* Full-logo brand band (homepage body) */
.logo-band { padding: 2.15rem 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.logo-band__logo { height: 130px; width: auto; max-width: 100%; display: inline-block; }
.logo-band__tag { margin: 1rem 0 0; color: var(--muted); font-style: italic; }

/* Featured (Mobile) service card + badge — ensure present regardless of base sheet */
.service-card--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm); }
.service-card .badge--feature { position: absolute; top: .9rem; right: .9rem; z-index: 2; margin: 0; background: var(--accent); color: var(--accent-ink); }
.service-card__tag { margin: 0; font-weight: 800; font-size: .92rem; color: var(--accent); }

/* ===================== LIFESTYLE GALLERY (home only) =====================
   Horizontally-scrolling lifestyle photo carousel under the hero. Enhanced by
   the inline <script id="lifestyle-carousel"> in index.html; with JS disabled
   it degrades to a native swipeable scroll strip. Slide count is driven by the
   markup — no fixed counts here. Uses the slate/teal tokens + Inter like the rest. */
.lifestyle { padding: 2.15rem 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lifestyle__viewport { position: relative; }
.lifestyle__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: auto;            /* continuous rAF marquee writes scrollLeft directly */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;            /* Firefox: hide bar; continuous motion + swipe are the affordance */
  padding: .35rem 0 1.6rem;         /* bottom room clears the card's ~24px drop-shadow tail (overflow clips it) */
  border-radius: var(--radius);     /* matches the focusable strip's focus ring */
}
.lifestyle__track:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); } /* visible focus on the swipe strip */
.lifestyle__track::-webkit-scrollbar { display: none; } /* WebKit/Blink */
.lifestyle__slide {
  flex: 0 0 100%;                   /* mobile (<=639px): 1 slide per view */
}
.lifestyle__photo {
  position: relative;
  aspect-ratio: 4 / 3;             /* reserves height -> no layout shift while images lazy-load */
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}
.lifestyle__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .lifestyle__slide { flex-basis: calc((100% - 1rem) / 2); } }  /* 2 per view */
@media (min-width: 860px) { .lifestyle__slide { flex-basis: calc((100% - 2rem) / 3); } }  /* 3 per view */

/* Edge nudge arrows — hidden until JS upgrades (no dead buttons without JS); overlay the strip
   edges, vertically centered on the photos (offset up by ~.6rem to clear the track's bottom padding). */
.lifestyle__arrow { display: none; }
.lifestyle--ready .lifestyle__arrow {
  position: absolute; top: calc(50% - .6rem); transform: translateY(-50%); z-index: 2;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .82);
  color: var(--fg);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .15s, color .15s, border-color .15s;
}
.lifestyle--ready .lifestyle__arrow:hover { background: #fff; color: var(--accent); border-color: var(--accent); }
.lifestyle--ready .lifestyle__arrow:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lifestyle__arrow--prev { left: .5rem; }
.lifestyle__arrow--next { right: .5rem; }
.lifestyle__arrow svg { width: 22px; height: 22px; }

/* Marquee mode: continuous auto-scroll lives in the inline script (pause on hover/focus/touch;
   static under prefers-reduced-motion). No slide controls — the strip is swipeable + arrow-key scrollable. */

/* ---- Testimonials carousel — finite, manual-only (no autoplay/clones). Mirrors the lifestyle
   strip's sizing/snap/arrows, but reading-friendly: snap to each card; arrows + swipe + keyboard. ---- */
.testimonial-carousel__viewport { position: relative; }
.testimonial-carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;     /* snap to each card — testimonials are read, not glanced */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: .35rem 0 1.6rem;          /* bottom room clears the card's drop-shadow (overflow clips it) */
  border-radius: var(--radius);
}
.testimonial-carousel__track:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.testimonial-carousel__track::-webkit-scrollbar { display: none; }
.testimonial-carousel__slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; }  /* mobile: 1 per view */
.testimonial-carousel__slide > .quote { width: 100%; }                                     /* fill slide -> equal-height cards */
@media (min-width: 640px) { .testimonial-carousel__slide { flex-basis: calc((100% - 1rem) / 2); } }  /* 2 per view */
@media (min-width: 860px) { .testimonial-carousel__slide { flex-basis: calc((100% - 2rem) / 3); } }  /* 3 per view */
.testimonial-carousel__arrow { display: none; }   /* no JS (or no overflow) -> no dead buttons */
.testimonials--ready .testimonial-carousel__arrow {
  position: absolute; top: calc(50% - .6rem); transform: translateY(-50%); z-index: 2;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .82);
  color: var(--fg);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .15s, color .15s, border-color .15s;
}
.testimonials--ready .testimonial-carousel__arrow:hover { background: #fff; color: var(--accent); border-color: var(--accent); }
.testimonials--ready .testimonial-carousel__arrow:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.testimonials--ready .testimonial-carousel__arrow:disabled { opacity: .35; cursor: default; box-shadow: none; }
.testimonials--ready .testimonial-carousel__arrow:disabled:hover { background: rgba(255, 255, 255, .82); color: var(--fg); border-color: var(--border); }
.testimonial-carousel__arrow--prev { left: .5rem; }
.testimonial-carousel__arrow--next { right: .5rem; }
.testimonial-carousel__arrow svg { width: 22px; height: 22px; }


/* Home services grid after the In-Home & Mobile card was removed: 2 cards, centered, no empty 3rd column. Home-scoped — the shared .service-grid (Services page) is unchanged. */
@media (min-width: 720px) {
  .service-grid.service-grid--two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }
}

/* Services page: 4 cards in a centered flex grid (2 per row on desktop) so there's no
   empty/lopsided slot. Scoped to --four; the shared .service-grid is untouched. */
.service-grid.service-grid--four { display: flex; flex-wrap: wrap; gap: 1.1rem; justify-content: center; }
.service-grid--four > .service-card { flex: 1 1 100%; }
@media (min-width: 720px) {
  .service-grid--four > .service-card { flex: 0 1 calc((100% - 1.1rem) / 2); }
}

/* ============================================================
   DESIGN REFRESH — warmer, more premium presentation layer.
   Extends the .site--front theme (tokens above). Pure styling +
   the guide topic-icon chips: NO copy, structure, nav/footer,
   route, or JSON-LD changes. Nav/footer markup is byte-identical
   across pages — styled here, never forked per page.
   ============================================================ */

/* Warm overscroll so rubber-band/edges match the page base */
html { background: #faf7f2; }

/* ---- Type hierarchy: small, refined teal eyebrows; confident headings ---- */
.site--front .eyebrow { font-size: .95rem; letter-spacing: .16em; color: var(--accent-strong); margin-bottom: .7rem; }
.site--front .section-head h2,
.site--front .prose h2 { letter-spacing: -.02em; }
.site--front .pagehead h1 { font-size: clamp(2.1rem, 5.2vw, 3.15rem); }

/* ---- Rhythm: comfortable but balanced section padding (the refresh ran a touch tall) ---- */
.site--front .services { padding: clamp(2.1rem, 3.6vw, 2.8rem) 0; }
.site--front .prose { line-height: 1.62; }
/* Contact: the short "Clinic locations" section sits between two full sections — tighten its
   own top/bottom so the stacked gaps around it stay balanced (not over-tall). */
.site--front .services[aria-labelledby="locations-h"] { padding-top: .5rem; padding-bottom: 1.5rem; }

/* ---- Cards: white, soft border, gentle resting shadow, subtle hover lift ---- */
.site--front .service-card,
.site--front .membership-card,
.site--front .contact-card,
.site--front .quote { box-shadow: var(--shadow-card); }
.site--front .service-card:hover,
.site--front .membership-card:hover { box-shadow: var(--shadow-card-hover); }
.site--front .service-card__link { margin-top: auto; padding-top: .8rem; }

/* ---- Coral 2nd accent: sparing decorative heading underlines (never text/fills) ---- */
.site--front .section-head--center h2::after {
  content: ""; display: block; width: 46px; height: 3px; margin: .75rem auto 0;
  border-radius: 3px; background: var(--accent-2);
}
.site--front .pagehead h1::after {
  content: ""; display: block; width: 54px; height: 3px; margin: .8rem 0 0;
  border-radius: 3px; background: var(--accent-2);
}

/* ---- Buttons: polished active state ---- */
.site--front .btn--primary:active { transform: translateY(0); box-shadow: 0 6px 14px -10px var(--accent-shadow); }

/* (Resources hub cards reuse the existing .service-card__icon teal chip; the guide/hub HEROES
   intentionally have no icon chip.) */
.site--front .service-grid--four .service-card h2 { margin: 0; font-size: 1.16rem; line-height: 1.25; }
.site--front .service-grid--four .service-card h2 a { color: var(--fg); text-decoration: none; }
.site--front .service-grid--four .service-card h2 a:hover { color: var(--accent-strong); }

/* ---- Coastal accent: one thin, low-key teal wave at the bottom of inner-page heroes ---- */
.site--front .pagehead { position: relative; }
.site--front .pagehead::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='112'%20height='12'%20viewBox='0%200%20112%2012'%3E%3Cpath%20d='M0%207%20q%2028%20-7%2056%200%20t%2056%200'%20fill='none'%20stroke='%235eead4'%20stroke-width='1.5'/%3E%3C/svg%3E") repeat-x left bottom;
  background-size: 112px 12px;
  opacity: .35; pointer-events: none;
}

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .site--front .service-card,
  .site--front .membership-card,
  .site--front .btn,
  .site--front .service-card__link .ic--arrow { transition: none; }
  .site--front .service-card:hover,
  .site--front .membership-card:hover,
  .site--front .btn:hover { transform: none; }
}