/* Copperstate Classic Cars, site styles (Option C: clean and bright)
   Layout: white pages, black header, sand bands, orange for actions, copper for labels. */
:root {
  --ink: #161616;
  --ink-2: #4D4D4D;
  --muted: #5C5C5C;
  --paper: #FFFFFF;
  --sand: #F5F4F2;
  --sand-2: #EDEBE8;
  --stone: #DCD9D4;
  --line: #E6E3DF;
  --night: #111111;
  --night-2: #2B2B2B;
  --night-ink: #FFFFFF;
  --night-muted: #D6D6D6;
  --orange: #F68E13;
  --orange-ink: #111111;
  --copper: #B35A12;
  --focus: #1F6FEB;
  --font: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --radius: 12px;
  --pill: 999px;
  --wrap: 1240px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--copper); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.band { padding-block: 96px; }
.band-tight { padding-block: 64px; }
.band-sand { background: var(--sand); }
.band-dark { background: var(--night); color: var(--night-ink); }
.band-dark a:not(.btn) { color: var(--night-ink); }
.band-dark .lead, .band-dark .muted { color: var(--night-muted); }

.eyebrow { margin: 0 0 8px; color: var(--copper); font-weight: 600; font-size: 15px; }
.band-dark .eyebrow { color: var(--orange); }
.lead { color: var(--ink-2); font-size: 18px; max-width: 64ch; }
.muted { color: var(--muted); }
.section-head { max-width: 720px; margin-bottom: 48px; display: grid; gap: 12px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head .lead { margin: 0; }
.row-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.row-head .section-head { margin-bottom: 0; }
.link-arrow { color: var(--copper); font-weight: 600; }
.band-dark .link-arrow { color: var(--orange); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--paper); padding: 8px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px; border-radius: var(--pill);
  font-weight: 600; font-size: 16px; line-height: 1.2; border: 2px solid transparent;
  cursor: pointer; font-family: inherit; text-align: center;
}
.btn-primary { background: var(--orange); color: var(--orange-ink); }
.btn-primary:hover { background: #E07F0C; color: var(--orange-ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-dark { background: var(--night); color: var(--night-ink); }
.btn-dark:hover { background: #333333; color: var(--night-ink); }
.btn-outline-light { border-color: var(--night-ink); color: var(--night-ink); background: transparent; }
.btn-outline-light:hover { background: var(--night-ink); color: var(--night); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-row.center { justify-content: center; }

/* Header */
.site-header { background: var(--night); color: var(--night-ink); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand img { width: 168px; height: auto; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a, .nav .nav-parent { color: var(--night-ink); font-weight: 500; font-size: 15px; display: block; padding: 10px 12px; border-radius: 8px; }
.nav a:hover, .nav .nav-parent:hover { color: var(--orange); }
.nav a[aria-current="page"] { color: var(--orange); }
.nav .has-sub { position: relative; }
.nav .sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0;
  min-width: 260px; background: var(--paper); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18); display: none;
}
.nav .sub a { color: var(--ink); padding: 8px 12px; font-size: 15px; }
.nav .sub a:hover { background: var(--sand); color: var(--copper); }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: block; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { color: var(--night-ink); font-weight: 600; white-space: nowrap; }
.header-phone:hover { color: var(--orange); }
.header-actions .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.menu-toggle {
  display: none; margin-left: auto; background: transparent; color: var(--night-ink);
  border: 2px solid #555555; border-radius: 8px; min-height: 44px; padding: 8px 14px;
  font: 600 15px var(--font); cursor: pointer;
}

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .header-inner { flex-wrap: wrap; }
  .nav, .header-actions { display: none; width: 100%; }
  .site-header.open .nav, .site-header.open .header-actions { display: block; }
  .nav { margin-left: 0; padding-bottom: 8px; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav .sub { position: static; display: block; background: transparent; box-shadow: none; padding: 0 0 8px 16px; min-width: 0; }
  .nav .sub a { color: var(--night-muted); }
  .nav .sub a:hover { background: transparent; color: var(--orange); }
  .site-header.open .header-actions { display: flex; flex-wrap: wrap; padding-bottom: 20px; }
}

/* Placeholder images (replaced by real photos before launch) */
.ph {
  background: var(--stone); color: #505050; display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 13px; padding: 16px; border-radius: inherit; min-height: 160px; max-width: 100%;
}
.ph-light { background: var(--sand-2); }
.ph-dark { background: var(--night-2); color: #B0B0B0; }
.media { border-radius: var(--radius); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* Home hero */
.hero { background: var(--sand); }
.hero-photo { height: clamp(260px, 38vw, 480px); border-radius: 0; }
.hero-card-wrap { max-width: 1040px; margin: -120px auto 0; position: relative; padding-bottom: 96px; }
.hero-card {
  background: var(--paper); border-radius: 16px; padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px); text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.08);
}
.hero-card h1 { max-width: 820px; margin: 0 auto; }
.hero-card .lead { margin: 20px auto 0; max-width: 600px; font-size: 19px; }
.hero-card .btn-row { justify-content: center; margin-top: 36px; }
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px;
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line);
}
.stat-num { font-weight: 700; font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 14px; }

/* Inner page hero */
.page-hero { background: var(--sand); padding-block: 64px 56px; }
.page-hero .crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.page-hero .crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 54px); max-width: 900px; }
.page-hero .lead { margin: 16px 0 0; }
.page-hero .btn-row { margin-top: 28px; }

