/* Imperial Auto Care public site. Purple, grey and gold (owner direction Nov 9), same palette as the Operations app. */
:root {
  /* Nov 9 owner direction: purple, grey and gold, matching the Operations app (imperial.css). */
  --purple: #2D0245;
  --purple-deep: #16111C;     /* header, footer */
  --purple-soft: #5A3A78;     /* fills, selected */
  --gold: #EAD272;
  --gold-dark: #CBB06B;
  --ink: #F1EDF4;             /* main text */
  --muted: #B4ABBF;           /* grey text */
  --line: #463C52;
  --paper: #221C29;           /* page */
  --surface: #2C2534;         /* cards, forms */
  --surface-2: #362E40;       /* alternate band */
  --heading: #EAD272;
  --link: #F0DE95;
  --error: #F4A9A9;
  --ok: #8FDCB0;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--heading); }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 10px 14px; z-index: 100; }

/* Header */
.site-header { background: var(--purple-deep); border-bottom: 2px solid var(--gold); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.site-header .wrap { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: center; gap: 20px; min-height: 64px; }
.brand { color: #fff; text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; padding: 8px 0; min-height: 44px; justify-content: center; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--gold); letter-spacing: .02em; }
.brand-sub { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #d9cde3; }
.nav { display: grid; justify-content: end; padding: 6px 0; }
.nav-primary, .nav-secondary { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 8px; }
.nav-secondary { border-top: 1px solid var(--line); }
.nav a { color: #efe7f5; text-decoration: none; font-size: .95rem; padding: 6px 10px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); background: rgba(255,255,255,.06); }
.header-call { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; min-height: 44px; padding: 0 12px; border-radius: 8px; background: var(--gold); color: var(--purple-deep); font-weight: 700; text-decoration: none; }
.header-call:hover { background: #f3df8a; }
.legal a { color: inherit; }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .site-header .wrap { grid-template-columns: minmax(0, 1fr) max-content max-content; gap: 8px; padding-inline: 14px; }
  .brand-name { font-size: clamp(1.15rem, 4.5vw, 1.45rem); }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 8px; font-size: 1rem; padding: 0 12px; cursor: pointer; }
  .nav { display: none; position: absolute; inset: 100% 0 auto; max-height: calc(100dvh - 72px); overflow-y: auto; background: var(--purple-deep); justify-content: stretch; padding: 8px 14px 16px; box-shadow: 0 6px 10px rgba(0,0,0,.18); }
  .nav.open { display: grid; }
  .nav-primary, .nav-secondary { flex-direction: column; align-items: stretch; }
  .nav-secondary { padding-top: 8px; margin-top: 8px; }
  .nav a { padding: 12px; }
}

/* Notice shown before cutover */
.preview-bar { background: var(--gold); color: var(--purple-deep); font-size: .85rem; text-align: center; padding: 6px 12px; }
.offer-bar { background: var(--gold); color: var(--purple-deep); font-size: .95rem; text-align: center; padding: 8px 16px; line-height: 1.4; }
.offer-bar a { color: var(--purple-deep); font-weight: 700; text-decoration: underline; margin-left: 4px; }
.offer-bar .offer-fine { display: block; font-size: .8rem; }

/* Hero */
.hero { background: radial-gradient(120% 90% at 20% 0%, #3A2650 0%, var(--paper) 60%, var(--purple-deep) 100%); color: #fff; padding: 56px 0 64px; }
.hero h1 { color: #fff; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p.lead { font-size: 1.15rem; color: #e6dcef; max-width: 640px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--sans); }
.btn-gold { background: var(--gold); color: var(--purple-deep); }
.btn-gold:hover { background: #f3df8a; }
.btn-outline { border-color: var(--gold-dark); color: var(--gold); background: transparent; }
.btn-outline:hover { background: rgba(234,210,114,.08); }
.btn-purple { background: var(--purple-soft); color: #fff; }
.btn-purple:hover { background: #6B4790; }
.btn-light { border-color: var(--muted); color: var(--ink); background: transparent; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: .95rem; color: #d9cde3; }
.hero-facts span::before { content: "◆"; color: var(--gold); margin-right: 8px; font-size: .7rem; }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-bottom: 8px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); flex: 1; }
.card .more { font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.card.division { border-color: var(--gold-dark); background: linear-gradient(180deg, var(--surface), #3A3220); }
.tag { display: inline-block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-bottom: 6px; }
.split { display: grid; gap: 32px; grid-template-columns: 1.3fr 1fr; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
ul.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
ul.checks li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); }
ul.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--gold-dark); font-weight: 700; }
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.steps div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.steps div::before { counter-increment: step; content: counter(step); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--purple-soft); color: var(--gold); font-weight: 700; align-items: center; justify-content: center; margin-bottom: 10px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; }
.note { background: #3A3220; border-left: 4px solid var(--gold-dark); padding: 12px 14px; border-radius: 6px; color: var(--ink); }
.band { background: linear-gradient(160deg, #3A2650, var(--purple-deep)); color: #fff; padding: 40px 0; }
.band h2 { color: var(--gold); }
.band p { color: #e6dcef; }

/* Forms */
.form { display: grid; gap: 18px; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 0; background: var(--surface); }
legend { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--heading); padding: 0 6px; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.hint { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); margin-top: 4px; }
input:not([type]), input[type=text], input[type=tel], input[type=email], input[type=number], select, textarea {
  width: 100%; font-size: 16px; padding: 12px; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: #1A1420; color: var(--ink); font-family: var(--sans);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(203,176,107,.45); border-color: var(--gold-dark); }
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 600; }
.choice input:checked + span { background: var(--purple-soft); color: var(--gold); border-color: var(--gold); }
.choice input:focus-visible + span { outline: 3px solid rgba(203,176,107,.6); }
.day { margin-bottom: 16px; }
.day h3 { font-family: var(--sans); font-size: 1rem; color: var(--ink); margin-bottom: 8px; }
.service-pick { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.service-pick a { text-decoration: none; color: inherit; }
.service-pick .card:hover { border-color: var(--gold-dark); }
.alert { padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.alert-error { background: #46202A; color: var(--error); border: 1px solid #6A3040; }
.alert-info { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.alert-ok { background: #1F3A2C; color: var(--ok); border: 1px solid #2E5A42; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.chosen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.chosen a { min-height: 44px; display: inline-flex; align-items: center; }

/* Footer */
.site-footer { background: var(--purple-deep); color: var(--muted); border-top: 1px solid var(--line); padding: 40px 0 24px; font-size: .95rem; }
.site-footer h3 { color: var(--gold); font-size: 1.15rem; }
.site-footer a { color: #efe7f5; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 24px; padding-top: 16px; font-size: .8rem; color: #9c8dab; }
.chosen .tag { display: block; margin-bottom: 2px; }
.day > summary { cursor: pointer; padding: 10px 0; min-height: 44px; list-style-position: outside; }
.day > summary h3 { margin: 0; }

/* Our work gallery */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 24px; }
.gallery-item { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gallery-item a { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item figcaption { padding: 10px 12px; font-size: .92rem; color: var(--muted); }
.gallery-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .gallery-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .gallery-item figcaption { font-size: .82rem; padding: 8px; } }

/* Owner-approved price list on a service page (customs). Stacks on phones. */
.price-rows { display: grid; gap: 12px; margin-top: 8px; }
.price-row { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.price-row h3 { margin: 0 0 .25em; }
.price-row p { color: var(--muted); margin: 0 0 .6em; }
.price-row dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.price-row dt { font-size: .78rem; color: var(--muted); }
.price-row dd { margin: 0; font-weight: 700; color: var(--gold-dark); font-size: 1.1rem; }
@media (max-width: 560px) { .price-row dl { grid-template-columns: 1fr; } .price-row dl div { display: flex; justify-content: space-between; } }

/* Hide the ZIP box when the customer picks the shop. */
.choices:has(input[value=shop]:checked) ~ .zip-row { display: none; }
.lead-in { font-size: 1.08rem; font-weight: 600; margin: 6px 0 14px; }
.review blockquote { margin: 0 0 10px; font-size: 1rem; line-height: 1.5; }
.review figcaption { color: var(--muted, #666); font-size: .9rem; }
