/* ==========================================================================
   Premium Hand Car Wash & Detailing — shared stylesheet
   Implements design-system.md. All colors come from the :root tokens below;
   never hardcode a color value outside this block.
   ========================================================================== */

:root {
  /* Colors */
  --color-bg: #0D1013;
  --color-surface: #15191E;
  --color-surface-2: #1D242B;
  --color-line: rgba(255, 255, 255, 0.08);
  --color-ink: #F4F7F9;
  --color-ink-muted: #A2ADB5;
  --color-accent: #3BC1F0;
  --color-accent-strong: #7AD6F7;
  --color-accent-ink: #05222E;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Radii + layout */
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --container: 1280px;

  /* Component metrics */
  --cta-bar-h: 76px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: Sora, "Segoe UI", system-ui, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 150ms ease;
}

a:hover { color: var(--color-accent-strong); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--space-1);
}

h1, h2, h3 {
  margin: 0 0 var(--space-4);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

p { margin: 0 0 var(--space-4); }

p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

.lead {
  font-size: 1.15rem;
  color: var(--color-ink-muted);
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.muted { color: var(--color-ink-muted); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section {
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--color-line);
}

.hero { border-top: 0; }

#quality,
#process,
#book { background: var(--color-surface); }

.section--tight { padding-block: clamp(24px, 4vw, 48px); }

.section-head {
  max-width: 680px;
  margin-bottom: clamp(var(--space-6), 4vw, var(--space-7));
}

.section-head .lead { margin-bottom: 0; }

.grid {
  display: grid;
  gap: var(--space-5);
}

.grid > * { min-width: 0; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent-strong);
  color: var(--color-accent-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-ink);
}

/* --------------------------------------------------------------------------
   Chip
   -------------------------------------------------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface-2);
  color: var(--color-ink-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: clamp(var(--space-5), 2.4vw, var(--space-6));
  background: var(--color-surface-2);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  transition: border-color 180ms ease, transform 180ms ease;
}

@media (hover: hover) {
  .card:hover {
    border-color: color-mix(in srgb, var(--color-accent) 34%, var(--color-line));
    transform: translateY(-2px);
  }
}

.card--featured {
  border-color: var(--color-accent);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--color-accent) 16%, transparent);
}

#services .card {
  min-height: 100%;
  padding: clamp(var(--space-5), 3vw, var(--space-7));
}

#services .card--featured {
  background: color-mix(in srgb, var(--color-accent) 7%, var(--color-surface-2));
}

.card p { color: var(--color-ink-muted); }

.card .media { margin-bottom: var(--space-2); }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.card-head h3 { margin-bottom: 0; }

.card .btn { margin-top: auto; }

/* Package feature list */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: var(--color-ink-muted);
}

.feature-list li {
  position: relative;
  padding-left: var(--space-5);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: var(--space-2);
  height: var(--space-2);
  border-radius: 50%;
  background: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Price
   -------------------------------------------------------------------------- */

.price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-ink);
}

.price-from {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.duration {
  font-size: 0.95rem;
  color: var(--color-ink-muted);
}

.price-note { margin-top: var(--space-5); }

/* --------------------------------------------------------------------------
   Step
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.step {
  position: relative;
  display: block;
  min-height: 100%;
  padding: var(--space-5);
  background: var(--color-surface-2);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
}

.step-num {
  display: block;
  margin-bottom: var(--space-4);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-accent);
}

.step p {
  margin: 0;
  color: var(--color-ink-muted);
}

/* --------------------------------------------------------------------------
   FAQ (details/summary — no JS)
   -------------------------------------------------------------------------- */

.faq-list {
  max-width: 880px;
  border-top: 1px solid var(--color-line);
}

.faq-item { border-bottom: 1px solid var(--color-line); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 60px;
  padding: var(--space-4) var(--space-2);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 150ms ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--color-accent); }

.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-accent);
}

.faq-item[open] summary::after { content: "\2013"; }

.faq-item p {
  margin: 0 0 var(--space-4);
  color: var(--color-ink-muted);
}

