/* Sleek Auto Detailing — colors sampled from the business card, flyer and sign */
:root {
  --charcoal: #3d3a3b;
  --charcoal-deep: #2f2c2d;
  --card: #4b4748;
  --card-line: #5a5657;
  --purple: #4b44a0;
  --purple-dark: #3a3486;
  --lavender: #9ca3e8;
  --lavender-tint: #f1f0f8;
  --white: #ffffff;
  --text: #2b2829;
  --text-muted: #5f5b5c;
  --on-dark: #f3f2f6;
  --on-dark-muted: #c9c6cf;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Cambria, Georgia, serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--purple); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon-xl { width: 40px; height: 40px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 1rem/1 var(--sans);
  padding: .8em 1.3em; border-radius: 999px;
  border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lg { font-size: 1.0625rem; padding: 1em 1.6em; }
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-dark); }
.btn-outline { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-outline:hover { background: var(--charcoal); color: var(--white); }
.btn-light { background: var(--white); color: var(--charcoal); }
.btn-light:hover { background: var(--lavender-tint); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid #ebeaf0;
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand img { height: 46px; width: auto; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--purple); }
.header-call { padding: .7em 1.1em; }
.nav-toggle { display: none; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(36px, 5vw, 64px); text-align: center; }
.hero-inner { display: grid; justify-items: center; }
.hero-copy { max-width: 880px; display: grid; justify-items: center; }
.hero-title {
  font-weight: 800;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 8.4vw, 6.4rem);
  letter-spacing: -.01em;
  line-height: .95;
  color: var(--charcoal);
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  color: var(--purple);
  line-height: 1.15;
  margin-top: .15em;
}
.hero-lede { max-width: 38em; margin-top: 22px; font-size: 1.15rem; color: var(--text-muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.hero-owner { margin-top: 22px; font-family: var(--serif); font-style: italic; color: var(--text-muted); }
.hero-media { margin: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* Hero with a photo: two columns, left-aligned copy */
.has-hero-photo .hero { text-align: left; }
.has-hero-photo .hero-inner { grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; justify-items: stretch; }
.has-hero-photo .hero-copy { justify-items: start; }
.has-hero-photo .hero-title { font-size: clamp(2.4rem, 5.6vw, 4.8rem); }
.has-hero-photo .hero-actions { justify-content: flex-start; }
.has-hero-photo .hero-media { aspect-ratio: 4 / 5; max-height: 620px; }

/* Waves (the purple band from the printed materials) */
.wave { display: block; line-height: 0; }
.wave svg { display: block; width: 100%; height: clamp(48px, 7vw, 100px); }
.wave-band { fill: var(--purple); }
.wave-down { background: var(--white); }
.wave-down .wave-fill { fill: var(--charcoal); }
.wave-up { background: var(--white); }
.wave-up .wave-fill { fill: var(--charcoal); }
.wave-footer .wave-fill { fill: var(--charcoal-deep); }

/* Sections */
.dark { background: var(--charcoal); color: var(--on-dark); }
.light { background: var(--white); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.dark .section + .section { padding-top: 0; }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 640px; }
.section-head h2 {
  font-weight: 800;
  font-stretch: 115%;
  font-variation-settings: "wdth" 115;
  font-size: clamp(2rem, 4.4vw, 3rem);
  letter-spacing: -.01em;
}
.section-head p { margin-top: 12px; font-size: 1.1rem; }
.dark .section-head p { color: var(--on-dark-muted); }
.light .section-head p { color: var(--text-muted); }

/* Packages */
.packages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.package {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--card);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 28px 24px 24px;
}
.package h3 { font-size: 1.35rem; font-weight: 700; color: var(--white); }
.price {
  margin-top: 14px;
  font-weight: 800; font-size: 2.6rem; line-height: 1;
  font-stretch: 112%; font-variation-settings: "wdth" 112;
  color: var(--lavender);
}
.price span { display: block; font-size: .85rem; font-weight: 500; letter-spacing: .02em; color: var(--on-dark-muted); margin-bottom: 6px; font-stretch: 100%; font-variation-settings: "wdth" 100; }
.package ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 9px; }
.package li { position: relative; padding-left: 20px; font-size: .98rem; line-height: 1.4; color: var(--on-dark); }
.package li::before {
  content: ""; position: absolute; left: 2px; top: .45em;
  width: 8px; height: 8px; background: var(--lavender); transform: rotate(45deg);
}
.package-link {
  margin-top: auto;
  display: block; text-align: center; text-decoration: none; font-weight: 600;
  padding: 12px; border-radius: 999px;
  border: 2px solid var(--card-line); color: var(--white);
}
.package-link:hover { border-color: var(--lavender); }
.package-featured { border-color: var(--purple); background: #4f4a5c; }
.package-featured .package-link { background: var(--purple); border-color: var(--purple); }
.package-featured .package-link:hover { background: var(--purple-dark); }
.badge {
  position: absolute; top: -13px; left: 22px;
  background: var(--purple); color: var(--white);
  font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  padding: 5px 12px; border-radius: 999px;
}

.addons {
  margin-top: 28px; padding: 22px 24px;
  border: 1px solid var(--card-line); border-radius: var(--radius);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
}
.addons h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); }
.addons dl { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; }
.addons dl div { display: flex; gap: 8px; }
.addons dt { color: var(--on-dark); }
.addons dd { margin: 0; font-weight: 700; color: var(--lavender); }
.fine-print { margin-top: 14px; font-size: .92rem; color: var(--on-dark-muted); }

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  counter-reset: step;
  position: relative;
}
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step);
  display: block;
  font-weight: 800; font-size: 4.5rem; line-height: 1;
  font-stretch: 125%; font-variation-settings: "wdth" 125;
  color: transparent; -webkit-text-stroke: 2px var(--lavender);
  margin-bottom: 14px;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 2.2rem; left: 5.5rem; right: -16px;
  border-top: 2px dashed var(--card-line);
}
.steps h3 { font-size: 1.3rem; font-weight: 700; color: var(--white); }
.steps p { margin-top: 8px; color: var(--on-dark-muted); max-width: 30em; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gallery:empty { display: none; }
.shot { margin: 0; }
.shot-frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--card); }
.shot-frame img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { margin-top: 10px; font-size: .95rem; color: var(--on-dark-muted); }

