/* ZS Clean · car brand template + brands index (Dec 3, 2026) · design only, not live.
   ONE hosted file for every Car brands item. Load it AFTER city-template.css (the service-area file Astra already hosts):
   it reuses that file's buttons, pills, cards, price table, "Not a car wash", questions and the /areas grid, and adds only
   what is new on a brand page. Scoped to .brand inside <main class="zs-main city city--tpl brand">.
   New here: the showroom hero (a Kelp card with the brand name set huge behind the words, and one pill per model),
   the photo slot, the owner-care cards with a Garibaldi number pill, the service-link pills and the trademark line.
   Rules kept: no underlines or lines, pills over squares, Garibaldi only as an accent (Book button with Kelp words, number
   pills with Kelp numerals, the period, the dot in each model pill), one Book per view, soft motion, off with reduced motion. */

/* ---------- fallback fonts with the real fonts' widths, so nothing moves when DM Sans and Exo 2 arrive (measured Dec 3, 2026) ---------- */
@font-face{ font-family:"DM Sans Fallback"; src:local("Arial"), local("ArialMT"); font-weight:100 599; size-adjust:104.5%; }
@font-face{ font-family:"DM Sans Fallback"; src:local("Arial Bold"), local("Arial-BoldMT"); font-weight:600 900; size-adjust:101.6%; }
@font-face{ font-family:"Exo 2 Fallback"; src:local("Arial Bold Italic"), local("Arial-BoldItalicMT"); font-style:italic; font-weight:100 900; size-adjust:96.7%; }
.brand{ --font-head:'Exo 2', 'Exo 2 Fallback', system-ui, sans-serif; --font-body:'DM Sans', 'DM Sans Fallback', system-ui, sans-serif; }

/* ---------- the showroom hero ---------- */
.brand-hero{ padding-top:12px; }
.brand-hero__card{ position:relative; isolation:isolate; overflow:hidden; container-type:inline-size; display:grid; gap:30px;
  padding:30px 22px 26px; border-radius:var(--r-lg); color:#fff;
  background:radial-gradient(90% 70% at 88% 6%, rgba(255,255,255,.10), rgba(255,255,255,0) 62%), var(--kelp); }
