/* =========================================================
   South East Autobody | Dark theme
   Accent: logo orange #F57F20. One accent, used everywhere.
   Radius system: cards 20px, inputs 12px, buttons and tabs full pill.
   ========================================================= */

:root {
  --bg: #0c0c0d;
  --bg-2: #141416;
  --bg-3: #1c1c1f;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #f2f2ef;
  --muted: #a3a3a8;
  --accent: #f57f20;
  --accent-hover: #ff9441;
  --on-accent: #140a02;

  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "Geist", system-ui, sans-serif;

  --r-card: 20px;
  --r-input: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --nav-h: 72px;
  --max-w: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* Film grain, fixed so it never repaints on scroll */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(2.1rem, 5vw, 4rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.15; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 150px) 0; }

.eyebrow {
  font-family: var(--f-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.2em;
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--f-display);
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn .ph { font-size: 1.15em; transition: transform .3s var(--ease); }
.btn:hover .ph-arrow-right, .btn:hover .ph-arrow-up-right { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(12, 12, 13, .45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--text); }
.btn-outline { color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 11px 20px; font-size: .85rem; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: .45em;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color .25s, border-color .25s;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(12, 12, 13, .78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
}
.nav-inner {
  max-width: var(--max-w); height: 100%;
  margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a:not(.btn) {
  font-size: .95rem; font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color .25s;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--text); margin: 6px 0; transition: transform .35s var(--ease); }
.nav-toggle.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 40px) 0 clamp(56px, 9vh, 110px);
  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: 60% 88%; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,12,13,.5) 0%, rgba(12,12,13,0) 22%, rgba(12,12,13,.35) 45%, rgba(12,12,13,.88) 75%, var(--bg) 100%),
    linear-gradient(90deg, rgba(12,12,13,.7) 0%, rgba(12,12,13,0) 70%);
}
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.6rem); max-width: 24ch; margin-bottom: .4em; }
.hero h1 span { display: block; }
.accent { color: var(--accent); }
.hero-sub { max-width: 46ch; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: #d4d4d1; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 26px 0;
  background: var(--bg);
}
.marquee-track {
  display: flex; width: max-content;
  gap: 48px;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track span { color: transparent; -webkit-text-stroke: 1.5px rgba(245, 127, 32, .75); }
.marquee-track span.solid { color: var(--text); -webkit-text-stroke: 0; }

/* ---------- Before / after ---------- */
.work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: 44px; }
.work-head h2 { margin: 0; }
.job-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.job-tab {
  border: 0; background: none; cursor: pointer;
  padding: 10px 20px; border-radius: 999px;
  font-weight: 600; font-size: .92rem;
  color: var(--muted);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.job-tab:hover { color: var(--text); }
.job-tab.is-active { background: var(--accent); color: var(--on-accent); }

.job {
  display: grid;
  grid-template-columns: 5fr 7fr;
  grid-template-areas: "before after" "note note";
  gap: 18px 24px;
  align-items: end;
}
.job[hidden] { display: none; }
.job.is-entering { animation: jobIn .7s var(--ease); }
@keyframes jobIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.job figure { margin: 0; }
.job-before { grid-area: before; }
.job-after { grid-area: after; }
.job figcaption {
  margin-top: 12px;
  font-family: var(--f-display); font-stretch: 112%; font-variation-settings: "wdth" 112;
  font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.job-after figcaption { color: var(--accent); }
.job-before img { aspect-ratio: 1; filter: grayscale(.45) brightness(.85); }
.job-after img { aspect-ratio: 4 / 3; }
.job-note { grid-area: note; max-width: 60ch; color: var(--muted); margin: 18px 0 32px; }

/* Zoomable image buttons (lightbox) */
.zoom {
  display: block; width: 100%;
  padding: 0; border: 0; background: var(--bg-2);
  border-radius: var(--r-card);
  overflow: hidden;
  cursor: zoom-in;
}
.zoom img { width: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s var(--ease); }
.zoom:hover img { transform: scale(1.04); }
.job-before .zoom:hover img { filter: none; }

/* ---------- Services bento ---------- */
#services h2 { margin-bottom: 44px; }
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(250px, auto));
  grid-template-areas:
    "crash crash paint resto"
    "dent  ins   paint resto";
  gap: 16px;
}
.tile {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--r-card);
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.tile h3 { margin-bottom: .45em; }
.tile p { margin: 0; color: var(--muted); font-size: .98rem; max-width: 40ch; }
.tile-icon { font-size: 2.6rem; color: var(--accent); }
.tile-crash { grid-area: crash; background: var(--accent); color: var(--on-accent); border-color: transparent; }
.tile-crash .tile-icon { color: var(--on-accent); font-size: 3.4rem; }
.tile-crash h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.tile-crash p { color: rgba(20, 10, 2, .78); font-size: 1.05rem; }
.tile-paint { grid-area: paint; }
.tile-resto { grid-area: resto; }
.tile-dent { grid-area: dent; }
.tile-ins { grid-area: ins; }

