/* ============================================================
   Wee-Man's Detailing — styles
   Palette: graphite ground, candy-apple red accent, chrome silver.
   Type: Barlow Condensed (display) + Barlow (body).
   Single dark-first theme by design: gloss reads on graphite.
   ============================================================ */

:root {
  --ink:        #15171a;   /* graphite ground */
  --ink-2:      #1e2125;   /* raised panel */
  --ink-3:      #2a2e33;   /* rule / border */
  --paper:      #f3f2ef;   /* light section ground, warm-cool neutral */
  --paper-2:    #e6e5e1;
  --text:       #f4f4f2;
  --text-dim:   #b4b8be;
  --text-ink:   #1a1c1f;   /* text on paper */
  --text-ink-dim:#5d6268;
  --chrome:     #c9cdd2;
  --red:        #d7263d;   /* candy apple */
  --red-deep:   #a8142a;
  --red-tint:   rgba(215, 38, 61, 0.14);
  --ok:         #3c9a5f;
  --err:        #e0563a;

  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body:    "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max: 1120px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 6px;
  --shadow: 0 18px 40px -20px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--ink);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.02;
  margin: 0 0 .4em;
  text-wrap: balance;
}
h1 { font-weight: 800; font-size: clamp(2.9rem, 8.5vw, 5.6rem); }
h2 { font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.1rem); }
h3 { font-weight: 700; font-size: 1.5rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 780px; }

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .95rem;
  color: #c0213a;   /* accessibility, Nov 2026: 5.3:1 on --paper, 4.7:1 on --paper-2 */
  margin: 0 0 .5em;
}
/* Lighter red for the small red labels on the dark sections: 5.0:1 on --ink */
.section-dark .eyebrow { color: #e2596a; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .8em 1.5em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--chrome); outline-offset: 2px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--chrome); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21,23,26,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { background: rgba(21,23,26,.94); border-bottom-color: var(--ink-3); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.brand-tag { font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-dim); }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { font-weight: 500; font-size: .98rem; text-decoration: none; color: var(--text-dim); }
.nav a:not(.btn):hover { color: #fff; }
.nav .nav-cta { font-size: .95rem; padding: .55em 1.1em; }

.menu-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 8px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 66px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--ink-3);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--ink-3); }
  .nav .nav-cta { margin-top: 12px; }
}

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: var(--ink-2); }
.hero-media {
  position: absolute; inset: 0;
  background-position: center 40%; background-size: cover; background-repeat: no-repeat;
}
.hero-media.placeholder {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(115deg, #101214 0%, #22262b 45%, #0f1113 100%);
}
.hero-media.placeholder::after {
  /* chrome glint line: reads as a body panel highlight */
  content: ""; position: absolute; left: -10%; right: -10%; top: 58%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: rotate(-6deg);
}
/* Accessibility, Nov 2026: the shade behind the hero text is darker so every line stays readable over
   the photo (it was as low as 1.5:1 where the photo is bright); on phones the text runs the full width. */
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,23,26,.94) 0%, rgba(21,23,26,.88) 55%, rgba(21,23,26,.5) 100%); }
@media (max-width: 860px) {
  .hero-shade { background: linear-gradient(90deg, rgba(21,23,26,.9) 0%, rgba(21,23,26,.84) 100%); }
}
.hero .container { position: relative; }
.hero-inner { padding: clamp(64px, 11vw, 130px) 0 clamp(56px, 9vw, 110px); max-width: 640px; }
/* Lighter red for red text over the photo */
.hero h1 em { font-style: normal; color: #e2596a; }
.hero .eyebrow { color: #ec6f7e; }
.hero .lede { font-size: 1.15rem; color: var(--text-dim); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero-proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: .92rem; color: var(--chrome); }
.hero-proof li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--red); margin-right: 9px; transform: skewX(-12deg); }

