/*
Theme Name: Derbyshire's Auto Repair
Theme URI: https://derbyshiresautorepair.com/
Author: Nub Designs
Description: Lightweight cinematic custom theme for Derbyshire's Auto Repair & Sales Inc.
Version: 1.2.2
Text Domain: derbyshires
*/
:root {
  --bg: #050709;
  --surface: #0d1217;
  --surface-2: #121820;
  --line: #293039;
  --red: #ff3a43;
  --red-button: #c9141b;
  --red-dark: #9f0f15;
  --white: #f5f5f3;
  --muted: #aab0b6;
  --max: 1240px;
  --display: "Arial Narrow", "Roboto Condensed", Impact, Arial, sans-serif;
  --body: Arial, Helvetica, sans-serif;
}
@font-face {
  font-family: "Derby Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/Yellowtail-Regular.ttf") format("truetype");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--white); font-family: var(--body); line-height: 1.55; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; transition: color .18s ease, background .18s ease, border-color .18s ease; }
a:hover { color: var(--red); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; transform: translateY(-140%); padding: 10px 14px; background: #fff; color: #050709; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
*:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1rem; color: var(--muted); }
h1, h2, h3, h4 { margin: 0 0 .65rem; font-family: var(--display); font-stretch: condensed; font-weight: 800; text-transform: uppercase; letter-spacing: .025em; line-height: 1.04; }
h1 { font-size: clamp(2.7rem, 6vw, 4.7rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.eyebrow { color: var(--red); font-family: var(--display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
.accent { color: var(--red); }
.rule { width: 54px; height: 3px; margin: 18px 0 22px; background: var(--red); }
.section { padding: clamp(48px, 6vw, 72px) 0; }
.section-dark { background: var(--surface); border-block: 1px solid #141a20; }
.page-editor-content { border-top: 1px solid #141a20; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head p { max-width: 475px; margin: 0; }
.center { text-align: center; }
.center .rule { margin-inline: auto; }
.button { display: inline-flex; min-height: 49px; padding: 12px 25px; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); font-family: var(--display); font-size: .98rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--white); }
.button:hover { border-color: var(--red); color: #fff; }
.button-primary { border-color: var(--red-button); background: var(--red-button); color: #fff; }
.button-primary:hover { background: var(--red-dark); }
.button-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(5,7,9,.94); backdrop-filter: blur(12px); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
.brand { display: block; width: min(194px, 23vw); min-width: 158px; line-height: 1; }
.brand-script { display: block; color: var(--red); font: 400 clamp(2.15rem, 3vw, 2.45rem) "Derby Script", "Segoe Script", cursive; white-space: nowrap; }
.brand-tagline { display: block; margin-top: 1px; color: var(--white); font: 700 .61rem Arial, sans-serif; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
.primary-nav { flex: 1; }
.primary-nav ul { list-style: none; display: flex; align-items: center; justify-content: center; gap: clamp(13px, 2.2vw, 27px); margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 30px 0 26px; border-bottom: 3px solid transparent; font: 700 .92rem var(--display); text-transform: uppercase; }
.primary-nav .current-menu-item a, .primary-nav a:hover { border-color: var(--red); color: var(--white); }
.header-phone { white-space: nowrap; color: var(--red); font: 700 1.05rem var(--display); }
.header-book { min-height: 42px; padding: 9px 15px; font-size: .85rem; white-space: nowrap; }
.dealer-mark { width: 90px; text-align: center; }
.dealer-mark img { margin: 0 auto 4px; width: 82px; height: auto; object-fit: contain; }
.dealer-label { display: block; color: var(--white); font: 700 .58rem var(--display); letter-spacing: .06em; text-transform: uppercase; }
.menu-toggle { display: none; margin-left: auto; width: 45px; height: 45px; border: 1px solid var(--line); background: transparent; color: #fff; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 22px; height: 2px; margin: 5px auto; content: ""; background: currentColor; }
.hero { position: relative; min-height: clamp(540px, 62vw, 680px); display: flex; align-items: center; overflow: hidden; background: #06090c center/cover no-repeat; background-image: var(--hero-image); }
.hero::before { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(4,7,10,.97) 0%, rgba(4,7,10,.84) 29%, rgba(4,7,10,.24) 70%), linear-gradient(0deg, rgba(4,7,10,.83), transparent 37%); }
.hero-inner { position: relative; z-index: 1; max-width: 620px; padding: 62px 0 86px; }
.hero p { font-size: clamp(1rem, 1.8vw, 1.15rem); max-width: 475px; color: #dde1e4; }
.home-hero { min-height: min(720px, calc(100vh - 82px)); align-items: end; }
.home-hero .hero-inner { padding-bottom: 110px; }
.stats { position: relative; z-index: 2; margin-top: -66px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 25px 0; border: 1px solid var(--line); background: rgba(10,14,18,.97); }
.stat { padding: 0 28px; border-left: 1px solid var(--line); }
.stat:first-child { border: 0; }
.stat strong { display: block; color: #fff; font: 800 clamp(2rem, 4vw, 2.6rem) var(--display); }
.stat span { display: block; color: #fff; font: 700 .88rem var(--display); text-transform: uppercase; }
.stat small { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards-three { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; min-height: 220px; padding: 26px 22px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg, #10161b, #080b0d); }
.card-image { min-height: 298px; display: flex; flex-direction: column; justify-content: end; background: #0b0f13 center/cover; }
.card-image::before { position: absolute; inset: 0; content: ""; background: linear-gradient(transparent 22%, rgba(5,7,9,.94) 88%); }
.card > * { position: relative; z-index: 1; }
.card-icon { color: var(--red); font-size: 2rem; line-height: 1; margin-bottom: 20px; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: .94rem; }
.card-link { color: var(--red); font: 700 .9rem var(--display); text-transform: uppercase; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 68px); align-items: center; }
.teasers { display: grid; grid-template-columns: repeat(3, 1fr); }
.teaser { position: relative; min-height: 365px; padding: 34px; display: flex; flex-direction: column; justify-content: end; background-position: center; background-size: cover; border: 1px solid var(--line); }
.teaser::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #070a0d 8%, rgba(7,10,13,.25)); }
.teaser > * { position: relative; }
.checks { margin: 20px 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: 7px 0 7px 25px; color: var(--muted); }
.checks li::before { position: absolute; left: 0; content: "✓"; color: var(--red); font-weight: bold; }
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.feature { padding: 30px 24px; text-align: center; background: var(--surface); }
.feature h3 { font-size: 1.13rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { border: 1px solid var(--line); padding: 27px; background: var(--surface); }
.stars { color: var(--red); letter-spacing: .17em; font-size: 1.18rem; margin-bottom: 12px; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 29px clamp(24px, 4vw, 42px); border: 1px solid var(--line); background: linear-gradient(100deg, #10161b, #090c10); }
.cta p { margin: 0; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; color: #e2e2e2; font: 800 clamp(1.1rem, 2vw, 1.65rem) var(--display); text-transform: uppercase; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 28px; border: 1px solid var(--line); }
.contact-item { padding: 27px 20px; text-align: center; border-left: 1px solid var(--line); }
.contact-item:first-child { border: 0; }
.form-panel { padding: clamp(25px, 4vw, 38px); border: 1px solid var(--line); background: var(--surface); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-field-full { grid-column: 1 / -1; }
label { display: block; color: #d6dade; font-size: .9rem; margin-bottom: 6px; }
input, textarea, select { width: 100%; padding: 13px 14px; border: 1px solid #39414b; background: #090d11; color: var(--white); font: inherit; }
textarea { min-height: 135px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(227,27,35,.45); border-color: var(--red); }
.notice { margin: 0 0 22px; padding: 13px 16px; border: 1px solid #214c35; background: #10271d; color: #d6f1e0; }
.appointments { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 28px; }
.steps { display: flex; justify-content: space-between; margin: 8px 0 30px; padding: 0; list-style: none; }
.steps li { color: var(--muted); font: 700 .85rem var(--display); text-transform: uppercase; }
.steps b { display: block; width: 36px; height: 36px; margin: 0 auto 8px; border: 1px solid var(--line); border-radius: 100%; line-height: 35px; text-align: center; }
.steps .active { color: var(--red); }
.steps .active b { border-color: var(--red); }
.service-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.choice { display: flex; align-items: start; gap: 12px; padding: 15px; border: 1px solid var(--line); cursor: pointer; }
.choice input { width: auto; margin-top: 5px; accent-color: var(--red); }
.inventory-tools { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.inventory-tools input, .inventory-tools select { width: auto; min-width: 190px; }
.inventory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.inventory-card { overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.inventory-photo { aspect-ratio: 4/3; background: #121820 center/cover no-repeat; }
.inventory-body { padding: 22px; }
.badge { display: inline-block; margin-bottom: 12px; padding: 3px 9px; border: 1px solid var(--red); color: var(--red); font: 700 .76rem var(--display); text-transform: uppercase; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0; }
.spec { padding: 18px; border: 1px solid var(--line); text-align: center; }
.spec strong { display: block; font: 700 1.2rem var(--display); }
table { width: 100%; border-collapse: collapse; color: var(--muted); }
td, th { padding: 12px; border: 1px solid var(--line); text-align: left; }
.site-footer { margin-top: 0; padding: 46px 0 25px; border-top: 1px solid #13191e; background: #040608; }
.footer-grid { display: grid; grid-template-columns: 1.45fr .8fr 1fr 1.15fr .85fr; gap: 32px; margin-bottom: 33px; }
.footer-wordmark { margin-bottom: 19px; }
.footer-wordmark .brand-script { font-size: 2.35rem; }
.site-footer h3 { font-size: .9rem; margin-bottom: 14px; }
.footer-links { padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .93rem; }
.footer-links a { display: inline-flex; min-height: 24px; align-items: center; padding-block: 3px; }
.footer-links a:hover { color: #fff; }
.copyright { padding-top: 22px; border-top: 1px solid #151a20; color: #717982; font-size: .88rem; text-align: center; }
.social { display: flex; gap: 17px; font-weight: bold; font-size: 1.3rem; }
@media (max-width: 1180px) {
  .header-book { display: none; }
}
@media (max-width: 1050px) {
  .primary-nav, .header-phone, .dealer-mark { display: none; }
  .menu-toggle { display: block; }
  .primary-nav.is-open { position: fixed; display: block; top: 82px; left: 0; right: 0; height: calc(100vh - 82px); padding: 20px; background: #080b0f; }
  .primary-nav.is-open ul { display: block; }
  .primary-nav.is-open a { padding: 17px 8px; }
  .stats-grid, .cards, .feature-row { grid-template-columns: repeat(2, 1fr); }
  .teasers, .inventory-grid, .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .container { width: min(var(--max), calc(100% - 30px)); }
  .home-hero { background-image: var(--hero-image-mobile, var(--hero-image)); }
  .hero { min-height: 570px; background-position: 66% center; }
  .hero::before { background: linear-gradient(90deg, rgba(4,7,10,.97), rgba(4,7,10,.58)), linear-gradient(0deg, rgba(4,7,10,.85), transparent); }
  .home-hero .hero-inner { padding-bottom: 82px; }
  .stats { margin-top: -44px; }
  .stats-grid, .cards, .cards-three, .feature-row, .split, .contact-grid, .form-grid, .appointments, .service-options, .specs { grid-template-columns: 1fr; }
  .stat { border: 0; border-top: 1px solid var(--line); padding: 18px 24px; }
  .stat:first-child { border-top: 0; }
  .contact-item { border: 0; border-top: 1px solid var(--line); }
  .section-head, .cta { display: block; }
  .cta .button-row { margin-top: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps span { display: none; }
}
