/* Mechanic intake — public site + dashboard. Mobile-first, no framework. */
:root {
  --ink: #1a2029;
  --ink-soft: #5b6572;
  --paper: #f6f7f9;
  --card: #ffffff;
  --line: #e2e6eb;
  --accent: #e8590c;
  --accent-dark: #c74a08;
  --accent-glow: #ff922b;
  --gold: #ffc078;
  --dark: #1c2129;
  --dark-2: #242c38;
  --ok: #2f9e44;
  --calm: #4c6ef5;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; }
a { color: var(--accent-dark); }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 1.1rem; }
.muted { color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-block; padding: .6rem 1.1rem; border-radius: 10px;
  font-weight: 700; text-decoration: none; border: 0; cursor: pointer;
  font-size: 1rem; text-align: center; font-family: inherit;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-glow), var(--accent));
  color: #fff; box-shadow: 0 4px 14px rgba(232, 89, 12, .35);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--accent), var(--accent-dark)); }
.btn-dark { background: var(--dark-2); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-lg { padding: .8rem 1.5rem; font-size: 1.05rem; }

/* ── Public site ─────────────────────────────────────────── */
.topbar { background: var(--dark); border-bottom: 1px solid rgba(255,255,255,.07); }
.topbar-row { display: flex; justify-content: space-between; align-items: center; padding-top: .55rem; padding-bottom: .55rem; }
.topbar-name { color: #e6ebf1; font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.topbar-phone { color: var(--gold); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }

.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(232,89,12,.28), transparent 60%),
    linear-gradient(160deg, var(--dark) 0%, #2a3342 78%, #33291f 100%);
  padding: 3.6rem 0 3.2rem; text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-55deg, rgba(255,255,255,.028) 0 2px, transparent 2px 26px);
}
.hero .wrap { position: relative; }
.hero .badge {
  display: inline-block; background: rgba(232,89,12,.16); color: var(--gold);
  border: 1px solid rgba(255,146,43,.35);
  padding: .3rem .95rem; border-radius: 999px; font-size: .85rem; margin: 0 0 1.1rem;
  text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
}
.hero h1 {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .015em;
  font-weight: 800; font-size: clamp(2.4rem, 7vw, 4rem); margin-bottom: .6rem;
}
.hero h1 .accent {
  color: var(--accent-glow);
  text-shadow: 0 2px 24px rgba(232,89,12,.45);
}
.hero .tagline { font-size: 1.15rem; color: #ccd5e0; margin: 0 0 1.1rem; }
.trust {
  list-style: none; padding: 0; margin: 0 0 1.5rem;
  display: flex; gap: .45rem .5rem; justify-content: center; flex-wrap: wrap;
}
.trust li {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  color: #dfe6ee; padding: .22rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
}
.trust li:first-child { color: var(--gold); border-color: rgba(255,192,120,.45); letter-spacing: .15em; }
.cta-row { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.hero-note { color: #93a0b0; font-size: .92rem; margin-top: 1.15rem; }

.hazard {
  height: 9px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 16px, var(--dark) 16px 32px);
}

main section { padding: 2.6rem 0; }
section.alt { background: #eef0f3; }

h2 {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .03em;
  font-weight: 800; font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 1.1rem;
}
h2::before {
  content: ""; display: inline-block; width: .45em; height: .82em;
  background: linear-gradient(180deg, var(--accent-glow), var(--accent));
  transform: skewX(-16deg); margin-right: .45em; border-radius: 2px;
  vertical-align: -8%;
}

/* Services */
.services {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.services li {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: .85rem 1rem; font-weight: 600; display: flex; align-items: center; gap: .7rem;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.services li:hover {
  transform: translateY(-2px); border-color: #f2b28c;
  box-shadow: 0 8px 22px rgba(26,32,41,.09);
}
.svc-icon {
  flex: 0 0 auto; width: 2.3rem; height: 2.3rem; border-radius: 9px;
  display: grid; place-items: center; font-size: 1.15rem;
  background: linear-gradient(160deg, #fff3ea, #ffe3cf); border: 1px solid #f8cdaf;
}

/* Why-mobile band */
.band { background: var(--dark); color: #e8edf3; position: relative; }
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-55deg, rgba(255,255,255,.02) 0 2px, transparent 2px 30px);
}
.band .wrap { position: relative; }
.band h2 { color: #fff; }
.props { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.prop {
  background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
  padding: 1.15rem 1.2rem;
}
.prop-icon { font-size: 1.6rem; display: block; margin-bottom: .5rem; }
.prop h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.2rem; color: var(--gold); }
.prop p { margin: .3rem 0 0; color: #b9c3cf; font-size: .96rem; }

/* Steps + info */
.steps-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .steps-grid { grid-template-columns: 3fr 2fr; } }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; margin: .85rem 0; padding-left: 3rem; position: relative; min-height: 2.4rem;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  font-family: var(--display); font-weight: 800; font-size: 1.3rem;
  width: 2.2rem; height: 2.2rem; border-radius: 9px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, var(--accent-glow), var(--accent));
  box-shadow: 0 3px 10px rgba(232,89,12,.3);
}
.info-card {
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: 14px; padding: 1.15rem 1.3rem; height: fit-content;
  box-shadow: 0 8px 24px rgba(26,32,41,.06);
}
.info-card h3 { margin-top: .7rem; font-size: 1.02rem; }
.info-card h3:first-child { margin-top: 0; }
.info-card p { margin: .2rem 0 .55rem; color: var(--ink-soft); }

/* Pricing (public) */
.price-list { max-width: 660px; display: grid; gap: .55rem; }
.price-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: .65rem .95rem;
}
.price-row .price {
  font-family: var(--display); font-weight: 800; font-size: 1.3rem;
  color: var(--accent-dark); white-space: nowrap;
}
.price-note { display: block; color: var(--ink-soft); font-size: .85rem; font-weight: 400; }
.small { font-size: .85rem; max-width: 660px; }

/* Work gallery */
.gallery { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.shot {
  position: relative; display: block; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--card); text-decoration: none;
}
.shot img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: transform .25s ease;
}
.shot:hover img { transform: scale(1.04); }
.shot-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .9rem .7rem .5rem;
  background: linear-gradient(transparent, rgba(16, 20, 26, .82));
  color: #fff; font-size: .85rem; font-weight: 600; line-height: 1.25;
}

/* Reviews */
.reviews { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.review {
  margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.1rem 1.2rem; position: relative;
  box-shadow: 0 6px 18px rgba(26,32,41,.05);
}
.review::before {
  content: "“"; position: absolute; top: .1rem; right: .8rem;
  font-family: var(--display); font-size: 3.2rem; color: #f3d9c7; line-height: 1;
}
.review blockquote { margin: 0 0 .6rem; font-size: .98rem; }
.review figcaption { color: var(--ink-soft); font-size: .85rem; }
.sample-tag {
  display: inline-block; background: #f1f3f5; color: #868e96;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .1rem .5rem; border-radius: 999px; margin-bottom: .45rem;
}

/* Request form */
.request-form {
  display: grid; gap: .95rem; max-width: 660px;
  background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--accent);
  border-radius: 16px; padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: 0 14px 34px rgba(26,32,41,.08);
}
.grid2 { display: grid; gap: .95rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } }
label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
input, textarea, select {
  font: inherit; padding: .62rem .75rem; border: 1px solid #c9cfd6;
  border-radius: 9px; background: #fff; width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.req { color: var(--accent); }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.form-note { margin: 0; color: var(--ink-soft); font-size: .88rem; text-align: center; }
.flash {
  background: #e6f6e9; border: 1px solid #b3e2bc; color: #226330;
  padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; max-width: 660px;
}
.flash-bad { background: #fdecec; border-color: #f2bcbc; color: #8f2424; }

footer { background: var(--dark); color: #aab4c0; text-align: center; padding: 1.8rem 0 5.5rem; }
footer p { margin: .2rem 0; }
.foot-name { color: #e6ebf1; font-weight: 700; }
footer a { color: var(--gold); }

/* Sticky call/text bar (mobile) */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; display: flex; gap: .5rem;
  padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(28,33,41,.97); justify-content: center;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sticky-bar .btn { flex: 1; max-width: 160px; white-space: nowrap; padding-left: .5rem; padding-right: .5rem; font-size: .95rem; }
@media (min-width: 700px) { .sticky-bar { display: none; } footer { padding-bottom: 1.8rem; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Dashboard ───────────────────────────────────────────── */
body.dash { background: #eef0f3; }
.dash-head { background: var(--dark); color: #fff; padding: .9rem 0 .7rem; margin-bottom: 1rem; }
.dash-head-row { display: flex; justify-content: space-between; align-items: baseline; }
.dash-head h1 { font-size: 1.25rem; margin: 0; font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; }
.dash-head a { color: #9aa6b4; }
.dash-tabs { display: flex; gap: .2rem; align-items: center; flex-wrap: wrap; }
.dash-tabs a {
  color: #b9c3cf; text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: .3rem .7rem; border-radius: 8px;
}
.dash-tabs a:hover { background: rgba(255,255,255,.08); color: #fff; }
.dash-tabs a.on { background: var(--accent); color: #fff; }
.dash-tabs a.signout { color: #7d8895; margin-left: .4rem; }

/* Prices editor */
.settings-form { display: grid; gap: .55rem; max-width: 760px; }
.price-edit { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: .5rem; }
.price-edit-head { color: var(--ink-soft); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: .4rem; }
.pricing-note-label { margin-top: .6rem; }
.settings-form .btn { justify-self: start; margin-top: .6rem; }
@media (max-width: 560px) {
  .price-edit { grid-template-columns: 1fr; border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
  .price-edit-head { display: none; }
}

/* Client view (phone frame) */
.demo-main { display: grid; justify-items: center; gap: .7rem; padding-bottom: 2rem; }
.demo-toggle { display: flex; gap: .5rem; }
.demo-hint { margin: 0; text-align: center; }
.phone {
  width: 399px; max-width: 100%; padding: 12px; background: #14181f;
  border-radius: 46px; position: relative;
  box-shadow: 0 24px 60px rgba(10,14,20,.4), inset 0 0 0 2px #2c333d;
}
.phone iframe {
  width: 100%; height: 700px; border: 0; border-radius: 34px;
  background: #fff; display: block;
}
.chips { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .6rem; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  padding: .3rem .75rem; border-radius: 999px; font-size: .88rem; font-weight: 600;
  text-decoration: none; cursor: pointer; font-family: inherit;
}
.chip span { color: var(--ink-soft); font-weight: 500; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.on span { color: #ffd9c2; }
.chip:disabled { opacity: 1; }

.card {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line);
  border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: .9rem;
}
.card.status-new { border-left-color: var(--accent); }
.card.status-quoted { border-left-color: var(--calm); }
.card.status-scheduled { border-left-color: #f0a202; }
.card.status-done { border-left-color: var(--ok); opacity: .75; }
.card h2 { font-size: 1.1rem; margin: .4rem 0 .2rem; font-family: inherit; text-transform: none; letter-spacing: 0; }
.card h2::before { display: none; }
.card .vehicle { color: var(--ink-soft); font-weight: 500; }
.card-top { display: flex; gap: .5rem; align-items: center; }
.card-top .when { margin-left: auto; font-size: .85rem; }
.tag {
  font-size: .78rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .02em;
}
.urgency-urgent { background: #fdecec; color: #b02a2a; }
.urgency-normal { background: #eef2ff; color: #3b5bdb; }
.urgency-low { background: #ecf7ee; color: #2b7a3d; }
.tag-src { background: #f1f3f5; color: var(--ink-soft); }
.problem { margin: .3rem 0; white-space: pre-wrap; }
.loc { margin: .2rem 0 .6rem; font-size: .95rem; }
.contact-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .5rem 0 .7rem; }
.status-row { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .5rem; }
details summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.notes-form { display: flex; gap: .5rem; margin-top: .5rem; align-items: flex-start; }
.notes-form textarea { flex: 1; }
.empty { text-align: center; padding: 3rem 0; }

/* Login */
.login-box {
  max-width: 360px; margin: 14vh auto 0; background: var(--card);
  border: 1px solid var(--line); border-top: 5px solid var(--accent);
  border-radius: 16px; padding: 1.6rem;
  display: grid; gap: .4rem; text-align: center;
  box-shadow: 0 14px 34px rgba(26,32,41,.08);
}
.login-box h1 { font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; }
.login-box form { display: grid; gap: .9rem; text-align: left; margin-top: .8rem; }
