/* ============================================================
   Grand Ozaukee Automotive — mobile-first stylesheet
   ============================================================ */

:root {
  --bg: #0d0f12;
  --bg-2: #15171b;
  --bg-3: #1b1e23;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f2ee;
  --muted: #a8a59f;
  --accent: #ff5a1f;
  --accent-2: #ffb347;
  --accent-grad: linear-gradient(120deg, #ff5a1f, #ffb347);
  --radius: 18px;
  --header-h: 68px;
  --font-display: "Bebas Neue", "Archivo", sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100dvh;
}

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

.accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: 600 0.95rem/1 var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  min-height: 48px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn--solid {
  background: var(--accent-grad);
  color: #18120e;
  box-shadow: 0 8px 24px rgba(255, 90, 31, 0.35);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255, 90, 31, 0.5); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn--ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center;
}
.loader__inner { display: grid; gap: 1.1rem; justify-items: center; }
.loader__badge {
  font: 400 2rem/1 var(--font-display);
  letter-spacing: 0.06em;
  color: #18120e;
  background: var(--accent-grad);
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: 20px;
}
.loader__bar {
  width: 140px; height: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.loader__bar-fill {
  display: block; width: 100%; height: 100%;
  background: var(--accent-grad);
  transform: scaleX(0); transform-origin: left;
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(13, 15, 18, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(13, 15, 18, 0.88); }
.header__inner {
  max-width: 1200px; margin: 0 auto; height: 100%;
  padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--text); }
.brand__badge {
  font: 400 1.15rem/1 var(--font-display);
  letter-spacing: 0.05em;
  color: #18120e;
  background: var(--accent-grad);
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  flex: none;
}
.brand__text { display: grid; line-height: 1.15; }
.brand__name { font: 400 1.05rem/1.1 var(--font-display); letter-spacing: 0.07em; text-transform: uppercase; }
.brand__sub { font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }

.nav { display: none; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; gap: 1.6rem; list-style: none; }
.nav__link {
  display: inline-block;
  padding: 0.7rem 0.2rem;
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--text); }
.nav__cta { padding: 0.6rem 1.1rem; min-height: 42px; font-size: 0.85rem; }

.nav-toggle {
  display: grid; gap: 5px;
  background: none; border: 0; cursor: pointer;
  padding: 15px 12px; margin-right: -12px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle__line {
  width: 24px; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 46;
  background: rgba(13, 15, 18, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: grid; gap: 2rem; justify-items: center; text-align: center; padding: 1rem; }
.mobile-menu__list { list-style: none; display: grid; gap: 1.4rem; }
.mobile-menu__link {
  font: 400 2.2rem/1 var(--font-display);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  transition: color 0.2s ease;
}
.mobile-menu__link:hover { color: var(--accent-2); }
.mobile-menu__hours { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.08em; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 2.5rem) 1.25rem 4.5rem;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow {
  position: absolute;
  width: 130vw; height: 130vw; max-width: 900px; max-height: 900px;
  top: -30%; right: -40%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.16) 0%, transparent 62%);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, black 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 35%, black 35%, transparent 75%);
}
.hero__inner {
  position: relative;
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; gap: 3rem;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.4rem;
}
.hero__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.2);
  flex: none;
}
.hero__title {
  font: 400 clamp(3.2rem, 13vw, 6.5rem)/0.96 var(--font-display);
  letter-spacing: 0.015em;
  text-transform: uppercase;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__line-inner { display: inline-block; will-change: transform; }
.hero__lede {
  max-width: 46ch;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.12rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero__proof {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
  list-style: none; margin-top: 2.8rem;
}
.hero__proof li { display: grid; gap: 0.15rem; }
.hero__proof strong { font: 400 2rem/1 var(--font-display); letter-spacing: 0.04em; color: var(--accent-2); }
.hero__proof span { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.hero__visual { display: grid; place-items: center; }
.gauge { width: min(78vw, 340px); height: auto; }
.gauge__value {
  font: 400 64px/1 var(--font-display);
  fill: var(--text);
  letter-spacing: 0.04em;
}
.gauge__label {
  font: 600 11.5px/1 var(--font-body);
  letter-spacing: 0.28em;
  fill: var(--muted);
}
.gauge__needle-group { transform-origin: 180px 180px; }

.hero__scroll-hint {
  position: absolute; left: 50%; bottom: 1.4rem;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
}
.hero__scroll-hint span {
  position: absolute; left: 50%; top: 7px;
  width: 4px; height: 8px; border-radius: 3px;
  background: var(--accent-2);
  transform: translateX(-50%);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  60% { transform: translate(-50%, 12px); opacity: 0.2; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 0.95rem 0;
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__group span {
  font: 400 1.15rem/1 var(--font-display);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  padding: 0 1.1rem;
  white-space: nowrap;
}
.marquee__group i { color: var(--accent); font-style: normal; }

/* ---------- Sections ---------- */
.section { padding: 5rem 1.25rem; }
.section__inner { max-width: 1200px; margin: 0 auto; }
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__eyebrow {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.section__title {
  font: 400 clamp(2.4rem, 8.5vw, 4rem)/1 var(--font-display);
  letter-spacing: 0.02em; text-transform: uppercase;
}
.section__lede { color: var(--muted); margin-top: 1.1rem; max-width: 50ch; }

/* ---------- Services ---------- */
.services { background: var(--bg); }
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 31, 0.45);
  background: var(--bg-3);
}
.card__icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(255, 90, 31, 0.12);
  color: var(--accent-2);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 {
  font-size: 1.08rem; font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}
.card p { color: var(--muted); font-size: 0.93rem; }

/* ---------- About ---------- */
.about { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about__inner { display: grid; gap: 3rem; }
.about__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.about__art { width: 100%; height: auto; }
.about__badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--accent-grad);
  color: #18120e;
  border-radius: 14px;
  padding: 0.6rem 0.9rem;
  text-align: center;
  font: 400 1.1rem/1.1 var(--font-display);
  letter-spacing: 0.06em;
  box-shadow: 0 10px 26px rgba(255, 90, 31, 0.4);
}
.about__copy p { color: var(--muted); margin-top: 1.1rem; max-width: 54ch; }
.about__points { list-style: none; margin: 1.6rem 0 2rem; display: grid; gap: 0.8rem; }
.about__points li {
  position: relative;
  padding-left: 1.9rem;
  font-weight: 500;
}
.about__points li::before {
  content: "";
  position: absolute; left: 0; top: 0.32em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background:
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2318120e" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4 10-10"/></svg>') center / 11px no-repeat,
    linear-gradient(120deg, #ff5a1f, #ffb347);
}

/* ---------- Why ---------- */
.why__list { list-style: none; display: grid; gap: 0; max-width: 820px; }
.why__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
}
.why__item:first-child { border-top: 1px solid var(--line); }
.why__num {
  font: 400 1.6rem/1 var(--font-display);
  letter-spacing: 0.05em;
  color: var(--accent);
  padding-top: 0.2rem;
}
.why__item h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 0.4rem; }
.why__item p { color: var(--muted); font-size: 0.95rem; max-width: 58ch; }

/* ---------- Contact ---------- */
.contact { padding-bottom: 6rem; }
.contact__card {
  background: linear-gradient(160deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  padding: 2.2rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.contact__card::before {
  content: "";
  position: absolute; top: -120px; right: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.18), transparent 65%);
  pointer-events: none;
}
.contact__title {
  font: 400 clamp(2.4rem, 9vw, 3.6rem)/1 var(--font-display);
  letter-spacing: 0.02em; text-transform: uppercase;
}
.contact__lede { color: var(--muted); margin-top: 0.9rem; }
.contact__grid {
  display: grid; grid-template-columns: 1fr; gap: 0.9rem;
  margin: 2rem 0 2.4rem;
}
.contact__tile {
  display: grid; gap: 0.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  text-decoration: none; color: var(--text);
  transition: border-color 0.25s ease, background-color 0.25s ease;
  overflow-wrap: anywhere;
}
a.contact__tile:hover { border-color: rgba(255, 90, 31, 0.5); background: rgba(255, 90, 31, 0.07); }
.contact__tile-label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2);
}
.contact__tile-value { font-weight: 600; font-size: 0.98rem; }

