/* ============================================================
   Appalachian Auto & Diesel — modern diesel-shop stylesheet
   Dark, rugged, animated. Amber/gold + red + steel on warm black.
   Built for trust, conversion, and SEO.
   ============================================================ */

/* --- Design tokens --- */
:root {
  /* Surfaces (warm near-black) */
  --bg:       #0a0a0c;
  --bg-2:     #0e0f13;
  --bg-3:     #14151b;
  --panel:    #101117;
  --card:     #15161d;
  --card-hov: #1c1e28;

  /* Brand */
  --amber:    #f6a823;
  --amber-lt: #ffc24a;
  --amber-dk: #cf8410;
  --gold:     #ffce5a;
  --red:      #e23b2e;
  --red-dk:   #b82a20;
  --steel:    #6ea7cc;
  --steel-lt: #9fd0e8;

  /* Text (cream-leaning) */
  --white:    #f5f1e8;
  --off:      #cdd3da;
  --muted:    #8b94a3;
  --faint:    #59616f;

  /* Status */
  --green:    #34d27b;
  --yellow:   #ffc857;

  /* Signature gradients */
  --grad:      linear-gradient(118deg, var(--amber), var(--gold));
  --grad-warm: linear-gradient(118deg, var(--red), #ff7a3c);
  --grad-steel:linear-gradient(118deg, var(--steel), var(--steel-lt));

  /* Geometry */
  --radius:    10px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow:    0 10px 40px rgba(0,0,0,.55);
  --shadow-amber: 0 10px 40px rgba(246,168,35,.22);
  --ring:      0 0 0 1px rgba(255,255,255,.06);

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; border: none; outline: none; background: transparent; color: inherit; }
::selection { background: var(--amber); color: #1a1205; }

/* --- Layout --- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }
.container--narrow { max-width: 880px; }
.container--reading { max-width: 760px; }
.section    { padding: 6rem 0; position: relative; }
.section--tight { padding: 4rem 0; }
.section--alt   { background: var(--bg-2); }
.section--panel { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.center { text-align: center; }
.mt  { margin-top: 1.75rem; }
.mt-sm { margin-top: .85rem; }
.mt-lg { margin-top: 2.5rem; }
.hairline { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); border: 0; }

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.12; font-weight: 800; letter-spacing: -.025em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.3rem; font-weight: 750; letter-spacing: -.01em; }
h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .9rem; }
p  { color: var(--off); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--off); max-width: 660px; line-height: 1.7; }
.prose p { margin-bottom: 1.1rem; color: var(--off); }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.7rem; margin: 2.4rem 0 1rem; }
.prose h3 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
.prose ul { margin: 0 0 1.2rem; display: flex; flex-direction: column; gap: .55rem; }
.prose ul li { position: relative; padding-left: 1.6rem; color: var(--off); }
.prose ul li::before { content: ''; position: absolute; left: .2rem; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--amber); }
.prose a { color: var(--amber-lt); border-bottom: 1px solid rgba(246,168,35,.35); }
.prose a:hover { color: var(--gold); }
.prose strong { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .14em;
  color: var(--amber-lt); margin-bottom: 1rem;
}
.eyebrow svg { width: 15px; height: 15px; }
.eyebrow--pill {
  padding: .4rem .9rem; border-radius: 100px;
  background: rgba(246,168,35,.1); border: 1px solid rgba(246,168,35,.24);
}
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl-solid { color: var(--amber-lt); }

/* --- Brand wordmark / logo --- */
.brand { flex-shrink: 0; display: inline-flex; align-items: center; }
.brand-logo { height: 46px; width: auto; }
.ft-brand-logo { height: 64px; width: auto; margin-bottom: .9rem; }

/* --- Buttons --- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: var(--radius);
  font-size: .96rem; font-weight: 750; white-space: nowrap;
  background: var(--amber); color: #20160a;
  box-shadow: 0 4px 18px rgba(246,168,35,.3);
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s;
  isolation: isolate;
}
.btn:hover  { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(246,168,35,.45); background: var(--amber-lt); }
.btn:active { transform: translateY(0); }
.btn svg    { width: 18px; height: 18px; flex-shrink: 0; }
.btn--call  { background: var(--red); color: #fff; box-shadow: 0 4px 18px rgba(226,59,46,.36); }
.btn--call:hover { background: var(--red-dk); box-shadow: 0 10px 28px rgba(226,59,46,.5); }
.btn--ghost { background: rgba(255,255,255,.03); color: var(--white); border: 1.5px solid rgba(255,255,255,.16); box-shadow: none; }
.btn--ghost:hover { border-color: var(--amber-lt); color: var(--amber-lt); background: rgba(246,168,35,.06); box-shadow: none; }
.btn--lg  { padding: 1rem 2.1rem; font-size: 1.06rem; }
.btn--sm  { padding: .55rem 1.1rem; font-size: .86rem; }
.btn--block { width: 100%; }

/* Pulse ring on primary call buttons */
.btn--call.btn--lg::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid var(--red); opacity: 0; z-index: -1;
  animation: pulse-ring 2.6s var(--ease) infinite;
}
@keyframes pulse-ring {
  0%   { opacity: .6; transform: scale(1); }
  70%  { opacity: 0;  transform: scale(1.18); }
  100% { opacity: 0;  transform: scale(1.18); }
}

/* --- Top bar --- */
.topbar { background: var(--bg-3); border-bottom: 1px solid rgba(255,255,255,.05); }
.topbar-in {
  display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap;
  padding-block: .5rem; font-size: .78rem; color: var(--muted);
}
.tb-item { display: flex; align-items: center; gap: .4rem; }
.tb-item svg { width: 13px; height: 13px; color: var(--amber-lt); }
.tb-spacer { margin-left: auto; }
.tb-item a:hover { color: var(--white); }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(10,10,12,.8);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .3s, background .3s;
}
.nav { display: flex; align-items: center; gap: 1.5rem; padding-block: .85rem; }
nav.primary { margin-left: auto; }
.nav-links { display: flex; gap: 1.9rem; align-items: center; }
.nav-links a {
  position: relative; font-size: .92rem; font-weight: 600; color: var(--muted);
  padding-block: .3rem; transition: color .18s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width .25s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: .85rem; }