/* --------------------------------------------------------------------------
   Site header (sticky, blurred surface at 80% opacity)
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-surface) 80%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-block: var(--space-3);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  margin-right: auto;
}

.logo img {
  display: block;
  width: clamp(120px, 35vw, 132px);
  height: auto;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 var(--space-3);
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: border-color 150ms ease;
}

.nav-toggle:hover { border-color: var(--color-accent); }

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
}

.site-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  padding-bottom: var(--space-4);
}

.lang-switch {
  min-width: 44px;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.site-nav.is-open { display: flex; }

.site-nav a:not(.btn) {
  color: var(--color-ink-muted);
  font-weight: 600;
}

.site-nav a:not(.btn):hover { color: var(--color-ink); }

@media (min-width: 720px) {
  .logo img { width: clamp(185px, 15vw, 200px); }

  .nav-toggle { display: none; }

  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-5);
    width: auto;
    padding-bottom: 0;
  }


  .lang-switch { margin-left: 0; }
}

/* --------------------------------------------------------------------------
   Hero

   Below 720px: one column, text then image, image at the intrinsic ratio of
   whichever crop <picture> loaded. From 720px up: two columns, 1fr text /
   1.2fr image — the image deliberately takes the larger share. 720px is the
   site-wide breakpoint and the exact point where <picture> swaps the 4:5
   mobile crop for the 16:9 desktop one, so layout and art direction change
   together. Do not move this query off 720px on its own.
   -------------------------------------------------------------------------- */

.hero-grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.hero-copy { max-width: 590px; }

/* Specificity here is load-bearing: `.media img { height: auto }` in the media
   section below would otherwise win on source order and cancel the height band.
   Do not shorten this selector to `.media-hero img`. */
.hero .media-hero img {
  width: 100%;
  height: auto; /* mobile: 4:5 box reserved by the matched <source> width/height */
}

@media (min-width: 720px) {
  .hero-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-6);
  }

  /* The image fills its column's width and takes a 480–620px height band,
     cropping the 16:9 photo to fill that box rather than letter-boxing it. */
  .hero .media-hero img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
    max-height: 620px;
    object-fit: cover;
    border-radius: var(--radius-l);
  }
}

.hero .btn-row { margin-top: var(--space-6); }

@media (max-width: 719.98px) {
  .hero { padding-top: var(--space-7); }
  .hero-grid { gap: var(--space-6); }
  .hero .btn-row { margin-top: var(--space-5); }
  .hero .btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   Media / image placeholders
   -------------------------------------------------------------------------- */

.media {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  background: var(--color-surface);
}

.media-hero { border-radius: var(--radius-l); }

.media img,
.media svg {
  width: 100%;
  height: auto;
}

/* Gradient stops for the inline SVG placeholders — token colors only */
.ph-a { stop-color: var(--color-surface-2); }
.ph-b { stop-color: var(--color-surface); }
.ph-c { stop-color: var(--color-accent); }

/* Hero art direction: 800x1000 below 720px, 1600x900 from 720px up */
.media-hero-desktop { display: none; }

@media (min-width: 720px) {
  .media-hero-mobile { display: none; }
  .media-hero-desktop { display: block; }
}

/* --------------------------------------------------------------------------
   Booking form
   -------------------------------------------------------------------------- */

.booking-form {
  display: grid;
  gap: var(--space-4);
  max-width: 900px;
  padding: clamp(var(--space-5), 4vw, var(--space-7));
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
}

@media (min-width: 720px) {
  .booking-form { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  color: var(--color-ink);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-s);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 150ms ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-accent);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field .optional {
  font-weight: 400;
  color: var(--color-ink-muted);
}

/* Netlify honeypot — off-screen, never shown to humans */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--color-line);
  padding-block: clamp(var(--space-7), 6vw, var(--space-8));
  color: var(--color-ink-muted);
  font-size: 0.95rem;
}

.site-footer .container { max-width: var(--container); }

.site-footer p { max-width: 760px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.footer-nav a {
  color: var(--color-ink-muted);
  font-weight: 600;
}

.footer-nav a:hover { color: var(--color-ink); }

/* Payment methods strip — sits below the hours line in both footers.
   The marks are third-party brand assets used exactly as delivered: a
   documented exception to the inline-SVG icon rule, so they are plain <img>
   and are never redrawn or recolored. See design-system.md sections 4 and 6. */
.payment-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.payment-strip img {
  box-sizing: content-box; /* padding pads the plate — it never shrinks the 24px artwork */
  height: 24px;
  width: auto;
  padding: 4px 8px;
  background: #fff; /* literal, not a theme token: third-party brand marks require a white backing plate regardless of theme */
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Mobile CTA bar (below 720px only)
   -------------------------------------------------------------------------- */

.mobile-cta-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-line);
}

.mobile-cta-bar .btn { flex: 1; }

/* Body padding compensation so the fixed bar never covers content */
.has-cta-bar { padding-bottom: var(--cta-bar-h); }

@media (min-width: 720px) {
  .mobile-cta-bar { display: none; }
  .has-cta-bar { padding-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Minimal pages (thank-you, 404)
   -------------------------------------------------------------------------- */

.page-minimal {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-block: var(--space-8);
}

.page-minimal .container { max-width: 640px; }
