/* ============================================================
   Schlafer Auto Body — styles
   Palette: charcoal, steel gray, white, deep red, subtle blue
   Fonts: Anton (display), Barlow Condensed (headings), Barlow (body)
   ============================================================ */

:root {
  --charcoal: #16181c;
  --charcoal-2: #1e2228;
  --charcoal-3: #262b32;
  --steel: #3a4048;
  --steel-2: #5a626c;
  --steel-light: #8b939d;
  --white: #ffffff;
  --off-white: #f3f4f6;
  --paper: #fafafa;
  --red: #c02231;
  --red-dark: #9c1927;
  --red-soft: #e04656;
  --blue: #2f6d9e;
  --blue-soft: #4b87ba;
  --line: #e2e4e8;
  --line-dark: rgba(255, 255, 255, 0.1);

  --font-display: "Anton", Impact, sans-serif;
  --font-head: "Barlow Condensed", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;

  --wrap: 1160px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 18px 40px -18px rgba(22, 24, 28, 0.35);
  --shadow-sm: 0 6px 18px -10px rgba(22, 24, 28, 0.4);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography helpers ---------- */
.eyebrow, .section-label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 600;
  font-size: .82rem;
}
.section-label { color: var(--red); margin: 0 0 .6rem; }
.section-label.light { color: var(--red-soft); }

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}
.section-title.light { color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-note { color: var(--steel-2); margin: -.4rem 0 0; }

.lead { font-size: 1.12rem; color: var(--charcoal-2); }
.lead.light { color: rgba(255,255,255,.82); }
.muted { color: var(--steel-2); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--charcoal);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600; font-size: 1.02rem;
  text-transform: uppercase; letter-spacing: .04em;
  padding: .82rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background .2s, box-shadow .2s, border-color .2s, color .2s;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .ico { width: 1.1em; height: 1.1em; fill: currentColor; }

.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 22px -12px var(--red); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -14px var(--red); }

.btn-call { background: var(--charcoal); color: #fff; }
.btn-call:hover { background: var(--charcoal-3); }

.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: #fff; }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

.btn-ghost {
  background: rgba(255,255,255,.08); color: #fff;
  border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

.btn-lg { padding: 1rem 1.7rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(22, 24, 28, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner { display: flex; align-items: center; gap: 1.2rem; padding: .7rem 0; }

.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.brand-mark { display: grid; place-items: center; }
.brand-text { font-family: var(--font-head); line-height: 1; color: #fff; display: flex; flex-direction: column; }
.brand-text strong { font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.brand-text em { font-style: normal; font-size: .72rem; letter-spacing: .28em; color: var(--red-soft); text-transform: uppercase; }

.site-nav { display: flex; gap: 1.6rem; }
.site-nav a {
  font-family: var(--font-head); font-weight: 500; text-transform: uppercase;
  letter-spacing: .06em; color: rgba(255,255,255,.82); font-size: .95rem;
  position: relative; padding: .2rem 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--red); transition: width .25s var(--ease);
}
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { width: 100%; }

.header-call span { font-family: var(--font-head); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(47,109,158,.35), transparent 55%),
    radial-gradient(90% 80% at 8% 110%, rgba(192,34,49,.32), transparent 55%),
    linear-gradient(160deg, #1a1d22 0%, #16181c 55%, #0f1114 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}
.hero-inner { padding: clamp(4rem, 12vh, 8rem) 0 clamp(4rem, 10vh, 7rem); max-width: 780px; }

.eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: rgba(255,255,255,.75); margin: 0 0 1.4rem; }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(192,34,49,.25); }

.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  line-height: .96; letter-spacing: .005em; margin: 0 0 1.3rem;
  text-transform: uppercase;
}
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.35rem); color: rgba(255,255,255,.82); max-width: 560px; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* staggered entrance */
.hero .eyebrow, .hero-title, .hero-sub, .hero-actions {
  opacity: 0; transform: translateY(18px);
  animation: rise .8s var(--ease) forwards;
}
.hero-title { animation-delay: .08s; }
.hero-sub { animation-delay: .18s; }
.hero-actions { animation-delay: .28s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--red); color: #fff; }
.trust-track {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .8rem 1.3rem; padding: .95rem 1rem;
}
.trust-item { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .98rem; }
.trust-sep { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); }

/* ---------- About ---------- */
.about { padding: clamp(4rem, 9vh, 6.5rem) 0; }
.about-inner { display: grid; grid-template-columns: 1.4fr .9fr; gap: 3.5rem; align-items: center; }
.about-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.stats li {
  background: var(--charcoal); color: #fff; border-radius: var(--radius);
  padding: 1.3rem 1.4rem; display: flex; align-items: baseline; gap: .9rem;
  border-left: 4px solid var(--red);
}
.stat-num { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--red-soft); }
.stat-lbl { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-size: .95rem; color: rgba(255,255,255,.8); }

