/* Chevy Charlie Automotive Services: Graphite & Steel Blue theme */
:root {
  --bg: #1F2327;
  --band: #272C31;
  --surface: #31373E;
  --card: #2B3137;
  --head: #16191C;
  --text: #F3F5F7;
  --muted: #C2C9D1;
  --line: #47505A;
  --input-line: #67717C;
  --accent: #2462B4;
  --accent-hover: #1D53A0;
  --accent-light: #7DB0F0;
  --label: #93BDEB;
  --error: #FF9C8F;
  --success: #5CCB8A;
  --radius: 10px;
  --display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--text); }
a:hover { color: #FFFFFF; }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; margin: 0; line-height: 1; }
:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden-field { display: none; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #FFF; padding: 10px 16px; border-radius: 6px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 32px; background: var(--accent); color: #FFFFFF; border: 0; border-radius: 8px; font: 700 19px/1 var(--body); letter-spacing: 0.02em; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-sm { min-height: 50px; padding: 0 22px; font-size: 17px; }
.btn-lg { min-height: 68px; padding: 0 40px; font-family: var(--display); font-weight: 800; font-size: 27px; text-transform: uppercase; letter-spacing: 0.06em; border-radius: 10px; box-shadow: 0 8px 0 var(--head); }
.btn-ghost { background: transparent; border: 2px solid var(--input-line); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 19px; overflow-wrap: anywhere; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }

/* Header */
.site-header { background: var(--head); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-wrap: wrap; row-gap: 0; }
.brand-logo { width: 76px; height: auto; }
.brand-name { font: 800 40px/1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; color: #FFFFFF; }
.brand-sub { font: 800 22px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 80px 0 64px; }
.hero-watermark { position: absolute; left: 50%; top: 46%; width: 820px; max-width: 130%; transform: translate(-50%, -50%); opacity: .045; filter: grayscale(1) brightness(1.3); z-index: -1; pointer-events: none; }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; max-width: 1120px; }
.badge { margin: 0; padding: 12px 26px; background: var(--accent); color: #FFFFFF; border-radius: 8px; font: 800 28px/1.15 var(--display); letter-spacing: 0.1em; text-transform: uppercase; }
.hero h1 { font-size: clamp(52px, 8vw, 108px); font-weight: 800; line-height: .94; color: #FFFFFF; }
.hero h1 span { display: block; margin-top: 10px; font-size: .66em; letter-spacing: .02em; color: var(--accent-light); }
.intro { margin: 0; max-width: 820px; font-size: clamp(19px, 2vw, 24px); line-height: 1.55; color: var(--muted); }
.intro strong { color: #FFFFFF; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--label); }
.specialties { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.specialties .eyebrow { color: var(--muted); }
.specialties ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.specialties li { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; color: #FFFFFF; }
.specialties li::before { content: ""; width: 16px; height: 16px; flex: none; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237DB0F0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px; margin-top: 6px; }

/* Booking */
.booking { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 72px 0; scroll-margin-top: 0; }
.card { background: var(--surface); border: 2px solid var(--input-line); border-radius: 16px; padding: 36px; box-shadow: 10px 10px 0 var(--accent); }
.card-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.card h2 { font-size: clamp(32px, 4vw, 40px); font-weight: 800; letter-spacing: .04em; color: #FFFFFF; }
.step-label { margin: 0; font-size: 18px; font-weight: 700; color: var(--muted); }
.progress { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.progress li { height: 8px; border-radius: 4px; background: var(--line); }
.progress li.on { background: var(--accent); }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.step + .step { margin-top: 36px; }
.js .step + .step { margin-top: 0; }
.js .step[hidden] { display: none; }
legend { padding: 0; margin-bottom: 18px; font: 800 30px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: #FFFFFF; }

.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.option { position: relative; display: block; cursor: pointer; }
.option-wide { grid-column: 1 / -1; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option span { display: flex; flex-direction: column; gap: 3px; min-height: 72px; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .15s, background .15s; }
.option strong { font-size: 19px; }
.option small { font-size: 16px; color: var(--muted); }
.option:hover span { border-color: var(--input-line); }
.option input:checked + span { border-color: var(--accent-light); background: #23364F; }
.option input:focus-visible + span { outline: 3px solid var(--accent-light); outline-offset: 2px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label, .label { font-size: 18px; font-weight: 700; }
.optional { font-weight: 500; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; min-height: 58px; padding: 0 14px; background: var(--bg); color: var(--text); border: 2px solid var(--input-line); border-radius: 8px; font: 500 19px/1.4 var(--body); }
textarea { padding: 12px 14px; min-height: 140px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2C9D1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
::placeholder { color: #8E97A1; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-light); outline: none; box-shadow: 0 0 0 3px rgba(125,176,240,.25); }
.invalid { border-color: var(--error) !important; }
.help { margin: 0; font-size: 16px; color: var(--muted); }
.vin-guide { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font-size: 16px; }
.vin-guide summary { padding: 14px 16px; color: var(--accent-light); font-weight: 700; cursor: pointer; }
.vin-guide summary:hover { color: var(--text); }
.vin-guide[open] summary { border-bottom: 1px solid var(--line); }
.vin-guide-content { padding: 16px; }
.vin-guide-content ol { margin: 0; padding-left: 24px; }
.vin-guide-content li + li { margin-top: 12px; }
.vin-guide-content p { margin: 16px 0 0; }
.vin-guide-content strong { color: var(--text); }
.error { margin: 0; font-size: 16px; font-weight: 600; color: var(--error); }

.photo-picker { display: flex; flex-wrap: wrap; gap: 12px; }
.thumbs { display: contents; }
.thumb { position: relative; width: 104px; height: 104px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(22,25,28,.85); color: #FFF; font-size: 20px; line-height: 1; cursor: pointer; }
.photo-add { width: 104px; height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--input-line); border-radius: 8px; background: transparent; color: var(--text); font: 700 15px var(--body); cursor: pointer; }
.photo-add:hover { border-color: var(--accent-light); }
.photo-fallback { display: flex; flex-direction: column; gap: 8px; }
.photo-fallback input { color: var(--muted); font-size: 16px; }

.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 2px solid var(--line); border-radius: 8px; background: var(--card); font-weight: 700; font-size: 18px; }
.segmented input:checked + span { background: var(--accent); border-color: var(--accent); }
.segmented input:focus-visible + span { outline: 3px solid var(--accent-light); outline-offset: 2px; }

.summary { margin: 0 0 16px; display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: 18px; }
.summary dt { color: var(--muted); font-weight: 600; }
.summary dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.form-nav .btn:last-child { margin-left: auto; }
.privacy { margin: 16px 0 0; font-size: 15px; color: var(--muted); text-align: center; }

.schedule { text-align: center; }
.schedule h3, .thanks-title { font-size: 34px; font-weight: 800; color: #FFFFFF; margin: 14px 0 10px; }
.schedule > p { margin: 0 auto 20px; max-width: 620px; color: var(--muted); }
.done-icon { width: 70px; height: 70px; margin: 0 auto; border-radius: 50%; background: #17352A; color: var(--success); display: flex; align-items: center; justify-content: center; }
.calendar-frame iframe { width: 100%; height: 720px; border: 0; border-radius: 10px; background: #FFFFFF; }

/* How it works */
.how { padding: 72px 0; background: var(--head); }
.how h2 { text-align: center; font-size: clamp(38px, 5vw, 52px); font-weight: 800; letter-spacing: .04em; color: #FFFFFF; margin-bottom: 40px; }
.how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.how-grid li { background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.how-grid .num { font: 800 64px/1 var(--display); color: var(--accent-light); }
.how-grid h3 { font: 700 25px/1.2 var(--body); text-transform: none; color: #FFFFFF; }
.how-grid p { margin: 0; font-size: 19px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--head); border-top: 1px solid var(--line); padding: 40px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 140px repeat(3, minmax(0, 1fr)); gap: 28px; align-items: center; }
.footer-logo { width: 120px; opacity: .92; }
.footer-grid p { margin: 0; font-size: 19px; }
.footer-grid .eyebrow { font-size: 14px; margin-bottom: 6px; }
.copyright { margin: 28px auto 0; font-size: 15px; color: var(--muted); }

/* Responsive */
@media (min-width: 900px) {
  .specialties ul { gap: 10px 0; flex-wrap: nowrap; }
  .specialties li { padding: 2px 15px; font-size: 18px; white-space: nowrap; }
  .specialties li + li { border-left: 2px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .brand { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: end; }
  .brand-logo { width: 62px; grid-row: span 2; align-self: center; }
  .brand-sub { align-self: start; }
  .brand-name { font-size: clamp(24px, 6vw, 30px); }
  .brand-sub { font-size: clamp(14px, 4vw, 18px); letter-spacing: .04em; }
  .site-header .btn-sm { display: none; }
  .hero { padding: 48px 0 44px; }
  .badge { font-size: 17px; padding: 10px 14px; letter-spacing: .05em; }
  .hero h1 span { font-size: .6em; }
  .btn-lg { width: 100%; font-size: 24px; }
  .booking { padding: 44px 0; }
  .card { padding: 22px 18px; box-shadow: 6px 6px 0 var(--accent); }
  legend { font-size: 25px; }
  .options, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .option-wide { grid-column: auto; }
  .summary { grid-template-columns: 1fr; gap: 2px; }
  .summary dd { margin-bottom: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; width: 100px; }
  .calendar-frame iframe { height: 820px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
