/* ==========================================================================
   DriveSmart Motors: styles.css
   --------------------------------------------------------------------------
   BRAND TOKENS: edit colors and fonts here.
   The DSM logo is pure black and white with monoline, rounded-end letterforms,
   so the palette is monochrome: black as primary, white as its pair, and a
   brushed-silver / steel accent for small details. To add a brand color later,
   change --color-accent (on dark) and --color-accent-strong (on light).
   ========================================================================== */
:root {
  /* Brand */
  --color-primary: #0A0A0B;        /* logo black: header, dark sections, buttons on light */
  --color-on-primary: #FFFFFF;     /* logo white */
  --color-accent: #C4C9CF;         /* brushed silver: accents on dark backgrounds */
  --color-accent-strong: #4A525C;  /* steel: accents on light backgrounds (AA contrast) */

  /* Neutrals */
  --color-white: #FFFFFF;
  --color-gray-50: #F5F6F7;
  --color-gray-100: #ECEEF0;
  --color-gray-200: #DDE0E4;
  --color-gray-300: #C5CAD0;
  --color-gray-400: #A9AFB6;
  --color-gray-600: #4D535A;
  --color-gray-700: #2A2D31;
  --color-gray-800: #1D1F22;
  --color-gray-900: #141517;

  /* Feedback */
  --color-error: #B42318;
  --color-error-bg: #FEF3F2;
  --color-success: #067647;
  --color-success-bg: #ECFDF3;

  /* WhatsApp button. A deeper WhatsApp green so the white text passes AA contrast.
     For the classic bright green use #25D366 (white text is then hard to read). */
  --color-whatsapp: #0E8040;
  --color-whatsapp-hover: #0B6A35;

  /* Typography (font is loaded in index.html <head>) */
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: 1rem;
  --section-pad: clamp(4rem, 9vw, 7.5rem);
  --header-h: 68px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 1px 2px rgb(10 10 11 / 0.04), 0 10px 30px rgb(10 10 11 / 0.07);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) { :root { --gutter: 2rem; } }
@media (min-width: 900px) { :root { --header-h: 80px; } }

/* ---------- Section themes (light / muted / dark) ---------- */
body,
.theme-light {
  --t-bg: var(--color-white);
  --t-card: var(--color-white);
  --t-text: var(--color-primary);
  --t-muted: var(--color-gray-600);
  --t-border: var(--color-gray-200);
  --t-border-strong: var(--color-gray-300);
  --t-accent: var(--color-accent-strong);
  --t-icon-bg: var(--color-gray-50);
  --t-btn-bg: var(--color-primary);
  --t-btn-fg: var(--color-white);
  --t-btn-hover: var(--color-gray-800);
  --t-focus: var(--color-primary);
}
.theme-muted {
  --t-bg: var(--color-gray-50);
  --t-icon-bg: var(--color-gray-100);
}
.theme-dark {
  --t-bg: var(--color-primary);
  --t-card: var(--color-gray-900);
  --t-text: var(--color-white);
  --t-muted: var(--color-gray-400);
  --t-border: var(--color-gray-700);
  --t-border-strong: #4A4E54;
  --t-accent: var(--color-accent);
  --t-icon-bg: var(--color-gray-800);
  --t-btn-bg: var(--color-white);
  --t-btn-fg: var(--color-primary);
  --t-btn-hover: var(--color-gray-200);
  --t-focus: var(--color-white);
}
.theme-light, .theme-muted, .theme-dark { background-color: var(--t-bg); color: var(--t-text); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-primary);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
p + p { margin-top: 1rem; }
a { color: inherit; }
address { font-style: normal; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--t-focus, currentColor);
  outline-offset: 3px;
  border-radius: 4px;
}

section[id], [id="top"] { scroll-margin-top: var(--header-h); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  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: 1rem; top: -100px; z-index: 100;
  padding: 0.75rem 1.25rem; border-radius: var(--radius-sm);
  background: var(--color-white); color: var(--color-primary);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Monoline icons, matching the logo's line weight */
.i {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.85rem;
  margin-bottom: 1.25rem;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--t-accent);
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; }

