/* Petty Auto Repair — Direction C "Four Bays"
   White ground, near-black ink, neutral greys, one deep-green accent.
   Display: Bricolage Grotesque. Text: Hanken Grotesk. */

:root {
  --bg: #ffffff;
  --ink: #111418;
  --ink-2: #3f444c;
  --ink-3: #5f656e;
  --line: #e2e4e7;
  --line-strong: #878d95; /* 3.3:1 on white: input and ghost-button borders */
  --surface: #f3f4f5;
  --accent: #0f6b3e;
  --accent-hover: #0a5531;
  --accent-soft: #e7f1ec;
  --on-photo: #ffffff;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --header-h: 64px;
  --gutter: clamp(16px, 4vw, 48px);
  --container: 1360px;
  --radius: 6px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --callbar-h: 60px;
}

@media (min-width: 880px) {
  :root { --header-h: 72px; --callbar-h: 0px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 120px); }
.section + .section { padding-top: 0; }
.section-head {
  display: grid; gap: 16px 48px; margin-bottom: clamp(28px, 4vw, 48px);
}
@media (min-width: 880px) {
  .section-head { grid-template-columns: 180px 1fr; align-items: start; }
  .section-index { padding-top: 0.6em; }
}
.section-index {
  font-family: var(--font-display); font-size: 0.9375rem; font-weight: 600; color: var(--ink-3);
  display: flex; align-items: center; gap: 10px;
}
.section-index::before { content: ""; width: 20px; height: 1px; background: var(--ink-3); }
.section-head h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.875rem); line-height: 1.08; max-width: 18ch; }
.section-head .lead { margin-top: 12px; max-width: 58ch; color: var(--ink-2); font-size: 1.125rem; }
.lead { color: var(--ink-2); font-size: 1.125rem; }
.muted { color: var(--ink-3); }
.small { font-size: 0.9375rem; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: var(--radius);
  font-family: var(--font-text); font-weight: 600; font-size: 0.9375rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: background-color 160ms, color 160ms, border-color 160ms, transform 160ms var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--surface); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--surface); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

/* lift-arm: the primary button carries a small arm on the left that raises on hover (moment of our own) */
.btn-primary .arm { position: relative; width: 16px; height: 16px; flex: none; }
.btn-primary .arm::before, .btn-primary .arm::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: #fff; border-radius: 1px;
  transition: transform 300ms var(--ease-out);
}
.btn-primary .arm::before { bottom: 2px; }
.btn-primary .arm::after { bottom: 7px; transform-origin: left center; transform: rotate(0deg); }
.btn-primary:hover .arm::after, .btn-primary:focus-visible .arm::after { transform: translateY(-4px) rotate(-18deg); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand img { height: 30px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-name small { display: block; font-family: var(--font-text); font-weight: 500; font-size: 0.75rem; color: var(--ink-3); letter-spacing: 0; line-height: 1.1; }
@media (min-width: 880px) { .brand img { height: 36px; } }

.site-nav ul { list-style: none; display: flex; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none;
  font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); border-radius: var(--radius);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px;
  text-decoration: none; font-weight: 600; font-size: 0.9375rem; color: var(--ink-2); border-radius: var(--radius);
}
.lang-link:hover { background: var(--surface); color: var(--ink); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

@media (max-width: 879.98px) {
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h); background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px; display: none;
  }
  .site-nav.is-open { display: block; }
  html:not(.js) .site-nav { display: block; position: static; padding: 0 0 12px; border: 0; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { min-height: 48px; width: 100%; font-size: 1.0625rem; }
  .header-call { display: none; }
}
@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(36px, 6vw, 88px); padding-bottom: clamp(28px, 4vw, 56px); }
.hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.6vw, 5.5rem); line-height: 0.98; letter-spacing: -0.03em; max-width: 14ch;
}
.hero-grid { display: grid; gap: 28px; margin-top: clamp(24px, 3vw, 40px); }
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: start; }
}
.hero-sub { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); color: var(--ink-2); max-width: 54ch; line-height: 1.5; }
.hero-actions { display: grid; gap: 10px; }
.hero-actions .btn { min-height: 52px; font-size: 1rem; }
@media (min-width: 560px) and (max-width: 879.98px) { .hero-actions { grid-template-columns: 1fr 1fr; } .hero-actions .btn-primary { grid-column: 1 / -1; } }
.hero-facts { margin-top: 14px; display: grid; gap: 6px; color: var(--ink-2); font-size: 0.9375rem; }
.hero-facts strong { font-weight: 600; color: var(--ink); }
.hero-facts a { color: var(--ink); }

