/* site.css: goldcoastautobodyli.com. Every color is a token below; nothing else names a color. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/fonts/archivo.woff2') format('woff2');
}

:root {
  /* the brand: the logo's gold on black, its silver, nothing else */
  --bg: #0b0b0c;
  --bg-2: #131315;
  --bg-3: #1b1b1e;
  --line: #26262a;
  --line-2: #3a3a40;
  --text: #f3efe6;
  --text-2: #aaa79e;
  --gold: #d9a93c;
  --gold-2: #b8861f;
  --gold-3: #f4d47a;
  --gold-4: #fff1bf;
  --gold-5: #7a5410;
  --gold-ink: #2a1c05;
  --silver: #c8cbd1;
  --silver-2: #7d8089;
  --focus: #f4d47a;

  /* the car */
  --car-ink: #2a1c05;
  --car-tire: #121214;
  --car-glass: #0e0e10;
  --car-primer: #74777e;
  --car-primer-2: #5c5f66;
  --car-mark: #3d2a08;
  --car-glow: #fff6d2;
  --car-shadow: #000000;
  --car-sheen: #ffffff;

  --radius: 8px;
  --radius-card: 14px;
  --control: 2.75rem;
  --gutter: 16px;
  --measure: 62ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.04;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 50;
  padding: 0.5rem 0.75rem;
  background: var(--gold);
  color: var(--gold-ink);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: var(--gutter);
}

/* ---- buttons ------------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: var(--control);
  padding: 0 1.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition-property: background-color, border-color, color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.btn:active {
  scale: 0.96;
}
.btn-gold {
  background: var(--gold);
  color: var(--gold-ink);
  font-variant-numeric: tabular-nums;
}
.btn-gold:hover {
  background: var(--gold-3);
}
.btn-ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--silver-2);
  background: var(--bg-3);
}

/* ---- header ------------------------------------------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.5rem;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.top .brand {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
}
.top .brand img {
  height: 2.7rem;
  width: auto;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.top .btn {
  height: 2.5rem;
  font-size: 0.9rem;
}
@media (max-width: 599px) {
  .top .brand img {
    height: 2.1rem;
  }
  .hide-sm {
    display: none;
  }
}

/* ---- the stage ----------------------------------------------------------------------------- */

main {
  margin-top: -4.5rem; /* the header sits over the stage */
}

.stage {
  position: relative;
  min-height: 100svh;
}
.js .stage:not(.static) {
  height: 440svh;
}
.stage-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.car-box {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  padding: 4.5rem var(--gutter) 0.75rem;
}
.car-box svg {
  width: min(100%, 1120px);
  height: auto;
  max-height: 54svh;
}
.js #car {
  visibility: hidden; /* until the first frame is set, so the finished car never flashes first */
}
.js #car.ready {
  visibility: visible;
}

.beats {
  position: relative;
  width: 100%;
  max-width: 56rem;
  height: min(44svh, 25rem);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.beat {
  position: absolute;
  inset-inline: var(--gutter);
  bottom: 7svh;
  text-align: center;
  will-change: opacity, transform;
}
.beat h1,
.beat h2 {
  font-size: clamp(1.75rem, 0.9rem + 3.2vw, 3rem);
  color: var(--text);
}
.beat .lede {
  margin: 1rem auto 0;
  max-width: 38rem;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  line-height: 1.5;
  color: var(--text-2);
}
.eyebrow {
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.dots {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  display: none;
  flex-direction: column;
  gap: 0.6rem;
  translate: 0 -50%;
}
@media (min-width: 900px) {
  .dots {
    display: flex;
  }
}
.dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-2);
  transition-property: background-color, scale;
  transition-duration: 300ms;
}
.dots span[data-active='true'] {
  background: var(--gold);
  scale: 1.3;
}

/* with the script running, one beat is on stage at a time (site.js sets each beat's opacity) */
.js .stage:not(.static) .beat:not(:first-child) {
  opacity: 0;
  visibility: hidden;
}

