/* Autotech Eastland. Dark theme locked to the brand (black, Autotech yellow, oval blue on the logo only).
   Shape rule: everything square-cornered except the logo oval. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #0d0e10;
  --surface: #16181c;
  --surface-2: #1d2025;
  --line: #2a2e35;
  --text: #f2f1ec;
  --muted: #a4a8b0;
  --yellow: #f7d417;
  --yellow-ink: #121212;
  --blue: #2c6bdc;
  --wrap: 1240px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-nav: 20;
  --z-callbar: 30;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--muted); }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--yellow-ink); padding: .75rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* Brand mark: typeset version of their yellow-on-blue oval logo */
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__oval {
  display: inline-block;
  padding: .2rem .9rem .25rem;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: radial-gradient(ellipse at 50% 30%, #1f4fae, #0b1a3d 75%);
  color: var(--yellow);
  font-weight: 900;
  font-style: italic;
  font-stretch: 85%;
  font-size: 1.2rem;
  letter-spacing: .01em;
  line-height: 1.2;
}
.brand__oval--sm { font-size: .95rem; padding: .1rem .6rem; }
.brand__sub { font-weight: 700; font-stretch: 112%; text-transform: uppercase; font-size: .78rem; letter-spacing: .14em; color: var(--muted); }

/* Buttons: square, one accent */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.25rem; padding: 0 1.5rem;
  font: inherit; font-weight: 800; font-stretch: 105%; font-size: 1rem;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 2px solid transparent; border-radius: 0;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn--yellow { background: var(--yellow); color: var(--yellow-ink); }
.btn--yellow:hover { background: #ffe24a; }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--yellow); }
.btn--sm { min-height: 2.6rem; padding: 0 1rem; font-size: .95rem; }
.btn--block { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: var(--z-nav); background: rgba(13, 14, 16, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav__links { display: none; list-style: none; margin: 0; padding: 0; gap: 2rem; }
.nav__links a { text-decoration: none; font-weight: 600; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__call { display: none; }
@media (min-width: 860px) {
  .nav__links { display: flex; }
  .nav__call { display: inline-flex; }
}

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero__title { font-size: clamp(2.4rem, 7.4vw, 4.4rem); font-weight: 900; font-stretch: 112%; letter-spacing: -.025em; line-height: 1; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
@media (min-width: 900px) { .hero__title .line > span { white-space: nowrap; } }
.hl { color: var(--yellow); }
.hero__sub { margin-top: 1.4rem; max-width: 36ch; color: var(--muted); font-size: 1.15rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__media { margin: 0; position: relative; }
.hero__frame { position: relative; border: 3px solid var(--yellow); overflow: hidden; }
.hero__frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.4); pointer-events: none; }
.hero__frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero__media::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; background: repeating-conic-gradient(var(--text) 0 25%, var(--bg) 0 50%) 0 0 / 22px 22px; opacity: .12; z-index: -1; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
}

/* Proof strip */
.proof { border-block: 1px solid var(--line); background: var(--surface); }
.proof__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding-block: 1.4rem; }
.proof__score { display: flex; align-items: center; gap: .75rem; }
.proof__score strong { font-size: 2.2rem; font-weight: 900; font-stretch: 112%; line-height: 1; }
.stars { display: inline-flex; color: var(--yellow); font-size: 1.15rem; }
.proof__text { color: var(--muted); max-width: 60ch; }

/* Section rhythm */
section { scroll-margin-top: 80px; }
.h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 900; font-stretch: 108%; letter-spacing: -.02em; max-width: 18ch; }
.eyebrow { font-weight: 700; font-stretch: 115%; text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; color: var(--yellow); }

/* WOF */
.wof { padding: clamp(4rem, 9vw, 7rem) 0; }
.wof__grid { display: grid; gap: 3rem; }
.wof__big { font-size: clamp(7rem, 22vw, 13rem); font-weight: 900; font-stretch: 125%; line-height: .85; letter-spacing: -.04em; color: var(--yellow); margin-top: .5rem; }
.wof__dollar { font-size: .45em; vertical-align: .9em; margin-right: .04em; }
.wof__note { color: var(--muted); margin-top: 1rem; max-width: 28ch; }
.wof__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.wof__list li { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.wof__list h3 { font-size: 1.25rem; font-weight: 800; font-stretch: 105%; margin-bottom: .35rem; }
.wof__list p { color: var(--muted); }
.wof__icon { display: grid; place-items: center; width: 3rem; height: 3rem; background: var(--surface-2); color: var(--yellow); font-size: 1.3rem; }
@media (min-width: 900px) {
  .wof__grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: start; }
  .wof__price { position: sticky; top: 110px; }
}

/* Services bento */
.services { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--surface); }
.bento { display: grid; gap: 1rem; margin-top: 2.5rem; }
.tile { position: relative; background: var(--surface-2); padding: 4.75rem 1.75rem 1.75rem; min-height: 12rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem; overflow: hidden; }
.tile h3 { font-size: 1.35rem; font-weight: 800; font-stretch: 105%; }
.tile p { color: var(--muted); }
.tile__icon { position: absolute; top: 1.5rem; left: 1.75rem; color: var(--yellow); font-size: 1.8rem; }
.tile--yellow { background: var(--yellow); color: var(--yellow-ink); }
.tile--yellow p { color: #3a3510; }
.tile--yellow .tile__icon { color: var(--yellow-ink); }
.tile--photo { padding: 0; min-height: 20rem; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile--photo:hover img { transform: scale(1.04); }
.tile__body--over { position: relative; padding: 1.75rem; background: linear-gradient(to top, rgba(8,9,10,.94) 30%, rgba(8,9,10,0)); padding-top: 5rem; }
.tile__body--over p { color: #c9ccd2; }
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--wide { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(13rem, auto); }
  .tile--tall { grid-row: span 2; }
  .tile--wide { grid-column: span 2; }
}

/* Reviews: horizontal scroll-snap row */
.reviews { padding: clamp(4rem, 9vw, 7rem) 0; }
.reviews__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(84vw, 400px); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  padding: 2.5rem max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))) 1.5rem;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.quote { margin: 0; scroll-snap-align: start; background: var(--surface); border-top: 3px solid var(--yellow); padding: 1.75rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.quote blockquote { margin: 0; font-size: 1.08rem; line-height: 1.55; }
.quote figcaption { font-weight: 800; display: flex; flex-direction: column; }
.quote figcaption span { font-weight: 500; color: var(--muted); font-size: .9rem; }

/* Pay */
.pay { padding: clamp(4rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); }
.pay__grid { display: grid; gap: 2.5rem; }
.pay__options { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pay__opt { background: var(--bg); padding: 1.5rem; }
.pay__name { font-weight: 900; font-stretch: 110%; font-size: 1.4rem; color: var(--yellow); margin-bottom: .35rem; }
.pay__opt p:not(.pay__name) { color: var(--muted); }
@media (min-width: 900px) {
  .pay__grid { grid-template-columns: 1fr 1.6fr; align-items: center; }
  .pay__options { grid-template-columns: repeat(3, 1fr); }
}

/* Track: full-bleed photo with copy */
.track { position: relative; min-height: min(80vh, 46rem); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.track__media { position: absolute; inset: -10% 0; z-index: -1; }
.track__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.track::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(13,14,16,.96) 18%, rgba(13,14,16,.35) 60%, rgba(13,14,16,.2)); }
.track__copy { padding-block: 4rem; }
.track__copy p { margin-top: 1rem; max-width: 46ch; color: #d4d6db; font-size: 1.1rem; }

/* Visit + form */
.visit { padding: clamp(4rem, 9vw, 7rem) 0 clamp(6rem, 10vw, 8rem); }
.visit__grid { display: grid; gap: 3rem; }
.visit__list { margin: 2rem 0; display: grid; gap: 1.25rem; }
.visit__list div { display: grid; gap: .2rem; }
.visit__list dt { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--yellow); }
.visit__list dd { margin: 0; font-size: 1.1rem; }
.visit__list dd a { text-decoration-color: var(--yellow); text-underline-offset: 3px; }
@media (min-width: 900px) { .visit__grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; } }

