/* =====================================================================
   PERPLEX LTD: GARAGE STYLESHEET
   ---------------------------------------------------------------------
   Layout concept: a dark lot surrounds the shop. You stand in the doorway
   looking in: steel trusses and fluorescent fixtures overhead, metal-panel
   side walls, a sealed concrete floor with two worn lane stripes and the
   address stenciled on it. The ceiling, walls and floor are drawn by
   assets/js/garage.js into <svg class="room">.

   Inside the shop, content sits on the back wall as simple dark cards
   (a traditional website layout) mounted in the room. Job photos play on a
   wall-mounted shop TV: photo on the left, its repair order on the right.
   Keep cards plain: no badges, prices, ratings or product-grid styling.

   The site is ONE page (index.html) with four views: #home, #services,
   #book, #about.

   Sections:
     1. Tokens              5. Cards, type, buttons, forms
     2. Base + void         6. Shop TV
     3. Shop shell, doors   7. View layouts
     4. Header: neon + nav  8. Motion + responsive
                            9. Booking (#book)
                           10. Language switch
   ===================================================================== */

/* ---------- 1. TOKENS ------------------------------------------------ */
:root {
  color-scheme: dark;

  /* color */
  --void: #050507;            /* night outside the shop */
  --paint: #e4dfd3;           /* off-white wall paint (text painted on the wall) */
  --paint-dim: #a8a397;
  --steel-dark: #1a1d21;
  --steel: #2c3036;
  --steel-light: #8b9199;
  --galv: #b6bbc1;            /* galvanized door slats */
  --neon: #a97dff;            /* the neon sign only */
  --card: #191c20;            /* card surface on the wall */
  --card-edge: #343940;
  --screen: #07090a;          /* TV screen */
  --screen-text: #d6dfda;     /* text on the TV */

  /* type */
  --f-head: "Barlow Condensed", "Arial Narrow", sans-serif-condensed, sans-serif;
  --f-body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --f-stamp: "Share Tech Mono", "Consolas", ui-monospace, monospace;

  /* type scale */
  --t-xs: .76rem;
  --t-sm: .88rem;
  --t-md: 1rem;
  --t-lg: 1.12rem;
  --t-xl: clamp(1.35rem, 1.05rem + .9vw, 1.8rem);
  --t-xxl: clamp(2rem, 1.25rem + 2.2vw, 3rem);

  /* shop geometry (garage.js reads the layout) */
  --gutter: clamp(16px, 5vw, 96px);    /* lot around the shop */
  --wall: clamp(14px, 5vw, 110px);      /* visible side-wall depth */
  --ceil: clamp(80px, 9vw, 150px);      /* visible ceiling depth */
  --floor: clamp(70px, 9vw, 150px);     /* visible floor depth */
  --wainscot: 34px;                     /* concrete stem wall along the bottom of the back wall */
  --gap: clamp(16px, 2vw, 34px);
}