.tile-photo { justify-content: flex-end; border-color: transparent; }
.tile-photo img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.tile-photo::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,12,13,0) 30%, rgba(12,12,13,.92) 100%);
}
.tile-photo p { color: #cfcfcb; }
.tile-photo:hover img { transform: scale(1.05); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.about-text p { color: var(--muted); max-width: 52ch; font-size: 1.1rem; }
.stats { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 20px 48px; }
.stats li { display: flex; flex-direction: column; }
.stats strong {
  font-family: var(--f-display); font-stretch: 125%; font-variation-settings: "wdth" 125;
  font-weight: 900; font-size: clamp(2.6rem, 4.5vw, 3.8rem); line-height: 1;
  color: var(--accent);
}
.stats li > span { font-size: .9rem; color: var(--muted); margin-top: 8px; }

.about-media { position: relative; padding: 0 0 18% 0; }
.about-main { width: 82%; margin-left: auto; }
.about-main img { aspect-ratio: 4 / 5; }
.about-inset {
  position: absolute; left: 0; bottom: 0;
  width: 46%;
  border: 6px solid var(--bg);
  border-radius: calc(var(--r-card) + 6px);
}
.about-inset img { aspect-ratio: 1; }

/* ---------- Locations ---------- */
#locations h2 { margin-bottom: 44px; }
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.loc {
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.loc-map { aspect-ratio: 16 / 9; background: var(--bg-3); }
.loc-map iframe {
  width: 100%; height: 100%; border: 0; display: block;
  filter: invert(.9) hue-rotate(180deg) saturate(.6) contrast(.9);
}
.loc-body { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.loc-body h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.loc-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; color: var(--muted); }
.loc-list li { display: flex; align-items: center; gap: 12px; }
.loc-list .ph { color: var(--accent); font-size: 1.25rem; flex-shrink: 0; }
.loc-list a { color: var(--text); font-weight: 600; text-decoration: none; }
.loc-list a:hover { color: var(--accent); }
.loc-body .btn { margin-top: auto; }

/* ---------- Quote ---------- */
.quote {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start;
}
.quote-intro { position: sticky; top: calc(var(--nav-h) + 40px); }
.quote-intro p:not(.eyebrow) { color: var(--muted); max-width: 40ch; font-size: 1.1rem; margin-bottom: 28px; }

.quote-panel {
  display: grid; gap: 18px;
  padding: clamp(22px, 3vw, 40px);
  border-radius: var(--r-card);
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.quote-call {
  display: grid; gap: 6px;
  padding: 22px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-input);
  background: var(--bg);
  transition: border-color .25s, background .25s;
}
.quote-call:hover, .quote-call:focus-visible { border-color: var(--accent); background: rgba(245, 127, 32, .05); }
.quote-loc { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.quote-num { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; color: var(--text); }
.quote-num .ph { color: var(--accent); }
.quote-addr { color: var(--muted); }
.quote-hours { margin: 0; text-align: center; color: var(--muted); font-weight: 500; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 80px 0 0; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; }
.footer-logo { height: 64px; width: auto; margin-bottom: 18px; }
.footer p { color: var(--muted); font-size: .95rem; }
.footer h4 { font-size: .95rem; margin-bottom: 14px; color: var(--text); }
.footer a { text-decoration: none; color: var(--text); transition: color .25s; }
.footer a:hover { color: var(--accent); }
.footer-word {
  margin: 60px 0 0;
  text-align: center;
  font-family: var(--f-display); font-stretch: 125%; font-variation-settings: "wdth" 125;
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(3rem, 13.5vw, 15rem);
  line-height: .8;
  letter-spacing: -.03em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 127, 32, .45);
  user-select: none;
}
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 24px; }
.footer-bottom p { margin: 0; font-size: .85rem; }

/* ---------- Mobile call bar ---------- */
.call-bar { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(8, 8, 9, .92);
  backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 900px); max-height: 85vh; border-radius: var(--r-card); }
.lightbox-close {
  position: absolute; top: 18px; right: 18px;
  width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--bg-2);
  font-size: 1.4rem; cursor: pointer;
  display: grid; place-items: center;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: heroZoom 2.4s var(--ease) both; }
  .hero-line { animation: lineUp 1s var(--ease) both; animation-delay: calc(.25s + var(--i) * .12s); }
  .marquee-track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }

  [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  [data-reveal].is-visible { opacity: 1; transform: none; }
  .bento .tile:nth-child(2) { transition-delay: .08s; }
  .bento .tile:nth-child(3) { transition-delay: .16s; }
  .bento .tile:nth-child(4) { transition-delay: .1s; }
  .bento .tile:nth-child(5) { transition-delay: .18s; }
  .locations .loc:nth-child(2) { transition-delay: .1s; }
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes lineUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(calc(-50% - 24px)); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-template-areas:
      "crash crash"
      "paint resto"
      "dent  ins";
  }
  .tile { min-height: 260px; }
  .tile-paint, .tile-resto { min-height: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px;
    background: rgba(12, 12, 13, .96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .35s var(--ease), opacity .35s var(--ease), visibility .35s;
  }
  .nav-links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) {
    padding: 16px 0; border-bottom: 1px solid var(--line);
    font-family: var(--f-display); font-stretch: 125%; font-variation-settings: "wdth" 125;
    font-weight: 700; font-size: 1.3rem; color: var(--text);
  }
  .nav-links .btn { margin-top: 20px; }
  .nav.menu-open { background: rgba(12, 12, 13, .96); }

  .about, .quote, .locations { grid-template-columns: 1fr; }
  .quote-intro { position: static; }
  .about-media { max-width: 560px; }
}

