/* 1012 Main Street Automotive: identity layer on top of the shared engine
   (base.css, pages.css, motion.css, depth.css). Source: specs/design.md. */

/* No sideways scroll from zoomed photos (LICOES.md): clip, not only hidden, so position: sticky keeps working */
html, body { overflow-x: hidden; overflow-x: clip; }
.svc-detail__media { overflow: clip; overflow-clip-margin: 40px; }

/* ---------- Type and base overrides ---------- */
body { color: var(--slate-600); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0; }
h1 { line-height: 1.02; }
h2 { line-height: 1.06; }
h3 { line-height: 1.15; }
.lead { max-width: 38rem; }
.nw { white-space: nowrap; }

/* Eyebrow marker = a small lit lamp */
.eyebrow { font-family: var(--font-display); font-size: var(--fs-eyebrow); letter-spacing: .14em; color: var(--accent-700); }
.eyebrow::before { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-600); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .16); }
.section--dark .eyebrow, .on-dark .eyebrow { color: var(--accent-500); }

/* Buttons: condensed caps-free labels, small radius */
.btn {
  border-radius: var(--radius-sm); padding: 0 24px;
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700;
  letter-spacing: .02em; text-transform: none; white-space: nowrap;
}
.text-link { font-family: var(--font-display); font-size: 1.0625rem; letter-spacing: .02em; text-transform: none; color: var(--accent-700); }
.section--dark .text-link { color: var(--white); }
:focus-visible { outline-color: var(--accent-600); }

/* ---------- Page transitions (View Transitions, CSS only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 260ms var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in 420ms var(--ease) both; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
  .site-header { view-transition-name: site-header; }
}

/* ---------- Logo ---------- */
.logo-svg { display: block; height: 40px; width: auto; }
.site-header__logo { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.site-header__phone, .phone-pill__num { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-header__phone { display: none; }
  .site-nav ul { gap: var(--space-5); }
}
@media (max-width: 419px) { .logo-svg { height: 34px; } }
@media (min-width: 1024px) { .logo-svg { height: 44px; } }
.site-footer__brand .logo-svg { height: 56px; }

/* ---------- Call / text icon buttons ---------- */
.ic {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--dark-950); color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 2px rgba(var(--dark-rgb), .25), 0 4px 10px rgba(var(--dark-rgb), .18);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ic svg { width: 22px; height: 22px; }
.ic:hover { transform: translateY(-2px); color: var(--accent-500); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 2px 4px rgba(var(--dark-rgb), .25), 0 10px 20px rgba(var(--dark-rgb), .22); }
.ic:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .4); }
.ic--dark { background: var(--dark-800); box-shadow: inset 0 0 0 1px var(--line-dark), inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 14px rgba(0, 0, 0, .35); }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.ics { display: inline-flex; gap: 6px; }
.site-header__mobile { display: flex; align-items: center; gap: 8px; }
@media (max-width: 369px) { .site-header__mobile .ics { display: none; } }
@media (min-width: 1024px) {
  .site-header__mobile { display: none; }
  .site-header__actions { gap: var(--space-3); }
  .site-header__phone { margin-right: 4px; font-family: var(--font-display); font-size: 1.125rem; }
  .site-header__phone:hover { color: var(--accent-700); }
  .site-nav a { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; letter-spacing: .02em; }
}

/* Phone pill on dark (number + call + text) */
.phone-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 2px 2px 2px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 2px var(--line-dark);
}
.phone-pill__num { color: var(--white); font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; text-decoration: none; white-space: nowrap; margin-right: 4px; }
.phone-pill__num:hover { color: var(--accent-500); }

