/* ==========================================================================
   Reed Electric Motor Shop
   Design system: Trust & Authority + Conversion / industrial minimalism
   Type: Bebas Neue (display) + Source Sans 3 (body)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand — verified contrast ratios noted inline */
  --navy-900: #0F172A;   /* white on this = 17.9:1 */
  --navy-800: #16233F;
  --navy-700: #1E3A8A;
  --primary:  #1E40AF;   /* white on this = 8.7:1  */
  --primary-hover: #1B379B;

  /* Accent = the exact gold sampled from the Reed Electric logo (#E4C61E).
     It is 10.6:1 on navy and 10.6:1 under near-black text, but only 1.69:1
     on white — so it is never used as text on a light background, and gold
     buttons carry a dark edge so their shape stays visible against white. */
  --accent:       #E4C61E;
  --accent-hover: #CFB31B;
  --accent-ink:   #0F172A;  /* text on gold — 10.6:1 */
  --accent-edge:  #8A7513;  /* button border — 4.5:1 on white */

  --bg:        #FFFFFF;
  --bg-muted:  #F1F5F9;
  --card:      #FFFFFF;
  --fg:        #0F172A;  /* on white = 17.9:1 */
  --fg-muted:  #475569;  /* on white = 7.6:1, on #F1F5F9 = 7.0:1 */
  --border:    #CBD5E1;
  --border-strong: #94A3B8;
  --on-dark:        #FFFFFF;
  --on-dark-muted:  #CBD5E1; /* on navy-900 = 12.6:1 */

  /* Spacing scale (density 5 / standard: 16–64px) */
  --space-1: .25rem; --space-2: .5rem;  --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem;   --space-7: 2.5rem; --space-8: 3rem;
  --space-9: 4rem;   --space-10: 5rem;  --space-11: 7rem;

  --radius:    10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,.08), 0 10px 20px -6px rgba(15,23,42,.12);
  --shadow-lg: 0 12px 28px -8px rgba(15,23,42,.20);

  --wrap: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: 220ms;

  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
address { font-style: normal; }
table { border-collapse: collapse; }

/* Global focus ring — never removed. Dark on light surfaces and gold on dark
   ones, because the gold alone is only 1.69:1 against white. */
:focus-visible {
  outline: 3px solid var(--navy-900);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible, .section--dark :focus-visible,
.emergency :focus-visible, .site-footer :focus-visible, .callbar :focus-visible {
  outline-color: var(--accent);
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 200;
  background: var(--navy-900); color: #fff;
  padding: var(--space-3) var(--space-5); border-radius: var(--radius);
  font-weight: 600; transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--space-5); }

.section { padding-block: var(--space-9); }
.section--muted { background: var(--bg-muted); }
.section--dark { background: var(--navy-900); color: var(--on-dark); }

@media (min-width: 768px) { .section { padding-block: var(--space-11); } }

.section__head { max-width: 62ch; margin-bottom: var(--space-8); }
.section__sub { color: var(--fg-muted); font-size: 1.125rem; margin-top: var(--space-3); }
.section__head--light .section__sub { color: var(--on-dark-muted); }

/* ---------- Typography ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.h2--light { color: var(--on-dark); }

.kicker {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: .8125rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: var(--space-3);
}
.kicker--accent { color: var(--accent); } /* 10.6:1 on navy-900 */
.kicker .icon { width: 18px; height: 18px; }

.lede { font-size: 1.25rem; line-height: 1.5; }
p + p { margin-top: var(--space-4); }

/* ---------- Icons ---------- */
.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.stars .icon { fill: currentColor; stroke: none; width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  min-height: 48px;               /* touch target */
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform 120ms var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:active { transform: scale(.97); }

.btn--accent {
  background: var(--accent); color: var(--accent-ink);
  border: 2px solid var(--accent-edge);
  box-shadow: var(--shadow-sm);
}
.btn--accent:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); }
/* On dark bands the gold already separates from the background — drop the edge. */
.hero .btn--accent, .emergency .btn--accent { border-color: transparent; }

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }

