/* Just Results Personal Training — site.css
   Single stylesheet. System fonts only; no @import; no remote assets; no CSS image refs.
   Contrast: every text/bg pair maps to the SPEC 7.4 D5 matrix (see check_contrast.py). */

:root {
  /* Dark theme. Every text/bg pair maps to the dark contrast matrix in check_contrast.py. */
  --ink:        #e9ecee;  /* primary text + headings (near-white on dark) */
  --paper:      #14171a;  /* page background (deep charcoal) */
  --paper-2:    #1e2226;  /* alternating section background (a step lighter) */
  --surface:    #23282d;  /* raised surfaces: cards, chips, secondary button */
  --surface-inv:#0d0f11;  /* deepest blocks: hero / page-head / footer */
  --teal:       #2fb7d6;  /* decorative teal accents */
  --teal-ink:   #5cc9e8;  /* teal for links, eyebrows, small text on dark (AA >=4.5) */
  --cta:        #ee203c;  /* brand red: CTA button bg with white bold text */
  --cta-press:  #c81830;  /* red button hover bg (white text, AA) */
  --danger:     #ff6172;  /* light red for error / hover TEXT on dark */
  --line:       #313842;  /* borders / dividers on dark */
  --radius: 12px; --radius-lg: 20px;
  --space: clamp(16px, 4vw, 32px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; /* system stack; NO webfonts */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scroll-behavior: smooth; } /* anchor jumps clear the sticky header + smooth-scroll to the section */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--teal-ink); }
a:hover { color: var(--cta-press); }
ul { margin: 0 0 1rem; padding-left: 1.15em; }

:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--space); }
.section { padding-block: clamp(40px, 7vw, 84px); }
.section--alt { background: var(--paper-2); }
.section__intro { max-width: 62ch; margin: 0 0 clamp(24px, 4vw, 40px); font-size: 1.1rem; }
.eyebrow-h { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); margin: 0 0 .6rem; }
.section h2 { position: relative; }
.accent-bar { display: block; width: 56px; height: 4px; background: #ffdb00; border-radius: 4px; margin: 0 0 1.1rem; } /* decorative yellow accent, no text */

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 700; font-size: 1.2rem; text-decoration: none; transition: top .15s ease; /* >=19px so white-on-cta (dark override, 4.28:1) clears the large-bold AA tier — T27 */
}
.skip-link:focus { top: 8px; color: #fff; }

/* ---------- buttons ---------- */
/* Baseline applies to .btn AND the bare .btn-call/.btn-consult hooks (the SPEC §5.5
   form submit + fallback use the color class alone) so all pass the >=19px/700 tier. */
.btn, .btn-call, .btn-consult {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .6rem 1.35rem;
  font-family: inherit; font-size: 1.2rem; /* >=19px */ font-weight: 700; line-height: 1.15;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; text-align: center; position: relative;
  transition: background-color .15s ease, box-shadow .18s ease, transform .18s cubic-bezier(.34,1.56,.64,1);
  overflow-wrap: break-word; /* long labels break (200% zoom) instead of clipping — T30 */
  min-width: 0; max-width: 100%; /* shrink as a flex item; never force horizontal overflow */
}
/* "pop" on hover — the button grows + lifts with a soft shadow, then springs back
   in on click. Gated to cursor/keyboard (hover:hover + pointer:fine) so it never
   sticks after a phone tap; disabled entirely under prefers-reduced-motion. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover, .btn-call:hover, .btn-consult:hover,
  .btn:focus-visible, .btn-call:focus-visible, .btn-consult:focus-visible {
    transform: translateY(-2px) scale(1.05); z-index: 2;
    box-shadow: 0 10px 24px rgba(37,40,42,.20);
  }
}
.btn:active, .btn-call:active, .btn-consult:active {
  transform: translateY(0) scale(.97);
  box-shadow: 0 3px 10px rgba(37,40,42,.16);
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn-call:hover, .btn-consult:hover,
  .btn:focus-visible, .btn-call:focus-visible, .btn-consult:focus-visible,
  .btn:active, .btn-call:active, .btn-consult:active { transform: none !important; }
}
.btn-call { background: var(--cta); color: #fff; }
.btn-call:hover, .btn-call:focus-visible { background: var(--cta-press); color: #fff; }
.btn-consult { background: var(--ink); color: #fff; }
.btn-consult:hover, .btn-consult:focus-visible { background: #141617; color: #fff; }
.btn .ic { width: 1.05em; height: 1.05em; fill: currentColor; flex: 0 0 auto; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; flex-wrap: wrap; gap: 1rem;
  min-height: 68px; padding-block: 8px;
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; margin-right: auto; }
.brand b { font-size: 1.3rem; font-weight: 900; letter-spacing: -.02em; }
.brand span { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); margin-top: 3px; }

#site-nav ul { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }
#site-nav a {
  display: inline-block; padding: .55rem .7rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem;
}
#site-nav a:hover { background: var(--paper-2); color: var(--ink); }
#site-nav a[aria-current="page"] { color: var(--teal-ink); box-shadow: inset 0 -3px 0 var(--teal); }
.header-cta { margin-left: .4rem; }
.header-cta .btn { min-height: 44px; padding: .35rem .9rem; } /* font stays >=19px/700 for AA large-bold */
.header-cta .long { display: inline; }
.header-cta .short { display: none; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  min-width: 48px; min-height: 46px; padding: 8px; margin-left: auto;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; position: relative;
}
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after { position: absolute; top: 7px; }

/* ---------- mobile header behavior ---------- */
@media (max-width: 819.98px) {
  .nav-toggle { display: inline-flex; order: 4; }
  .header-cta { order: 3; }
  .header-cta .long { display: none; }
  .header-cta .short { display: inline; }
  #site-nav {
    order: 10; flex-basis: 100%; display: none;
    border-top: 1px solid var(--line); margin: 0 calc(-1 * var(--space));
  }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; gap: 0; padding: 6px var(--space) 12px; }
  #site-nav a { display: block; padding: .85rem .5rem; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  #site-nav li:last-child a { border-bottom: 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(37,40,42,.86) 0%, rgba(37,40,42,.78) 42%, rgba(37,40,42,.45) 78%, rgba(37,40,42,.25) 100%);
}
@media (min-width: 700px) {
  .hero-scrim { background: linear-gradient(90deg, rgba(37,40,42,.9) 0%, rgba(37,40,42,.8) 46%, rgba(37,40,42,.45) 74%, rgba(37,40,42,.2) 100%); }
}
.hero-content { position: relative; z-index: 2; color: #fff; padding-block: clamp(48px, 10vw, 120px); max-width: 640px; }
.hero-content .eyebrow { display: inline-block; font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 1rem; opacity: .95; }
.hero-content h1 { color: #fff; margin-bottom: .6rem; }
.hero-content .sub { font-size: clamp(1.05rem, 2.1vw, 1.3rem); color: #fff; max-width: 34em; margin-bottom: 1.6rem; }
.hero-content .btn-row { margin-bottom: 1rem; }
.hero .btn-consult { border-color: rgba(255,255,255,.72); }
.hero--compact .hero-content { max-width: 720px; }

/* page header (no-photo hero for products/contact) */
.page-head { background: var(--ink); color: #fff; }
.page-head .wrap { padding-block: clamp(40px, 7vw, 72px); }
.page-head h1 { color: #fff; margin: 0; }
.page-head p { color: #fff; opacity: .92; margin-top: .6rem; font-size: 1.15rem; }

/* ---------- cards ---------- */
.card-grid { display: grid; gap: clamp(16px, 2.5vw, 24px); grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 30px); box-shadow: 0 1px 2px rgba(37,40,42,.04), 0 8px 24px rgba(37,40,42,.05);
  display: flex; flex-direction: column; min-width: 0; /* allow grid cards to shrink */
}
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card .ic-lg { width: 52px; height: 52px; margin-bottom: 1rem; }

/* icon feature cards */
.feature .num { font-size: 2rem; font-weight: 900; color: var(--teal); line-height: 1; margin-bottom: .5rem; } /* decorative teal numeral */

/* Netlify honeypot — always hidden from humans */
.hp { display: none !important; }

/* inline "read more" link */
.text-link { color: var(--teal-ink); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* pricing */
.price { font-size: clamp(2.2rem, 5vw, 2.8rem); font-weight: 900; color: var(--ink); line-height: 1; margin: .2rem 0 0; }
.price__unit { font-size: 1rem; font-weight: 700; color: var(--teal-ink); }
.price__note { color: var(--ink); font-weight: 700; margin: .3rem 0 1rem; }
.card-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.card-list li { position: relative; padding-left: 1.4rem; color: var(--ink); }
.card-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--cta); } /* brand-red bullet */

/* ---------- chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.chip {
  display: inline-block; padding: .5rem .95rem; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 1rem;
}
.section--alt .chip { background: var(--paper); }

/* ---------- split (photo + text) ---------- */
.split { display: grid; gap: clamp(20px, 4vw, 48px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) { .split { grid-template-columns: 1.05fr .95fr; } .split.rev > .split__media { order: 2; } }
.split__media img { border-radius: var(--radius-lg); width: 100%; box-shadow: 0 10px 30px rgba(37,40,42,.12); }
.milestones { list-style: none; margin: 1rem 0 1.4rem; padding: 0; }
.milestones li { position: relative; padding: .3rem 0 .3rem 1.9rem; font-weight: 600; }
.milestones li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 12px; height: 12px; border-radius: 50%; background: var(--cta); } /* decorative */

/* ---------- about ---------- */
.about-hero { display: grid; gap: clamp(20px, 4vw, 44px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .about-hero { grid-template-columns: .85fr 1.15fr; } }
.about-hero .portrait { border-radius: var(--radius-lg); box-shadow: 0 14px 36px rgba(37,40,42,.18); width: 100%; max-width: 420px; }
.pos-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.pos-list li { padding: .45rem 0 .45rem 2rem; position: relative; font-size: 1.12rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.pos-list li:last-child { border-bottom: 0; }
.pos-list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 14px; height: 3px; background: var(--teal); } /* decorative */
.pullquote { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.25; margin: 1.4rem 0; color: var(--ink); border-left: 4px solid #ffdb00; padding-left: 1rem; }
.bio-secondary { color: var(--ink); font-size: 1.05rem; }

/* ---------- timeline ---------- */
.timeline { position: relative; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.tl-arc { font-weight: 800; letter-spacing: .04em; color: var(--teal-ink); margin-bottom: 1.2rem; text-transform: uppercase; font-size: .95rem; }
.timeline li { position: relative; padding: 0 0 1.4rem 2.2rem; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--cta); box-shadow: 0 0 0 4px rgba(238,32,60,.12); }
.timeline li::after { content: ""; position: absolute; left: 11px; top: 22px; bottom: -2px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .yr { display: block; font-weight: 800; color: var(--ink); }
.timeline .mi { font-weight: 600; }

/* ---------- video ---------- */
.video-block video { width: 100%; border-radius: var(--radius-lg); background: #000; box-shadow: 0 12px 34px rgba(37,40,42,.18); }
.video-cap { color: var(--ink); font-size: 1rem; margin-top: .8rem; }

/* ---------- product mark (products page) ---------- */
.product-mark { min-height: 64px; display: flex; align-items: center; margin: 0 0 .8rem; }
.product-mark img { height: 54px; width: auto; }
.product-mark--type { font-size: 1.5rem; font-weight: 900; letter-spacing: -.01em; color: var(--ink); }
.product-card .btn { align-self: flex-start; margin-top: auto; }
.product-card .btn-sec { margin-top: .8rem; font-weight: 700; align-self: flex-start; }

/* ---------- studio gallery + lightbox ---------- */
.gallery {
  list-style: none; margin: clamp(20px, 3vw, 32px) 0 0; padding: 0;
  display: grid; gap: clamp(10px, 1.4vw, 16px); grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 620px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery > li { margin: 0; }
.gallery-item {
  display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper-2); text-decoration: none;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.gallery-plus {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(37,40,42,0); opacity: 0; transition: opacity .2s ease, background-color .2s ease;
}
.gallery-plus::before {
  content: "+"; display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding-bottom: 4px; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: 2rem; font-weight: 400; line-height: 1; box-shadow: 0 4px 14px rgba(0,0,0,.28);
}
.gallery-item:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 2px; }
.gallery-item:focus-visible .gallery-plus { opacity: 1; background: rgba(37,40,42,.34); }
@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover img { transform: scale(1.06); }
  .gallery-item:hover .gallery-plus { opacity: 1; background: rgba(37,40,42,.34); }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-item:hover img, .gallery-item:focus-visible img { transform: none !important; }
}
/* lightbox — native <dialog>; fills the viewport so any click off the image closes it */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent;
}
.lightbox:not([open]) { display: none; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(20,22,23,.92); }
.lightbox__img {
  max-width: 92vw; max-height: 84vh; max-height: 84dvh; width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,.55); background: #000;
}
.lightbox__cap {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom));
  margin: 0; max-width: 90vw; text-align: center; color: #fff; font-size: .95rem; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.65);
}
.lightbox__btn {
  position: fixed; display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.15); color: #fff; font-size: 1.9rem; line-height: 1;
  transition: background-color .15s ease;
}
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: rgba(255,255,255,.30); }
.lightbox__close { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
.lightbox__prev { top: 50%; transform: translateY(-50%); left: max(10px, env(safe-area-inset-left)); }
.lightbox__next { top: 50%; transform: translateY(-50%); right: max(10px, env(safe-area-inset-right)); }
@media (max-width: 560px) { .lightbox__btn { width: 44px; height: 44px; font-size: 1.6rem; } .lightbox__img { max-width: 96vw; } }

/* ---------- cta band ---------- */
.cta-band { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band .wrap { padding-block: clamp(36px, 6vw, 64px); text-align: center; }
.cta-band h2 { margin-bottom: 1.2rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- contact ---------- */
.phone-hero .big-tel { display: inline-block; font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 900; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.phone-hero .big-tel:hover { color: var(--cta-press); }
.addr { font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.consult-form { max-width: 560px; }
.consult-form label { display: block; font-weight: 700; margin: 1rem 0 .35rem; }
.consult-form .opt { font-weight: 500; color: var(--teal-ink); }
.consult-form input, .consult-form textarea {
  width: 100%; font-family: inherit; font-size: 1.05rem; color: var(--ink);
  padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper);
}
.consult-form input:focus, .consult-form textarea:focus { border-color: var(--teal-ink); outline: 2px solid var(--teal-ink); outline-offset: 1px; }
.consult-form [aria-invalid="true"] { border-color: var(--cta-press); }
.consult-form button[type="submit"] { margin-top: 1.2rem; }
.form-alt { margin-top: 1rem; font-weight: 600; }
.field-error { color: var(--cta-press); font-weight: 700; margin-top: 1rem; }
.field-error[hidden] { display: none; }
#consult-fallback { max-width: 560px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 30px); }
#consult-fallback[hidden] { display: none; }
#consult-fallback h3 { margin-bottom: .6rem; }
#consult-fallback .btn-call { margin-top: .4rem; }

/* ---------- footer (rebuilt to match the original bottom bar) ---------- */
.site-footer { background: var(--ink); color: #fff; }
.site-footer .wrap { padding-block: clamp(36px, 6vw, 60px); }
.site-footer a { color: #fff; }
.foot-top { display: grid; gap: clamp(24px, 5vw, 40px); align-items: center; text-align: center; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-top { grid-template-columns: 1fr auto 1fr; text-align: left; } }
.foot-addr { color: #fff; font-style: normal; line-height: 1.85; font-size: 1.05rem; opacity: .95; margin: 0; }
.foot-logo { display: flex; justify-content: center; }
.foot-logo img { width: auto; height: clamp(52px, 8vw, 66px); }
.foot-brandcol { display: flex; flex-direction: column; align-items: center; gap: 14px; }
@media (min-width: 760px) { .foot-brandcol { align-items: flex-end; } }
.foot-badge { width: 74px; height: 74px; }
.foot-social { display: flex; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.foot-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 9px; color: #fff; transition: transform .15s ease, filter .15s ease;
}
.foot-social a:hover, .foot-social a:focus-visible { transform: translateY(-2px); filter: brightness(1.12); color: #fff; text-decoration: none; }
.foot-social svg { width: 20px; height: 20px; fill: currentColor; }
.foot-social--fb { background: #3b5998; }
.foot-social--ig { background: #e1306c; }
.foot-legal {
  margin-top: clamp(28px, 5vw, 44px);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1.1rem;
  font-weight: 700; font-size: .95rem; color: rgba(255,255,255,.82);
}
.foot-legal .copyright { margin: 0; padding: 0; border: 0; opacity: 1; font-size: .95rem; color: rgba(255,255,255,.82); }
@media (prefers-reduced-motion: reduce) { .foot-social a:hover, .foot-social a:focus-visible { transform: none !important; } }

/* ---------- scroll reveal ----------
   Progressive reveal-on-scroll. The .reveal / .reveal-item classes are added by JS
   (initScrollReveal), so with JS disabled NOTHING is hidden; JS also skips this entirely
   under prefers-reduced-motion. Sections, the CTA band and the footer fade + rise as they
   enter view; card-grid / timeline items rise in a slight stagger (their section switches
   to .reveal--items = fade-only, so the section's motion never compounds with the items').
   Vertical-only motion preserves the phone-first no-horizontal-overflow behavior.
   One-shot: once revealed, elements stay visible (no re-hide on scroll up). */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.reveal--items { transform: none; }
.reveal-item { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal.is-visible, .reveal-item.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-item { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- dark-theme surface overrides ----------
   Elements that used --ink as a BACKGROUND (not text) in the original light build, plus
   the red/error TEXT colors that must invert direction on dark. Placed last so they win. */
.skip-link { background: var(--cta); }                                    /* was --ink bg */
.hero { background: var(--surface-inv); }                                 /* mostly hidden by the photo */
.page-head { background: var(--surface-inv); }                            /* white text stays legible */
.site-footer { background: var(--surface-inv); border-top: 1px solid var(--line); }
.card { background: var(--surface); }                                     /* raised, so it reads on the dark page */
.chip, .section--alt .chip { background: var(--surface); }
.btn-consult { background: var(--cta); color: #fff; border-color: transparent; }         /* red, matches btn-call */
.btn-consult:hover, .btn-consult:focus-visible { background: var(--cta-press); color: #fff; }
.hero .btn-consult { background: var(--cta); border-color: transparent; }                 /* solid red on the photo too */
.gallery-plus::before { background: rgba(13,15,17,.78); }                 /* dark disc + white "+" */
/* red is a HOVER / ERROR text color here → must be light on dark (var(--cta-press) stays the button-hover bg) */
a:hover { color: var(--danger); }
.field-error { color: var(--danger); }
.phone-hero .big-tel:hover { color: var(--danger); }
.consult-form [aria-invalid="true"] { border-color: var(--danger); }