/* ---------- Services ---------- */
.services { padding: clamp(4rem, 9vh, 6.5rem) 0; background: var(--off-white); }
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--red); transition: width .3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { width: 100%; }
.card-wide { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; gap: 0 1.3rem; align-items: center; }
.card-wide h3, .card-wide p { grid-column: 2; }

.card-ico {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px;
  background: linear-gradient(150deg, var(--charcoal-2), var(--charcoal)); margin-bottom: 1.1rem;
}
.card-wide .card-ico { grid-row: span 2; margin-bottom: 0; }
.card-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--red-soft); stroke-width: 2; }
.card-ico svg [fill]:not([fill="none"]) { fill: var(--red-soft); stroke: none; }
.card h3 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .02em; font-size: 1.3rem; margin: 0 0 .5rem; }
.card p { margin: 0; color: var(--steel-2); }

/* ---------- Estimate CTA band ---------- */
.estimate-cta {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
}
.estimate-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.6rem; padding: clamp(2.5rem, 6vh, 4rem) 0;
}
.estimate-copy { max-width: 640px; }
.estimate-copy h2 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin: 0 0 .6rem; line-height: 1.05; }
.estimate-copy p { margin: 0; color: rgba(255,255,255,.9); font-size: 1.08rem; }
.estimate-cta .btn-primary { background: #fff; color: var(--red-dark); box-shadow: 0 12px 26px -12px rgba(0,0,0,.5); }
.estimate-cta .btn-primary:hover { background: var(--charcoal); color: #fff; }

/* ---------- Insurance ---------- */
.insurance { padding: clamp(4rem, 9vh, 6.5rem) 0; background: var(--charcoal); position: relative; overflow: hidden; }
.insurance::after {
  content: ""; position: absolute; right: -10%; top: -20%; width: 60%; height: 140%;
  background: radial-gradient(circle, rgba(47,109,158,.18), transparent 65%); pointer-events: none;
}
.insurance-panel { max-width: 760px; position: relative; z-index: 1; }
.steps { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.steps span {
  flex: none; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: var(--red); color: #fff; font-family: var(--font-display); font-size: 1.15rem;
}
.steps strong { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .03em; color: #fff; display: block; font-size: 1.08rem; }
.steps p { margin: .15rem 0 0; color: rgba(255,255,255,.66); font-size: .95rem; }

/* ---------- Gallery ---------- */
.gallery { padding: clamp(4rem, 9vh, 6.5rem) 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .5s var(--ease); }
.shot:hover img { transform: scale(1.05); }
.shot-wide { grid-column: span 2; }
.shot-wide img { aspect-ratio: 8 / 3; }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em;
  color: #fff; padding: 1.4rem .9rem .7rem; font-size: 1rem;
  background: linear-gradient(transparent, rgba(15,17,20,.85));
}

/* ---------- Service Area ---------- */
.area { padding: clamp(4rem, 9vh, 6.5rem) 0; background: var(--off-white); }
.area-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.area-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.area-list li {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .03em; font-weight: 500;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .8rem 1rem; display: flex; align-items: center; gap: .6rem; font-size: 1.05rem;
  transition: transform .2s var(--ease), border-color .2s;
}
.area-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.area-list li:hover { transform: translateX(4px); border-color: var(--red); }

/* ---------- Reviews ---------- */
.reviews { padding: clamp(4rem, 9vh, 6.5rem) 0; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.review {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm); border-top: 4px solid var(--blue);
}
.stars { color: #f0a91b; letter-spacing: .15em; font-size: 1.1rem; margin-bottom: .8rem; }
.review p { font-size: 1.18rem; font-weight: 500; color: var(--charcoal); margin: 0 0 1rem; }
.review cite { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-style: normal; color: var(--steel-2); font-size: .9rem; }

/* ---------- Contact ---------- */
.contact { padding: clamp(4rem, 9vh, 6.5rem) 0; background: var(--charcoal); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: start; }
.contact-info .section-title { color: #fff; }
.contact-info .section-label { color: var(--red-soft); }
.contact-address { font-style: normal; font-size: 1.1rem; color: rgba(255,255,255,.85); margin: 0 0 1.4rem; line-height: 1.9; }
.contact-address strong { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-size: 1.25rem; color: #fff; }
.phone-link { color: var(--red-soft); font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; letter-spacing: .02em; }
.phone-link:hover { color: #fff; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.8rem; }
.contact .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.contact .btn-outline:hover { background: #fff; color: var(--charcoal); }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); }
.map-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  min-height: 200px; text-align: center; padding: 1.5rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(47,109,158,.22), transparent 45%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px),
    var(--charcoal-2);
  transition: background .3s;
}
.map-placeholder:hover { background: var(--charcoal-3); }
.map-placeholder svg { width: 40px; height: 40px; fill: var(--red); stroke: var(--red); }
.map-placeholder span { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; }
.map-placeholder small { color: rgba(255,255,255,.6); }

/* ---------- Form ---------- */
.estimate-form-wrap { background: #fff; color: var(--charcoal); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-title { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .02em; font-size: 1.6rem; margin: 0 0 .4rem; }
.form-note { color: var(--steel-2); margin: 0 0 1.4rem; font-size: .95rem; }
.form-note a { color: var(--red); font-weight: 600; }
.hp-field { position: absolute; left: -5000px; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-size: .82rem; color: var(--steel); margin-bottom: .35rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--charcoal);
  padding: .75rem .85rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,34,49,.14); background: #fff;
}
.form-status { margin: 1rem 0 0; font-weight: 600; text-align: center; min-height: 1.2em; }
.form-status.success { color: #1c7c3d; }
.form-status.error { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: #0f1114; color: rgba(255,255,255,.7); padding-bottom: calc(1.4rem + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding: 3rem 0 2rem; border-bottom: 1px solid var(--line-dark); }
.footer-brand .brand-text { color: #fff; font-family: var(--font-head); font-size: 1.4rem; display: block; }
.footer-brand .brand-text strong { text-transform: uppercase; }
.footer-brand .brand-text em { font-style: normal; color: var(--red-soft); letter-spacing: .04em; }
.footer-brand p { margin: .8rem 0 0; }
.footer-loc { color: var(--steel-light) !important; }
.footer-contact { text-align: right; }
.footer-contact .phone-link { font-size: 1.4rem; }
.footer-contact p { margin: .5rem 0; }
.footer-contact a:last-child { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; color: var(--red-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.4rem 0 0; font-size: .9rem; }
.footer-bottom nav { display: flex; gap: 1.4rem; }
.footer-bottom nav a { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; }
.footer-bottom nav a:hover, .footer-contact a:hover { color: #fff; }

/* ---------- Mobile call bar ---------- */
.mobile-callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: .7rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(22,24,28,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-dark);
}
.mobile-callbar .btn { flex: 1; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .site-nav { display: none; }
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-column: span 2; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .shot-wide { grid-column: span 2; }
  .shot-wide img { aspect-ratio: 16 / 6; }
  .contact-grid { grid-template-columns: 1fr; }
  .area-inner { grid-template-columns: 1fr; gap: 1.6rem; }
}

@media (max-width: 620px) {
  .header-call span { display: none; }
  .header-call { padding: .6rem .8rem; }
  .service-grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; grid-template-columns: auto 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .shot-wide { grid-column: span 1; }
  .shot img, .shot-wide img { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-contact { text-align: left; }
  .estimate-form-wrap { padding: 1.4rem; }
  .mobile-callbar { display: flex; }
  main { padding-bottom: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