/* entrance (JS only; resting state is fully visible) */
.js .rise { animation: rise 520ms var(--ease-out) both; }
.js .rise-2 { animation-delay: 80ms; }
.js .rise-3 { animation-delay: 160ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- four bays ---------- */
.bays-section { padding-bottom: clamp(56px, 8vw, 120px); }
.bays { list-style: none; }
.bay { position: relative; }
.bay-toggle {
  background: none; border: 0; padding: 0; text-align: left; cursor: pointer;
}
.bay-num { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.bay-name { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; }
.bay-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.bay-link svg { width: 18px; height: 18px; transition: transform 240ms var(--ease-out); }
.bay-link:hover svg { transform: translateX(4px); }
.bay-desc { color: inherit; }

@media (min-width: 880px) {
  .bays { display: flex; gap: 8px; height: clamp(480px, 72vh, 760px); container-type: inline-size; }
  .bay {
    flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--radius); background: var(--ink); color: var(--on-photo);
    transition: flex-grow 500ms var(--ease-out);
    isolation: isolate;
  }
  .bay.is-active { flex-grow: 4; }
  .bay-media { position: absolute; inset: 0; }
  .bay-media img {
    width: 100%; height: 100%; object-fit: cover; transform: scale(1.08);
    transition: transform 600ms var(--ease-out), opacity 300ms;
    opacity: 0.86;
  }
  .bay.is-active .bay-media img { transform: scale(1); opacity: 1; }
  /* legibility scrim for text on the photo */
  .bay-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(17,20,24,.78) 0%, rgba(17,20,24,.30) 48%, rgba(17,20,24,.10) 100%);
  }
  /* stretched link: the whole open bay goes to the service page.
     The body is the positioned ancestor, so the pseudo-element is oversized and clipped by the bay's overflow. */
  .bay-link::after { content: ""; position: absolute; inset: -100vh -100vw; z-index: 2; }
  .bay-toggle { position: absolute; inset: 0; z-index: 3; width: 100%; color: inherit; }
  .bay-toggle:focus-visible { outline-offset: -4px; }
  .bay-num {
    position: absolute; top: 22px; left: 22px; font-size: 0.9375rem; opacity: .85;
    transition: transform 420ms var(--ease-out), color 300ms;
  }
  .bay.is-active .bay-num { transform: translateY(-6px); }
  .bay-name {
    position: absolute; left: 22px; bottom: 22px; font-size: clamp(1.25rem, 1.6vw, 1.75rem); line-height: 1; white-space: nowrap;
    transform-origin: left bottom; transform: translateX(1.05em) rotate(-90deg);
    transition: transform 500ms var(--ease-out);
  }
  .bay.is-active .bay-name { transform: translateY(calc(-1 * var(--lift, 146px))); } /* --lift = measured body height + 18px (app.js) */
  /* the track line: draws under the name as the door opens */
  .bay-name::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 2px; background: var(--on-photo);
    transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease-out) 120ms;
  }
  .bay.is-active .bay-name::after { transform: scaleX(1); }
  .bay-body {
    position: absolute; left: 22px; bottom: 22px; z-index: 4; pointer-events: none;
    /* fixed to the OPEN bay's inner width (4/7 of the row minus gaps and padding) so the copy wraps the same
       whether the bay is open or closed, and the measured lift is right before the bay ever opens */
    width: min(46ch, calc((100cqw - 24px) * 4 / 7 - 44px)); max-width: 46ch;
    opacity: 0; transform: translateY(10px); transition: opacity 300ms, transform 420ms var(--ease-out);
  }
  .bay.is-active .bay-body { opacity: 1; transform: none; transition-delay: 140ms; pointer-events: auto; }
  .bay-body-inner { display: grid; gap: 12px; }
  .bay-body .bay-media-mobile { display: none; }
  .bay-desc { font-size: 1rem; line-height: 1.5; max-width: 42ch; }
  .bay-body-inner { min-height: 128px; align-content: end; }
  .bay-link { color: var(--on-photo); }
  /* no-JS hover fallback */
  html:not(.js) .bay:hover { flex-grow: 4; }
  html:not(.js) .bays:hover .bay.is-active:not(:hover) { flex-grow: 1; }
}