h1 { font-size: clamp(2.5rem, 7vw + 0.5rem, 5rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.2vw + 1rem, 3.25rem); }
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }
.soft { color: var(--t-muted); }
.theme-dark .soft { color: var(--color-accent); }

.lead { font-size: clamp(1.125rem, 0.5vw + 1rem, 1.3125rem); color: var(--t-text); line-height: 1.55; }
.section-head p:not(.eyebrow):not(.lead), .card p { color: var(--t-muted); }

.section { padding-block: var(--section-pad); }
.section-head { max-width: 740px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-bottom: 1.25rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.8rem 1.6rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font-size: 1rem; font-weight: 700; letter-spacing: 0.005em; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn .i { width: 20px; height: 20px; stroke-width: 2; }
.btn-primary { background: var(--t-btn-bg); color: var(--t-btn-fg); }
.btn-primary:hover { background: var(--t-btn-hover); }
.btn-outline { background: transparent; color: var(--t-text); border-color: var(--t-border-strong); }
.btn-outline:hover { border-color: var(--t-text); background: color-mix(in srgb, var(--t-text) 6%, transparent); }
.btn-sm { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.9375rem; }
.btn-lg { min-height: 56px; padding: 0.95rem 1.9rem; font-size: 1.0625rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(10 10 11 / 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--color-gray-700); }
.header-inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }

.brand { display: inline-flex; padding-block: 0.5rem; border-radius: 6px; }
.brand img { height: 22px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

.nav-toggle {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; padding: 0;
  background: transparent; color: var(--color-white);
  border: 1px solid var(--color-gray-700); border-radius: 12px; cursor: pointer;
}
.bars { display: grid; gap: 5px; width: 20px; }
.bars span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-open .bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .bars span:nth-child(2) { opacity: 0; }
.nav-open .bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; font-weight: 600; }

/* Mobile menu */
@media (max-width: 899px) {
  .nav-list {
    position: absolute; top: 100%; left: 0; right: 0;
    display: flex; flex-direction: column;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--color-primary);
    border-bottom: 1px solid var(--color-gray-700);
    box-shadow: 0 24px 40px rgb(0 0 0 / 0.35);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0s linear 0.2s;
  }
  .nav-open .nav-list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-list a {
    display: flex; align-items: center; min-height: 56px;
    font-size: 1.125rem; color: var(--color-white);
    border-bottom: 1px solid var(--color-gray-800);
  }
  .nav-list li:last-child a { border-bottom: 0; }
}
.header-cta { white-space: nowrap; }
@media (max-width: 479px) {
  .header-cta { padding-inline: 0.9rem; font-size: 0.875rem; }
}
/* Very narrow phones: hide header button, it's in the menu instead */
@media (max-width: 359px) {
  .header-cta { display: none; }
}
@media (min-width: 360px) and (max-width: 899px) {
  .nav-book { display: none; }
}

/* Desktop nav */
@media (min-width: 900px) {
  .brand img { height: 26px; }
  .nav-toggle, .nav-book { display: none; }
  .site-nav { margin-left: auto; }
  .header-actions { margin-left: 1.75rem; }
  .nav-list { display: flex; align-items: center; gap: 2.25rem; }
  .nav-list a {
    position: relative; display: inline-block; padding-block: 0.5rem;
    font-size: 0.9375rem; color: var(--color-gray-300);
    transition: color 0.2s;
  }
  .nav-list a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0.15rem;
    height: 1.5px; background: currentColor;
    transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
  }
  .nav-list a:hover, .nav-list a[aria-current="true"] { color: var(--color-white); }
  .nav-list a:hover::after, .nav-list a[aria-current="true"]::after { transform: scaleX(1); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(4.5rem, 12vw, 8.5rem) clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(70% 60% at 90% 0%, rgb(196 201 207 / 0.14), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgb(196 201 207 / 0.06), transparent 70%),
    var(--color-primary);
}
/* Large faint DSM mark as background texture */
.hero::after {
  content: ""; position: absolute; z-index: -1;
  right: -12%; bottom: -4%;
  width: min(90vw, 980px); aspect-ratio: 480 / 82;
  background: url("assets/logo-mark.png") no-repeat center / contain;
  opacity: 0.05; pointer-events: none;
}
.hero-inner { max-width: calc(var(--container) + var(--gutter) * 2); }
.hero h1 { max-width: 15ch; margin-bottom: 1.5rem; }
.hero h1 .soft { display: block; }
.hero-sub { max-width: 58ch; font-size: clamp(1.0625rem, 0.6vw + 0.95rem, 1.25rem); color: var(--color-gray-300); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem;
  margin: 3rem 0 0; padding: 1.75rem 0 0; list-style: none;
  border-top: 1px solid var(--color-gray-700);
  font-size: 0.9375rem; font-weight: 600; color: var(--color-gray-300);
}
.hero-points li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-points .i { width: 18px; height: 18px; stroke-width: 2.25; color: var(--color-accent); }

