/* Nationwide Auto Services: homepage redesign mockup. Mobile first. */
:root {
  --ink: #0d1115;
  --steel: #151b21;
  --steel-2: #1f2730;
  --steel-3: #2b3540;
  --line-d: rgba(255,255,255,.12);
  --paper: #f4f2ee;
  --paper-2: #e9e6e0;
  --white: #ffffff;
  --text: #171c21;
  --muted: #5a646e;
  --muted-d: #a9b3bc;
  --orange: #e8742f;       /* from the current site's own palette (#E2763E), warmed slightly */
  --orange-hi: #f4873f;
  --orange-ink: #b4521a;
  --ok: #2f9e5b;
  --r: 6px;
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.02; letter-spacing: .005em; margin: 0 0 .5em; }
h1 { font-size: clamp(42px, 11vw, 76px); text-transform: uppercase; }
h2 { font-size: clamp(32px, 7.5vw, 52px); text-transform: uppercase; }
h3 { font-size: 22px; text-transform: uppercase; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.o { color: var(--orange); }

/* Mockup banner + notes */
.mock-banner { background: #fff4d6; color: #5c4300; font-size: 13px; padding: 6px var(--gutter); display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; }
.notes-toggle { font: 600 12px var(--body); border: 1px solid #c59a2a; background: #fff; color: #5c4300; border-radius: 99px; padding: 3px 10px; cursor: pointer; }
.notes-toggle[aria-pressed="true"] { background: #5c4300; color: #fff4d6; }
.rnote { display: none; }
body.show-notes .rnote { display: block; position: relative; max-width: 1180px; margin: 18px auto 0; width: calc(100% - 2 * var(--gutter)); background: #fff8e6; color: #3d2f08; border: 2px dashed #d9a521; border-radius: var(--r); padding: 12px 14px 12px 48px; font-size: 15px; line-height: 1.45; z-index: 3; }
body.show-notes .rnote::before { content: attr(data-n); position: absolute; left: 12px; top: 11px; width: 26px; height: 26px; border-radius: 50%; background: #d9a521; color: #fff; font: 700 14px/26px var(--body); text-align: center; }
body.show-notes section { padding-bottom: 18px; }
.rnote-inline { display: none; }
body.show-notes .rnote-inline { display: block; }

.ph { display: inline-block; font: 600 10px/1 var(--body); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #7a5a00; background: #ffe9a8; border: 1px dashed #c59a2a; border-radius: 3px; padding: 3px 5px; vertical-align: middle; margin-left: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--r); font: 700 16px/1 var(--body); text-decoration: none; letter-spacing: .02em; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 9px 14px; font-size: 14px; }
.btn-orange { background: var(--orange); color: #1a0d04; }
.btn-orange:hover { background: var(--orange-hi); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--steel-3); }
.btn-ghost { background: transparent; border-color: #c9c4bb; color: var(--text); }
.btn-ghost-dark { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-text { background: none; border: 0; color: var(--orange-ink); font: 700 15px var(--body); padding: 6px 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(13,17,21,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-d); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand img { width: 128px; height: auto; }
.main-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.phone-link { display: none; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; align-items: center; gap: 6px; }
.phone-link svg { width: 16px; height: 16px; fill: var(--orange); }
.header-actions .btn-sm { display: none; }
.menu-btn { width: 44px; height: 44px; background: none; border: 1px solid var(--line-d); border-radius: var(--r); display: grid; place-content: center; gap: 5px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { background: var(--ink); border-top: 1px solid var(--line-d); padding: 8px var(--gutter) 16px; }
.mobile-menu a { display: block; color: #fff; text-decoration: none; font: 600 20px var(--head); text-transform: uppercase; letter-spacing: .03em; padding: 13px 0; border-bottom: 1px solid var(--line-d); }
.mobile-menu a:nth-child(2) { color: var(--orange); }

/* Hero */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; opacity: .55; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,17,21,.35) 0%, rgba(13,17,21,.82) 52%, var(--ink) 100%); }
.hero-inner { position: relative; padding-top: 72px; padding-bottom: 28px; }
.eyebrow { font: 700 13px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.eyebrow.dark { color: var(--orange-ink); }
.hex-dot { width: 12px; height: 13px; background: var(--orange); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); flex: none; }
.lede { font-size: 18px; color: #d7dde2; max-width: 560px; margin-bottom: 26px; }
.paths { display: grid; gap: 12px; }
.path { position: relative; display: grid; gap: 2px; padding: 18px 56px 18px 18px; border-radius: var(--r); text-decoration: none; border: 1px solid var(--line-d); background: rgba(31,39,48,.86); transition: transform .15s, border-color .15s, background .15s; }
.path:hover { transform: translateY(-2px); border-color: var(--orange); }
.path-plant { background: var(--orange); color: #1a0d04; border-color: var(--orange); }
.path-plant:hover { background: var(--orange-hi); }
.path-kicker { font: 700 12px var(--body); letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.path-title { font: 700 30px/1.05 var(--head); text-transform: uppercase; }
.path-sub { font-size: 15px; opacity: .85; }
.path-arrow { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 700; }

/* Proof */
.proof { background: var(--steel); color: #fff; border-top: 3px solid var(--orange); padding: 22px 0; }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.stat { display: grid; gap: 2px; align-content: start; padding-left: 12px; border-left: 2px solid var(--steel-3); position: relative; }
.stat b { font: 700 32px/1 var(--head); letter-spacing: .01em; }
.stat span { font-size: 13.5px; color: var(--muted-d); line-height: 1.3; }
.stat .ph { justify-self: start; margin: 4px 0 0; }
.stat.is-ph b { color: #cfd5da; }
.stat-iso { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; border-left-color: var(--orange); }
.stat-iso img { width: 56px; height: 56px; background: #fff; border-radius: 50%; padding: 3px; flex: none; }
.stat-iso div { display: grid; gap: 2px; }

/* Sections */
.section { padding: 56px 0; }
.section-lede { font-size: 19px; color: var(--muted); max-width: 680px; }
.pillars { display: grid; gap: 12px; margin: 28px 0 36px; }
.pillar { background: var(--white); border-radius: var(--r); padding: 18px; border-top: 3px solid var(--orange); box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.pillar .num { font: 700 14px var(--head); color: var(--orange-ink); letter-spacing: .1em; }
.pillar h3 { margin: 4px 0 6px; font-size: 21px; }
.pillar p { margin: 0; color: var(--muted); font-size: 15.5px; }
.split { display: grid; gap: 22px; align-items: center; }
.split-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.h3-lg { font-size: 24px; margin-top: 4px; }
.trades { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.trades li { background: var(--white); border: 1px solid var(--paper-2); border-radius: 99px; padding: 6px 12px; font-weight: 600; font-size: 15px; }
.industries { color: var(--muted); font-size: 16px; margin-bottom: 22px; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 0; counter-reset: s; border-left: 2px solid var(--orange); }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 30px; display: grid; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: -15px; top: -2px; width: 28px; height: 30px; background: var(--orange); color: #1a0d04; font: 700 13px/30px var(--head); text-align: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.steps b { font: 700 20px var(--head); text-transform: uppercase; }
.steps span { color: var(--muted); font-size: 15.5px; }

/* Request form */
.request { background: var(--steel); color: #fff; }
.request-grid { display: grid; gap: 26px; }
.request-intro p { color: #cdd4da; font-size: 18px; }
.request-intro .eyebrow { color: var(--orange); font-size: 13px; }
.assure { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: #cdd4da; font-size: 15.5px; }
.assure li { padding-left: 24px; position: relative; }
.assure li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.assure a { color: #fff; font-weight: 700; }
.crew-form { background: var(--white); color: var(--text); border-radius: 10px; padding: 20px 16px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.stepper { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stepper li { font: 700 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: #9aa3ab; padding-top: 8px; border-top: 4px solid var(--paper-2); }
.stepper li.on { color: var(--text); border-top-color: var(--orange); }
.stepper li.done { color: var(--muted); border-top-color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font: 700 26px/1.1 var(--head); text-transform: uppercase; margin-bottom: 14px; padding: 0; }
label { display: grid; gap: 5px; font-weight: 600; font-size: 14px; margin-bottom: 14px; color: #2b333b; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { font: 400 16px var(--body); width: 100%; min-height: 48px; padding: 11px 12px; border: 1.5px solid #cdc8bf; border-radius: var(--r); background: #fff; color: var(--text); }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(232,116,47,.22); }
.invalid { border-color: #c2361f !important; background: #fff6f4; }
.grid2 { display: grid; gap: 0 12px; }
.trade-rows { display: grid; gap: 10px; margin-bottom: 4px; }
.trade-row { display: grid; grid-template-columns: 1fr 96px 40px; gap: 8px; align-items: end; }
.trade-row label { margin: 0; }
.trade-row .rm { height: 48px; border: 1.5px solid #cdc8bf; background: #fff; border-radius: var(--r); font-size: 20px; color: var(--muted); cursor: pointer; }
.trade-row .rm:disabled { opacity: .3; cursor: default; }
.nav-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }
.nav-row .btn { flex: 1; }
.nav-row span:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #b02a15; font-weight: 600; font-size: 15px; margin: 10px 0 0; }
.form-done { text-align: left; }
.form-done:focus { outline: none; }
.done-check { width: 56px; height: 62px; display: grid; place-items: center; background: var(--ok); color: #fff; font-size: 30px; font-weight: 700; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); margin-bottom: 12px; }
.form-done h3 { font-size: 30px; margin-bottom: 4px; }
.done-ref { color: var(--muted); }
.done-ref b { color: var(--text); font-family: ui-monospace, Consolas, monospace; letter-spacing: .03em; }
.done-next { padding-left: 20px; color: #2b333b; font-size: 15.5px; }
.done-next li { margin-bottom: 6px; }
.payload { margin-top: 16px; border: 2px dashed #d9a521; background: #fff8e6; border-radius: var(--r); padding: 10px 12px; font-size: 14px; }
.payload summary { font-weight: 700; cursor: pointer; }
.payload pre { font-size: 12px; overflow-x: auto; background: #fff; border: 1px solid #eadbb0; padding: 10px; border-radius: 4px; max-height: 260px; }

/* Workers */
.workers { background: var(--paper); }
.checks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 15px; background: var(--orange); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 12px; }

/* Case */
.case { background: var(--ink); color: #fff; }
.case-grid { display: grid; gap: 26px; }
.case p { color: #cdd4da; }
.quote-ish { font: 600 22px/1.25 var(--head); color: #fff !important; border-left: 3px solid var(--orange); padding-left: 14px; }
.case-facts { margin: 0; display: grid; gap: 1px; background: var(--steel-3); border-radius: var(--r); overflow: hidden; }
.case-facts div { background: var(--steel-2); padding: 14px 16px; }
.case-facts dt { font: 700 12px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.case-facts dd { margin: 2px 0 0; font-size: 16px; }

/* Services */
.svc-grid { display: grid; gap: 16px; margin-top: 22px; }
.svc { display: grid; background: var(--white); border-radius: var(--r); overflow: hidden; text-decoration: none; border: 1px solid var(--paper-2); transition: transform .15s, box-shadow .15s; }
.svc:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.svc img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.svc-body { padding: 16px 18px 18px; }
.svc-body p { color: var(--muted); font-size: 15.5px; }
.more { font-weight: 700; color: var(--orange-ink); font-size: 15px; }

/* Company */
.company { background: var(--paper-2); }
.company-grid { display: grid; gap: 22px; align-items: center; }
.company p { color: #3a434c; }
.company .eyebrow { color: var(--orange-ink); }
.company-links { display: flex; flex-wrap: wrap; gap: 8px; }
.company-links a { font-weight: 700; text-decoration: none; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 99px; font-size: 14.5px; }
.company-links a:hover { background: var(--ink); color: #fff; }
.company-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }

/* CTA + footer */
.cta-band { background: var(--orange); color: #1a0d04; padding: 40px 0; }
.cta-inner h2 { margin-bottom: 16px; }
.cta-band .btn-orange { background: var(--ink); color: #fff; }
.cta-band .btn-ghost-light { border-color: rgba(26,13,4,.5); color: #1a0d04; }
.site-footer { background: var(--ink); color: var(--muted-d); padding: 40px 0 0; font-size: 15px; }
.footer-grid { display: grid; gap: 26px; }
.site-footer h4 { color: #fff; font-size: 17px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.site-footer a { display: block; color: #dfe4e8; text-decoration: none; padding: 4px 0; }
.site-footer a:hover { color: var(--orange); }
.site-footer img { margin-bottom: 10px; }
.iso-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.iso-line img { margin: 0; background: #fff; border-radius: 50%; padding: 2px; }
.footer-base { border-top: 1px solid var(--line-d); margin-top: 30px; padding-top: 16px; padding-bottom: 24px; font-size: 13px; }

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
  .paths { grid-template-columns: 1fr 1fr; }
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .crew-form { padding: 26px 24px; }
  .header-actions .btn-sm { display: inline-flex; }
}
@media (min-width: 980px) {
  :root { --gutter: 28px; }
  .main-nav { display: flex; gap: 22px; }
  .main-nav a { color: #dfe4e8; text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
  .main-nav a:first-child { color: #fff; border-bottom-color: var(--orange); }
  .main-nav a:hover { color: #fff; border-bottom-color: var(--orange); }
  .menu-btn, .mobile-menu { display: none !important; }
  .phone-link { display: inline-flex; }
  .brand img { width: 150px; }
  .header-row { height: 72px; }

  .hero-media { left: auto; width: 54%; }
  .hero-media img { opacity: .9; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
  .hero-media::after { background: linear-gradient(90deg, var(--ink) 0%, rgba(13,17,21,.55) 22%, rgba(13,17,21,.05) 60%); }
  .hero-inner { padding-top: 96px; padding-bottom: 72px; }
  .hero-inner > * { max-width: 600px; }
  .paths { max-width: 640px; }

  .proof-grid { grid-template-columns: 1.6fr repeat(5, 1fr); align-items: center; }
  .stat-iso { grid-column: auto; }
  .section { padding: 88px 0; }
  .pillars { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .split-rev .split-media { order: 2; }
  .steps { grid-template-columns: repeat(5, 1fr); border-left: 0; border-top: 2px solid var(--orange); padding-top: 26px; }
  .steps li { padding: 0 18px 0 0; }
  .steps li::before { left: 0; top: -42px; }
  .request-grid { grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
  .request-intro { position: sticky; top: 110px; }
  .case-grid { grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
  .company-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .cta-inner h2 { margin: 0; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Demo only: fill the request form with a sample request. Styled like a sticky note so it never reads as part of the product. */
.crew-form .demo-fill { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; padding: 9px 12px; background: #fff7d6; border: 1px dashed #d9b84a; border-radius: 8px; }
.crew-form .demo-fill[hidden] { display: none; }
.crew-form .demo-fill small { color: #6b5512; font-size: 13px; }
.crew-form .demo-fill-btn { background: #fff; border: 1px solid #d9b84a; color: #4a3a08; font: 700 14px var(--body); padding: 7px 12px; border-radius: 6px; cursor: pointer; }
.crew-form .demo-fill-btn:hover { border-color: #a8861f; background: #fffbea; }