.ncta-text { display: flex; flex-direction: column; line-height: 1.1; }
.ncta-word { font-size: .62rem; font-weight: 600; opacity: .85; text-transform: uppercase; letter-spacing: .08em; }
.ncta-num  { font-size: .92rem; font-weight: 800; }
.nav-toggle { display: none; padding: .35rem; color: var(--white); }
.nav-toggle svg { width: 26px; height: 26px; }

/* --- Hero --- */
.hero {
  position: relative; min-height: 90vh; display: flex; align-items: center;
  overflow: hidden; background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); z-index: 5; }
.hero-bg { position: absolute; inset: 0; background: var(--bg); }
.hero-bg::before, .hero-bg::after { content: ''; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.hero-bg::before {
  width: 60vw; height: 60vw; top: -22%; left: -12%;
  background: radial-gradient(circle, rgba(246,168,35,.34), transparent 65%);
  animation: float-a 14s ease-in-out infinite;
}
.hero-bg::after {
  width: 52vw; height: 52vw; bottom: -26%; right: -8%;
  background: radial-gradient(circle, rgba(226,59,46,.2), transparent 65%);
  animation: float-b 18s ease-in-out infinite;
}
@keyframes float-a { 0%,100% { transform: translate(0,0); } 50% { transform: translate(6%, 8%); } }
@keyframes float-b { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-7%, -6%); } }

/* topo-line texture overlay (brand motif) */
.hero-topo {
  position: absolute; inset: 0; z-index: 1; opacity: .06;
  background: url('/assets/brand/topo.webp') center/cover no-repeat;
  mask-image: radial-gradient(ellipse 75% 65% at 65% 40%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 65% 40%, #000 25%, transparent 78%);
  filter: invert(1);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .045; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 3; padding-block: 6rem; max-width: 720px; }
.hero h1 { margin-bottom: 1.3rem; }
.hero .lead { margin-bottom: 2.1rem; font-size: clamp(1.1rem, 1.7vw, 1.3rem); }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.75rem; font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-note svg { width: 15px; height: 15px; color: var(--green); }
.scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 4;
  width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.22); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 7px;
}
.scroll-cue::before { content: ''; width: 4px; height: 8px; border-radius: 2px; background: var(--amber-lt); animation: scroll-dot 1.8s var(--ease) infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translateY(10px); } }

/* --- Trust strip (credentials, no fabricated stats) --- */
.trust-strip { background: var(--bg-3); border-block: 1px solid rgba(255,255,255,.06); }
.trust-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.4rem; padding: 1.6rem 0; }
.trust-item { display: inline-flex; align-items: center; gap: .6rem; font-size: .95rem; font-weight: 650; color: var(--off); }
.trust-item svg { width: 20px; height: 20px; color: var(--amber); flex-shrink: 0; }