/* Grids and cards */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-line { border: 1px solid var(--line); }
.card .ph { border-radius: 0; }
.card-body { padding: 24px; display: grid; gap: 8px; align-content: start; }
.card-body p { margin: 0; }
.card-tag { color: var(--copper); font-size: 13px; font-weight: 600; }
.service-card .ph, .service-card .media { min-height: 150px; height: 150px; border-radius: 0; }
.service-card h3 { font-size: 18px; }
.service-card p { color: var(--muted); font-size: 14px; }
a.card:hover h3 { color: var(--copper); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.chips.center { justify-content: center; }
.chip { background: var(--sand); border-radius: var(--pill); padding: 8px 18px; font-size: 15px; }

/* Shop tour */
.tour-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tour-filter button {
  font: 500 15px var(--font); padding: 10px 18px; border-radius: var(--pill); border: 2px solid var(--line);
  background: var(--paper); color: var(--ink); cursor: pointer; min-height: 44px;
}
.tour-filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tour-card .ph, .tour-card .media { height: 240px; border-radius: 0; }
.tour-card dl { margin: 4px 0 0; display: grid; gap: 6px; }
.tour-card dt { font-weight: 600; font-size: 14px; }
.tour-card dd { margin: 0 0 6px; color: var(--ink-2); font-size: 15px; }
.tour-photos { display: flex; gap: 6px; padding: 6px 6px 0; }
.tour-photos .thumb { flex: 1; height: 64px; border-radius: 6px; min-height: 0; padding: 4px; font-size: 11px; }
.example-note { font-size: 14px; color: var(--muted); background: var(--sand); border-radius: 8px; padding: 12px 16px; margin-bottom: 24px; }

/* Steps */
.steps { list-style: none; padding: 0; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.steps.center { text-align: center; }
.step-num {
  width: 56px; height: 56px; border-radius: var(--pill); background: var(--orange); color: var(--orange-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px;
}
.steps.center .step-num { margin: 0 auto; }
.steps h3 { margin: 20px 0 8px; }
.steps p { color: var(--ink-2); font-size: 15px; margin: 0; }
.band-dark .steps p { color: var(--night-muted); }

/* Split layouts */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 440px; min-width: 0; }
.split .ph, .split .media { height: 380px; border-radius: var(--radius); }
.checklist { padding: 0 0 0 20px; display: grid; gap: 8px; font-size: 17px; }
.band-dark .checklist { color: var(--night-muted); }

/* Locations */
.loc-card { background: var(--paper); border-radius: var(--radius); padding: 28px; display: grid; gap: 4px; align-content: start; }
.band-sand .loc-card { background: var(--paper); }
.loc-card.card-line { border: 1px solid var(--line); }
.loc-logo { width: 150px; min-height: 48px; margin-bottom: 12px; }
.loc-logo.ph { min-height: 52px; padding: 8px; font-size: 12px; border: 1px dashed #999999; background: transparent; border-radius: 6px; }
.loc-card h3 { font-size: 20px; margin-bottom: 8px; }
.loc-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.loc-card .phone { color: var(--ink); font-weight: 600; }
.loc-card .link-arrow { margin-top: 16px; font-size: 15px; }
.map-ph { height: 260px; border-radius: var(--radius); margin-bottom: 24px; }
.map-frame { width: 100%; height: 360px; border: 0; border-radius: var(--radius); display: block; }
.facts { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.fact h3 { font-size: 15px; color: var(--copper); margin-bottom: 6px; }
.fact p { margin: 0; }

/* Reviews */
.review { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 20px; align-content: space-between; }
.review blockquote { margin: 0; font-size: 17px; color: #2E2E2E; }
.review figcaption { color: var(--muted); font-size: 15px; }

/* CTA */
.cta-orange { background: var(--orange); border-radius: 16px; padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 48px); text-align: center; }
.cta-orange h2 { margin-bottom: 12px; }
.cta-orange p { max-width: 560px; margin: 0 auto 32px; font-size: 18px; }
.cta-orange .btn-outline:hover { background: var(--night); color: var(--night-ink); }

/* Prose pages */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 40px 0 12px; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { font-size: 17px; color: #2E2E2E; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; margin-bottom: 1em; }
.two-col { display: flex; flex-wrap: wrap; gap: 56px; }
.two-col > .main { flex: 2 1 520px; min-width: 0; }
.two-col > .aside { flex: 1 1 300px; min-width: 0; }
.aside-box { background: var(--sand); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; position: sticky; top: 24px; }
.aside-box h3 { font-size: 20px; }
.aside-box p { margin: 0; color: var(--ink-2); font-size: 15px; }
.included { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.included li { background: var(--sand); border-radius: 10px; padding: 16px 18px; font-size: 16px; display: flex; gap: 12px; align-items: flex-start; }
.included svg { flex: none; margin-top: 3px; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.gallery .ph, .gallery .media { height: 200px; border-radius: 10px; }
.aside .media { height: 240px; }
.hero .media.hero-photo { border-radius: 0; }

/* FAQ */
.faq-group { margin-bottom: 48px; }
.faq-group h2 { font-size: 24px; margin-bottom: 16px; }
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 17px; position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 8px; top: 14px; font-size: 24px; font-weight: 400; color: var(--copper); }
details.faq[open] summary::after { content: "\2212"; }
details.faq .answer { padding: 0 0 20px; color: var(--ink-2); max-width: 70ch; }
details.faq .answer p:last-child { margin-bottom: 0; }

/* Team */
.team-group { margin-bottom: 56px; }
.team-group h2 { font-size: 26px; margin-bottom: 24px; }
.person { display: grid; gap: 4px; align-content: start; }
.person .ph, .person .media { aspect-ratio: 4 / 5; height: auto; min-height: 0; border-radius: var(--radius); margin-bottom: 12px; }
.person h3 { font-size: 18px; }
.person .role { color: var(--copper); font-weight: 600; font-size: 14px; }
.person p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.person-text { background: var(--paper, #fff); border: 1px solid var(--line, #e7e2da); border-top: 4px solid var(--copper); border-radius: var(--radius); padding: 24px; }
.person .link-arrow { margin-top: 12px; font-size: 15px; }
.team-group .section-head { margin-bottom: 24px; }
.team-group .section-head .lead { margin-top: 6px; }

/* Forms */
.form { display: grid; gap: 20px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.form legend { font-weight: 700; font-size: 20px; margin-bottom: 4px; padding: 0; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 16px var(--font); color: var(--ink); background: var(--paper); border: 1.5px solid #B9B4AD; border-radius: 8px;
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid rgba(246,142,19,0.35); outline-offset: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--orange); }
.req { color: var(--copper); }
.form-note { background: var(--sand); border-radius: 10px; padding: 16px 18px; font-size: 15px; }
.form-status { font-weight: 600; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 4vw, 40px); }

/* Footer */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); font-size: 15px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); padding-block: 64px 32px; }
.site-footer h3 { font-size: 15px; margin: 0 0 10px; }
.site-footer h3 + p { margin-bottom: 20px; }
.site-footer p { color: var(--ink-2); margin: 0; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.footer-logo { width: 160px; margin-bottom: 16px; }

/* Mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 700px) {
  .band { padding-block: 72px; }
  .hero-card-wrap { margin-top: -64px; padding-bottom: 72px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--night); padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  }
  .mobile-bar .btn { min-height: 46px; padding: 10px 12px; font-size: 15px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .split .ph, .split .media { height: 260px; }
  .aside-box { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Cars: draft number, show more */
.draft-badge { margin: 0; justify-self: start; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: var(--pill); }
.show-more { margin: 32px auto 0; display: flex; }
.tour-photos .thumb { min-height: 0; }
.tour-photos .thumb img { height: 64px; }
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:first-child { grid-column: 1 / -1; }
}

/* Car cards link to the story page */
a.tour-card { color: inherit; text-decoration: none; border: 1px solid var(--line); transition: box-shadow .15s ease, transform .15s ease; }
a.tour-card:hover { color: inherit; box-shadow: 0 10px 28px rgba(0,0,0,0.10); transform: translateY(-2px); }
a.tour-card:hover h3 { color: var(--copper); }
.card-teaser { color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-more { color: var(--copper); font-weight: 600; font-size: 14px; margin-top: 4px !important; }

/* Car story page */
.car-stage { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--sand-2); }
.car-stage img { width: 100%; height: 100%; object-fit: contain; background: #111111; }
.car-stage.ph { min-height: 320px; }
.car-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; }
.car-thumb { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 4 / 3; }
.car-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-thumb[aria-pressed="true"] { border-color: var(--orange); }
.car-story h2 { font-size: 22px; }
.car-nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
@media (prefers-reduced-motion: reduce) { a.tour-card:hover { transform: none; } }

/* Our story: tribute to Bo */
.tribute { max-width: 760px; margin: 0 auto; text-align: center; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--copper); border-radius: var(--radius); padding: 48px 40px; }
.tribute h2 { margin-bottom: 16px; }
.tribute p:not(.eyebrow) { color: var(--ink-2); }
.tribute p.lead { color: var(--ink); }
@media (max-width: 700px) { .tribute { padding: 32px 20px; } }

/* Forms: spam trap field, hidden from people */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