/* Before/after slider */
.compare .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px;
  background: var(--white); pointer-events: none;
}
.compare .divider::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border-radius: 50%; background: var(--purple); border: 3px solid var(--white);
}
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
}
.compare input[type="range"]:focus-visible + .divider::after { outline: 3px solid var(--lavender); outline-offset: 2px; }
.tag {
  position: absolute; bottom: 10px; padding: 3px 10px; border-radius: 999px;
  background: rgba(47, 44, 45, .8); color: var(--white); font-size: .8rem; font-weight: 600; pointer-events: none;
}
.tag-before { left: 10px; }
.tag-after { right: 10px; }

.gallery-empty {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px;
  padding: 28px; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--purple) 0%, #5a52b3 100%);
  color: var(--white);
}
.gallery-empty p { flex: 1 1 260px; font-size: 1.2rem; font-weight: 500; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.review { margin: 0; padding: 26px; background: var(--card); border-radius: var(--radius); }
.review blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.55; color: var(--white); }
.review figcaption { margin-top: 14px; color: var(--on-dark-muted); font-size: .95rem; }
.review figcaption strong { color: var(--lavender); font-weight: 600; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-layout .section-head a { color: var(--purple); font-weight: 600; }
.faq details { border-bottom: 1px solid #e3e1ea; }
.faq details:first-child { border-top: 1px solid #e3e1ea; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 600; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2.5px solid var(--purple); border-bottom: 2.5px solid var(--purple);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 0 22px; color: var(--text-muted); max-width: 62ch; }
.faq details a { color: var(--purple); }

/* Quote */
.quote-section { padding-top: 0; }
.quote-layout {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 72px); align-items: start;
  background: var(--lavender-tint); border-radius: 22px;
  padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(28px, 5vw, 56px);
}
.quote-intro h2 {
  font-weight: 800; font-stretch: 115%; font-variation-settings: "wdth" 115;
  font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.01em;
}
.quote-intro > p { margin-top: 12px; color: var(--text-muted); font-size: 1.1rem; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.contact-list .icon { color: var(--purple); }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }

.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--white); border: 1.5px solid #cfccdc; border-radius: 10px;
  padding: 12px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(75, 68, 160, .2); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 4px; }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--purple); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.form-note { font-size: .9rem; color: var(--text-muted); }