/* --- Section head --- */
.section-head { margin-bottom: 3.5rem; }
.section-head .lead { margin-top: .8rem; }
.section-head.center .lead { margin-inline: auto; }

/* --- Service cards --- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc-card {
  position: relative; background: var(--card); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg); padding: 1.9rem; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s, background .3s;
}
.svc-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(246,168,35,.1), transparent 60%);
}
.svc-card:hover { transform: translateY(-5px); border-color: rgba(246,168,35,.5); background: var(--card-hov); box-shadow: var(--shadow-amber); }
.svc-card:hover::before { opacity: 1; }
.svc-card > * { position: relative; }
.svc-card h3 { margin-bottom: .55rem; font-size: 1.12rem; }
.svc-card p  { font-size: .92rem; color: var(--muted); }
.svc-card .card-link { margin-top: 1rem; font-size: .85rem; font-weight: 700; color: var(--amber-lt); display: inline-flex; align-items: center; gap: .35rem; transition: gap .2s; }
.svc-card:hover .card-link { gap: .6rem; }
.svc-card .card-link svg { width: 15px; height: 15px; }

.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1.15rem;
  display: flex; align-items: center; justify-content: center; color: var(--amber);
  background: rgba(246,168,35,.13); border: 1px solid rgba(246,168,35,.22);
}
.icon-badge svg { width: 25px; height: 25px; }
.icon-badge--o { background: rgba(226,59,46,.13); border-color: rgba(226,59,46,.24); color: #ff6f63; }
.icon-badge--c { background: rgba(110,167,204,.13); border-color: rgba(110,167,204,.24); color: var(--steel-lt); }

/* --- Check list --- */
.check-list { display: flex; flex-direction: column; gap: .95rem; margin-top: 1.3rem; }
.check-list li { display: flex; align-items: flex-start; gap: .7rem; }
.check-list svg { width: 22px; height: 22px; flex-shrink: 0; padding: 3px; border-radius: 6px; background: rgba(246,168,35,.13); color: var(--amber); margin-top: .1rem; }
.check-list span { font-size: .96rem; color: var(--off); }
.check-list strong { color: var(--white); }

/* --- Hub: categorized service grid --- */
.hub-cat { margin-bottom: 3.2rem; }
.hub-cat:last-child { margin-bottom: 0; }
.hub-cat-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.4rem; padding-bottom: .9rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.hub-cat-head .icon-badge { width: 40px; height: 40px; margin: 0; border-radius: 10px; }
.hub-cat-head .icon-badge svg { width: 20px; height: 20px; }
.hub-cat-head h2 { font-size: 1.45rem; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hub-card {
  display: flex; align-items: flex-start; gap: .9rem; padding: 1.15rem 1.2rem;
  background: var(--card); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius);
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.hub-card:hover { transform: translateY(-3px); border-color: rgba(246,168,35,.45); background: var(--card-hov); }
.hub-card svg.lead-ic { width: 20px; height: 20px; color: var(--amber); flex-shrink: 0; margin-top: .15rem; }
.hub-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .2rem; }
.hub-card p { font-size: .84rem; color: var(--muted); line-height: 1.5; }
.hub-card .hc-arrow { margin-left: auto; color: var(--faint); transition: color .2s, transform .2s; flex-shrink: 0; }
.hub-card:hover .hc-arrow { color: var(--amber); transform: translateX(3px); }
.hub-card .hc-arrow svg { width: 16px; height: 16px; }

/* --- Service detail layout (page) --- */
.svc-layout { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start; }
.side-card { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 1.25rem; }
.side-box { background: var(--card); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 1.6rem; }
.side-box h3 { font-size: 1.05rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.side-box h3 svg { width: 18px; height: 18px; color: var(--amber); }
.side-cta { background: linear-gradient(150deg, #2a1c06, #160f04); border-color: rgba(246,168,35,.28); text-align: center; }
.side-cta p { font-size: .9rem; margin-bottom: 1rem; }

.symptom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 1.5rem 0; }
.symptom { display: flex; align-items: flex-start; gap: .6rem; padding: .85rem 1rem; background: var(--bg-2); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); font-size: .92rem; color: var(--off); }
.symptom svg { width: 17px; height: 17px; color: var(--red); flex-shrink: 0; margin-top: .2rem; }

/* --- Media frames / feature image --- */
.media-frame { border-radius: var(--radius-xl); overflow: hidden; position: relative; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.08); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-img { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow); }
.feature-img img { width: 100%; display: block; }

