/* =========================================================
   Wurthy Automotive: brand tokens
   Black / chrome silver / signature red
   ========================================================= */
:root {
  --c-bg: #0B0B0C;
  --c-surface: #141416;
  --c-surface-2: #1C1C1F;
  --c-border: #2A2A2E;
  --c-text: #F5F5F6;
  --c-text-muted: #A9ADB3;      /* 8.4:1 on bg */
  --c-silver: #C9CDD2;
  --c-red: #E3151A;             /* brand red: buttons/accents (white on red 4.8:1) */
  --c-red-hover: #C40F14;
  --c-red-text: #FF4B4F;        /* red for small text on dark (5.6:1) */
  --c-light: #F2F2F3;
  --c-on-light: #111113;
  --c-error: #FF6B6E;
  --c-success: #4ADE80;

  --f-display: "Montserrat", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 999px;
  --radius-card: 14px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 160ms;
  --dur: 280ms;

  --z-header: 100;
}

/* ============ Reset / base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
svg { flex-shrink: 0; }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.muted { color: var(--c-text-muted); max-width: 60ch; }
.muted-sm { color: var(--c-text-muted); font-size: .875rem; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--c-red); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top var(--dur-fast);
}
.skip-link:focus { top: 16px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  border-radius: var(--radius); border: 1.5px solid transparent;
  font-family: var(--f-display); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--c-red); color: #fff; }
.btn-primary:hover { background: var(--c-red-hover); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--c-text); background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--c-text); font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid var(--c-red); min-height: 44px;
}
.text-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform var(--dur-fast); }
.text-link:hover svg { transform: translateX(3px); }

/* ============ Header / Nav ============ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(11, 11, 12, .88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 46px; height: 25px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--f-display); font-style: italic; font-weight: 900; font-size: 1.3rem; letter-spacing: .01em; }
.brand-sub { font-family: var(--f-display); font-weight: 600; font-size: .58rem; letter-spacing: .42em; color: var(--c-silver); margin-top: 4px; }

.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-menu ul { display: flex; gap: 4px; }
.nav-menu ul a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: .92rem; font-weight: 500; color: var(--c-text-muted); text-decoration: none;
  transition: color var(--dur-fast);
}
.nav-menu ul a:hover, .nav-menu ul a[aria-current="true"] { color: var(--c-text); }
.nav-menu ul a[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--c-red); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap;
}
.nav-phone svg { width: 18px; height: 18px; fill: none; stroke: var(--c-red-text); stroke-width: 2; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-text); border-radius: 2px; transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero (split, reference-inspired) ============ */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: min(calc(100dvh - 72px), 760px);
  border-bottom: 1px solid var(--c-border);
}
.hero-copy {
  position: relative; display: flex; align-items: center;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(227,21,26,.10), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 2px, transparent 2px 6px),
    var(--c-bg);
}
.hero-copy-inner { max-width: 540px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700; font-size: .8rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--c-silver); margin-bottom: 22px;
}
.slash { width: 28px; height: 3px; background: var(--c-red); transform: skewX(-30deg); }
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 900; font-style: italic; letter-spacing: -0.02em;
  text-transform: uppercase; line-height: .98; margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(180deg, #FFFFFF 0%, #C9CDD2 60%, #8E949B 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.1rem; color: var(--c-text-muted); margin-bottom: 32px; max-width: 46ch; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 40px; }
.hero-tags li {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--f-display); font-weight: 600; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--c-silver);
}
.hero-tags li + li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-red); }

.hero-media { position: relative; overflow: hidden; background: var(--c-surface); }
.hero-media > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: 45% center; }
.hero-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,11,12,.55) 0%, transparent 30%);
}
.hero-badge {
  position: absolute; z-index: 2; left: 24px; bottom: 24px;
  width: 104px; height: 104px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,.55), 0 0 0 3px rgba(255,255,255,.08);
}

/* ============ Why us ============ */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature > *, .service-grid > *, .contact-grid > * { min-width: 0; }
.feature-collage { position: relative; padding: 0 12% 18% 0; }
.feature-collage figure { position: relative; margin: 0; border-radius: var(--radius-card); overflow: hidden; }
.feature-collage img { width: 100%; height: 100%; object-fit: cover; }
.collage-main { aspect-ratio: 1 / 1; }
.feature-collage .collage-inset {
  position: absolute; right: 0; bottom: 0; width: 58%; aspect-ratio: 3 / 2;
  border: 6px solid var(--c-bg);
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
}
.feature-collage figcaption {
  position: absolute; left: 12px; top: 12px;
  padding: 6px 12px; border-radius: var(--radius);
  background: rgba(11,11,12,.8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: var(--f-display); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
}
.feature-collage .collage-inset figcaption { top: auto; bottom: 10px; left: 10px; }
.collage-inset img { object-position: 70% center; }
.feature-collage figcaption::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%;
  background: var(--c-red); vertical-align: middle;
}
.feature-copy h2 { margin-bottom: 16px; }
.feature-intro { margin-bottom: 28px; }
.checklist { display: grid; gap: 16px; margin-bottom: 32px; }
.checklist li { display: flex; gap: 14px; color: var(--c-text-muted); }
.checklist strong { color: var(--c-text); font-weight: 600; }
.checklist svg {
  width: 24px; height: 24px; padding: 4px; margin-top: 1px; border-radius: 50%;
  background: rgba(227,21,26,.15); fill: none; stroke: var(--c-red-text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}

/* ============ Services ============ */
.services { background: var(--c-surface); border-block: 1px solid var(--c-border); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 12px; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-card {
  position: relative; padding: 32px 28px; border-radius: var(--radius-card);
  background: var(--c-surface-2); border: 1px solid var(--c-border);
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.service-card:hover { border-color: #45454b; transform: translateY(-3px); }
.service-card--featured { background: linear-gradient(160deg, #221416 0%, var(--c-surface-2) 55%); border-color: rgba(227,21,26,.35); }
.service-card--featured::after {
  content: "Specialty"; position: absolute; top: 24px; right: 24px;
  font-family: var(--f-display); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-red-text);
}
.service-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px;
  border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--c-border);
}
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--c-silver); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card--featured .service-icon svg { stroke: var(--c-red-text); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--c-text-muted); font-size: .95rem; }

/* ============ CTA banner ============ */
.cta-banner {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(96px, 14vw, 180px); text-align: center;
  background: url("assets/img/garage-brake.jpg") center 60% / cover no-repeat;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,11,12,.92) 0%, rgba(11,11,12,.72) 50%, rgba(11,11,12,.95) 100%);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-inner h2 { max-width: 18ch; }