@media (max-width: 879.98px) {
  .bays { border-top: 1px solid var(--line); }
  .bay { border-bottom: 1px solid var(--line); }
  .bay-toggle { display: flex; width: 100%; align-items: center; gap: 16px; min-height: 60px; padding: 14px 0; }
  .bay-num { font-size: 0.9375rem; color: var(--ink-3); width: 28px; }
  .bay-name { font-size: 1.375rem; flex: 1; transition: color 200ms; }
  .bay.is-active .bay-name { color: var(--accent); }
  .bay-toggle::after {
    content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
    transform: rotate(45deg); transition: transform 300ms var(--ease-out); margin-right: 6px;
  }
  .bay.is-active .bay-toggle::after { transform: rotate(-135deg); }
  .bay-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 380ms var(--ease-out); }
  .bay.is-active .bay-body { grid-template-rows: 1fr; }
  html:not(.js) .bay-body { grid-template-rows: 1fr; }
  .bay-body-inner { overflow: hidden; display: grid; gap: 14px; }
  .bay-body-inner > :last-child { margin-bottom: 22px; }
  .bay-media { display: none; }
  .bay-media-mobile { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
  .bay-media-mobile img { width: 100%; height: 100%; object-fit: cover; }
  .bay-desc { color: var(--ink-2); }
  .bay-link { color: var(--accent); }
}

/* ---------- reveal (image mask) ---------- */
.reveal-grid { display: grid; gap: 28px; }
@media (min-width: 880px) { .reveal-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; } }
.reveal-copy h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.875rem); line-height: 1.08; }
.reveal-copy p { margin-top: 16px; color: var(--ink-2); }
.reveal-media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: var(--surface); }
.reveal-media img { width: 100%; height: 100%; object-fit: cover; }
.js .reveal-media.can-anim { clip-path: circle(var(--r, 75%) at 50% 50%); will-change: clip-path; }
.reveal figcaption { margin-top: 10px; font-size: 0.8125rem; color: var(--ink-3); }

/* ---------- how a repair works: scroll-stacking tickets ---------- */
.stack { display: grid; gap: 20px; }
.ticket {
  position: sticky; top: calc(var(--header-h) + 20px + var(--i, 0) * 22px);
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(22px, 3vw, 40px);
  transform: scale(var(--s, 1)); transform-origin: 50% 0;
  box-shadow: 0 1px 0 rgba(17,20,24,.03);
}
.ticket::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; opacity: var(--dim, 0); pointer-events: none; }
.ticket-head { display: flex; align-items: baseline; gap: 16px; }
.ticket-head .n { font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; color: var(--ink-3); }
.ticket h3 { font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem); line-height: 1.12; }
.ticket p { margin-top: 12px; color: var(--ink-2); max-width: 60ch; }
.ticket .cite { margin-top: 18px; font-size: 0.8125rem; color: var(--ink-3); }
@media (min-width: 880px) {
  .ticket { min-height: 250px; display: grid; grid-template-columns: 180px 1fr; gap: 24px; }
  .ticket-head { display: block; }
  .ticket .n { margin-bottom: 12px; }
}
.stack-note { margin-top: 28px; color: var(--ink-3); font-size: 0.9375rem; max-width: 64ch; }