@media (max-width: 479px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-points { flex-direction: column; }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Services: flex so an incomplete last row is centered (works for any number of cards) */
@media (min-width: 600px) {
  .card-grid--services { display: flex; flex-wrap: wrap; justify-content: center; }
  .card-grid--services > li { flex: 0 0 calc((100% - 1.25rem) / 2); }
}
@media (min-width: 1024px) {
  .card-grid--services > li { flex-basis: calc((100% - 2 * 1.25rem) / 3); }
}

.card {
  background: var(--t-card);
  border: 1px solid var(--t-border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.975rem; line-height: 1.6; }
.card:hover { border-color: var(--t-border-strong); box-shadow: var(--shadow-card); }

.icon-tile {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 1.25rem;
  border-radius: 14px;
  background: var(--t-icon-bg); color: var(--t-text);
}
.theme-muted .card .icon-tile { background: var(--color-primary); color: var(--color-white); }

/* ---------- Our Garage ---------- */
.garage-intro { display: grid; gap: 2.5rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.garage-intro .section-head { margin-bottom: 0; }
@media (min-width: 900px) { .garage-intro { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }

/* ---------- Images ---------- */
.media-img { width: 100%; height: auto; border-radius: var(--radius-lg); object-fit: cover; }
.garage-hero-img { aspect-ratio: 4 / 3; background: var(--color-gray-100); box-shadow: var(--shadow-card); }

/* ---------- Garage gallery ---------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: clamp(2.5rem, 5vw, 4rem); }
.gallery-item {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--color-gray-100);
}
.gallery-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  background: rgb(10 10 11 / 0.75); color: var(--color-white);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.01em;
}
@media (min-width: 600px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .gallery-item--tall img { aspect-ratio: 4 / 5; }
  .gallery-item--wide { grid-column: 1 / -1; }
  .gallery-item--wide img { aspect-ratio: 16 / 9; }
}
@media (min-width: 1024px) {
  /* 3fr / 4:5 and 5fr / 4:3 give all three photos the same height */
  .gallery { grid-template-columns: 3fr 3fr 5fr; }
  .gallery-item--wide { grid-column: auto; }
  .gallery-item--wide img { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: no-preference) {
  .gallery-item:hover img { transform: scale(1.03); }
}

/* ---------- Forthing ---------- */
.forthing {
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 100% 50%, rgb(196 201 207 / 0.12), transparent 70%),
    var(--color-primary);
}
.forthing-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .forthing-grid { grid-template-columns: 0.9fr 1.2fr; gap: 3.5rem; } }

/* Car cutout with a soft studio light behind it */
.forthing-media { position: relative; margin: 0; isolation: isolate; }
.forthing-media::before {
  content: ""; position: absolute; z-index: -1;
  left: 2%; right: 18%; top: 0; bottom: 8%;
  background: radial-gradient(closest-side, rgb(196 201 207 / 0.28), rgb(196 201 207 / 0.08) 60%, transparent);
  filter: blur(10px);
}
.forthing-media::after { /* floor line under the wheels */
  content: ""; position: absolute; z-index: -1;
  left: 0; right: 10%; bottom: 7%; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(196 201 207 / 0.35), transparent);
}
.forthing-media img { width: 100%; height: auto; }
@media (min-width: 960px) {
  .forthing-media img { width: 118%; max-width: none; }
}
.forthing h2 { margin-bottom: 1.5rem; }
.forthing h2 .soft { display: block; }
.forthing-copy > p:not(.eyebrow):not(.lead) { color: var(--color-gray-300); }
.forthing-copy .lead { margin-bottom: 1rem; }
.feature-list { display: grid; gap: 0.9rem; margin: 2rem 0 2.5rem !important; }
.feature-list li { display: flex; align-items: center; gap: 0.85rem; font-weight: 600; }
.feature-list .i {
  width: 40px; height: 40px; padding: 9px;
  border: 1px solid var(--color-gray-700); border-radius: 12px; color: var(--color-accent);
}
@media (max-width: 479px) { .forthing .btn-lg { width: 100%; } }

/* ---------- Booking ---------- */
.booking-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1000px) { .booking-grid { grid-template-columns: 0.85fr 1.15fr; gap: 4.5rem; } }
.booking-info h2 { margin-bottom: 1.25rem; }