/* reduced motion, or no JavaScript: the finished car once, the beats stacked under it */
.stage.static .stage-pin,
:root:not(.js) .stage-pin {
  position: static;
  height: auto;
  display: block;
}
.stage.static .car-box,
:root:not(.js) .car-box {
  padding-top: 6rem;
}
.stage.static .car-box svg,
:root:not(.js) .car-box svg {
  max-height: none;
}
.stage.static .beats,
:root:not(.js) .beats {
  height: auto;
  padding-bottom: 2rem;
}
.stage.static .beat,
:root:not(.js) .beat {
  position: static;
  margin-top: 3.5rem;
  opacity: 1;
  visibility: visible;
}
.stage.static .dots,
:root:not(.js) .dots {
  display: none;
}

/* ---- the car ------------------------------------------------------------------------------- */

.car-stop-1 {
  stop-color: var(--gold-4);
}
.car-stop-2 {
  stop-color: var(--gold-3);
}
.car-stop-3 {
  stop-color: var(--gold);
}
.car-stop-4 {
  stop-color: var(--gold-2);
}
.car-stop-5 {
  stop-color: var(--gold-5);
}
.car-rim-1 {
  stop-color: var(--silver);
}
.car-rim-2 {
  stop-color: var(--silver-2);
}
.car-body {
  fill: url(#car-gold);
  stroke: var(--car-ink);
  stroke-width: 2;
  stroke-linejoin: round;
}
.car-glass {
  fill: var(--car-glass);
  stroke: var(--car-ink);
  stroke-width: 2;
  stroke-linejoin: round;
}
.car-line {
  fill: none;
  stroke: var(--car-ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.car-line-soft {
  stroke-width: 1.75;
  stroke: color-mix(in srgb, var(--car-ink) 55%, transparent);
}
.car-panel {
  fill: var(--car-glass);
  stroke: var(--car-ink);
  stroke-width: 2;
  stroke-linejoin: round;
}
.car-tire {
  fill: var(--car-tire);
  stroke: var(--car-ink);
  stroke-width: 2.5;
}
.car-sidewall {
  fill: none;
  stroke: var(--silver-2);
  stroke-width: 1.5;
  opacity: 0.45;
}
.car-rim {
  fill: url(#car-rim);
  stroke: var(--car-ink);
  stroke-width: 2;
}
.car-spoke {
  stroke: var(--car-tire);
  stroke-width: 9;
  stroke-linecap: round;
}
.car-hub {
  fill: var(--silver);
  stroke: var(--car-ink);
  stroke-width: 2;
}
.car-light {
  fill: var(--car-glow);
  stroke: var(--car-ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.car-tail {
  fill: var(--gold-2);
  stroke: var(--car-ink);
  stroke-width: 1.5;
}
.car-mirror {
  fill: url(#car-gold);
  stroke: var(--car-ink);
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.car-ground {
  fill: var(--car-shadow);
  opacity: 0.55;
}
.car-primer rect {
  fill: var(--car-primer);
  stroke: none;
}
.car-paint-edge {
  fill: var(--gold-4);
}
.car-mark {
  fill: none;
  stroke: var(--car-mark);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.car-mark-glass {
  stroke: color-mix(in srgb, var(--silver) 90%, transparent);
  stroke-width: 1.5;
}
.car-scratch {
  stroke-width: 1.25;
}
.car-dent {
  fill: var(--gold-5);
  opacity: 0.55;
}
.car-dent-rim {
  fill: none;
  stroke: var(--gold-4);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.8;
}
.car-debris {
  fill: var(--car-primer-2);
  stroke: var(--car-ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.car-sheen {
  fill: color-mix(in srgb, var(--car-sheen) 28%, transparent);
  mix-blend-mode: screen;
}
.car-sparkle {
  fill: var(--car-glow);
}
.car-bracket {
  fill: none;
  stroke: var(--gold-3);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- after the stage ----------------------------------------------------------------------- */

.after {
  position: relative;
  background: var(--bg);
}
.after::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--text) 3%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text) 3%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, transparent, var(--car-shadow) 12rem);
  -webkit-mask-image: linear-gradient(to bottom, transparent, var(--car-shadow) 12rem);
}
.wrap {
  position: relative;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: 5rem 0 2rem;
}
.section h2 {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
}
.section > .wrap > p,
.section .intro {
  margin-top: 1rem;
  max-width: var(--measure);
  color: var(--text-2);
  font-size: 1.05rem;
}

.services {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 3rem;
}
@media (min-width: 720px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }
}
.services li {
  padding: 1.4rem 0 1.5rem;
  border-top: 1px solid var(--line);
}
.services h3 {
  font-size: 1.15rem;
}
.services p {
  margin-top: 0.4rem;
  color: var(--text-2);
}

.reviews {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.reviews p {
  flex: 1 1 22rem;
  color: var(--text-2);
}

.card {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  display: grid;
  gap: 2rem;
}
@media (min-width: 760px) {
  .card {
    grid-template-columns: 1fr 1fr;
    padding: 2.25rem;
  }
}
.card h3 {
  font-size: 0.8rem;
  font-stretch: 100%;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.card address {
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 1.35rem;
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.25;
}
.card .map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.card .lines {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.35rem;
}
.card .lines a {
  font-size: clamp(1rem, 0.6rem + 1.6vw, 1.2rem);
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.card .lines a:hover {
  color: var(--gold-3);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hours {
  margin: 0.6rem 0 0;
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
.hours th,
.hours td {
  padding: 0.55rem 0;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
  font-weight: 500;
}
.hours tr:first-child th,
.hours tr:first-child td {
  border-top: 0;
}
.hours th {
  color: var(--text-2);
  font-weight: 500;
  width: 55%;
}
.open-state {
  margin-top: 0.9rem;
  min-height: 1.5rem;
  color: var(--text-2);
}
.open-state[data-open='true'] {
  color: var(--gold-3);
}
.map {
  grid-column: 1 / -1;
  margin: 0;
}
.map iframe {
  width: 100%;
  height: 22rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-3);
}

footer {
  margin-top: 4rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: 0.85rem;
  color: var(--text-2);
}
footer img {
  height: 2rem;
  width: auto;
}
footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
footer a {
  text-decoration: none;
  overflow-wrap: anywhere;
}
footer a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---- rising in ----------------------------------------------------------------------------- */

[data-reveal] {
  transition-property: opacity, translate;
  transition-duration: 700ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal='out'] {
  opacity: 0;
  translate: 0 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .btn,
  .dots span {
    transition: none;
  }
}

/* ---- the restoration (car.js mountRestoration) ----------------------------------------------- */

.car-metal-1 {
  stop-color: var(--silver);
}
.car-metal-2 {
  stop-color: var(--silver-2);
}
.car-fanp-1 {
  stop-color: var(--silver);
  stop-opacity: 0.75;
}
.car-fanp-2 {
  stop-color: var(--car-primer);
  stop-opacity: 0;
}
.car-fang-1 {
  stop-color: var(--gold-3);
  stop-opacity: 0.6;
}
.car-fang-2 {
  stop-color: var(--gold-3);
  stop-opacity: 0;
}
.car-mist-1 {
  stop-color: var(--car-sheen);
  stop-opacity: 0.4;
}
.car-mist-2 {
  stop-color: var(--car-sheen);
  stop-opacity: 0;
}
.car-metal {
  fill: url(#car-metal);
}
.car-primer-coat {
  fill: var(--car-primer);
}
.car-edge-1 {
  stop-color: var(--car-primer);
  stop-opacity: 1;
}
.car-edge-2 {
  stop-color: var(--car-primer);
  stop-opacity: 0;
}
.car-primer-edge {
  fill: url(#car-primer-edge);
}
.car-frame-line {
  fill: none;
  stroke: var(--silver-2);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.car-frame-thin {
  stroke-width: 1.5;
  opacity: 0.7;
}
.car-frame-pipe {
  stroke-width: 6;
}
.car-frame-block {
  fill: var(--bg-3);
  stroke: var(--silver-2);
  stroke-width: 2;
  stroke-linejoin: round;
}
.car-spark {
  fill: none;
  stroke: var(--gold-4);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.car-gun {
  fill: var(--silver);
  stroke: var(--car-ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.car-gun-dark {
  fill: var(--bg-3);
  stroke: var(--car-ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.car-gun-line {
  fill: none;
  stroke: var(--car-ink);
  stroke-width: 3;
}
.car-fan-primer {
  fill: url(#car-fan-primer);
}
.car-fan-paint {
  fill: url(#car-fan-paint);
}
.car-mist {
  fill: url(#car-mist);
}
.car-gloss {
  fill: var(--car-sheen);
  mix-blend-mode: screen;
}