.brand-h1{ font:italic 600 clamp(40px, 11vw, 84px)/.95 var(--font-head); letter-spacing:-.045em; text-wrap:balance; overflow-wrap:break-word; color:#fff; }
.brand-top{ margin-top:16px; max-width:30ch; text-wrap:balance; font:500 20px/1.35 var(--font-body); letter-spacing:-.015em; color:rgba(255,255,255,.92); }
.brand-intro{ margin-top:12px; max-width:52ch; font:400 17px/1.55 var(--font-body); color:rgba(255,255,255,.76); }
.brand-hero .city-ctas{ margin-top:26px; }
.brand-hero .city-btn--text{ background:rgba(255,255,255,.12); color:#fff; }
.brand-hero .city-btn--text:hover{ background:rgba(255,255,255,.2); }
.brand-hero .city-btn--text i{ background:var(--gar); color:var(--kelp); }
.brand-hero .city-btn--book:focus-visible, .brand-hero .city-btn--text:focus-visible{ outline-color:#fff; }

/* the brand's name, set huge and quiet behind everything. Real text, decorative, placed and scaled by brand-template.js (a transform only, so
   nothing around it can move) so the whole word sits inside the card; without script it stays hidden. No logo, no wordmark, only the site's type. */
.brand-ghost{ position:absolute; z-index:-1; left:0; top:0; max-width:none; white-space:nowrap; pointer-events:none; user-select:none;
  font-family:var(--font-head); font-style:italic; font-weight:700; font-size:100px; line-height:.8; letter-spacing:-.05em; color:rgba(255,255,255,.065);
  transform-origin:0 0; opacity:0; }
.brand-ghost.is-fit{ opacity:1; transition:opacity .9s var(--ease); }
@media (prefers-reduced-motion:reduce){ .brand-ghost.is-fit{ transition:none; } }

/* the stage: the photo (only when there is one) and one pill per model */
.brand-stage{ position:relative; display:flex; flex-direction:column; gap:14px; min-width:0; }
.brand-photo{ position:relative; margin:0; aspect-ratio:4/3; max-width:100%; overflow:hidden; border-radius:20px; background:#1d3a41; }
.brand-photo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.brand-photo:not(:has(img)), .brand-photo:has(img:not([src])), .brand-photo:has(img[src=""]){ display:none; }   /* safety net: no photo set = no slot, even if Webflow's visibility condition cannot be attached to the figure */
.brand-photo__credit{ position:absolute; left:10px; bottom:10px; z-index:2; max-width:calc(100% - 20px); padding:6px 12px; border-radius:999px;
  background:rgba(18,38,43,.66); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); color:#fff; text-decoration:none;
  font:500 12px/1.3 var(--font-body); letter-spacing:0; transition:background-color .25s var(--ease); }
.brand-photo__credit:hover{ background:rgba(18,38,43,.85); }
.brand-photo__credit:focus-visible{ outline:3px solid #fff; outline-offset:2px; }
.brand-models{ display:grid; grid-template-columns:repeat(auto-fill, minmax(132px, 1fr)); gap:8px; margin:0; padding:0; list-style:none; font:400 17px/1.5 var(--font-body); color:rgba(255,255,255,.86); }
p.brand-models{ display:block; }   /* before the script: the models as the sentence they are */
.brand-models li{ display:flex; align-items:center; gap:10px; min-width:0; min-height:46px; padding:0 20px 0 16px; border-radius:999px;
  background:rgba(255,255,255,.12); color:#fff; font:650 16px/1.15 var(--font-body); letter-spacing:-.01em; overflow-wrap:break-word; }
.brand-models li::before{ content:""; flex:none; width:8px; height:8px; border-radius:50%; background:var(--gar); }
.brand-models:empty{ display:none; }
@media (min-width:992px){
  .brand-hero__card{ grid-template-columns:minmax(0, 1fr) minmax(0, 500px); gap:64px; align-items:center; padding:72px 64px 68px; }
  .brand-h1{ font-size:clamp(56px, 6.2vw, 92px); }
  .brand-top{ font-size:24px; margin-top:20px; }
  .brand-intro{ font-size:19px; margin-top:16px; }
  .brand-stage{ gap:18px; }
  .brand-photo{ border-radius:24px; }
  .brand-models{ gap:10px; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); }
  .brand-models li{ min-height:56px; padding:0 22px 0 20px; font-size:19px; }
}

/* ---------- owner care: three cards, each with a Garibaldi number pill ---------- */
.brand-care .city-facts{ gap:12px; }
.brand-care .city-fact{ padding:22px 22px 26px; }
.brand-care .city-fact__no{ display:grid; place-items:center; width:46px; height:46px; margin:0 0 8px; border-radius:50%; background:var(--gar); color:var(--kelp);
  font:700 17px/1 var(--font-body); letter-spacing:0; }
@media (min-width:992px){
  .brand-care .city-facts{ grid-template-columns:repeat(3, minmax(0, 1fr)); gap:20px; }
  .brand-care .city-fact{ padding:32px 32px 36px; }
  .brand-care .city-fact h3{ font-size:32px; }
}

/* ---------- the /brands page: one intro line under the heading ---------- */
.brand-index__lead{ margin-top:18px; max-width:52ch; font:400 18px/1.55 var(--font-body); color:var(--kelp70); }
@media (min-width:992px){ .brand-index__lead{ margin-top:24px; font-size:20px; } }
.brand-index__lead + .city-areas__all{ margin-top:30px; }
@media (min-width:992px){ .brand-index__lead + .city-areas__all{ margin-top:48px; } }

/* ---------- related pages: the brand's models, or the model's brand and siblings (the /areas pill grid) ---------- */
.brand-related .city-areas__all{ margin-top:28px; }
@media (min-width:992px){ .brand-related .city-areas__all{ margin-top:48px; } }

/* ---------- service links and the trademark line ---------- */
.brand-links{ display:flex; flex-wrap:wrap; gap:8px; margin-top:26px; }
.brand-links .city-pill{ background:var(--kelp); color:#fff; padding:0 6px 0 20px; }
.brand-links .city-pill i{ background:#fff; color:var(--kelp); }
.brand-links .city-pill:hover{ background:#1d3a41; }
.brand-legal{ margin-top:56px; max-width:58ch; font:500 14px/1.5 var(--font-body); color:var(--kelp70); }
@media (min-width:992px){ .brand-legal{ margin-top:72px; } .brand-links{ margin-top:30px; } }
.brand-faq-col{ min-width:0; }

/* ---------- motion: the hero's words and pills rise once; reduced motion shows everything ---------- */
.brand.is-live .brand-hero__card [data-rise]{ transition-duration:.8s, 1s; }
@media (prefers-reduced-motion:reduce){ .brand.is-live .brand-hero__card [data-rise]{ transition:none; } }