/* --- Diesel / platform cards --- */
.platform-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.platform { background: var(--card); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 1.6rem; transition: transform .3s var(--ease), border-color .3s; }
.platform:hover { transform: translateY(-4px); border-color: rgba(246,168,35,.4); }
.platform .kicker { font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.platform h3 { font-size: 1.25rem; margin: .3rem 0 .5rem; }
.platform p { font-size: .9rem; color: var(--muted); }

/* dealer badges */
.dealer-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.dealer-badge { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.15rem; border-radius: 100px; background: rgba(246,168,35,.08); border: 1px solid rgba(246,168,35,.28); font-weight: 700; font-size: .92rem; color: var(--white); }
.dealer-badge svg { width: 18px; height: 18px; color: var(--amber); }

/* --- Process timeline --- */
.timeline { position: relative; display: flex; flex-direction: column; gap: 0; max-width: 780px; margin-inline: auto; }
.tl-step { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; padding-bottom: 2.2rem; position: relative; }
.tl-step:not(:last-child)::before { content: ''; position: absolute; left: 26px; top: 54px; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--amber), rgba(246,168,35,.08)); }
.tl-num { width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0; z-index: 1; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; color: #20160a; background: var(--grad); box-shadow: 0 6px 20px rgba(246,168,35,.32); }
.tl-body h3 { font-size: 1.1rem; margin-bottom: .35rem; padding-top: .55rem; }
.tl-body p  { font-size: .95rem; color: var(--muted); }

/* --- CTA band --- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(125deg, #2a1c06, #1a1305 55%, #0f0a02); border: 1px solid rgba(246,168,35,.26); border-radius: var(--radius-xl); padding: 4rem; text-align: center; }
.cta-band::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.cta-band::after { content: ''; position: absolute; width: 50%; height: 200%; top: -50%; right: -10%; background: radial-gradient(circle, rgba(246,168,35,.12), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: .9rem; }
.cta-band p  { max-width: 600px; margin-inline: auto; margin-bottom: 2.2rem; color: var(--off); }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- FAQ --- */
.faq details { border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 1.1rem 1.4rem; margin-bottom: .8rem; background: var(--card); transition: border-color .25s, background .25s; }
.faq details[open] { border-color: rgba(246,168,35,.32); background: var(--card-hov); }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--amber-lt); flex-shrink: 0; transition: transform .25s var(--ease); line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding-top: .9rem; }
.faq-body p { font-size: .96rem; color: var(--muted); }

/* --- Forms --- */
.form-card { background: var(--card); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-xl); padding: 2.2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .8rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.field input, .field textarea, .field select { background: var(--bg-2); border: 1.5px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: .85rem 1.05rem; font-size: .96rem; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(246,168,35,.15); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--faint); margin-top: .6rem; display: flex; align-items: center; gap: .4rem; }
.form-note svg { width: 14px; height: 14px; flex-shrink: 0; }
.alert { border-radius: var(--radius); padding: 1rem 1.25rem; font-size: .95rem; margin-bottom: 1.4rem; display: flex; align-items: center; gap: .6rem; }
.alert svg { width: 20px; height: 20px; flex-shrink: 0; }
.alert--success { background: rgba(52,210,123,.12); border: 1px solid rgba(52,210,123,.3); color: var(--green); }
.alert--error   { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.3);  color: #f87171; }

/* --- Area grid --- */
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .65rem; }
.area-tag { background: var(--card); border: 1px solid rgba(255,255,255,.07); border-radius: 8px; padding: .65rem 1rem; font-size: .9rem; color: var(--off); display: flex; align-items: center; gap: .5rem; transition: border-color .2s, color .2s, transform .2s; }
.area-tag:hover { border-color: rgba(246,168,35,.4); color: var(--white); transform: translateY(-2px); }
.area-tag svg { width: 14px; height: 14px; color: var(--amber-lt); flex-shrink: 0; }

/* --- Feature cards (why-us) --- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feat { background: var(--card); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius-lg); padding: 1.8rem; transition: transform .3s var(--ease), border-color .3s; }
.feat:hover { transform: translateY(-4px); border-color: rgba(246,168,35,.35); }
.feat h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.feat p { font-size: .92rem; color: var(--muted); }

/* --- SEO prose block --- */
.seo-block { background: var(--bg-2); border-radius: var(--radius-xl); padding: 3rem; border: 1px solid rgba(255,255,255,.06); }
.seo-cols { columns: 2; column-gap: 3rem; }
.seo-cols p { break-inside: avoid; margin-bottom: 1.1rem; }