/* ---------- 2. BASE + VOID ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--paint);
  font: 400 var(--t-md)/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 600; }
p { margin: 0; }

.void {
  min-height: 100vh;
  padding-inline: var(--gutter);
  padding-block: clamp(10px, 2vw, 34px) var(--gutter);
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  background: radial-gradient(60% 45% at 50% 55%, rgba(235,238,240,.035), transparent 70%), var(--void);
}

/* ---------- 3. SHOP SHELL + ROLL-UP DOORS ---------------------------- */
.shop {
  position: relative; isolation: isolate;
  width: 100%; max-width: 1500px;
  padding: var(--ceil) var(--wall) var(--floor);
  background: #16181b; /* fallback if the room drawing fails */
  box-shadow: 0 0 0 1px #1a1c20, 0 40px 120px -50px rgba(225,230,235,.12);
}
.room { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.backwall { position: relative; display: flex; flex-direction: column; gap: var(--gap); padding-top: clamp(14px, 1.6vw, 24px); }

/* Galvanized roll-up door curtain: ribbed slats with highlight and shadow. Shared by every door. */
.rolldoor, [data-nav="doors"] .door {
  background:
    linear-gradient(90deg, rgba(0,0,0,.28), transparent 6%, transparent 94%, rgba(0,0,0,.28)),
    repeating-linear-gradient(180deg,
      #d3d7dc 0, #c2c7cd var(--slat-hi, 2px), #a7adb4 calc(var(--slat, 14px) * .55),
      #8c9299 calc(var(--slat, 14px) - 2px), #5f656c calc(var(--slat, 14px) - 1px), #d9dde1 var(--slat, 14px));
}

/* address stenciled on the floor */
.floor-stencil {
  position: absolute; left: var(--wall); right: var(--wall); bottom: 0; height: var(--floor);
  display: grid; place-items: center; perspective: 300px; pointer-events: none; overflow: hidden;
}
.floor-stencil span {
  transform: rotateX(54deg) translateY(12%);
  font: 700 clamp(1rem, 3vw, 2.8rem)/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  color: rgba(226,222,212,.22);
}

/* the shop's roll-up door opening when the page loads or the view changes */
.rolldoor {
  --slat: 26px;
  position: absolute; z-index: 5;
  left: var(--wall); right: var(--wall); top: var(--ceil); bottom: var(--floor);
  border-bottom: 10px solid #3a3f45;
  box-shadow: inset 0 -3px 0 #1c1f23, 0 6px 0 #0b0c0e;
  transform-origin: top;
  animation: rollup 1s cubic-bezier(.65,0,.25,1) .2s both;
  pointer-events: none;
}
.rolldoor.is-replay { animation: rollup .8s cubic-bezier(.65,0,.25,1) .05s both; }
@keyframes rollup { from { transform: scaleY(1); } to { transform: scaleY(0); } }

/* ---------- 4. HEADER: NEON SIGN + NAV ------------------------------- */
.shop-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }

/* The neon sign. Kept as approved by the owner. */
.neon { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
/* The owner's script logo (assets/img/logo.svg) used as a mask, so CSS sets its color.
   The glow sits on the outer span: a mask would clip a filter on the same element. */
.neon-word {
  display: block;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 6px var(--neon)) drop-shadow(0 0 18px var(--neon)) drop-shadow(0 0 36px rgba(169,125,255,.55));
  animation: flicker 2.6s linear .9s 1 both;
}
.neon-logo {
  display: block;
  width: clamp(9.5rem, 6rem + 12vw, 17rem); aspect-ratio: 2130 / 518;
  background: #f6f0ff;
  -webkit-mask: url("../img/logo.svg") center / contain no-repeat;
  mask: url("../img/logo.svg") center / contain no-repeat;
}
.neon-sub {
  margin-top: 6px;
  font: 600 var(--t-xs)/1 var(--f-head); letter-spacing: .42em; text-transform: uppercase;
  color: var(--paint-dim);
}
@keyframes flicker { 0%, 8%, 12%, 40%, 44%, 100% { opacity: 1; } 10%, 42% { opacity: .35; } }

.shop-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.shop-nav a { text-decoration: none; }

/* 4a. Navigation: GARAGE DOORS (chosen by the owner). Label painted above each opening, a real roll-up door inside. */
[data-nav="doors"] .shop-nav ul { gap: 14px; }
[data-nav="doors"] .shop-nav a { display: flex; flex-direction: column; align-items: center; gap: 14px; }   /* more than the door header drawn 9px above the opening (box-shadow), so labels never get clipped */
[data-nav="doors"] .nav-label {
  font: 600 clamp(.72rem, .6rem + .3vw, .86rem)/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase;
  color: var(--paint-dim); transition: color .3s;
  position: relative; z-index: 1; padding-bottom: 1px;
}
[data-nav="doors"] .opening {
  position: relative; display: block; overflow: hidden;
  width: clamp(4.4rem, 8vw, 7rem); height: clamp(3.2rem, 4.4vw, 4rem);
  /* inside the bay: lit work area */
  background: radial-gradient(80% 70% at 50% 0%, rgba(240,242,236,.35), transparent 70%), linear-gradient(180deg, #2a2d31, #121417);
  /* steel jambs + header */
  box-shadow: 0 0 0 3px #2c3036, 0 0 0 4px #4a5058, 0 -6px 0 3px #22262b, 0 10px 18px -8px rgba(0,0,0,.8);
}
[data-nav="doors"] .door {
  --slat: 7px; --slat-hi: 1px;
  position: absolute; inset: 0;
  border-bottom: 4px solid #4b5158;
  box-shadow: inset 0 -1px 0 #1b1d20;
  transition: transform .55s cubic-bezier(.6,0,.2,1);
}
[data-nav="doors"] .door::after { /* lift handle */
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 14px; height: 3px; translate: -50% 0; background: #3b4046; border-radius: 1px;
}
[data-nav="doors"] .shop-nav a:hover .door, [data-nav="doors"] .shop-nav a:focus-visible .door { transform: translateY(-28%); }
[data-nav="doors"] .shop-nav a[aria-current="page"] .door, [data-nav="doors"] .shop-nav a.is-opening .door { transform: translateY(-86%); }
[data-nav="doors"] .shop-nav a[aria-current="page"] .nav-label, [data-nav="doors"] .shop-nav a:hover .nav-label { color: var(--paint); }


/* ---------- 5. CARDS, TYPE, BUTTONS, FORMS --------------------------- */
.view { display: flex; flex-direction: column; }
.view[hidden] { display: none; }
.wall { display: grid; gap: var(--gap); padding-bottom: calc(var(--wainscot) + 14px); }

/* A card is a plain dark panel mounted on the back wall. Keep it plain. */
.card {
  position: relative; min-width: 0;
  display: flex; flex-direction: column; gap: 12px;
  padding: clamp(18px, 2vw, 28px);
  background: linear-gradient(180deg, #1d2024, var(--card));
  border: 1px solid var(--card-edge); border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 22px 40px -22px rgba(0,0,0,.9);
}
.card h1 { font: 600 clamp(2rem, 1.2rem + 2vw, 2.9rem)/1 var(--f-head); letter-spacing: .01em; text-transform: uppercase; color: var(--paint); }
.card h2 { font: 600 var(--t-xl)/1.05 var(--f-head); letter-spacing: .04em; text-transform: uppercase; color: var(--paint); }
.card h3 { font: 600 var(--t-lg)/1.1 var(--f-head); letter-spacing: .05em; text-transform: uppercase; color: var(--paint); }
.card p { color: #c4c0b5; max-width: 60ch; }
.eyebrow { font: 400 var(--t-xs)/1.3 var(--f-stamp); letter-spacing: .14em; text-transform: uppercase; color: var(--paint-dim); }
.lede { font-size: var(--t-lg); }
.card p.fine, .fine { font-size: var(--t-sm); color: var(--paint-dim); }
.hero { justify-content: center; gap: 16px; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--t-sm); color: #c4c0b5; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { /* small check mark */
  content: ""; position: absolute; left: 2px; top: .38em; width: 9px; height: 5px;
  border-left: 2px solid var(--paint-dim); border-bottom: 2px solid var(--paint-dim); transform: rotate(-45deg);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px;
  font: 600 var(--t-md)/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  border: 0; border-radius: 4px; cursor: pointer;
  transition: background-color .2s, box-shadow .2s, color .2s;
}
.btn--paint { background: var(--paint); color: #17191c; }
.btn--paint:hover { background: #f3efe6; }
.btn--line { background: transparent; color: var(--paint); box-shadow: inset 0 0 0 1.5px rgba(228,223,211,.45); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--paint); }

.phone { font: 600 clamp(1.4rem, 1.1rem + .8vw, 1.8rem)/1 var(--f-head); letter-spacing: .03em; text-decoration: none; color: var(--paint); }
.phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-btn { font: 400 var(--t-xs)/1 var(--f-stamp); letter-spacing: .08em; text-transform: uppercase; color: var(--paint-dim); background: none; border: 1px solid var(--card-edge); border-radius: 3px; padding: 5px 7px; cursor: pointer; }
.copy-btn:hover { color: var(--paint); border-color: var(--paint-dim); }

.facts { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 18px; align-items: baseline; }
.facts dt { font: 400 var(--t-xs)/1.3 var(--f-stamp); letter-spacing: .12em; text-transform: uppercase; color: var(--paint-dim); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: #d6d2c7; }
.hours-tbd { color: var(--paint-dim); }

/* form */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-top: 4px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.field label, .field legend { font: 400 var(--t-xs)/1.2 var(--f-stamp); letter-spacing: .1em; text-transform: uppercase; color: var(--paint-dim); padding: 0; }
.field input, .field select, .field textarea {
  font: 400 var(--t-md)/1.3 var(--f-body); color: var(--paint);
  background: #0f1113; border: 1px solid #3a3f46; border-radius: 4px; padding: 10px 12px; width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: #6f7378; }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--paint-dim); outline-offset: 1px; border-color: var(--paint-dim); }
.checks { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; border: 0; padding: 0; }
.checks legend { width: 100%; margin-bottom: 6px; }
.checks label { font: 400 var(--t-sm)/1.2 var(--f-body); letter-spacing: 0; text-transform: none; color: #d6d2c7; display: inline-flex; gap: 8px; align-items: center; }
.checks input { width: auto; accent-color: var(--paint); }
.form-done { padding: 12px 14px; border: 1px solid var(--card-edge); border-left: 3px solid var(--paint-dim); border-radius: 4px; font-size: var(--t-sm); color: #d6d2c7; }

/* ---------- 6. SHOP TV -----------------------------------------------
   A wall-mounted TV in the shop. Bezel + screen; the screen shows a job
   photo on the left and its repair order on the right. */
.tv {
  position: relative; display: flex; flex-direction: column;
  padding: 12px 12px 0;
  background: linear-gradient(180deg, #26292d, #121315);
  border: 1px solid #3c4047; border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 50px -26px #000;
}
.tv-screen {
  position: relative; overflow: hidden; border-radius: 4px;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  background: var(--screen);
  box-shadow: inset 0 0 0 2px #000;
}
.tv-screen::after { /* glass reflection */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.07), transparent 38%), radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(0,0,0,.45));
}
.tv-photo { position: relative; aspect-ratio: 4 / 3; background: #000; }
.tv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.tv-img.is-on { opacity: 1; }
.tv-order {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: clamp(14px, 1.6vw, 22px);
  font: 400 var(--t-sm)/1.4 var(--f-stamp); color: var(--screen-text);
  border-left: 1px solid #1c2024;
}
.tv-order-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: #8d9a93; padding-bottom: 8px; border-bottom: 1px solid #23292d; }
.tv-order dl { margin: 0; display: grid; gap: 10px; }
.tv-order dt { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #7c8781; }
.tv-order dd { margin: 0; overflow-wrap: anywhere; transition: opacity .4s; }
.tv-order dd.tv-veh { font-size: var(--t-md); color: #eef3ef; }
.tv-status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7fbf8e; margin-right: 8px; vertical-align: 1px; }
.tv.is-changing .tv-order dd { opacity: 0; }
.tv-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: var(--t-xs); color: #7c8781; }
.tv-bar { flex: 1; height: 2px; background: #1f2529; border-radius: 2px; overflow: hidden; }
.tv-bar span { display: block; height: 100%; width: 0; background: #8d9a93; }
.tv-bezel { display: flex; align-items: center; justify-content: center; position: relative; height: 26px; }
.tv-brand { font: 600 .62rem/1 var(--f-head); letter-spacing: .4em; text-transform: uppercase; color: #6f747b; }
.tv-led { position: absolute; right: 16px; width: 5px; height: 5px; border-radius: 50%; background: #9fd3a9; box-shadow: 0 0 6px rgba(159,211,169,.6); }

/* ---------- 7. VIEW LAYOUTS ------------------------------------------ */
/* Home: intro card + TV, then three cards */
.wall--home { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: "hero tv" "row row"; align-items: stretch; }
.wall--home .hero { grid-area: hero; }
.wall--home .tv-slot { grid-area: tv; }
.card-row { grid-area: row; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }

/* Services: intro card + TV, then category cards that switch what the TV shows */
.wall--services { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: "intro tv" "cats cats"; align-items: stretch; }
.svc-intro { grid-area: intro; }
.wall--services .tv-slot { grid-area: tv; }
.svc-detail { display: flex; flex-direction: column; gap: 10px; }
.svc-detail ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; font-size: var(--t-sm); color: #c4c0b5; }
.svc-detail li { position: relative; padding-left: 14px; min-width: 0; }
.svc-detail li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1.5px; background: var(--paint-dim); }
.cat-row { grid-area: cats; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cat-card {
  display: flex; flex-direction: column; gap: 6px; text-align: left; min-width: 0;
  padding: 14px 14px 12px; cursor: pointer;
  font: inherit; color: var(--paint-dim);
  background: var(--card); border: 1px solid var(--card-edge); border-radius: 6px;
  box-shadow: 0 16px 30px -20px rgba(0,0,0,.9);
  transition: border-color .2s, color .2s;
}
.cat-card strong { font: 600 var(--t-md)/1.1 var(--f-head); letter-spacing: .06em; text-transform: uppercase; color: #d6d2c7; }
.cat-card span { font-size: var(--t-xs); line-height: 1.4; }
.cat-card:hover { border-color: #565c64; }
.cat-card[aria-pressed="true"] { border-color: var(--paint-dim); box-shadow: inset 0 2px 0 var(--paint), 0 16px 30px -20px rgba(0,0,0,.9); }
.cat-card[aria-pressed="true"] strong { color: var(--paint); }

/* About */
.wall--about { grid-template-columns: minmax(0, 1fr); }
.story { max-width: 820px; }
.history-wrap { overflow-x: auto; padding: 2px 2px 14px; scrollbar-color: #3a3f45 transparent; }
.history { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(190px, 17vw, 240px); gap: 16px; }
.history-card { display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 14px; background: var(--card); border: 1px solid var(--card-edge); border-radius: 6px; }
.history-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 3px; }
.history-card time { font: 400 var(--t-xs)/1 var(--f-stamp); letter-spacing: .1em; text-transform: uppercase; color: var(--paint-dim); }
.history-card h3 { font: 600 var(--t-md)/1.15 var(--f-head); letter-spacing: .04em; text-transform: uppercase; color: var(--paint); }
.history-card p { font-size: var(--t-xs); line-height: 1.45; color: #b9b5aa; }

/* footer under the shop */
.void-foot { width: 100%; max-width: 1500px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; font: 500 var(--t-xs)/1.4 var(--f-body); letter-spacing: .05em; color: #6a6f76; }
.void-foot a { color: #9a9fa6; }

/* ---------- 8. MOTION + RESPONSIVE ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001s !important; }
  .rolldoor { display: none; }
}
@media (max-width: 1150px) {
  .wall--home, .wall--services { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "tv" "row"; }
  .wall--services { grid-template-areas: "intro" "tv" "cats"; }
  .cat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .card-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .shop-head { justify-content: center; }
  .neon { align-items: center; text-align: center; }
  [data-nav="doors"] .shop-nav { width: 100%; }
  [data-nav="doors"] .shop-nav ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  [data-nav="doors"] .opening { width: 100%; }
  .tv { padding: 8px 8px 0; border-radius: 10px; }
  .tv-screen { grid-template-columns: minmax(0, 1fr); }
  .tv-order { border-left: 0; border-top: 1px solid #1c2024; }
  .cat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-detail ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .facts dd { margin-bottom: 8px; }
}

/* ---------- 9. BOOKING (#book) ---------------------------------------
   The real booking form, run by assets/js/book.js: a calendar of open
   drop-off days next to the intake form. */
.wall--booking { grid-template-columns: minmax(0, 1fr); }
.booking-intro { gap: 18px; }
.booking-intro-head > div:first-child { display: flex; flex-direction: column; gap: 10px; max-width: 62ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-top: 2px solid var(--card-edge); min-width: 0; }
.steps li strong { font: 600 var(--t-md)/1.1 var(--f-head); letter-spacing: .06em; text-transform: uppercase; color: var(--paint); }
.steps li strong::before { content: counter(step) ". "; color: var(--paint-dim); }
.steps li span { font-size: var(--t-sm); color: #b9b5aa; }
.booking-intro a { color: var(--paint); }

.booking-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.booking-panel[hidden], .booked-card[hidden] { display: none; }

/* calendar */
.cal { display: flex; flex-direction: column; gap: 4px; min-height: 120px; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head span { font: 400 .66rem/1 var(--f-stamp); letter-spacing: .1em; text-transform: uppercase; color: var(--paint-dim); text-align: center; padding: 4px 0; }
.cal-day {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 48px; padding: 6px;
  font: inherit; text-align: left; border-radius: 4px; border: 1px solid transparent; background: #121417; color: #5f646a; cursor: default;
}
.cal-day.is-pad { background: transparent; }
.cal-day b { font: 600 var(--t-sm)/1 var(--f-head); }
.cal-day small { font-size: .62rem; line-height: 1.1; }
.cal-day.is-open { background: #1f2a24; border-color: #355440; color: #cfe3d4; cursor: pointer; }
.cal-day.is-open:hover { border-color: #8fc29f; }
.cal-day.is-full { background: #241d1d; color: #8d7372; }
.cal-day.is-closed { background: transparent; border-color: #1f2226; }
.cal-day.is-picked { background: var(--paint); border-color: var(--paint); color: #17191c; }
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: var(--t-xs); color: var(--paint-dim); }
.card p.cal-legend { color: var(--paint-dim); }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: -6px; }
.lg--open { background: #355440; } .lg--full { background: #4a3332; } .lg--closed { border: 1px solid #3a3f45; }
.picked { font-size: var(--t-sm); }
.card p.picked { color: #d6d2c7; }
.sms-optin label { align-items: flex-start; line-height: 1.45; }
.sms-optin input { margin-top: 3px; }
.form-error { font-size: var(--t-sm); color: #f0b4ae; }
.card p.form-error { color: #f0b4ae; }
.form-error[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 1150px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .booking-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .cal-day { min-height: 40px; padding: 4px; }
  .cal-day small { display: none; }
}

/* flat-rate price card on the Services view */
.rates-card { grid-column: 1 / -1; }
.rates-card[hidden] { display: none; }
.rates { width: 100%; border-collapse: collapse; font-size: var(--t-sm); color: #d6d2c7; }
.rates td { padding: 6px 0; border-bottom: 1px solid var(--card-edge); }
.rates td + td { text-align: right; white-space: nowrap; padding-left: 16px; }

/* ---------- 10. LANGUAGE SWITCH --------------------------------------
   A small stamped-steel tag beside the garage doors: EN | ES. */
.head-right { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.lang-switch { display: inline-flex; padding: 2px; gap: 2px; background: #121417; border: 1px solid #3a3f45; border-radius: 3px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.lang-switch button { font: 400 var(--t-xs)/1 var(--f-stamp); letter-spacing: .12em; color: var(--paint-dim); background: none; border: 0; border-radius: 2px; padding: 7px 8px; min-width: 34px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--paint); color: #17191c; }
@media (max-width: 720px) {
  .head-right { width: 100%; justify-content: center; }
  .head-right .shop-nav { flex: 1 1 100%; }
}
