/* G&L Lube & Oil — page styles. Tokens come from the shop itself:
   light gray walls, near-black ink, roof red as the accent, mural yellow for the one band and the pop. */
:root {
  --bg: #d6d9dc;
  --surface: #c6cbcf;
  --ink: #141518;
  --muted: #4b5056;
  --accent: #c1272d;
  --accent-strong: #a01d22;
  --accent-ink: #ffffff;
  --yellow: #f3c12b;
  --field-1: #f3c12b;  --field-1-ink: #141518;
  --field-2: #141518;  --field-2-ink: #e9eaec;
  --field-3: #c1272d;  --field-3-ink: #f2f2f3;

  --font-display: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.4rem, 8.6vw, 9rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --section: clamp(6rem, 12vw, 13rem);
  --radius: 0px;
  --top-h: 4.25rem;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { overflow-x: clip; }
h1, h2, h3 { font-weight: 700; }
.head { font-size: var(--step-head); line-height: 0.98; letter-spacing: -0.03em; }
.statement { font-family: var(--font-text); font-weight: 400; font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem); line-height: 1.22; max-width: none; }
.button { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; min-height: 3.25rem; padding: 0 1.6rem; }
.button-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; } /* taste-skill-ignore: solid-bordered secondary button */
@media (hover: hover) and (pointer: fine) {
  .button:hover { background-color: var(--accent-strong); }
  .button-ghost:hover { background-color: #fff; color: var(--ink); }
}
.link, .link-plain { text-underline-offset: 0.2em; }
.link-plain { transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .link-plain:hover { color: var(--accent); } }
:target { scroll-margin-top: var(--top-h); }

/* ---------- top bar: sits over the hero, turns solid once you scroll ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 1.5rem; min-height: var(--top-h); color: #fff; background: transparent; transition: background-color 300ms ease, color 300ms ease; }
.top.is-solid { background: var(--bg); color: var(--ink); }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.wordmark .wm-gl { color: var(--yellow); }
.wordmark .wm-amp { color: var(--accent); }
.top.is-solid .wordmark .wm-gl { color: var(--accent); }
.top.is-solid .wordmark .wm-amp { color: var(--ink); }
.menu { display: flex; gap: clamp(1rem, 3vw, 2.5rem); margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: var(--step-small); }
.menu a { text-decoration: none; position: relative; padding-bottom: 0.2em; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .menu a:hover::after { transform: scaleX(1); } }
.top-call { min-height: 2.5rem; padding-inline: 1rem; font-size: var(--step-small); }
@media (max-width: 47.99em) {
  .menu { display: none; }
  .top-call { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--field-2); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 15, 18, 0.88) 0%, rgba(14, 15, 18, 0.45) 45%, rgba(14, 15, 18, 0.15) 100%); } /* taste-skill-ignore: neutral scrim under text on a photo */
.hero-body { position: relative; width: 100%; padding-top: calc(var(--top-h) + 3rem); padding-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.hero-title { font-size: var(--step-display); line-height: 0.92; letter-spacing: -0.04em; text-transform: uppercase; max-width: none; text-wrap: initial; }
.hero-title .line:first-child { font-size: 0.55em; line-height: 1.1; }
.hero-title .pop { color: var(--yellow); }
.hero-support { margin-top: 1.5rem; max-width: 40ch; font-size: var(--step-lead); line-height: 1.35; color: #f1f1f3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-status { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; color: #d6d9dc; }
.dot { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--yellow); display: inline-block; }
.hero-status.is-open .dot { background: #5ed37a; }
@media (max-width: 47.99em) {
  .hero-title { font-size: 13vw; }
  .hero-actions .button { width: 100%; }
  .hero-media img { object-position: 30% 60%; }
}

/* ---------- the strip ---------- */
.strip { background: var(--accent); color: #fff; overflow: hidden; font-family: var(--font-display); font-weight: 700; font-size: var(--step-lead); text-transform: uppercase; letter-spacing: -0.01em; padding-block: 0.9rem; }
.strip-track { display: flex; gap: 0; width: max-content; white-space: nowrap; }
.strip-track span { padding-inline: 1.25em; position: relative; }
.strip-track span + span::before { content: ""; position: absolute; left: -0.3em; top: 50%; width: 0.5em; height: 0.5em; margin-top: -0.25em; border-radius: 50%; background: var(--yellow); }

/* ---------- services ---------- */
.services { padding-block: var(--section) calc(var(--section) * 0.8); }
.services-head { max-width: 22ch; }
.services .statement { margin-top: clamp(2.5rem, 6vw, 4.5rem); max-width: 40ch; }
.statement .thumb { display: inline-block; width: 1.25em; height: 0.85em; vertical-align: -0.1em; margin: 0 0.12em; border-radius: 0.14em; overflow: hidden; background: var(--surface); transition: transform var(--t-hover) var(--ease-out); }
.statement .thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .statement .thumb:hover { transform: scale(1.1); } }

.services-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; margin-top: clamp(3rem, 7vw, 6rem); }
.services-preview { grid-column: 1 / span 5; position: sticky; top: calc(var(--top-h) + 1.5rem); aspect-ratio: 4 / 5; margin: 0; overflow: hidden; background: var(--surface); }
.services-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 500ms var(--ease-out), transform 900ms var(--ease-soft); }
.services-preview img.is-on { opacity: 1; transform: none; }
.services-table { grid-column: 7 / span 6; width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.services-table tr { vertical-align: baseline; transition: background-color var(--t-hover) ease; }
.services-table th, .services-table td { padding: 0.8rem 0.5rem; text-align: left; font-weight: 400; }
.services-table th { width: 24%; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.services-table td { width: 50%; }
.services-table td.val { width: 26%; text-align: right; font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.services-table tr.group th, .services-table tr.group td { padding-top: 2.75rem; }
@media (hover: hover) and (pointer: fine) { .services-table tr:hover { background: var(--surface); } }
@media (max-width: 63.99em) {
  .services-grid { display: block; }
  .services-preview { position: relative; top: auto; width: 100%; aspect-ratio: 3 / 2; margin-bottom: 2rem; }
  .services-table th, .services-table td { display: block; width: auto; padding: 0; }
  .services-table tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "kind val" "what what"; padding-block: 0.8rem; column-gap: 1rem; }
  .services-table th { grid-area: kind; }
  .services-table td { grid-area: what; }
  .services-table td.val { grid-area: val; text-align: right; }
  .services-table tr.group { padding-top: 2.5rem; }
  .services-table tr.group th, .services-table tr.group td { padding-top: 0; }
}

/* ---------- prices: the yellow band ---------- */
.prices { background: var(--field-1); color: var(--field-1-ink); padding-block: calc(var(--section) * 0.8); }
.prices-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.prices-text { grid-column: 1 / span 7; }
.prices-photo { grid-column: 9 / span 4; margin: 0; overflow: hidden; }
.prices-photo img { width: 100%; height: auto; }
.prices .head { max-width: 16ch; }
.prices-statement { margin-top: clamp(2rem, 4vw, 3rem); max-width: 38ch; }
.figures { display: flex; flex-wrap: wrap; gap: 2rem 3.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.figure { display: flex; flex-direction: column; }
.figure-num { font-family: var(--font-display); font-weight: 700; font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; }
.figure-label { margin-top: 0.4rem; font-size: var(--step-body); }
.prices-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.prices .button { background: var(--field-2); color: var(--field-2-ink); }
.prices-link { font-family: var(--font-display); font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .prices .button:hover { background: var(--accent); } }
.prices ::selection { background: var(--ink); color: var(--field-1); }
@media (max-width: 63.99em) { .prices-grid { display: block; } .prices-photo { width: 60%; margin: 3rem 0 0 auto; } }

/* ---------- the shop: a wall of pictures ---------- */
.gallery { background: var(--field-3); color: var(--field-3-ink); padding-block: var(--section) 0; }
.gallery-head { max-width: 14ch; }
.gallery-lead { margin-top: 1.25rem; font-size: var(--step-lead); max-width: 40ch; }
.wall { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 22vw; grid-auto-flow: dense; gap: 0.5rem; margin-top: clamp(2.5rem, 6vw, 5rem); padding: 0 0.5rem 0.5rem; }
.tile { margin: 0; overflow: hidden; background: #a51f25; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-soft); }
.tile-wide { grid-column: span 2; }
.tile-tall { grid-row: span 2; }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.06); } }
@media (max-width: 63.99em) { .wall { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; } .tile-wide { grid-column: span 2; } }

/* ---------- the mural holds; the contact section slides over it ---------- */
.mural { position: sticky; top: 0; height: 100svh; margin: 0; overflow: hidden; z-index: 0; }
.mural img { width: 100%; height: 100%; object-fit: cover; }
.contact { position: relative; z-index: 1; background: var(--bg); padding-block: var(--section) calc(var(--section) * 0.75); }
.contact-head { max-width: 18ch; }
.contact-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; margin-top: clamp(2.5rem, 6vw, 5rem); }
.contact-statement { grid-column: 1 / span 5; }
.contact-photo { grid-column: 7 / span 3; margin: 0; overflow: hidden; aspect-ratio: 3 / 4; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-links { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 0.6rem; }
.contact-q { font-family: var(--font-display); font-weight: 700; margin-bottom: 0.4rem; }
.contact-links a { font-size: var(--step-body); }
.contact-tel { font-family: var(--font-display); font-weight: 700; font-size: var(--step-lead) !important; }
.hours-list { margin-top: 1rem; display: grid; gap: 0.3rem; }
.hours-list div { display: flex; justify-content: space-between; gap: 1rem; }
.hours-list dt { color: var(--muted); }
.status-line { color: var(--muted); margin-top: 0.3rem; }
@media (max-width: 63.99em) {
  .contact-row { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .contact-statement { grid-column: 1 / -1; }
  .contact-photo { grid-column: 1; aspect-ratio: 3 / 4; }
  .contact-links { grid-column: 2; }
}
@media (max-width: 47.99em) {
  .contact-row { grid-template-columns: 1fr; }
  .contact-photo { width: 55%; }
  .contact-links { grid-column: 1; }
}

/* ---------- footer: invitation over a cropped name ---------- */
.foot { position: relative; z-index: 1; background: var(--field-2); color: var(--field-2-ink); min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
@media (max-width: 63.99em) { .foot { min-height: auto; } .legal { margin-top: 4rem; } }
.foot-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-top: clamp(4rem, 10vh, 7rem); }
.invite { grid-column: 1 / span 7; }
.invite-text { font-family: var(--font-display); font-weight: 700; font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.03em; max-width: none; }
.invite .button { margin-top: 2rem; }
.foot-links { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 0.75rem; padding-top: 0.5rem; }
.foot-links a { text-decoration-color: currentColor; }
.legal { margin-top: auto; display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.5rem; color: #b9b5ae; }
.foot-mark { font-family: var(--font-display); font-weight: 700; font-size: 27vw; line-height: 0.8; letter-spacing: -0.045em; white-space: nowrap; margin: 0; padding-left: var(--margin); transform: translateY(30%); text-transform: uppercase; max-width: none; }
.foot ::selection { background: var(--field-1); color: var(--ink); }
@media (max-width: 47.99em) {
  .foot-top { display: block; }
  .invite .button { width: 100%; }
  .foot-links { flex-direction: row; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 2.5rem; }
  .legal { flex-direction: column; gap: 0.25rem; }
  .foot-mark { font-size: 34vw; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { animation-duration: 900ms; }
  .js .hero-title [data-line] { animation-duration: 1100ms; }
  .js .hero-media img { animation: hero-zoom 14s var(--ease-soft) both; }
  @keyframes hero-zoom { from { transform: scale(1.14); } to { transform: scale(1); } }
  .js .strip-track { animation: marquee 38s linear infinite; }
  .strip:hover .strip-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
  .js .tile[data-reveal] { transition-delay: calc(var(--i, 0) * 70ms); }
  .js .tile[data-reveal]:not(.is-in) { transform: translateY(32px) scale(0.98); }
  .js .services-table[data-reveal] tr { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
  .js .services-table[data-reveal].is-in tr { opacity: 1; transform: none; }
  .js .services-table[data-reveal].is-in tr:nth-child(1) { transition-delay: 60ms; }
  .js .services-table[data-reveal].is-in tr:nth-child(2) { transition-delay: 120ms; }
  .js .services-table[data-reveal].is-in tr:nth-child(3) { transition-delay: 180ms; }
  .js .services-table[data-reveal].is-in tr:nth-child(4) { transition-delay: 240ms; }
  .js .services-table[data-reveal].is-in tr:nth-child(5) { transition-delay: 300ms; }
  .js .services-table[data-reveal].is-in tr:nth-child(6) { transition-delay: 360ms; }
  .js .services-table[data-reveal].is-in tr:nth-child(7) { transition-delay: 420ms; }
  .js .services-table[data-reveal].is-in tr:nth-child(8) { transition-delay: 480ms; }
  .js .services-table[data-reveal].is-in tr:nth-child(9) { transition-delay: 540ms; }
  .js .services-table[data-reveal].is-in tr:nth-child(10) { transition-delay: 600ms; }
  .js .figures[data-reveal] .figure { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); }
  .js .figures[data-reveal].is-in .figure { opacity: 1; transform: none; }
  .js .figures[data-reveal].is-in .figure:nth-child(2) { transition-delay: 90ms; }
  .js .figures[data-reveal].is-in .figure:nth-child(3) { transition-delay: 180ms; }
  @supports (animation-timeline: view()) {
    .prices-photo img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { transform: translateY(-6%) scale(1.12); } to { transform: translateY(6%) scale(1.12); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
}