.steps { display: grid; gap: 1.5rem; margin: 2.5rem 0 !important; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.steps p { color: var(--t-muted); font-size: 0.975rem; margin-top: 0.15rem; }
.step-num {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--color-primary); color: var(--color-white);
  font-weight: 800; font-size: 0.9375rem;
}

.hours-box { padding: 1.5rem; border: 1px solid var(--t-border); border-radius: var(--radius); background: var(--color-gray-50); }
.hours-box h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.hours-list { margin: 0; display: grid; gap: 0.4rem; }
.hours-list div { display: flex; justify-content: space-between; gap: 1rem; }
.hours-list dt { color: var(--t-muted); }
.hours-list dd { margin: 0; font-weight: 600; text-align: right; }

.quick-contact { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.quick-contact .btn { flex: 1 1 200px; }

.booking-card {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.form-legend { font-size: 0.875rem; color: var(--t-muted); margin-bottom: 1.5rem; }
.req { color: var(--color-error); font-weight: 700; }
.optional { font-weight: 500; font-size: 0.8125rem; color: var(--t-muted); }

.form-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .field--full { grid-column: 1 / -1; }
}

.field label { display: block; margin-bottom: 0.45rem; font-size: 0.9375rem; font-weight: 700; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 52px;
  padding: 0.75rem 1rem;
  font-size: 1rem; /* 16px avoids iOS zoom */
  background-color: var(--color-white); color: var(--color-primary);
  border: 1.5px solid var(--color-gray-300); border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #80868E; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--color-gray-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(10 10 11 / 0.18);
}
.field select {
  padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px;
}
.field select:disabled { background-color: var(--color-gray-50); color: var(--color-gray-600); cursor: not-allowed; }
.field input[type="date"] { text-align: left; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.7; }

.field [aria-invalid="true"] { border-color: var(--color-error); }
.field [aria-invalid="true"]:focus { border-color: var(--color-error); box-shadow: 0 0 0 3px rgb(180 35 24 / 0.2); }

.hint { margin-top: 0.4rem; font-size: 0.8125rem; color: var(--t-muted); }
.field-error {
  display: flex; gap: 0.4rem; align-items: flex-start;
  margin-top: 0.45rem; font-size: 0.875rem; font-weight: 600; line-height: 1.4;
  color: var(--color-error);
}
.field-error::before { content: "!"; display: grid; place-items: center; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--color-error); color: #fff; font-size: 0.75rem; font-weight: 800; }
.field-error:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note {
  display: flex; gap: 0.75rem; align-items: flex-start;
  margin-top: 1.75rem; padding: 1rem 1.1rem;
  background: var(--color-gray-50); border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-sm); font-size: 0.9375rem; line-height: 1.5;
}
.form-note .i { color: var(--color-accent-strong); margin-top: 1px; }