.cta-inner p { color: #D5D8DC; max-width: 48ch; margin-bottom: 8px; }

/* ============ Contact / form ============ */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-info h2 { margin-bottom: 14px; }
.info-list { display: grid; gap: 24px; margin-top: 40px; }
.info-list li { display: flex; gap: 16px; color: var(--c-text-muted); line-height: 1.55; }
.info-list strong { color: var(--c-text); font-weight: 600; }
.info-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-text); text-decoration-color: rgba(227,21,26,.7); text-underline-offset: 3px; }
.info-list a:hover { text-decoration-color: var(--c-red); }
.info-list svg {
  width: 44px; height: 44px; padding: 11px; border-radius: 12px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  fill: none; stroke: var(--c-red-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.request-form {
  padding: clamp(24px, 4vw, 40px); border-radius: 18px;
  background: var(--c-surface); border: 1px solid var(--c-border);
}
fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
legend {
  padding: 0; margin-bottom: 16px;
  font-family: var(--f-display); font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c-silver);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-row--3 { grid-template-columns: .7fr 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
label { font-size: .92rem; font-weight: 500; }
.req { color: var(--c-red-text); }
.optional { color: var(--c-text-muted); font-weight: 400; font-size: .85rem; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--c-text);
  background: var(--c-bg); border: 1.5px solid var(--c-border); border-radius: 10px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
input::placeholder, textarea::placeholder { color: #6E7278; }
select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9ADB3' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px;
}
input[type="date"] { color-scheme: dark; }
textarea { resize: vertical; min-height: 110px; }
input:hover, select:hover, textarea:hover { border-color: #45454b; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-red); box-shadow: 0 0 0 3px rgba(227,21,26,.25); }
[aria-invalid="true"] { border-color: var(--c-error); }
.field-error { color: var(--c-error); font-size: .85rem; min-height: 0; }
.field-error:empty { display: none; }
.field-help { color: var(--c-text-muted); font-size: .85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-summary {
  margin-bottom: 24px; padding: 16px 18px; border-radius: 10px;
  border: 1.5px solid var(--c-error); background: rgba(255,107,110,.08);
}
.form-summary p { font-weight: 600; margin-bottom: 6px; }
.form-summary ul { list-style: disc; padding-left: 20px; }
.form-summary a { color: var(--c-error); }

.request-form .btn { position: relative; margin-top: 4px; }
.spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite;
}
.request-form .btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.request-form .btn[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin-top: 14px; font-weight: 500; }
.form-status.is-success { color: var(--c-success); }
.form-status.is-error { color: var(--c-error); }

/* ============ Footer ============ */
.site-footer { background: #070708; border-top: 1px solid var(--c-border); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { width: 108px; height: 108px; border-radius: 50%; margin-bottom: 18px; }
.footer-title { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c-silver); margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 8px; color: var(--c-text-muted); }
.site-footer ul a { color: var(--c-text-muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; transition: color var(--dur-fast); }
.site-footer ul a:hover { color: var(--c-text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-block: 24px; border-top: 1px solid var(--c-border); color: var(--c-text-muted); font-size: .875rem;
}

/* ============ Reveal on scroll ============ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .nav-menu { gap: 16px; }
  .nav-phone { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px;
    background: var(--c-bg); border-bottom: 1px solid var(--c-border);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .nav-menu.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav-menu ul { flex-direction: column; gap: 0; }
  .nav-menu ul a { width: 100%; min-height: 52px; font-size: 1.05rem; border-bottom: 1px solid var(--c-border); padding: 0 4px; }
  .nav-menu ul a[aria-current="true"] { box-shadow: none; color: var(--c-text); }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-phone { display: inline-flex; justify-content: center; }
  .nav-actions .btn { min-height: 48px; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; aspect-ratio: 16 / 10; }
  .hero-media::before { background: linear-gradient(0deg, rgba(11,11,12,.7) 0%, transparent 40%); }
  .hero-copy { padding: 40px var(--gutter) 56px; }
  .hero-badge { width: 76px; height: 76px; left: 16px; bottom: 16px; }

  .feature, .contact-grid, .service-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .field-row, .field-row--3 { grid-template-columns: 1fr; }
  .section-head .btn { width: 100%; }
  .hero .btn-row .btn { flex: 1 1 100%; }
}

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