@media (max-width: 640px) {
  .nav-logo img { height: 40px; }
  .hero { align-items: flex-end; }
  .hero { padding-bottom: 104px; }
  .hero-media { bottom: auto; height: 58%; }
  .hero-media img { object-position: 74% 50%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(12,12,13,.45) 0%, rgba(12,12,13,0) 25%, rgba(12,12,13,.35) 65%, var(--bg) 100%); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-actions .btn-ghost { display: none; } /* the call bar covers this on phones */

  .job { grid-template-columns: 1fr 1fr; grid-template-areas: "before after" "note note"; gap: 12px; }
  .job-after img { aspect-ratio: 1; }
  .job-tabs { width: 100%; border-radius: var(--r-card); }
  .job-tab { flex: 1 1 auto; padding: 10px 12px; }

  .bento { grid-template-columns: 1fr; grid-template-areas: "crash" "paint" "resto" "dent" "ins"; }
  .tile-paint, .tile-resto, .tile-dent { min-height: 320px; }
  .tile { min-height: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding-bottom: 76px; }

  .call-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    padding: 6px;
    border-radius: 999px;
    background: rgba(20, 20, 22, .85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line-strong);
  }
  .call-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 10px; border-radius: 999px;
    font-family: var(--f-display); font-stretch: 112%; font-variation-settings: "wdth" 112;
    font-weight: 700; font-size: .92rem; text-decoration: none;
    background: var(--accent); color: var(--on-accent);
  }
  .call-bar a + a { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
}