/* --- Vehicles / chips --- */
.chip-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 100px; background: var(--card); border: 1px solid rgba(255,255,255,.08); font-size: .88rem; color: var(--off); }
.chip svg { width: 15px; height: 15px; color: var(--amber-lt); }

/* --- Blog --- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-5px); border-color: rgba(246,168,35,.45); box-shadow: var(--shadow-amber); }
.post-card .pc-top { padding: 1.6rem 1.6rem 0; }
.post-card .pc-cat { font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.post-card h3 { font-size: 1.18rem; margin: .55rem 0 .6rem; line-height: 1.25; }
.post-card p { font-size: .9rem; color: var(--muted); padding: 0 1.6rem; flex-grow: 1; }
.post-card .pc-foot { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.6rem 1.6rem; font-size: .8rem; color: var(--faint); }
.post-card .pc-foot .card-link { color: var(--amber-lt); font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; }
.post-card .pc-foot .card-link svg { width: 15px; height: 15px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .85rem; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.post-meta svg { width: 15px; height: 15px; color: var(--amber-lt); }

/* --- Article --- */
.article-body { font-size: 1.06rem; line-height: 1.8; }
.article-body > p:first-of-type { font-size: 1.18rem; color: var(--white); }
.article-body h2 { font-size: 1.65rem; margin: 2.6rem 0 1rem; }
.article-body h3 { font-size: 1.25rem; margin: 2rem 0 .7rem; }
.callout { background: linear-gradient(150deg, #2a1c06, #160f04); border: 1px solid rgba(246,168,35,.26); border-left: 4px solid var(--amber); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 1.8rem 0; }
.callout p { color: var(--off); margin: 0; }
.callout strong { color: var(--amber-lt); }

/* --- Related grid --- */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1rem; }
.related-card { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.2rem; background: var(--card); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); font-weight: 650; font-size: .94rem; transition: border-color .2s, transform .2s, background .2s; }
.related-card:hover { border-color: rgba(246,168,35,.45); transform: translateY(-2px); background: var(--card-hov); }
.related-card svg { width: 18px; height: 18px; color: var(--amber); flex-shrink: 0; }
.related-card .rc-arrow { margin-left: auto; color: var(--faint); }

/* --- Map --- */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow); line-height: 0; }
.map-embed iframe { width: 100%; height: 320px; border: 0; filter: grayscale(.2) contrast(1.05); }

/* --- Footer --- */
.site-footer { background: #060608; border-top: 1px solid rgba(255,255,255,.06); padding: 4.5rem 0 2rem; }
.f-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.f-brand .btn { margin: 1.1rem 0 .8rem; }
.f-tag { font-size: .9rem; color: var(--muted); margin-top: .2rem; max-width: 300px; }
.f-hours { font-size: .82rem; color: var(--faint); display: flex; align-items: center; gap: .4rem; margin-top: .4rem; }
.f-hours svg { width: 14px; height: 14px; }
.f-col h4 { color: var(--muted); }
.f-col ul { display: flex; flex-direction: column; gap: .6rem; }
.f-col a, .f-col span { font-size: .89rem; color: var(--muted); display: flex; align-items: flex-start; gap: .45rem; transition: color .18s; }
.f-col a:hover { color: var(--white); }
.f-col a svg, .f-col span svg { width: 14px; height: 14px; color: var(--amber-lt); flex-shrink: 0; margin-top: .2rem; }
.f-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.8rem; font-size: .8rem; color: var(--faint); flex-wrap: wrap; }
.f-bottom a { color: var(--faint); }
.f-bottom a:hover { color: var(--muted); }