.form { background: var(--surface); padding: clamp(1.5rem, 4vw, 2.5rem); border-top: 4px solid var(--yellow); display: grid; gap: 1.1rem; }
.form__title { font-size: 1.6rem; font-weight: 900; font-stretch: 108%; }
.form__lead { color: var(--muted); margin-top: -.6rem; }
.field { display: grid; gap: .45rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1.4fr 1fr; } }
.field label { font-weight: 700; font-size: .95rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid #3a3f48; border-radius: 0; padding: .8rem .9rem; min-height: 3rem;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(247,212,23,.25); }
.field [aria-invalid="true"] { border-color: #ff8a7a; }
.field__error { color: #ff9d8f; font-size: .9rem; min-height: 0; }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status:empty { display: none; }
.form__status { padding: 1rem; font-weight: 600; }
.form__status[data-state="ok"] { background: rgba(247,212,23,.12); border-left: 3px solid var(--yellow); }
.form__status[data-state="error"] { background: rgba(255,138,122,.1); border-left: 3px solid #ff8a7a; }
.btn:disabled { opacity: .7; cursor: progress; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2rem 0 6rem; color: var(--muted); font-size: .95rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.footer a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer__credit a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 860px) { .footer { padding-bottom: 2rem; } }

/* Mobile call bar */
.callbar {
  position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: var(--z-callbar);
  display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.4rem;
  background: var(--yellow); color: var(--yellow-ink); font-weight: 800; text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
@media (min-width: 860px) { .callbar { display: none; } }

/* Motion start states only when JS + GSAP will animate them */
.js-motion [data-reveal], .js-motion [data-reveal-list] > * { opacity: 0; }
.js-motion .hero__copy, .js-motion .hero__media { visibility: hidden; }