/* ---------- Dashboard (signature) ---------- */
.dash {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 12px;
  padding: 28px 18px;
  border-radius: 18px;
  background: radial-gradient(120% 140% at 50% 0%, #2a2c30 0%, var(--dark-900) 55%, #0d0e10 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 4px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .45);
  transition: transform 400ms var(--ease);
}
.dash::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 40%); pointer-events: none; }
.lamp { display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; margin: 0; }
.lamp svg { width: clamp(38px, 5vw, 56px); height: auto; fill: none; stroke: #3a3d42; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 500ms, filter 500ms; }
.lamp.on svg { stroke: var(--accent-500); filter: drop-shadow(0 0 8px rgba(240, 68, 56, .75)); }
.lamp__name { font-family: var(--font-display); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a8f96; transition: color 500ms; }
.lamp:not(.on) .lamp__name { color: var(--mist); }

/* ---------- Home hero ---------- */
.hero-shop { position: relative; padding-block: var(--space-8) calc(var(--space-9) + 24px); background: radial-gradient(90% 120% at 85% 0%, #202226 0%, var(--dark-950) 60%); color: var(--mist); }
.hero-shop__grid { display: grid; gap: var(--space-7); align-items: center; }
.hero-shop h1 { margin-top: var(--space-4); color: var(--white); font-size: min(var(--fs-display), 11svh + 1rem); max-width: 14ch; }
.hero-shop .lead { margin-top: var(--space-5); color: var(--mist); }
.hero-shop__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-shop__proof { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-5); font-size: var(--fs-small); }
.hero-shop__proof a { color: var(--mist); text-decoration: none; }
.hero-shop__proof a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.hero-shop__proof b { color: var(--white); }
@media (min-width: 1024px) {
  .hero-shop { padding-block: var(--space-9) calc(var(--space-10) + 16px); }
  .hero-shop__grid { grid-template-columns: 1.1fr .9fr; gap: var(--space-9); }
}

/* Strip that crosses the edge between the dark hero and the next section */
.overlap { position: relative; z-index: 2; margin-top: calc(var(--space-8) * -1); }
.strip { display: grid; background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 2px 4px rgba(var(--dark-rgb), .06), 0 8px 16px rgba(var(--dark-rgb), .08), 0 24px 48px rgba(var(--dark-rgb), .12); }
.strip > div { padding: 20px 24px; border-top: 1px solid var(--stone-200); }
.strip > div:first-child { border-top: 0; }
.strip strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.375rem; font-weight: 800; line-height: 1.2; }
.strip span, .strip a { font-size: var(--fs-small); color: var(--slate-600); }
.strip a { text-decoration-color: var(--stone-400); text-underline-offset: 3px; }
.open-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.open-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--stone-400); }
.open-badge.is-open { color: #1F6B3A; }
.open-badge.is-open::before { background: #2E9B57; box-shadow: 0 0 0 3px rgba(46, 155, 87, .18); }
@media (min-width: 768px) {
  .strip { grid-template-columns: repeat(3, 1fr); }
  .strip > div { border-top: 0; border-left: 1px solid var(--stone-200); }
  .strip > div:first-child { border-left: 0; }
}

/* ---------- Service cards ---------- */
.svc-grid { display: grid; gap: var(--space-5); margin: var(--space-7) 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  position: relative; overflow: hidden; height: 100%;
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(var(--dark-rgb), .06), 0 4px 8px rgba(var(--dark-rgb), .06), 0 12px 24px rgba(var(--dark-rgb), .08);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.svc-card::before { content: ""; position: absolute; z-index: 2; inset: 0 0 auto 0; height: 3px; background: var(--accent-600); transform: scaleX(0); transform-origin: left; transition: transform 350ms var(--ease); }
.svc-card:hover, .svc-card:focus-within { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(var(--dark-rgb), .06), 0 8px 16px rgba(var(--dark-rgb), .08), 0 24px 48px rgba(var(--dark-rgb), .12); }
.svc-card:hover::before, .svc-card:focus-within::before { transform: scaleX(1); }
.svc-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--dark-900); }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.svc-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(var(--dark-rgb), .35)); }
.svc-card:hover .svc-card__media img { transform: scale(1.05); }
.svc-card__body { position: relative; flex: 1; display: flex; flex-direction: column; gap: var(--space-3); padding: 40px var(--space-6) var(--space-6); }
.svc-card__body > .svc-ico { position: absolute; top: -28px; left: var(--space-6); box-shadow: 0 0 0 4px var(--white), inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 20px rgba(var(--dark-rgb), .3); }
.svc-card--feature .svc-card__body > .svc-ico { box-shadow: 0 0 0 4px var(--dark-950), inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 20px rgba(0, 0, 0, .4); }
.svc-card h3 { margin-top: 0; }
.svc-card p { font-size: 1rem; }
.svc-card .text-link { margin-top: auto; padding-top: var(--space-2); }
.svc-card .text-link::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.svc-ico {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px;
  background: var(--dark-950); color: var(--accent-500);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 14px rgba(var(--dark-rgb), .25);
}
.svc-ico svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.svc-card--feature { background: var(--dark-950); }
.svc-card--feature h3 { color: var(--white); }
.svc-card--feature p { color: var(--mist); }
.svc-card--feature .text-link { color: var(--white); }
.svc-card--feature .svc-ico { background: var(--dark-800); }
.svc-card .tag-pill { position: absolute; top: -14px; right: var(--space-6); align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--accent-600); color: #fff; box-shadow: 0 4px 10px rgba(var(--accent-rgb), .35); font-family: var(--font-display); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Lights out (scroll-linked signature) ---------- */
.lights { position: relative; background: var(--dark-950); color: var(--mist); }
.lights__intro { padding-top: calc(var(--section-y) - var(--space-7)); }
.lights-on .lights__intro { padding-top: 0; }
.lights-on .lights__intro h2 { font-size: min(var(--fs-h2), 6svh + 1rem); }
.lights-on .lights__intro .lead { margin-top: var(--space-3); }
.lights__intro h2 { margin-top: var(--space-4); max-width: 18ch; color: var(--white); }
.lights__intro .lead { margin-top: var(--space-5); color: var(--mist); }
.lights__track { position: relative; }
.lights__stage { padding: var(--space-7) 0 var(--section-y); }
.lights__inner { display: grid; gap: var(--space-6); }
.lights .dash { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
.lights .lamp blockquote { margin: 4px 0 0; color: var(--white); font-size: .9375rem; line-height: 1.35; min-height: 2.7em; opacity: 0; transform: translateY(6px); transition: opacity 400ms, transform 400ms; }
.lights .lamp:not(.on) blockquote { opacity: 1; transform: none; }
.lights .lamp figcaption { font-size: .8125rem; color: var(--slate-400); opacity: 0; transition: opacity 400ms; }
.lights .lamp:not(.on) figcaption { opacity: 1; }
.lights__status { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.lights__count { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--accent-500); }
.lights__count.is-clear { color: var(--white); }
.lights__status a { color: var(--mist); font-size: var(--fs-small); }
@media (min-width: 640px) { .lights .dash { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .lights .dash { grid-template-columns: repeat(6, 1fr); padding: 36px 24px; } }
/* Scroll mode (html.lights-on, set before first paint; same five gates as lights.js) */
.lights-on .lights__track { height: 300vh; }
.lights-on .lights__stage { position: sticky; top: 0; min-height: 100vh; display: grid; align-content: center; padding-block: var(--space-6); }

/* ---------- Inspection feature ---------- */
.inspect { display: grid; gap: var(--space-7); align-items: center; }
.inspect__badge {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 340px; width: 100%;
  margin-inline: auto; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #2a2c30, var(--dark-950) 70%);
  box-shadow: inset 0 0 0 10px var(--dark-800), inset 0 0 0 12px rgba(255, 255, 255, .06), 0 24px 48px rgba(var(--dark-rgb), .25);
  color: var(--white); text-align: center;
}
.inspect__badge strong { display: block; font-family: var(--font-display); font-size: clamp(4rem, 3rem + 4vw, 6.5rem); font-weight: 800; line-height: .9; }
.inspect__badge span { display: block; max-width: 12ch; margin-inline: auto; color: var(--mist); font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; letter-spacing: .04em; }
.inspect__badge::after { content: ""; position: absolute; top: 18%; right: 20%; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-500); box-shadow: 0 0 12px rgba(240, 68, 56, .8); }
/* Inspection sticker (our own design, not the official artwork; month and year set by lights.js) */
.sticker { margin: 0 auto; width: 100%; max-width: 380px; display: grid; gap: var(--space-4); justify-items: center; }
.sticker__face {
  width: 100%; padding: 18px 20px 14px; background: #FDFDFB; border-radius: 10px;
  box-shadow: inset 0 0 0 3px var(--dark-950), 0 2px 4px rgba(var(--dark-rgb), .08), 0 16px 32px rgba(var(--dark-rgb), .16), 0 40px 80px rgba(var(--dark-rgb), .12);
  transform: rotate(-2.5deg); transition: transform 400ms var(--ease);
}
.sticker:hover .sticker__face { transform: rotate(0deg) translateY(-4px); }
.sticker__top { margin: 0 0 12px; padding: 8px 10px; border-radius: 6px; background: var(--dark-950); color: var(--white); text-align: center; font-family: var(--font-display); font-size: 1.375rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sticker__mid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.sticker__side { writing-mode: vertical-rl; text-orientation: upright; letter-spacing: -.02em; color: var(--dark-950); font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; text-transform: uppercase; line-height: 1; }
.sticker__month {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 4px;
  background: var(--st-bg, #F08A1C); color: var(--st-fg, #fff); font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(6rem, 4.5rem + 6vw, 9rem); font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .12);
}
.sticker__year { display: grid; color: var(--dark-950); font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1; text-align: center; }
.sticker__bottom { margin: 12px 0 0; text-align: center; color: var(--dark-950); font-family: var(--font-display); font-size: .9375rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sticker figcaption { color: var(--ink); font-size: 1.0625rem; text-align: center; }
.sticker figcaption b { color: var(--accent-700); }
@media (prefers-reduced-motion: reduce) { .sticker__face, .sticker:hover .sticker__face { transform: none; } }
.inspect h2 { margin-top: var(--space-4); }
.inspect p { margin-top: var(--space-4); max-width: 34rem; }
.inspect .check-list { margin-top: var(--space-5); }
.inspect__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
@media (min-width: 1024px) { .inspect { grid-template-columns: 5fr 6fr; gap: var(--space-9); } }
.check-list li::before { border-radius: 50%; }

/* ---------- Reviews ---------- */
.reviews__grid { display: grid; gap: var(--space-5); margin-top: var(--space-7); }
@media (min-width: 900px) { .reviews__grid { grid-template-columns: repeat(3, 1fr); } }
.review {
  display: flex; flex-direction: column; gap: var(--space-4); margin: 0;
  padding: var(--space-6); background: var(--white); border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(var(--dark-rgb), .06), 0 4px 8px rgba(var(--dark-rgb), .06), 0 12px 24px rgba(var(--dark-rgb), .08);
}
.review__stars { color: var(--accent-600); letter-spacing: 2px; font-size: 1rem; }
.review blockquote { margin: 0; color: var(--ink); font-size: 1.125rem; line-height: 1.5; }
.review figcaption { margin-top: auto; font-size: var(--fs-small); color: var(--slate-600); }
.review figcaption b { color: var(--ink); }
.reviews__more { margin-top: var(--space-6); }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; margin-top: var(--space-7); }
.faq details { border-top: 1px solid var(--stone-200); }
.faq details:last-child { border-bottom: 1px solid var(--stone-200); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 64px; padding: var(--space-4) 0; cursor: pointer; list-style: none;
  color: var(--ink); font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--paper-2); color: var(--ink); font-size: 1.25rem; transition: transform var(--dur) var(--ease), background-color var(--dur); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent-600); color: var(--white); }
.faq details p { padding: 0 0 var(--space-5); max-width: 44rem; }

/* ---------- Visit (address + hours) ---------- */
.visit { display: grid; gap: var(--space-7); }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1fr; align-items: start; } }
.visit__addr { color: var(--ink); font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 800; line-height: 1.2; font-style: normal; margin-top: var(--space-4); }
.visit__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hours { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 1px 2px rgba(var(--dark-rgb), .06), 0 12px 24px rgba(var(--dark-rgb), .08); }
.hours caption { text-align: left; padding-bottom: var(--space-3); color: var(--ink); font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; }
.hours th, .hours td { padding: 14px 20px; text-align: left; border-top: 1px solid var(--stone-200); font-variant-numeric: tabular-nums; }
.hours tr:first-child th, .hours tr:first-child td { border-top: 0; }
.hours th { color: var(--ink); font-weight: 600; }
.hours tr.is-today { background: rgba(var(--accent-rgb), .06); }
.hours tr.is-today th::after { content: " · Today"; color: var(--accent-700); font-weight: 600; }
.hours__note { margin-top: var(--space-3); font-size: var(--fs-small); }