/* --- Mobile call bar --- */
.callbar { position: fixed; bottom: 0; left: 0; right: 0; display: none; z-index: 500; background: rgba(6,6,10,.96); backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,.1); }
.callbar-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; font-size: .96rem; font-weight: 750; }
.callbar-btn svg { width: 18px; height: 18px; }
.cb-call { background: var(--red); color: #fff; }
.cb-text { background: var(--card); color: var(--white); }

/* --- Page hero (inner) --- */
.page-hero { position: relative; padding: 4.5rem 0 3.5rem; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.06); background: var(--bg); }
.page-hero .hero-bg::before { width: 42vw; height: 42vw; opacity: .3; }
.page-hero::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); z-index: 3; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.page-hero .lead { margin-top: .9rem; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .8rem; color: var(--faint); margin-bottom: 1.2rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb svg { width: 13px; height: 13px; }

/* --- Reviews --- */
.stars { display: inline-flex; gap: .15rem; color: var(--gold); }
.stars svg { width: 20px; height: 20px; }
.stars--sm svg { width: 16px; height: 16px; }
.review-badge { display: inline-flex; align-items: center; gap: .75rem; margin-top: 1.1rem; flex-wrap: wrap; justify-content: center; }
.review-badge .rb-num { font-size: 1.35rem; font-weight: 800; color: var(--white); }
.review-badge .rb-count { font-size: .9rem; color: var(--muted); border-bottom: 1px solid transparent; }
.review-badge .rb-count:hover { color: var(--white); border-color: var(--amber-lt); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1rem; }
.review-card { background: var(--card); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius-lg); padding: 1.8rem; display: flex; flex-direction: column; gap: .9rem; transition: transform .3s var(--ease), border-color .3s; }
.review-card:hover { transform: translateY(-4px); border-color: rgba(246,168,35,.4); }
.review-card blockquote { font-size: 1.05rem; line-height: 1.55; color: var(--off); font-weight: 500; }
.review-card figcaption { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); margin-top: auto; }
.review-card figcaption svg { width: 14px; height: 14px; color: var(--amber-lt); }
@media (max-width: 980px) { .review-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .review-grid { grid-template-columns: 1fr; } }

/* --- Footer social --- */
.f-social { display: flex; gap: .7rem; margin-top: 1rem; }
.f-social a { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid rgba(255,255,255,.08); color: var(--off); transition: border-color .2s, color .2s, transform .2s; }
.f-social a:hover { border-color: rgba(246,168,35,.45); color: var(--amber-lt); transform: translateY(-2px); }
.f-social a svg { width: 18px; height: 18px; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-36px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-l.in { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(36px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-r.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-scale.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: .04s; }
.stagger.in > *:nth-child(2) { transition-delay: .1s; }
.stagger.in > *:nth-child(3) { transition-delay: .16s; }
.stagger.in > *:nth-child(4) { transition-delay: .22s; }
.stagger.in > *:nth-child(5) { transition-delay: .28s; }
.stagger.in > *:nth-child(6) { transition-delay: .34s; }
.stagger.in > *:nth-child(7) { transition-delay: .4s; }
.stagger.in > *:nth-child(8) { transition-delay: .46s; }
.stagger.in > *:nth-child(9) { transition-delay: .52s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-l, .reveal-r, .reveal-scale, .stagger > * { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .svc-layout { grid-template-columns: 1fr; }
  .side-card { position: static; flex-direction: row; flex-wrap: wrap; }
  .side-box { flex: 1; min-width: 260px; }
}
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .svc-grid, .feat-grid, .hub-grid, .platform-cards, .blog-grid { grid-template-columns: 1fr 1fr; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: 1; }
  .seo-cols { columns: 1; }
  .symptom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 4.5rem 0; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; inset: 0; background: rgba(10,10,12,.99); backdrop-filter: blur(20px); z-index: 300; align-items: center; justify-content: center; gap: 2.2rem; font-size: 1.3rem; }
  .nav-links.open a { color: var(--white); }
  /* The header's backdrop-filter would become the containing block for the fixed
     menu (clipping it to the header box). Disable it on mobile so the overlay
     fills the whole viewport. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10,10,12,.96); }
  .nav-links.open { min-height: 100dvh; }
  .nav-toggle { display: flex; margin-left: auto; position: relative; z-index: 310; }
  .nav-cta .ncta-text { display: none; }
  .nav-cta .btn--call { padding: .6rem .8rem; }
  .brand-logo { height: 38px; }
  .svc-grid, .feat-grid, .hub-grid, .platform-cards, .blog-grid { grid-template-columns: 1fr; }
  .side-card { flex-direction: column; }
  .callbar { display: flex; }
  .f-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-band { padding: 2.5rem 1.5rem; }
  .trust-grid { gap: .8rem 1.5rem; }
  .hero { min-height: auto; }
  .hero-inner { padding-block: 4rem; }
  .seo-block { padding: 1.8rem; }
  body { padding-bottom: 64px; }
  .scroll-cue { display: none; }
}
@media (max-width: 460px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .cta-actions .btn { width: 100%; }
}
