/* Knucklebolt Auto & Tire: demo template by Alpine Digital */
:root {
  --asphalt: #141414;
  --gunmetal: #2A2D31;
  --steel: #3A3E44;
  --yellow: #FFC400;
  --red: #D7261E;
  --red-dark: #B01C15;
  --concrete: #F2F2EF;
  --muted: #B9BCC0;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.55; color: var(--asphalt); background: var(--concrete); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); text-transform: uppercase; line-height: .95; margin: 0 0 .5em; letter-spacing: .01em; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--yellow); color: var(--asphalt); padding: .6rem 1rem; z-index: 100; font-weight: 600; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--head); text-transform: uppercase; font-weight: 700; letter-spacing: .04em; font-size: 1.1rem; text-decoration: none; padding: .65rem 1.2rem; border: 3px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { font-size: 1.3rem; padding: .85rem 1.6rem; }
.btn-yellow { background: var(--yellow); color: var(--asphalt); }
.btn-yellow:hover { background: #FFD43D; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--asphalt); }
.btn-dark { background: var(--asphalt); color: var(--yellow); }
.btn-dark:hover { background: #000; }
.kicker { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin: 0 0 .6rem; font-size: 1rem; display: flex; align-items: center; gap: .6rem; }
.kicker::before { content: ""; width: 28px; height: 4px; background: currentColor; }
.kicker-dark { color: var(--asphalt); }

/* Utility + header */
.utility { background: var(--yellow); color: var(--asphalt); font-size: .9rem; }
.utility-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: .4rem; }
.utility p { margin: 0; }
.utility a { font-weight: 600; }
.site-header { background: var(--asphalt); position: sticky; top: 0; z-index: 30; border-bottom: 4px solid var(--yellow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: .8rem; gap: 1rem; }
.brand img { width: 230px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: #fff; text-decoration: none; font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 1.1rem; }
.nav a:not(.btn):hover { color: var(--yellow); }

/* Hero */
.hero { position: relative; background: var(--asphalt); color: #fff; overflow: hidden; }
.hero-media, .hero-stripe { position: absolute; inset: 0 0 0 46%; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
.hero-stripe { background: var(--yellow); transform: translateX(-26px); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) contrast(1.1); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,.7), rgba(20,20,20,0) 45%); }
.hero-inner { position: relative; z-index: 2; min-height: 600px; display: flex; align-items: center; padding-block: 4rem; }
.hero-copy { max-width: 520px; }
.tag { display: inline-flex; align-items: center; gap: .5rem; background: var(--gunmetal); padding: .35rem .8rem; font-weight: 600; font-size: .95rem; margin: 0 0 1.2rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 4px rgba(61,220,132,.25); }
.hero h1 { font-size: clamp(3.2rem, 7vw, 5.8rem); font-weight: 800; }
.hero h1 span { color: var(--yellow); }
.lede { font-size: 1.15rem; color: #D6D8DB; max-width: 40ch; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Trust strip */
.trust { background: var(--yellow); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid div { padding: 1.6rem 1.2rem; border-left: 2px solid rgba(20,20,20,.18); display: flex; flex-direction: column; }
.trust-grid div:first-child { border-left: 0; padding-left: 0; }
.trust strong { font-family: var(--head); font-size: 2.8rem; font-weight: 800; line-height: 1; text-transform: uppercase; }
.trust span { font-weight: 500; font-size: .98rem; }

/* Services */
.services { padding-block: 5.5rem; }
.section-head { margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; max-width: 18ch; }
.service-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--asphalt); border: 4px solid var(--asphalt); }
.service { background: #fff; padding: 2rem 1.8rem; position: relative; transition: background .2s; }
.service:hover { background: #FFFBEA; }
.service svg { width: 56px; height: 56px; color: var(--asphalt); margin-bottom: 1rem; background: var(--yellow); padding: 8px; }
.service h3 { font-size: 1.9rem; font-weight: 800; margin-bottom: .4rem; }
.service p { margin: 0 0 1rem; color: #3D4045; }
.service .from { margin: 0; font-family: var(--head); font-weight: 700; text-transform: uppercase; color: var(--red-dark); letter-spacing: .04em; font-size: 1.1rem; }

/* Why */
.why { background: var(--gunmetal); color: #fff; padding-block: 5.5rem; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.why-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.why-photos img { width: 100%; height: 420px; object-fit: cover; }
.why-photos img:last-child { margin-top: 60px; height: 360px; }
.why h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; }
.why .kicker { color: var(--yellow); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 2rem; }
.steps li { counter-increment: s; position: relative; padding: .9rem 0 .9rem 3.6rem; border-bottom: 1px solid rgba(255,255,255,.14); color: #D6D8DB; }
.steps li::before { content: "0" counter(s); position: absolute; left: 0; top: .55rem; font-family: var(--head); font-weight: 800; font-size: 2rem; color: var(--yellow); }
.steps strong { color: #fff; }
.quote { margin: 0; background: var(--asphalt); padding: 1.4rem 1.6rem; border-left: 6px solid var(--red); }
.quote p { margin: 0 0 .5rem; font-size: 1.15rem; }
.quote .sample-label { font-family: var(--head); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--yellow); font-weight: 700; }
.quote footer { color: var(--muted); font-size: .9rem; }

/* Quote form */
.quote-section { background: var(--yellow); padding-block: 5.5rem; }
.quote-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 3.5rem; align-items: start; }
.quote-intro h2 { font-size: clamp(2.8rem, 6vw, 4.4rem); font-weight: 800; }
.quote-intro img { margin-top: 1.5rem; width: 100%; height: 260px; object-fit: cover; border: 4px solid var(--asphalt); }
.quote-form { background: #fff; border: 4px solid var(--asphalt); padding: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; box-shadow: 10px 10px 0 var(--asphalt); }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .contact-pref legend { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: #5B5F64; }
input, select, textarea { font: inherit; padding: .7rem .8rem; border: 2px solid #8A8E93; background: #fff; color: var(--asphalt); border-radius: 0; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--asphalt); outline: 3px solid var(--yellow); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--red); background: #FFF4F3; }
.contact-pref { border: 0; padding: 0; margin: 0; flex-direction: row; flex-wrap: wrap; gap: .5rem 1.5rem; }
.contact-pref legend { margin-bottom: .4rem; padding: 0; }
.contact-pref label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; }
.contact-pref input { width: 1.15rem; height: 1.15rem; accent-color: var(--asphalt); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: #1B6B3A; }
.form-status.error { color: var(--red-dark); }

/* Visit */
.visit { background: var(--asphalt); color: #fff; padding-block: 4.5rem; }
.visit-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.visit h2 { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 800; }
.visit .kicker { color: var(--yellow); }
.visit p { color: #D6D8DB; max-width: 46ch; }
.visit a { color: var(--yellow); font-weight: 600; }
.hours { margin: 0; border: 3px solid var(--yellow); }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.hours div:last-child { border-bottom: 0; }
.hours dt { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.2rem; }
.hours dd { margin: 0; color: #D6D8DB; }

.site-footer { background: #0B0B0B; color: var(--muted); padding-block: 2.2rem; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.footer-inner p { margin: 0; }
.demo-note { flex-basis: 100%; border-top: 1px solid #2A2A2A; padding-top: 1rem; font-size: .85rem; }

/* Sticky mobile CTA bar */
.mobile-bar { display: none; }

@media (max-width: 960px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .why-grid, .quote-grid, .visit-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 760px) {
  body { padding-bottom: 68px; }
  .utility-right { display: none; }
  .nav a:not(.btn) { display: none; }
  .nav .btn { font-size: .95rem; padding: .45rem .7rem; }
  .brand img { width: 170px; }
  .hero-media { inset: 0; clip-path: none; }
  .hero-media::after { background: linear-gradient(180deg, rgba(20,20,20,.55), rgba(20,20,20,.92) 70%); }
  .hero-stripe { display: none; }
  .hero-inner { min-height: 0; padding-block: 3.5rem 3rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .trust strong { font-size: 2.2rem; }
  .trust-grid div { padding: 1.1rem .8rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service { padding: 1.5rem 1.3rem; display: grid; grid-template-columns: 56px 1fr; column-gap: 1rem; }
  .service svg { grid-row: span 3; }
  .services, .why, .quote-section { padding-block: 4rem; }
  .why-photos img, .why-photos img:last-child { height: 220px; margin-top: 0; }
  .quote-form { grid-template-columns: 1fr; padding: 1.3rem; box-shadow: 6px 6px 0 var(--asphalt); }
  .quote-intro img { display: none; }
  .form-foot .btn { width: 100%; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; border-top: 3px solid var(--asphalt); box-shadow: 0 -6px 20px rgba(0,0,0,.25); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 64px; font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: 1.25rem; letter-spacing: .04em; text-decoration: none; }
  .mobile-bar svg { width: 22px; height: 22px; }
  .mb-call { background: var(--asphalt); color: #fff; }
  .mb-quote { background: var(--yellow); color: var(--asphalt); }
}