.btn--ghost { background: rgba(255,255,255,.10); color: #fff; border: 2px solid rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,.20); border-color: #fff; }

.btn--outline-light { border: 2px solid rgba(255,255,255,.45); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn--sm { min-height: 44px; padding: var(--space-2) var(--space-4); font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: var(--space-4) var(--space-6); font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  min-height: 72px;
}
.brand { display: flex; align-items: center; }
.brand__logo { width: auto; height: 44px; }

.nav__list { display: none; }
.nav__cta { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -8px;
  border-radius: var(--radius); cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.nav-toggle:hover { background: var(--bg-muted); }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* Mobile nav panel */
@media (max-width: 899px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4) var(--space-5) var(--space-6);
    transform: translateY(-8px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav.is-open .nav__list { display: block; }
  .nav.is-open .nav__cta { display: inline-flex; width: 100%; margin-top: var(--space-4); }
  .nav__link {
    display: block; padding: var(--space-4) var(--space-2);
    font-size: 1.125rem; font-weight: 600;
    border-bottom: 1px solid var(--border);
  }
}

@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: var(--space-6); }
  .nav__list { display: flex; align-items: center; gap: var(--space-6); }
  .nav__cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav__link {
    position: relative; display: flex; align-items: center;
    min-height: 44px;
    font-weight: 600; font-size: .9375rem;
    transition: color var(--dur) var(--ease);
  }
  .nav__link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; background: var(--primary);
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--dur) var(--ease);
  }
  .nav__link:hover { color: var(--primary); }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
  .nav__link.is-active { color: var(--primary); }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-900); color: var(--on-dark); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .30; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15,23,42,.94) 0%, rgba(15,23,42,.80) 45%, rgba(15,23,42,.55) 100%);
}
.hero__inner { position: relative; z-index: 1; padding-block: var(--space-9) var(--space-10); max-width: 780px; }

@media (min-width: 768px) { .hero__inner { padding-block: var(--space-11) 7.5rem; } }

.eyebrows {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: rgba(228,198,30,.14);
  border: 1px solid rgba(228,198,30,.45);
  color: var(--accent);
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  font-size: .8125rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
/* The heritage badge is the louder of the two — solid gold, near-black text. */
.eyebrow--solid {
  background: var(--accent); border-color: var(--accent);
  color: var(--accent-ink);
}
.eyebrow .icon { width: 16px; height: 16px; }

.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3rem, 11vw, 6.5rem);
  line-height: .88; letter-spacing: .005em;
  text-transform: uppercase;
}
.hero__lede {
  margin-top: var(--space-5);
  font-size: clamp(1.0625rem, 2.4vw, 1.375rem);
  line-height: 1.5;
  color: var(--on-dark-muted);
  max-width: 46ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-7); }
.hero__actions .btn { flex: 1 1 auto; min-width: 220px; }

.hero__rating {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2);
  margin-top: var(--space-6);
  color: var(--on-dark-muted); font-size: .9375rem;
}
.hero__rating strong { color: #fff; }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars--lg .icon { width: 26px; height: 26px; }

/* ---------- Proof strip ---------- */
.proof {
  position: relative; z-index: 1;
  background: var(--navy-800);
  border-top: 1px solid rgba(255,255,255,.10);
}
.proof__inner {
  display: grid; gap: var(--space-4);
  padding-block: var(--space-5);
}
@media (min-width: 640px) { .proof__inner { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); } }
@media (min-width: 1024px) { .proof__inner { grid-template-columns: repeat(4, 1fr); } }

.proof__item {
  display: flex; align-items: flex-start; gap: var(--space-3);
  font-size: .9375rem; color: var(--on-dark-muted); line-height: 1.4;
}
.proof__item strong { display: block; color: #fff; font-weight: 700; }
.proof__item .icon { color: var(--accent); margin-top: 2px; }

/* ---------- Value section ---------- */
.value { display: grid; gap: var(--space-6); }
@media (min-width: 900px) {
  .value { grid-template-columns: 1fr 1.3fr; gap: var(--space-10); align-items: start; }
}
.value__col--body { color: var(--fg-muted); }
.value__col--body .lede { color: var(--fg); font-weight: 500; }
.value__note { margin-top: var(--space-5); }

/* ---------- Service cards ---------- */
.cards { display: grid; gap: var(--space-5); }
@media (min-width: 700px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--radius);
  background: #EFF6FF; color: var(--primary);
  margin-bottom: var(--space-4);
}
.card__icon .icon { width: 26px; height: 26px; }
.card__title { font-size: 1.25rem; font-weight: 700; line-height: 1.25; margin-bottom: var(--space-4); }
.card__intro { font-size: .9375rem; color: var(--fg-muted); margin-bottom: var(--space-4); }
.card__foot {
  margin-top: var(--space-4); padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: .875rem; color: var(--fg-muted);
}
.ticks { display: grid; gap: var(--space-3); }
.ticks li {
  position: relative; padding-left: var(--space-6);
  font-size: .9375rem; line-height: 1.45; color: var(--fg-muted);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .38em;
  width: 14px; height: 8px;
  /* Blue, not gold — a gold tick on white is only 1.69:1 and would vanish. */
  border-left: 2.5px solid var(--primary);
  border-bottom: 2.5px solid var(--primary);
  transform: rotate(-45deg);
}