/* ---------- location ---------- */
.location-grid { display: grid; gap: 28px; }
@media (min-width: 880px) { .location-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.addr { font-style: normal; font-size: 1.25rem; line-height: 1.4; }
.addr strong { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; display: block; margin-bottom: 4px; }
.hours { width: 100%; border-collapse: collapse; margin-top: 8px; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours th { color: var(--ink-3); font-weight: 500; width: 40%; }
.hours caption { text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; padding-bottom: 8px; }
.location-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.map-card {
  border: 1px solid var(--line); border-radius: 8px; padding: 24px; background: var(--surface); display: grid; gap: 12px; align-content: start;
}
.map-card .map-mark { width: 36px; height: 36px; color: var(--accent); }
.map-card p { color: var(--ink-2); }

/* ---------- quote form ---------- */
.quote-grid { display: grid; gap: 28px; }
@media (min-width: 880px) { .quote-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.quote-aside h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.875rem); line-height: 1.08; }
.quote-aside p { margin-top: 16px; color: var(--ink-2); }
.quote-aside .alt { margin-top: 24px; display: grid; gap: 8px; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field label .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: inherit; color: var(--ink); background: #fff;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field .hint { font-size: 0.875rem; color: var(--ink-3); }
.field .error { font-size: 0.875rem; color: #a3261b; display: none; }
.field.is-invalid .error { display: block; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #a3261b; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: 0.9375rem; padding: 0; margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.choices input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: 0.875rem; color: var(--ink-3); }
.form-status { display: none; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--ink); border-radius: var(--radius); padding: 18px 20px; }
.form-status.is-visible { display: block; }
.form-status strong { font-family: var(--font-display); font-weight: 600; display: block; margin-bottom: 4px; }
.form-summary { display: none; border: 1px solid #a3261b; border-radius: var(--radius); padding: 14px 18px; color: #a3261b; }
.form-summary.is-visible { display: block; }
.form-summary ul { list-style: disc; padding-left: 20px; margin-top: 6px; }
.form-summary a { color: inherit; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
  transition: transform 300ms var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 0 20px; color: var(--ink-2); max-width: 64ch; }
.faq-more { margin-top: 24px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; }
.cta-band .inner { display: grid; gap: 24px; padding-block: clamp(48px, 7vw, 96px); }
@media (min-width: 880px) { .cta-band .inner { grid-template-columns: 1fr auto; align-items: center; gap: 48px; } }
.cta-band h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); line-height: 1.06; max-width: 20ch; }
.cta-band p { margin-top: 12px; color: rgba(255,255,255,.78); max-width: 52ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 32px; font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 880px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; } }
.footer-brand img { width: 150px; height: auto; }
.footer-brand address { font-style: normal; margin-top: 16px; color: var(--ink-2); line-height: 1.55; }
.footer-brand address a { color: var(--ink); }
.site-footer h3 { font-size: 0.9375rem; font-family: var(--font-text); font-weight: 600; margin-bottom: 10px; }
.site-footer ul { list-style: none; display: grid; gap: 0; }
/* inline links that act as contact targets get a 44px tap height without changing the text rhythm */
.tap { display: inline-block; padding: 11px 0; margin: -11px 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.site-footer li a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--ink-3); font-size: 0.8125rem;
}
.footer-bottom a { color: var(--ink-3); }
.credit { font-size: 0.75rem; }
.credit a, .footer-bottom a { display: inline-block; padding: 14px 0; margin: -14px 0; }
.faq-more a { display: inline-block; padding: 10px 0; }

/* ---------- mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 59px;
  font-weight: 600; text-decoration: none; font-size: 0.9375rem;
}
.callbar a svg { width: 20px; height: 20px; }
.callbar .cb-call { background: var(--accent); color: #fff; }
.callbar .cb-wa { background: var(--ink); color: #fff; }
@media (min-width: 880px) { .callbar { display: none; } }

/* ---------- service page ---------- */
.breadcrumb { font-size: 0.875rem; color: var(--ink-3); padding-top: 20px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--ink-2); display: inline-block; padding: 8px 0; }
.breadcrumb [aria-current] { color: var(--ink); padding: 8px 0; display: inline-block; }
.page-hero { padding-top: clamp(16px, 3vw, 40px); padding-bottom: clamp(32px, 5vw, 64px); }
.page-hero-grid { display: grid; gap: 28px; }
@media (min-width: 880px) { .page-hero-grid { grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; } }
.page-hero h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; max-width: 14ch; }
.page-hero .hero-sub { margin-top: 20px; }
.page-hero .hero-actions { margin-top: 24px; max-width: 420px; }
.page-hero figure { margin: 0; }
.page-hero figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.page-hero figcaption { margin-top: 8px; font-size: 0.8125rem; color: var(--ink-3); }
.cols { display: grid; gap: 32px; }
@media (min-width: 880px) { .cols { grid-template-columns: 1fr 1fr; gap: 64px; } }
.list { list-style: none; border-top: 1px solid var(--line); }
.list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.list li .k { font-family: var(--font-display); font-weight: 600; color: var(--ink-3); font-size: 0.9375rem; padding-top: 3px; }
.list li strong { font-weight: 600; }
.list.plain li { grid-template-columns: 1fr; }
.badge-urgent { display: inline-block; margin-left: 6px; font-size: 0.75rem; font-weight: 600; color: var(--accent); }
.expect { border: 1px solid var(--line); border-radius: 8px; padding: 24px; background: var(--surface); }
.expect h2 { font-size: 1.375rem; margin-bottom: 8px; }
.expect p { color: var(--ink-2); }
.related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0ms !important; }
  .js .reveal-media.can-anim { clip-path: none; }
  .ticket { transform: none !important; }
  .ticket::after { opacity: 0 !important; }
  .bay-media img { transform: none !important; }
}