.form-error { grid-column: 1 / -1; color: #b3261e; font-weight: 600; }
.optional { font-weight: 400; color: var(--text-muted); }
.btn:disabled { opacity: .65; cursor: progress; }

.quote-sent {
  display: grid; justify-items: start; gap: 14px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--white); border-radius: var(--radius);
  border-top: 5px solid var(--purple);
}
.quote-sent:focus { outline: none; }
.sent-check { width: 56px; height: 56px; border-radius: 50%; background: var(--purple); display: grid; place-items: center; }
.sent-check svg { width: 30px; height: 30px; fill: none; stroke: var(--white); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.quote-sent h3 {
  font-weight: 800; font-stretch: 115%; font-variation-settings: "wdth" 115;
  font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--charcoal);
}
.quote-sent p { color: var(--text-muted); max-width: 46ch; font-size: 1.08rem; }
.quote-sent p strong { color: var(--text); }
.quote-sent .sent-sub a { color: var(--purple); font-weight: 600; }
.quote-sent .btn { margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .quote-sent:not([hidden]) .sent-check { animation: pop .4s cubic-bezier(.3, 1.4, .5, 1); }
  @keyframes pop { from { transform: scale(.4); opacity: 0; } }
}

/* Footer */
.site-footer { background: var(--charcoal-deep); color: var(--on-dark); padding: 28px 0 48px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px 48px; align-items: start; }
.footer-brand img { width: 220px; height: auto; }
.footer-brand p { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--lavender); }
.site-footer .contact-list { margin: 0; }
.site-footer .contact-list .icon { color: var(--lavender); }
.copyright { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid #47434a; font-size: .9rem; color: var(--on-dark-muted); }

.mobile-bar { display: none; }

/* Tablet */
@media (max-width: 1060px) {
  .packages { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
}
@media (max-width: 960px) {
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px;
    background: var(--white); border-bottom: 1px solid #ebeaf0;
    box-shadow: 0 12px 24px rgba(47, 44, 45, .08);
  }
  .site-nav:not(.open) { display: none; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid #f0eff4; }
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; margin-left: 4px;
    background: none; border: 0; cursor: pointer; border-radius: 10px;
  }
  .header-call { margin-left: auto; }
  .bars, .bars::before, .bars::after { display: block; width: 24px; height: 2.5px; background: var(--charcoal); border-radius: 2px; position: relative; transition: transform .2s, opacity .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; }
  .bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

  .has-hero-photo .hero { text-align: center; }
  .has-hero-photo .hero-inner { grid-template-columns: 1fr; }
  .has-hero-photo .hero-copy { justify-items: center; }
  .has-hero-photo .hero-actions { justify-content: center; }
  .has-hero-photo .hero-media { aspect-ratio: 4 / 3; order: -1; }

  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { display: grid; grid-template-columns: 76px 1fr; column-gap: 18px; }
  .steps li::before { grid-row: span 2; font-size: 3.6rem; margin: 0; }
  .steps li:not(:last-child)::after { display: none; }
  .faq-layout, .quote-layout { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { padding-bottom: 68px; }
  .brand img { height: 36px; }
  .header-call span { display: none; }
  .header-call { padding: 0; width: 44px; height: 44px; }
  .hero-actions { flex-direction: column; align-self: stretch; }
  .hero-actions .btn { width: 100%; }
  .packages { grid-template-columns: 1fr; }
  .quote-layout { border-radius: 0; }
  .quote-form { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--charcoal-deep); border-top: 2px solid var(--purple);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 46px; border-radius: 999px; text-decoration: none; font-weight: 600;
    color: var(--white); background: var(--card);
  }
  .mobile-bar .mobile-bar-primary { background: var(--purple); }
}