/* ---- Sections ---- */
.section { padding: clamp(56px, 8vw, 96px) 0; background: var(--paper); color: var(--text-ink); }
.section-dark { background: var(--ink); color: var(--text); }
.section-tint { background: var(--paper-2); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p:not(.eyebrow) { color: var(--text-ink-dim); font-size: 1.08rem; }
.section-dark .section-head p:not(.eyebrow) { color: var(--text-dim); }
.section-head.compact { margin-bottom: 22px; }

/* ---- Pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tier {
  background: #fff; border: 1px solid var(--paper-2); border-radius: var(--radius);
  padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 6px;
  border-top: 4px solid var(--ink);
}
.tier-name { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: 1.05rem; }
.tier-ex { color: var(--text-ink-dim); font-size: .95rem; min-height: 2.6em; }
.tier-price { font-family: var(--display); font-weight: 800; font-size: 2.3rem; line-height: 1; margin-top: auto; font-variant-numeric: tabular-nums; }
.tier-price small { font-size: .95rem; font-weight: 600; color: var(--text-ink-dim); letter-spacing: .04em; margin-left: .2em; }

.price-notes { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 22px 0 0; color: var(--text-ink-dim); font-size: .98rem; }
.price-notes p { margin: 0; }
.price-notes strong { color: var(--text-ink); }

.included { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px 48px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--paper-2); }
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check li { position: relative; padding-left: 28px; }
.check li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 8px;
  border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg);
}

.addons { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--paper-2); }
.addon-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 40px; }
.addon-list div { border-left: 3px solid var(--paper-2); padding-left: 14px; }
.addon-list dt { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 1.08rem; }
.addon-list dd { margin: 2px 0 0; color: var(--text-ink-dim); font-size: .98rem; }

/* ---- Before / After compare ---- */
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.compare {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
  background: var(--ink-2); user-select: none; -webkit-user-select: none; touch-action: pan-y;
  box-shadow: var(--shadow);
}
.compare img, .compare .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare .ph { background: linear-gradient(135deg, #2a2e33, #1a1d21); }
.compare .ph.after { background: linear-gradient(135deg, #3a3f46, #22262b); }
.compare .ph::after { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); text-transform: uppercase; letter-spacing: .2em; color: rgba(255,255,255,.35); font-size: 1.1rem; }
.compare .divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff;
  transform: translateX(-1px); pointer-events: none;
}
.compare .handle {
  position: absolute; top: 50%; left: var(--pos, 50%); transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; background: var(--red); border: 2px solid #fff;
  display: grid; place-items: center; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.5);
}
.compare .handle::before, .compare .handle::after { content: ""; width: 7px; height: 7px; border-top: 2px solid #fff; border-left: 2px solid #fff; }
.compare .handle::before { transform: rotate(-45deg); margin-right: 2px; }
.compare .handle::after { transform: rotate(135deg); margin-left: 2px; }
.compare .tag {
  position: absolute; top: 12px; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: .78rem; padding: 4px 9px; border-radius: 3px; background: rgba(0,0,0,.55); color: #fff; pointer-events: none;
}
.compare .tag-before { left: 12px; }
.compare .tag-after { right: 12px; background: var(--red); }
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
}
.compare input[type="range"]:focus-visible + .divider { outline: none; box-shadow: 0 0 0 3px var(--red); }
.compare figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; font-size: .92rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; pointer-events: none; }
.gallery-note { margin: 18px 0 0; color: var(--text-dim); font-size: .95rem; }
.gallery-note:empty { display: none; }

/* ---- Steps ---- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; counter-reset: step; }
.steps li { position: relative; padding-top: 8px; }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: #fff; background: var(--ink);
  transform: skewX(-8deg);
}
.steps h3 { font-size: 1.4rem; }
.steps p { color: var(--text-ink-dim); margin: 0; }

/* ---- FAQ ---- */
.faq { display: grid; gap: 8px; }
.faq details { background: #fff; border-radius: var(--radius); border: 1px solid var(--paper-2); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: translateY(-70%) rotate(45deg); transition: transform .15s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--text-ink-dim); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-copy p:not(.eyebrow) { color: var(--text-dim); font-size: 1.08rem; max-width: 46ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 30px; }
.contact-facts { margin: 0; display: grid; gap: 12px; }
.contact-facts div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: baseline; }
.contact-facts dt { font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--chrome); }
.contact-facts dd { margin: 0; }

.lead-form { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; }
.lead-form h3 { margin: 0; }
.form-sub { margin: -8px 0 4px; color: var(--text-dim); font-size: .95rem; }
.lead-form label { display: grid; gap: 6px; }
.lead-form label span { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: var(--chrome); }
.lead-form input, .lead-form select, .lead-form textarea {
  font: inherit; color: var(--text); background: var(--ink); border: 1px solid var(--ink-3); border-radius: 4px;
  padding: 11px 12px; width: 100%;
}
.lead-form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--chrome) 50%), linear-gradient(135deg, var(--chrome) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.lead-form select option { background: var(--ink-2); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.lead-form textarea { resize: vertical; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; min-height: 1.4em; font-size: .95rem; color: var(--text-dim); }
.form-status.ok { color: #7fd39a; }
.form-status.err { color: #ff8a73; }

/* ---- Footer ---- */
.site-footer { background: #0f1113; color: var(--text-dim); padding: 28px 0; font-size: .95rem; border-top: 1px solid var(--ink-3); }
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; color: #fff; }
.site-footer .fine { margin-top: 4px; font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }

/* ---- Reveal (from a visible resting state) ---- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal.observed { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.observed.in { opacity: 1; transform: none; }
}