.form-status { margin-top: 1rem; font-weight: 600; font-size: 0.9375rem; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-error { padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); background: var(--color-error-bg); color: var(--color-error); border: 1px solid rgb(180 35 24 / 0.25); }
.form-status a { color: inherit; font-weight: 800; }

.btn-submit { width: 100%; margin-top: 1.25rem; }
@media (min-width: 640px) { .btn-submit { width: auto; min-width: 240px; } }

/* Success panel */
.booking-success {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1.5px solid var(--color-success); border-radius: var(--radius);
  background: var(--color-success-bg);
}
.success-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.success-head h3 { font-size: 1.375rem; }
.success-head h3:focus { outline: none; }
.success-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-success); color: #fff; flex: none; }
.success-icon .i { stroke-width: 2.5; width: 22px; height: 22px; }
.summary-list { display: grid; gap: 0; margin: 1.25rem 0; background: var(--color-white); border-radius: var(--radius-sm); border: 1px solid var(--color-gray-200); }
.summary-list div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--color-gray-100); }
.summary-list div:last-child { border-bottom: 0; }
.summary-list dt { color: var(--color-gray-600); font-size: 0.9375rem; }
.summary-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.success-note { margin-bottom: 1.5rem !important; }
.success-note a { font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(3.5rem, 7vw, 5rem) 0; font-size: 0.975rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; } }

.footer-brand img { width: 190px; margin-bottom: 1.25rem; }
.footer-brand p { color: var(--color-gray-400); max-width: 34ch; }
.footer-title {
  margin-bottom: 1rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--color-accent);
}
.footer-list { display: grid; gap: 0.25rem; }
.footer-link {
  display: inline-flex; align-items: flex-start; gap: 0.7rem;
  min-height: 44px; padding-block: 0.6rem;
  color: var(--color-gray-200); text-decoration: none; line-height: 1.5;
  transition: color 0.2s;
}
.footer-link .i { width: 20px; height: 20px; margin-top: 2px; color: var(--color-gray-400); }
.footer-link:hover { color: var(--color-white); }
.footer-link:hover span { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .hours-list dt { color: var(--color-gray-400); }

.socials { display: flex; gap: 0.5rem; margin-top: 1.5rem !important; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--color-gray-700); border-radius: 12px;
  color: var(--color-gray-200); transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.socials a:hover { border-color: var(--color-white); color: var(--color-white); background: var(--color-gray-900); }
.socials .i { width: 20px; height: 20px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; align-items: center;
  margin-top: 3.5rem; padding-block: 1.25rem;
  border-top: 1px solid var(--color-gray-700);
  font-size: 0.875rem; color: var(--color-gray-400);
}
.footer-bottom .footer-link { min-height: 44px; align-items: center; padding-block: 0; }
/* Leave room so the floating WhatsApp button never covers the last line */
@media (max-width: 767px) { .footer-bottom { padding-bottom: 5.5rem; } }

/* ---------- Motion (only when the user hasn't asked for less) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js .reveal {
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .card:hover { transform: translateY(-3px); }
  .btn:active { transform: translateY(1px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed; z-index: 40;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 60px; height: 60px; border-radius: 999px;
  background: var(--color-whatsapp); color: var(--color-white);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  box-shadow: 0 6px 20px rgb(10 10 11 / 0.28);
  transition: background-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.whatsapp-float svg { width: 30px; height: 30px; flex: none; }
.whatsapp-float:hover { background: var(--color-whatsapp-hover); box-shadow: 0 10px 28px rgb(10 10 11 / 0.32); }
.whatsapp-float:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; box-shadow: 0 0 0 3px var(--color-white), 0 6px 20px rgb(10 10 11 / 0.28); }
.whatsapp-float-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Show the text label on larger screens */
@media (min-width: 768px) {
  .whatsapp-float { width: auto; height: 56px; padding: 0 1.4rem 0 1.1rem; right: 1.5rem; bottom: 1.5rem; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .whatsapp-float-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .whatsapp-float:hover { transform: translateY(-2px); }
}