/* ---------- Emergency band ---------- */
.emergency { background: var(--navy-900); color: var(--on-dark); padding-block: var(--space-9); }
.emergency__inner { display: grid; gap: var(--space-7); }
@media (min-width: 900px) {
  .emergency { padding-block: var(--space-10); }
  .emergency__inner { grid-template-columns: 1.2fr .8fr; gap: var(--space-10); align-items: center; }
}
/* :not(.kicker) — otherwise this outranks .kicker--accent and greys out the gold. */
.emergency__text p:not(.kicker) { color: var(--on-dark-muted); margin-top: var(--space-4); max-width: 48ch; }
.emergency__actions { display: grid; gap: var(--space-3); align-content: center; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); } }

.gallery__item {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-muted);
  aspect-ratio: 4 / 3;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }
/* Solid-enough scrim so the label keeps >4.5:1 over any photo underneath,
   including light ones — the gradient alone was not a guarantee. */
.gallery__label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-6) var(--space-4) var(--space-3);
  background: linear-gradient(to top,
              rgba(15,23,42,.97) 0%,
              rgba(15,23,42,.92) 55%,
              rgba(15,23,42,0) 100%);
  color: #fff; font-weight: 600; font-size: .875rem;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}

/* ---------- Reviews ---------- */
.quotes { display: grid; gap: var(--space-5); }
@media (min-width: 800px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

.quote {
  position: relative;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.quote__mark {
  width: 30px; height: 30px; color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: var(--space-4);
}
.quote blockquote p { font-size: 1.0625rem; line-height: 1.55; color: #fff; }
.quote__by {
  margin-top: var(--space-4); font-size: .8125rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-dark-muted); font-weight: 600;
}
.reviews__cta { margin-top: var(--space-7); }

/* ---------- About ---------- */
.about { display: grid; gap: var(--space-7); }
@media (min-width: 900px) {
  .about { grid-template-columns: .85fr 1.15fr; gap: var(--space-10); align-items: center; }
}
.about__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
/* shop.jpg is a tall portrait (1023x1843); a squarer frame would crop most of
   it away, so the desktop frame stays tall and the crop is centred. */
.about__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: center; }
@media (min-width: 900px) { .about__media img { aspect-ratio: 4 / 5; } }
.about__body p:not(.kicker) { color: var(--fg-muted); }

/* ---------- Heritage timeline ---------- */
.timeline {
  list-style: none; padding: 0;
  margin-top: var(--space-6);
  border-left: 2px solid var(--border);
  padding-left: var(--space-6);
  display: grid; gap: var(--space-5);
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-6) - 7px);
  top: .45em;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg-muted);
  border: 3px solid var(--primary);
}
/* Gold would be 1.69:1 here, so the "now" marker is filled navy, not gold. */
.timeline__item--now::before {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(30,64,175,.18);
}
.timeline__year {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem; line-height: 1;
  letter-spacing: .02em;
  color: var(--primary);
  margin-bottom: var(--space-1);
}
.timeline__item--now .timeline__year { color: var(--fg); }
.timeline__text { font-size: .9375rem; color: var(--fg-muted); }
.timeline__text strong { color: var(--fg); font-weight: 700; }