.contact__form { display: grid; gap: 1rem; position: relative; }
.field-row { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.45rem; }
.field span {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  font: 500 1rem/1.4 var(--font-body);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  min-height: 48px;
  width: 100%;
  transition: border-color 0.25s ease;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(168, 165, 159, 0.55); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact__submit { width: 100%; margin-top: 0.4rem; }
.contact__form-note { color: var(--accent-2); font-size: 0.9rem; min-height: 1.4em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__inner {
  max-width: 1200px; margin: 0 auto;
  padding: 2.6rem 1.25rem calc(2.6rem + 64px); /* room for call bar on mobile */
  display: grid; gap: 0.9rem; justify-items: center; text-align: center;
}
.footer__tag { color: var(--muted); font-size: 0.92rem; }
.footer__legal { color: rgba(168, 165, 159, 0.6); font-size: 0.8rem; }

/* ---------- Sticky call bar (mobile) ---------- */
.call-bar {
  position: fixed; left: 0.9rem; right: 0.9rem; bottom: 0.9rem; z-index: 45;
  display: flex; align-items: center; justify-content: center; gap: 0.55rem;
  background: var(--accent-grad);
  color: #18120e;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  min-height: 52px;
  box-shadow: 0 10px 30px rgba(255, 90, 31, 0.45);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* ---------- Reveal defaults (no-JS safe) ---------- */
[data-reveal] { opacity: 1; }
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js .hero__line-inner { transform: translateY(110%); }
.js [data-hero-fade] { opacity: 0; transform: translateY(18px); }

/* ============================================================
   Tablet & up
   ============================================================ */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 1.15rem; }
  .contact__card { padding: 3rem 2.5rem; }
  .contact__submit { width: auto; justify-self: start; }
}

@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .call-bar { display: none; }
  .footer__inner { padding-bottom: 2.6rem; }

  .hero { padding-left: 2rem; padding-right: 2rem; }
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 2rem;
  }
  .gauge { width: min(34vw, 400px); }

  .section { padding: 7rem 2rem; }
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .card--wide { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1.4rem; align-items: center; }
  .card--wide .card__icon { grid-row: 1 / 3; margin-bottom: 0; }
  .card--wide h3 { margin-bottom: 0; align-self: end; }
  .card--wide p { align-self: start; }
  .card--wide p { max-width: 64ch; }

  .about__inner { grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 4rem; }

  .why__item { grid-template-columns: 90px 1fr; padding: 2.2rem 0; }
  .why__num { font-size: 2rem; }
}

@media (min-width: 1200px) {
  .hero__title { font-size: 6.8rem; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal],
  .js [data-hero-fade],
  .js .hero__line-inner {
    opacity: 1 !important;
    transform: none !important;
  }
}