/* ---------- Final CTA ---------- */
.cta-band { background: var(--dark-950); color: var(--mist); text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.cta-band__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: grayscale(.4); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 18, 20, .55), rgba(17, 18, 20, .85)); }
.cta-band h2 { color: var(--white); max-width: 20ch; margin: var(--space-4) auto 0; }
.cta-band .lead { margin: var(--space-5) auto 0; color: var(--mist); }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); }
.cta-band::before { content: ""; position: absolute; z-index: 0; left: 50%; top: -120px; width: 520px; height: 240px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(var(--accent-rgb), .22), transparent); pointer-events: none; }
.cta-band .container { position: relative; z-index: 1; }

/* Photos uncover like a curtain while they enter (scroll-driven; same keyframes as motion.css) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .svc-detail__media img { animation: m-curtain linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}

/* ---------- Inner pages ---------- */
.page-hero { background: radial-gradient(90% 140% at 90% 0%, #202226 0%, var(--dark-950) 60%); }
.page-hero h1 { max-width: 20ch; }
.page-hero__lamp { position: absolute; right: var(--gutter); bottom: var(--space-7); width: min(180px, 30vw); height: auto; fill: none; stroke: var(--accent-500); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .14; }
.svc-detail { display: grid; gap: var(--space-6); align-items: start; scroll-margin-top: calc(var(--header-h) + 24px); }
.svc-detail + .svc-detail { margin-top: var(--space-9); padding-top: var(--space-9); border-top: 1px solid var(--stone-200); }
.svc-detail__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background: var(--dark-900); box-shadow: 0 2px 4px rgba(var(--dark-rgb), .06), 0 8px 16px rgba(var(--dark-rgb), .08), 0 24px 48px rgba(var(--dark-rgb), .12); }
.svc-detail__media img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.svc-detail__badge {
  position: absolute; left: 20px; bottom: -24px; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 16px;
  background: var(--dark-950); box-shadow: 0 0 0 5px var(--paper), inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 24px rgba(var(--dark-rgb), .35);
}
.svc-detail__badge svg { width: 44px; height: 44px; fill: none; stroke: var(--accent-500); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(240, 68, 56, .6)); }
.svc-detail h2 { margin-top: var(--space-3); }
.svc-detail p { margin-top: var(--space-4); max-width: 36rem; }
.svc-detail .check-list { margin-top: var(--space-5); }
.svc-detail__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
@media (min-width: 1024px) {
  .svc-detail { grid-template-columns: 5fr 6fr; gap: var(--space-9); align-items: center; }
  .svc-detail:nth-child(even) .svc-detail__media { order: 2; }
}
.topics { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-6) 0 0; padding: 0; list-style: none; }
.topics li { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(var(--dark-rgb), .06), 0 4px 10px rgba(var(--dark-rgb), .06); }
.topics b { color: var(--accent-700); font-family: var(--font-display); font-size: 1.125rem; }
.two-col { display: grid; gap: var(--space-7); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: var(--space-9); } }
.two-col p + p { margin-top: var(--space-4); }
.contact-card .ics { margin-top: var(--space-4); }
.contact-card a.ic { display: inline-grid; padding: 0; }
.form .field label, .form .field legend { color: var(--ink); font-weight: 600; }
.form__intro { margin-bottom: var(--space-6); }

/* ---------- Mobile contact bar (depth) ---------- */
.contact-bar { gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(17, 18, 20, .97); border-top: 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, .3); }
.contact-bar a { min-height: 48px; border-radius: var(--radius-sm); background: var(--dark-800); box-shadow: inset 0 0 0 1px var(--line-dark); font-family: var(--font-display); font-size: 1rem; letter-spacing: .02em; text-transform: none; }
.contact-bar a + a { border-left: 0; }
.contact-bar a.is-primary { background: linear-gradient(180deg, var(--accent-hi), var(--accent-600) 55%, var(--accent-lo)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.contact-bar svg { width: 20px; height: 20px; }
@media (max-width: 1023px) { body { padding-bottom: 72px; } }

@media (prefers-reduced-motion: reduce) {
  .svc-card:hover, .svc-card:focus-within, .ic:hover, .ic:active { transform: none; }
  .lamp svg, .lights .lamp blockquote, .lights .lamp figcaption { transition: none; }
}