.whys { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.whys li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: .9375rem; color: var(--fg-muted); }
.whys .icon { color: var(--primary); margin-top: 2px; }
.whys strong { color: var(--fg); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--space-5); }
@media (min-width: 700px)  { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

.person, .visit {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.person__head { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-5); }
.person__avatar {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-weight: 700; font-size: 1.0625rem; letter-spacing: .04em;
}
.person__name { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.person__role { font-size: .875rem; color: var(--fg-muted); }
.person__note { margin-top: var(--space-4); font-size: .875rem; color: var(--fg-muted); }

.phone {
  display: flex; align-items: center; gap: var(--space-4);
  min-height: 56px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: var(--space-3);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 120ms var(--ease);
}
.phone:hover { background: #EFF6FF; border-color: var(--primary); }
.phone:active { transform: scale(.98); }
.phone .icon { color: var(--primary); }
.phone__label {
  display: block; font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fg-muted); font-weight: 600;
}
.phone strong { font-size: 1.125rem; font-weight: 700; }

.visit__title { font-size: 1.25rem; font-weight: 700; margin-bottom: var(--space-5); }
.visit__row { display: flex; gap: var(--space-4); align-items: flex-start; margin-bottom: var(--space-5); }
.visit__row .icon { color: var(--primary); margin-top: 3px; }
.visit__label {
  display: block; font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fg-muted); font-weight: 600;
  margin-bottom: var(--space-1);
}
.visit__value { font-size: 1rem; line-height: 1.45; }

.hours { font-size: .9375rem; }
.hours th, .hours td { text-align: left; padding: 2px 0; font-weight: 400; }
.hours th { padding-right: var(--space-5); color: var(--fg-muted); font-weight: 500; }
.hours td { font-variant-numeric: tabular-nums; }
.hours__closed { color: var(--fg-muted); }

.visit__open {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: .8125rem; font-weight: 700;
  padding: var(--space-1) var(--space-3); border-radius: 999px;
}
.visit__open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.visit__open.is-open   { background: #DCFCE7; color: #166534; }  /* 6.4:1 */
.visit__open.is-closed { background: #FEE2E2; color: #991B1B; }  /* 7.4:1 */

.visit__cta { margin-top: var(--space-6); }

.map {
  margin-top: var(--space-7);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.map iframe { width: 100%; height: 340px; border: 0; }
@media (min-width: 900px) { .map iframe { height: 420px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--on-dark-muted); padding-top: var(--space-9); }
.footer-inner { display: grid; gap: var(--space-7); padding-bottom: var(--space-8); }
@media (min-width: 700px)  { .footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-8); } }

.footer__logo { height: 52px; width: auto; margin-bottom: var(--space-4); filter: brightness(0) invert(1); opacity: .95; }
.footer__brand p { font-size: .9375rem; max-width: 40ch; }
.footer__name { color: #fff; font-weight: 700; font-size: 1rem !important; margin-bottom: var(--space-2); }

.footer__h {
  font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; font-weight: 700; margin-bottom: var(--space-4);
}
.footer__col ul { display: grid; gap: var(--space-1); }
.footer__col a {
  display: inline-flex; align-items: center;
  min-height: 40px; padding-right: var(--space-3);
  font-size: .9375rem;
  transition: color var(--dur) var(--ease);
}
.footer__col a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.footer__address { font-size: .9375rem; line-height: 1.6; }
.footer__hours { font-size: .9375rem; margin-top: var(--space-3); }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: var(--space-5);
  font-size: .875rem;
}

/* ---------- Sticky mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(15,23,42,.10);
  transform: translateY(110%);
  transition: transform 260ms var(--ease);
}
.callbar.is-visible { transform: none; }

.callbar__btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2); min-height: 50px;
  border-radius: var(--radius);
  font-weight: 700; font-size: .9375rem;
  border: 2px solid var(--border-strong);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), transform 120ms var(--ease);
}
.callbar__btn:active { transform: scale(.97); }
.callbar__btn--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-edge); flex: 1.4; }
.callbar__btn--accent:hover { background: var(--accent-hover); }

@media (min-width: 900px) { .callbar { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 76px; } }

/* ---------- Scroll reveal (stagger, CSS-only, no dependency) ----------
   Scoped to .js so the content is visible by default. If the script fails to
   load or the observer never fires, nothing is ever left hidden. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px) scale(.985);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .gallery__item:hover img { transform: none; }
  .card:hover { transform: none; }
  .btn:active, .phone:active, .callbar__btn:active { transform: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .callbar, .map, .hero__media, .btn { display: none !important; }
  body { color: #000; background: #fff; padding: 0; }
  .hero, .section--dark, .emergency, .site-footer { background: #fff !important; color: #000 !important; }
  .h2--light, .hero__title { color: #000 !important; }
}
