/* WPI auto-service template — theme layer (design-refresh: "Trust & Authority").
   A credibility-forward, conversion-oriented system for a local service shop.
   Per-merchant colors are injected as CSS variables from merchant.js (multi-tenant
   theming) and clamped in app.js for >=4.5:1 contrast — so every rule reads the
   --brand / --accent tokens, never a hardcoded brand hex. The redesign restyles
   STRUCTURE (layout, type scale, spacing, cards, elevation, trust cues) on a
   neutral structural palette + the merchant accent. */

/* Display face: ONE self-hosted variable woff2 (Archivo, wght 500-900), served
   same-origin so the strict 'self' CSP allows it. font-display:swap keeps first
   paint instant (body text uses the system stack — no body web font, fast CWV). */
@font-face{
  font-family:'Archivo';
  src:url('archivo.woff2') format('woff2');
  font-weight:500 900;
  font-style:normal;
  font-display:swap;
}

:root{
  /* ---- Brand (runtime-injected + WCAG-clamped by app.js; never hardcode) ---- */
  --brand:#0B5FFF;
  --brand-fg:#ffffff;
  --accent:#C2410C;          /* >=4.5:1 with white text */
  --accent-fg:#ffffff;
  --accent-on-dark:#FFA86B;  /* accent tint for text/eyebrow on the dark hero */

  /* ---- Neutrals (cool slate structural palette; all >=4.5:1 where used) ---- */
  --ink:#0c141f;             /* headings, prices — near-black slate */
  --body:#3c4654;            /* body text */
  --muted:#586271;           /* secondary; >=4.5:1 on white and --bg-alt */
  --line:#e4e8ee;            /* hairlines */
  --line-strong:#cdd4de;     /* heavier dividers / input borders */
  --bg:#ffffff;
  --bg-alt:#f5f7fa;          /* alt sections / inputs — MUST equal app.js LIGHTEST_SURFACE */
  --bg-sunken:#eef1f6;       /* deeper panel wells */

  /* ---- Foundation scales (the shared system the redesign adds) ---- */
  --display:'Archivo', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Type scale (1.25 major-third, fluid where it earns it) */
  --fs-eyebrow:.78rem;
  --fs-sm:.875rem;
  --fs-base:1rem;
  --fs-lg:1.125rem;
  --fs-h3:1.25rem;
  --fs-h2:clamp(1.7rem,3.2vw,2.4rem);
  --fs-h1:clamp(2.4rem,5.6vw,4rem);

  /* Spacing scale (4 / 8 px rhythm) */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:24px;
  --s-6:32px; --s-7:48px; --s-8:64px; --s-9:96px;

  /* Derived brand ramp (tenant color flows through via color-mix) */
  --brand-strong:color-mix(in srgb, var(--brand) 84%, #000);   /* hover fill */
  --brand-wash:color-mix(in srgb, var(--brand) 7%, #fff);       /* faint tint */
  --brand-chip:color-mix(in srgb, var(--brand) 13%, #fff);      /* icon chip */
  --brand-ring:color-mix(in srgb, var(--brand) 40%, transparent);
  /* Focus ring: solid (opaque) --brand. --brand is WCAG-clamped to >=4.5:1 on
     white by the runtime, so a solid ring clears the 3:1 non-text floor
     (WCAG 1.4.11) against the #fff input surface — a 40%-alpha ring did not. */
  --focus-ring:var(--brand);

  /* Dark hero palette, personalized by tenant --brand */
  --navy-900:#060a14;
  --navy-800:#0a1224;
  --navy-700:color-mix(in srgb, var(--brand) 24%, #0b1430);

  /* Elevation — layered, so cards lift off the page (not a lone hairline) */
  --sh-sm:0 1px 2px rgba(12,20,31,.05), 0 1px 4px rgba(12,20,31,.06);
  --sh-md:0 4px 10px rgba(12,20,31,.06), 0 14px 30px rgba(12,20,31,.09);
  --sh-lg:0 10px 22px rgba(12,20,31,.10), 0 32px 64px rgba(12,20,31,.16);
  --shadow:var(--sh-md);     /* back-compat alias for the original token */

  /* Radii */
  --radius:14px;
  --r-sm:10px;
  --r-pill:999px;

  --maxw:1200px;
  font-synthesis:none;
}

*{box-sizing:border-box}
/* The hidden attribute must always win: section/panel toggles rely on it. */
[hidden]{display:none!important}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;color:var(--body);background:var(--bg);
  font-family:var(--sans);font-size:var(--fs-base);
  line-height:1.62;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
h1,h2,h3{font-family:var(--display);color:var(--ink);line-height:1.08;margin:0 0 .4em;letter-spacing:-.02em}
p{margin:0 0 1em}
a{color:var(--brand);text-decoration:none}
.muted{color:var(--muted)}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}

/* Visible keyboard focus everywhere (the original relied on UA default).
   var(--brand) is WCAG-clamped to >=4.5:1 on white by app.js, so this ring
   clears the 3:1 non-text-contrast floor (WCAG 1.4.11) on light surfaces. */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,
textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{
  outline:3px solid var(--brand);
  outline-offset:2px;border-radius:8px;
}

/* ---------------- Buttons (confident, tactile pills) ---------------- */
.btn{
  position:relative;
  display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  font-family:var(--display);font-weight:700;font-size:.95rem;letter-spacing:.005em;
  border:1.5px solid transparent;border-radius:var(--r-pill);padding:.8em 1.5em;
  cursor:pointer;line-height:1;white-space:nowrap;
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.btn--lg{padding:1em 1.9em;font-size:1.05rem}
.btn--block{width:100%}
.btn--primary{background:var(--brand);color:var(--brand-fg);box-shadow:0 8px 20px color-mix(in srgb,var(--brand) 28%,transparent)}
.btn--primary:hover{background:var(--brand-strong);transform:translateY(-2px);box-shadow:0 14px 30px color-mix(in srgb,var(--brand) 36%,transparent)}
.btn--accent{background:var(--accent);color:var(--accent-fg);box-shadow:0 8px 20px color-mix(in srgb,var(--accent) 30%,transparent)}
.btn--accent:hover{background:color-mix(in srgb,var(--accent) 86%,#000);transform:translateY(-2px);box-shadow:0 14px 30px color-mix(in srgb,var(--accent) 38%,transparent)}
.btn--ghost{background:#fff;border-color:var(--line-strong);color:var(--ink)}
.btn--ghost:hover{border-color:color-mix(in srgb,var(--brand) 50%,var(--line-strong));background:var(--brand-wash);transform:translateY(-2px)}
.btn:active{transform:translateY(0) scale(.99)}
.btn--phone{font-variant-numeric:tabular-nums}

/* ---------------- Topbar ---------------- */
.topbar{position:sticky;top:0;z-index:40;background:color-mix(in srgb,#fff 88%,transparent);backdrop-filter:saturate(170%) blur(14px);border-bottom:1px solid var(--line)}
.topbar__inner{display:flex;align-items:center;gap:26px;height:74px}
.brand{display:flex;align-items:center;gap:12px;font-family:var(--display);font-weight:800;color:var(--ink)}
.brand__badge{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--brand);color:var(--brand-fg);font-size:.92rem;font-weight:800;letter-spacing:.01em;box-shadow:var(--sh-sm)}
.brand__logo{height:42px;max-height:42px;width:auto;max-width:190px;object-fit:contain;display:block}
.brand__name{font-size:1.14rem;letter-spacing:-.01em}
.nav{display:flex;gap:4px;margin-left:auto}
.nav a{position:relative;color:var(--body);font-weight:600;font-size:.94rem;padding:9px 14px;border-radius:var(--r-pill);transition:color .15s ease, background .15s ease}
.nav a:hover{color:var(--ink);background:var(--brand-wash)}
.topbar .btn--phone{margin-left:8px}

/* ---------------- Hero (dark, engineered texture, bold display) ---------------- */
.hero{
  position:relative;overflow:hidden;color:#eef2fb;
  padding:96px 0 104px;
  background:
    radial-gradient(880px 520px at 86% -12%, color-mix(in srgb,var(--accent) 32%,transparent), transparent 60%),
    radial-gradient(700px 480px at 10% 110%, color-mix(in srgb,var(--brand) 28%,transparent), transparent 62%),
    linear-gradient(158deg, var(--navy-900) 0%, var(--navy-800) 48%, var(--navy-700) 100%);
}
/* mesh grid overlay — subtle engineered texture */
.hero::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.45;
  background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
  background-size:48px 48px;mask-image:linear-gradient(180deg,#000,transparent 78%);
}
.hero::after{content:"";position:absolute;left:-160px;bottom:-140px;width:480px;height:480px;background:radial-gradient(circle,color-mix(in srgb,var(--brand) 38%,transparent),transparent 70%);pointer-events:none}
/* Merchant hero background image (optional): app.js sets --hero-image + adds
   this class. The photo sits at the BOTTOM of the stack under a brand-tinted
   navy scrim whose darkness the merchant controls — app.js sets --hero-ov-top/
   mid/bot (% navy) from brand.heroOverlay, clamped to a SAFE band so the white
   hero copy keeps >=4.5:1 contrast over ANY image even at the lightest setting.
   The var() fallbacks below match the default (82) and cover any JS-off path; a
   solid --navy-900 base shows if the image 404s or is slow. */
.hero--has-image{
  background:
    radial-gradient(900px 520px at 88% -10%, color-mix(in srgb,var(--accent) 26%,transparent), transparent 58%),
    linear-gradient(158deg, color-mix(in srgb,var(--navy-900) var(--hero-ov-top,90%),transparent) 0%, color-mix(in srgb,var(--navy-800) var(--hero-ov-mid,82%),transparent) 52%, color-mix(in srgb,var(--navy-900) var(--hero-ov-bot,87%),transparent) 100%),
    var(--hero-image) center / cover no-repeat,
    var(--navy-900);
}
/* Tone the engineered mesh down over a photo so it reads as texture, not noise. */
.hero--has-image::before{opacity:.22}
/* Over a photo the eyebrow goes near-white (not the accent tint): it stays
   AA-legible regardless of the merchant's accent or how light the scrim is. */
.hero--has-image .eyebrow{color:#f3f6fc}
.hero__inner{display:grid;grid-template-columns:1.4fr .92fr;gap:56px;align-items:center;position:relative;z-index:1}
.hero__inner:has(> .hero__copy:only-child){grid-template-columns:1fr}
.eyebrow{display:inline-flex;align-items:center;gap:10px;text-transform:uppercase;letter-spacing:.16em;font-size:var(--fs-eyebrow);font-weight:800;font-family:var(--display);color:var(--accent-on-dark);margin:0 0 18px}
.eyebrow::before{content:"";width:28px;height:3px;border-radius:2px;background:var(--accent-on-dark)}
.hero h1{color:#fff;font-size:var(--fs-h1);font-weight:800;line-height:.98;text-transform:uppercase;letter-spacing:-.025em;margin:0 0 .22em}
.lede{font-size:clamp(1.06rem,1.6vw,1.3rem);color:#c4cee0;margin:0 0 32px;max-width:40ch;line-height:1.55}
.hero__cta{display:flex;gap:14px;flex-wrap:wrap}
.hero__trust{margin-top:28px;display:flex;align-items:center;gap:14px;color:#d3dbe9;font-size:.96rem;font-weight:500;flex-wrap:wrap}
.stars{color:#ffc24b;letter-spacing:2px}

/* Hero quote card — floats with strong elevation + an accent edge */
.hero__card{background:#fff;color:var(--ink);border-radius:var(--radius);padding:28px;box-shadow:var(--sh-lg);position:relative;overflow:hidden}
.hero__card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(var(--accent),color-mix(in srgb,var(--accent) 60%,var(--brand)))}
.hero__card h2{margin:0 0 .15em;font-size:1.32rem;font-weight:800}
.qform{display:flex;flex-direction:column;gap:12px;margin-top:18px}
.qfield{display:flex;flex-direction:column;gap:6px}
.qfield label{font-size:.82rem;font-weight:700;color:var(--ink)}
/* "(required)" marker on a field label — a normal-weight annotation matching the
   inline "(optional)" convention (screen readers get required-ness from the
   input's `required` attribute, so the marker is aria-hidden). */
.req{font-weight:400;color:var(--ink)}
.qform input,.qform select{width:100%;box-sizing:border-box;padding:.82em .95em;border:1.5px solid var(--line-strong);border-radius:var(--r-sm);font-size:1rem;font-family:inherit;color:var(--ink);background:#fff;transition:border-color .15s ease, box-shadow .15s ease}
.qform input:focus,.qform select:focus{border-color:var(--brand);box-shadow:0 0 0 1px #fff,0 0 0 4px var(--focus-ring);outline:none}
.qform__note{font-size:.8rem;color:var(--muted);margin:.8em 0 0}
.qfield--hp{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Keyboard skip link — hidden off-screen until focused, then slides in (transform, not a layout property). */
.skip-link{position:fixed;top:0;left:0;z-index:1000;background:var(--ink);color:#fff;padding:10px 16px;border-bottom-right-radius:10px;font-weight:700;transform:translateY(-120%);transition:transform .15s ease}
.skip-link:focus{transform:translateY(0)}
@media(prefers-reduced-motion:reduce){.skip-link{transition:none}}

/* ---------------- Trust strip ---------------- */
.trustbar{background:var(--bg-alt);border-bottom:1px solid var(--line)}
.trustbar__inner{display:flex;flex-wrap:wrap;justify-content:center;gap:14px 40px;padding:20px 0}
.trustbar__item{display:inline-flex;align-items:center;gap:10px;font-family:var(--display);font-weight:700;font-size:.92rem;color:var(--ink)}
.trustbar__item svg{width:22px;height:22px;color:var(--brand);flex:none}

/* ---------------- Sections ---------------- */
.section{padding:88px 0}
.section--alt{background:var(--bg-alt)}
.section__title{font-size:var(--fs-h2);font-weight:800;text-transform:uppercase;letter-spacing:-.02em;position:relative;padding-top:20px}
/* accent marker rule above each section title */
.section__title::before{content:"";position:absolute;top:0;left:0;width:52px;height:4px;border-radius:3px;background:var(--accent)}
.section__sub{color:var(--muted);margin:.55em 0 40px;font-size:var(--fs-lg);max-width:62ch;line-height:1.55}

/* ---------------- Grids / cards ---------------- */
.grid{display:grid;gap:24px}
.grid--3{grid-template-columns:repeat(3,1fr)}
.grid--4{grid-template-columns:repeat(4,1fr)}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;box-shadow:var(--sh-sm);transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease}
.card:hover{transform:translateY(-4px);box-shadow:var(--sh-md);border-color:color-mix(in srgb,var(--brand) 24%,var(--line))}
.card__icon{width:54px;height:54px;border-radius:14px;display:grid;place-items:center;background:var(--brand-chip);color:var(--brand);margin-bottom:18px}
.card__icon svg{width:27px;height:27px}
.card h3{font-size:var(--fs-h3);font-weight:700;margin-bottom:.32em;text-transform:none;letter-spacing:-.01em}
.card p{margin:0;color:var(--body)}
.card--media{padding:0;overflow:hidden;display:flex;flex-direction:column}
.card__media{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:var(--bg-alt)}
.card--media .card__body{padding:22px 24px 24px;flex:1}

/* ---------------- Reviews ---------------- */
.reviews__head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:36px;flex-wrap:wrap}
.card.review{display:flex;flex-direction:column}
.review .review__stars{color:#b45309;letter-spacing:2px;margin-bottom:10px;font-size:1.05rem} /* >=4.5:1 on white */
.review p{font-size:1.02rem;color:var(--body)}
.review__name{font-weight:800;font-family:var(--display);color:var(--ink);margin-top:16px}
/* Live Google Reviews: attribution label + author row (avatar + name/link). */
.review-attrib{grid-column:1/-1;margin:0 0 4px;font-size:.9rem;font-weight:700}
.review__author{display:flex;align-items:center;gap:10px;margin-top:16px}
.review__author .review__name{margin-top:0}
a.review__name{text-decoration:none}
a.review__name:hover,a.review__name:focus-visible{text-decoration:underline}
.review__avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.empty-state{grid-column:1/-1;padding:20px 0}

/* ---------------- Gallery ---------------- */
.tile{aspect-ratio:4/3;border-radius:var(--radius);background:linear-gradient(135deg,var(--navy-700),color-mix(in srgb,var(--brand) 40%,#3a5680));position:relative;overflow:hidden;display:flex;align-items:flex-end;color:#fff;box-shadow:var(--sh-sm)}
.tile:nth-child(2n){background:linear-gradient(135deg,#222733,#454f5f)}
.tile:nth-child(3n){background:linear-gradient(135deg,#33271c,color-mix(in srgb,var(--accent) 55%,#7a5a35))}
.tile__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.tile:hover .tile__img{transform:scale(1.04)}
.tile span{position:relative;padding:26px 14px 13px;font-weight:600;font-size:.9rem;background:linear-gradient(transparent,rgba(0,0,0,.62) 38%);width:100%}

/* ---------------- Products catalog ---------------- */
/* Category/section heading: spans every grid column, on its own full-width row
   above that section's cards. Bold display + accent marker rule. */
.catalog__section{grid-column:1/-1;margin:20px 0 4px;font-family:var(--display);font-size:1.28rem;font-weight:800;text-transform:uppercase;letter-spacing:-.01em;color:var(--ink);border-bottom:2px solid var(--line);padding-bottom:12px}
.catalog__section:first-child{margin-top:0}
.card--product{position:relative;padding:0;overflow:hidden;display:flex;flex-direction:column}
.product__media{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:var(--bg-alt)}
.product__media--ph{display:grid;place-items:center;background:var(--brand-wash);color:var(--brand)}
.product__media--ph svg{width:46px;height:46px;opacity:.6}
.product__body{display:flex;flex-direction:column;gap:6px;padding:22px 24px 24px;flex:1}
.card--product .product__name{font-size:1.1rem;font-weight:700;font-family:var(--display);margin:0}
.product__desc{margin:0;font-size:.92rem;color:var(--body)}
.product__price{margin-top:auto;padding-top:12px;color:var(--ink);font-weight:800;font-size:1.16rem;font-variant-numeric:tabular-nums}
.card--out{filter:saturate(.4)}
.product__badge{position:absolute;top:14px;left:14px;background:var(--ink);color:#fff;font-size:.7rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;padding:.42em .85em;border-radius:var(--r-pill);box-shadow:var(--sh-sm)}

/* ---------------- Cart ---------------- */
.btn--add{margin-top:16px;align-self:flex-start}
.cart__count{display:inline-grid;place-items:center;min-width:1.5em;padding:.05em .45em;border-radius:var(--r-pill);background:var(--accent);color:var(--accent-fg);font-size:.78rem;font-weight:800;font-variant-numeric:tabular-nums}
dialog.cartdrawer{margin:0 0 0 auto;width:min(440px,100%);max-width:440px;height:100dvh;max-height:100dvh;border-radius:0;animation:slidein .2s ease;overflow-y:auto}
@keyframes slidein{from{transform:translateX(28px);opacity:.4}to{transform:none;opacity:1}}
.cartdrawer__inner{display:flex;flex-direction:column;min-height:100%}
.cartdrawer__inner > div{display:flex;flex-direction:column;flex:1}
.cartitem{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}
.cartitem__info{flex:1;min-width:0}
.cartitem__name{font-weight:700;color:var(--ink)}
.cartitem__price{font-size:.88rem;color:var(--muted)}
.cartitem__qty{display:flex;align-items:center;gap:8px}
.qtybtn{width:34px;height:34px;border-radius:50%;border:1.5px solid var(--line-strong);background:#fff;color:var(--ink);font-size:1.05rem;line-height:1;cursor:pointer;display:grid;place-items:center;transition:border-color .15s,background .15s}
.qtybtn:hover{background:var(--bg-alt);border-color:var(--brand)}
.cartitem__count{min-width:2ch;text-align:center;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
/* Standalone control (not inline text): keep the >=24px-tall hit target (WCAG 2.5.8). */
.cartitem__remove{display:inline-flex;align-items:center;min-height:24px;border:0;background:none;color:var(--muted);cursor:pointer;font-size:.85rem;font-weight:600;text-decoration:underline;text-underline-offset:2px;padding:.3em .2em}
.cartitem__remove:hover{color:var(--ink)}
.cart__subtotal{display:flex;justify-content:space-between;align-items:baseline;font-weight:800;color:var(--ink);font-size:1.12rem;padding:18px 0 4px}
.cart__note{font-size:.82rem;color:var(--muted);margin:.4em 0 16px}
.cart__error{color:#b3362e;font-size:.9rem;margin:0 0 10px}
.cart__actions{margin-top:auto;display:flex;flex-direction:column;gap:10px;padding-top:16px}

/* ---------------- Contact ---------------- */
.contact__grid{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:start}
.contact__line{display:flex;gap:14px;align-items:center;font-size:var(--fs-lg);margin:.6em 0}
.ico{width:40px;height:40px;border-radius:11px;display:inline-grid;place-items:center;background:var(--brand-chip);color:var(--brand);flex:none}
.ico svg{width:20px;height:20px}
.hours__title{margin-top:32px;font-size:var(--fs-h3);font-weight:800;text-transform:uppercase;letter-spacing:-.01em}
.hours{border-collapse:collapse;width:100%;max-width:400px}
.hours td{padding:.55em 0;border-bottom:1px solid var(--line)}
.hours td:last-child{text-align:right;color:var(--ink);font-weight:700;font-variant-numeric:tabular-nums}
.holidays{margin-top:24px;max-width:400px}
.holidays__title{margin:0 0 8px;font-size:1.05rem;font-weight:800}
.holidays__list{list-style:none;margin:0;padding:0}
.holiday{padding:.45em 0;border-bottom:1px solid var(--line);font-size:.98rem}
.holiday__when{font-weight:700;color:var(--ink)}
.holiday__label{color:var(--muted)}
.contact__cta{display:flex;gap:12px;margin-top:30px;flex-wrap:wrap}
.map{min-height:380px;border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);background:var(--bg-sunken);box-shadow:var(--sh-sm)}
.map iframe{width:100%;height:100%;border:0;min-height:380px}

/* ---------------- Footer ---------------- */
.footer{background:var(--navy-900);color:#aeb8c6;padding:40px 0}
.footer__inner{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:.92rem;align-items:center}
.footer__powered{display:inline-flex;align-items:center;flex-wrap:wrap;gap:.6em}
.footer__powered strong{color:#fff}
/* Wholesale Payments credit mark (official white-text lockup on the dark footer). */
.wpi-credit{height:18px;width:auto;display:inline-block;vertical-align:middle}
.footer__links{display:inline-flex;flex-wrap:wrap;gap:.6em;font-size:.86rem}
.footer__links a:not(:last-child)::after{content:"·";margin-left:.6em;color:#8794a4;text-decoration:none}
.footer a{color:#c8d0dc;text-decoration:underline;text-underline-offset:2px}
.footer a:hover{color:#fff}

/* ---------------- Sticky mobile pay bar ---------------- */
.paybar{position:fixed;bottom:0;left:0;right:0;z-index:45;display:none;gap:10px;padding:10px 14px;background:color-mix(in srgb,#fff 96%,transparent);backdrop-filter:blur(10px);border-top:1px solid var(--line);box-shadow:0 -6px 20px rgba(12,20,31,.08)}
.paybar .btn{flex:1}

/* ---------------- Dialog / modal ---------------- */
dialog.modal{border:0;border-radius:18px;padding:0;max-width:460px;width:calc(100% - 40px);box-shadow:var(--sh-lg);animation:pop .18s ease}
dialog.modal:not([open]){display:none}
dialog.modal::backdrop{background:rgba(6,10,20,.58);backdrop-filter:blur(2px)}
.modal__inner{position:relative;padding:30px;border-radius:inherit}
@keyframes pop{from{transform:translateY(10px) scale(.98);opacity:.5}to{transform:none;opacity:1}}
/* >=24x24 CSS-px hit target (WCAG 2.5.8): a centered 40px box, not a bare glyph. */
.modal__x{position:absolute;right:8px;top:8px;width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:50%;background:none;font-size:1.8rem;line-height:1;cursor:pointer;color:var(--muted)}
.modal__x:hover{color:var(--ink)}
.modal h3{margin-top:0}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.field label{font-size:.85rem;font-weight:700;color:var(--ink)}
.field input,.field select,.field textarea{padding:.8em .95em;border:1.5px solid var(--line-strong);border-radius:var(--r-sm);font-size:1rem;font-family:inherit;color:var(--ink)}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--brand);box-shadow:0 0 0 1px #fff,0 0 0 4px var(--focus-ring);outline:none}
.secured{display:flex;align-items:center;gap:8px;font-size:.82rem;color:var(--muted);margin-top:16px;justify-content:center}
.success{text-align:center;padding:12px 0}
.success__check{width:64px;height:64px;border-radius:50%;background:#15803d;color:#fff;display:grid;place-items:center;font-size:2rem;margin:0 auto 18px;box-shadow:0 8px 20px rgba(21,128,61,.28)}
.redirect-note{font-size:.8rem;word-break:break-all;text-align:center;margin-top:10px}

/* ---------------- Draft-preview banner ---------------- */
.draftbar{background:var(--accent);color:#fff;text-align:center;font-size:.85rem;font-weight:700;padding:10px 14px;position:relative;z-index:50}

/* ---------------- Responsive ---------------- */
@media (max-width:980px){
  .hero__inner{gap:40px}
  .contact__grid{gap:40px}
}
@media (max-width:880px){
  .hero{padding:64px 0 72px}
  .hero__inner{grid-template-columns:1fr;gap:40px}
  .grid--3{grid-template-columns:1fr 1fr}
  .grid--4{grid-template-columns:1fr 1fr}
  .contact__grid{grid-template-columns:1fr}
  .nav{display:none}
  .btn--cart{margin-left:auto}
  .section{padding:64px 0}
  /* Mobile contact/quote form (Phase 2 — Standard polish): on a phone the lead
     form (its name + phone fields) should LEAD, with the business details
     (location eyebrow, name, tagline) shown BELOW the phone field — the
     conversion path first, the supporting copy after. The hero is a grid, so
     `order` reorders its two items (the form card above the descriptive copy)
     only at this breakpoint; the desktop two-column layout is unchanged. A
     single-column hero (lead form off) has only .hero__copy, so order is moot. */
  .hero__card{order:-1}
}
@media (max-width:560px){
  .grid--3,.grid--4{grid-template-columns:1fr}
  .paybar{display:flex}
  .topbar .btn--phone{display:none}
  body{padding-bottom:64px}
  .trustbar__inner{gap:12px 24px}
}

/* ---------------- Securely-charging overlay (checkout / pay / book) ----------------
   Shown while a card is on the wire: a fixed, click-blocking scrim + a centered
   card with a branded spinner, so the few-second charge reads as deliberate and
   safe (and a stray click can't double-submit). The page JS just toggles the
   [hidden] attribute; role=status + aria-live announces it. CSP-safe (class-based,
   no inline styles). */
.charge-overlay{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:24px;background:color-mix(in srgb,var(--ink) 58%,transparent);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);animation:co-fade .2s ease}
.charge-overlay__card{background:#fff;border-radius:var(--radius);padding:34px 30px;max-width:340px;width:100%;text-align:center;box-shadow:var(--sh-lg)}
.charge-overlay__spinner{width:48px;height:48px;margin:0 auto 18px;border-radius:50%;border:3px solid var(--bg-sunken);border-top-color:var(--brand);animation:co-spin .8s linear infinite}
.charge-overlay__title{margin:0 0 6px;font-family:var(--display);font-weight:800;font-size:1.08rem;color:var(--ink)}
.charge-overlay__note{margin:0;font-size:.9rem;color:var(--muted);line-height:1.5}
.charge-overlay__lock{display:inline-flex;align-items:center;gap:6px;margin-top:14px;font-size:.78rem;font-weight:600;color:var(--muted)}
.charge-overlay__lock svg{width:13px;height:13px}
@keyframes co-spin{to{transform:rotate(360deg)}}
@keyframes co-fade{from{opacity:0}to{opacity:1}}

/* ---------------- Reduced motion (WCAG 2.3.3) ---------------- */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{transition:none!important}
  dialog.modal,dialog.cartdrawer{animation:none}
  .btn:hover,.card:hover{transform:none}
  .tile:hover .tile__img{transform:none}
  /* The spinner stops; the static brand-topped ring + the aria-live title still
     signal that the charge is in progress. */
  .charge-overlay,.charge-overlay__spinner{animation:none}
}

/* ---------------- Kanopy Token.js card step (checkout.html) ---------------- */
.cardstep{display:flex;flex-direction:column;gap:14px}
.cardstep__row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cardstep .qfield > div{min-height:44px;border:1.5px solid var(--line-strong);border-radius:var(--r-sm);padding:.4em .55em;background:#fff;transition:border-color .15s ease, box-shadow .15s ease}
.cardstep .qfield > div:focus-within{border-color:var(--brand);box-shadow:0 0 0 1px #fff,0 0 0 4px var(--focus-ring)}

/* ---------------- Pay-invoice page ---------------- */
.invoice__summary{font-weight:800;color:var(--ink);font-size:1.12rem;margin:0 0 .4em}

/* ---------------- Checkout-style pages (checkout/pay/book) ---------------- */
.checkout-page{background:var(--bg-alt)}
.checkout{padding:48px 0 88px}
.checkout__wrap{max-width:640px}
.checkout__panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:30px;margin-bottom:22px;box-shadow:var(--sh-sm)}
.checkout__panel h2{font-size:var(--fs-h3);font-weight:800;margin-bottom:.65em;text-transform:uppercase;letter-spacing:-.01em}
.summary__row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.summary__name{font-weight:700;color:var(--ink)}
.summary__qty{font-size:.88rem;color:var(--muted)}
.summary__line{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700;color:var(--ink)}
.checkout .qfield{margin-bottom:16px}
.checkout .qfield input,.checkout .qfield select,.checkout .qfield textarea{width:100%;box-sizing:border-box;padding:.85em .95em;border:1.5px solid var(--line-strong);border-radius:var(--r-sm);font-size:1rem;font-family:inherit;color:var(--ink);background:#fff;transition:border-color .15s ease, box-shadow .15s ease}
.checkout .qfield input:focus,.checkout .qfield select:focus,.checkout .qfield textarea:focus{border-color:var(--brand);box-shadow:0 0 0 1px #fff,0 0 0 4px var(--focus-ring);outline:none}
/* Delivery-address fieldset (shippingAddress flag) — visually a labelled group;
   reset the browser default fieldset chrome to match the rest of the form. */
.qfieldset{border:0;margin:0 0 16px;padding:0;min-width:0}
.qfieldset legend{padding:0;margin-bottom:10px;font-family:var(--display);font-weight:700;font-size:.95rem;color:var(--ink)}
/* Estimated tax + subtotal rows in the order summary. */
.summary__subtotal,.summary__tax{color:var(--muted);font-size:.92rem}
.summary__subtotal span:last-child,.summary__tax span:last-child{font-variant-numeric:tabular-nums;white-space:nowrap}
.topbar__back{margin-left:auto}

/* ---------------- Transactional step indicator (checkout/book/pay) ---------------- */
/* Pure-CSS progress: the active step follows which panel is visible (the page JS
   toggles [hidden]), and the payment step appears only when the page actually has
   a card step (#cardStep present = online payments configured). The step numbers
   use a counter so they stay 1..n even when the payment step is absent. No JS. */
.steps{display:flex;gap:10px;list-style:none;margin:0 0 28px;padding:0;counter-reset:step}
.step{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:13px 15px;border-radius:12px;background:#fff;border:1px solid var(--line);box-shadow:var(--sh-sm);font-family:var(--display);font-weight:700;font-size:.85rem;color:var(--muted);counter-increment:step;transition:background .15s ease, border-color .15s ease, color .15s ease}
.step__n{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--bg-alt);border:1.5px solid var(--line-strong);color:var(--muted);font-size:.8rem;font-variant-numeric:tabular-nums;transition:background .15s ease, border-color .15s ease, color .15s ease}
.step__n::before{content:counter(step)}
.step__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* the payment step shows only when the page has a card step */
.steps .step--pay{display:none}
.checkout__wrap:has(#cardStep) .steps .step--pay{display:flex}
/* active look (applied to the current step) */
.steps .step--1{color:var(--ink);background:var(--brand-wash);border-color:color-mix(in srgb,var(--brand) 38%,var(--line))}
.steps .step--1 .step__n{background:var(--brand);border-color:var(--brand);color:var(--brand-fg)}
/* card step visible -> step 1 done, payment active */
.checkout__wrap:has(#cardStep:not([hidden])) .step--1,
.checkout__wrap:has(#confirmPanel:not([hidden])) .step--1,
.checkout__wrap:has(#confirmPanel:not([hidden])) .step--pay{color:var(--ink);background:#fff;border-color:var(--line)}
.checkout__wrap:has(#cardStep:not([hidden])) .step--1 .step__n,
.checkout__wrap:has(#confirmPanel:not([hidden])) .step--1 .step__n,
.checkout__wrap:has(#confirmPanel:not([hidden])) .step--pay .step__n{background:#15803d;border-color:transparent;color:#fff}
.checkout__wrap:has(#cardStep:not([hidden])) .step--pay,
.checkout__wrap:has(#confirmPanel:not([hidden])) .step--done{color:var(--ink);background:var(--brand-wash);border-color:color-mix(in srgb,var(--brand) 38%,var(--line))}
.checkout__wrap:has(#cardStep:not([hidden])) .step--pay .step__n,
.checkout__wrap:has(#confirmPanel:not([hidden])) .step--done .step__n{background:var(--brand);border-color:var(--brand);color:var(--brand-fg)}
@media (max-width:560px){.step__label{display:none}.step{justify-content:center;padding:11px}}

/* ---------------- Secure-payment trust treatment ---------------- */
.secured svg{width:16px;height:16px;flex:none;color:var(--ink)}
.cardstep .secured{margin-top:8px}

/* ---------------- Inline validation (only after the field is touched) ---------------- */
.checkout .qfield input:user-invalid,
.checkout .qfield textarea:user-invalid,
.checkout .qfield select:user-invalid{border-color:#b3362e}

/* ---- fractional star bar (average rating) ---- */
/* .starbar sets NO colour of its own: both layers inherit from whatever context
   the bar is dropped into. That matters because the hero badge carries the
   existing "stars" class, and each skin themes .stars differently — salon
   #E7A8C9, food #f0a35e, grocery var(--gold), retail var(--accent) (the
   merchant's own AA-clamped brand accent). A hardcoded colour here would
   outrank all of them and, on retail's LIGHT default hero, leave amber stars at
   ~1.5:1. The summary bar is new content with no skin rule of its own, so it is
   coloured by descendant selector — which cannot reach the hero. */
.starbar{position:relative;display:inline-block;white-space:nowrap;line-height:1;margin-right:.5ch;vertical-align:-.06em}
/* Faded copy of the SAME colour rather than a fixed grey/white, so the empty
   portion of the bar reads on light and dark surfaces alike. */
.starbar__bg{opacity:.28}
.starbar__fill{position:absolute;top:0;left:0;height:100%;width:var(--pct,0%);overflow:hidden}
.reviews__head .starbar{color:#b45309}
.reviews-summary__text{vertical-align:middle}

/* ---- one-row reviews rail ---- */
.review-attrib{margin:0 0 12px}
/* overflow-x:auto forces the computed overflow-y to auto too, making this a
   scrollport on BOTH axes — which would crop each skin's .card:hover lift
   (translateY(-4px/-5px)) and its drop shadow. The vertical padding gives that
   ink somewhere to land. Horizontal padding stays 0: scroll-snap aligns to the
   padding edge, and the advance math is measured from the first card. */
.grid.reviews--rail{display:flex;flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:6px 0 18px}
/* Nothing to scroll (few enough cards to fit) -> the dots would be dead
   controls. app.js toggles this on resize as well as at mount. */
.reviews-dots[hidden]{display:none}
.grid.reviews--rail::-webkit-scrollbar{display:none}
.grid.reviews--rail>.card.review{flex:0 0 clamp(258px,78vw,340px);scroll-snap-align:start}
/* Flex rows stretch every card to the tallest one, so a single 600-char review
   would leave the rest half-empty. Clamp the quote and pin the author line to
   the bottom: the cards stay a consistent height with the byline on one baseline.
   This used to say the full review is a tap away on Google (the author name
   links out). That only holds for a live Google review: a first party review
   (a customer's own, or one copied in at build time) has no link, so a long
   quote could not be read anywhere. app.js now adds a "Read more" button to a
   quote that is really cut off; it sets .is-expanded on the card, which lifts
   the clamp (the stretched row simply grows, the byline stays pinned below). */
.grid.reviews--rail .review p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:8;line-clamp:8;overflow:hidden}
.grid.reviews--rail .review.is-expanded p{display:block;-webkit-line-clamp:unset;line-clamp:none;overflow:visible}
/* Inherits the card's own text colour, which every look already pins to AA on
   its card surface (a fixed link colour would have to be re-checked on each
   light and dark card). Underlined so it reads as a control without colour.
   min-height 24px is the WCAG 2.5.8 target size. */
.grid.reviews--rail .review__more{align-self:flex-start;box-sizing:border-box;min-height:24px;min-width:24px;margin:6px 0 0;padding:2px 0;border:0;background:none;color:inherit;font:inherit;font-size:.9em;font-weight:600;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.grid.reviews--rail .review__more:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:2px}
.grid.reviews--rail .review__author{margin-top:auto}
.grid.reviews--rail:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.reviews-dots{display:flex;justify-content:center;gap:0;margin:12px 0 0}
/* --muted is each skin's ">=4.5:1 on white and --bg-alt" token. A translucent
   grey here measured ~1.6:1 against the section's light --bg-alt, under the 3:1
   SC 1.4.11 requires of a control's visual boundary. Active state is carried by
   size as well as hue, so the two are distinguishable without colour.
   The BUTTON is a 24px circle (WCAG 2.5.8, target size) with the 9px dot
   painted in its content box (padding + background-clip, the technique the
   44px skin overrides already use, so they keep working). The button itself
   used to be the 9px dot, which the 2026-10-07 accessibility scan flagged on
   every phone layout. */
.reviews-dots__dot{box-sizing:border-box;width:24px;height:24px;padding:7.5px;border:0;border-radius:50%;background:var(--muted,#586271);background-clip:content-box;cursor:pointer;transition:background-color .2s ease,padding .2s ease}
.reviews-dots__dot.is-active{background-color:var(--brand);padding:6px}
.reviews-dots__dot:focus-visible{outline:2px solid var(--brand);outline-offset:0}
@media (prefers-reduced-motion:reduce){
  .grid.reviews--rail{scroll-behavior:auto}
  .reviews-dots__dot{transition:none}
}

/* ---- mobile layer (provisioner mobile.ts) ---- */
.navtoggle{display:none}
@media (max-width:880px){
  :root{--m-gutter:clamp(16px,5vw,24px)}
  .wrap{padding-left:max(var(--m-gutter),env(safe-area-inset-left))!important;padding-right:max(var(--m-gutter),env(safe-area-inset-right))!important}
  .topbar__inner>.brand{margin-right:auto;min-width:0}
  .topbar__inner>.btn--cart{margin-left:0}
  .navtoggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;margin:0 -8px 0 2px;padding:0;border:0;border-radius:var(--r-sm,8px);background:transparent;color:var(--navtoggle-ink,currentColor);cursor:pointer;-webkit-tap-highlight-color:transparent}
  .navtoggle.navtoggle--off{display:none}
  .navtoggle:focus-visible{outline:2px solid currentColor;outline-offset:-2px}
  .navtoggle__bars,.navtoggle__bars::before,.navtoggle__bars::after{display:block;width:22px;height:2px;border-radius:2px;background:currentColor;transition:transform .2s ease,background-color .2s ease}
  .navtoggle__bars{position:relative}
  .navtoggle__bars::before,.navtoggle__bars::after{content:"";position:absolute;left:0}
  .navtoggle__bars::before{top:-7px}
  .navtoggle__bars::after{top:7px}
  .navtoggle[aria-expanded="true"] .navtoggle__bars{background:transparent}
  .navtoggle[aria-expanded="true"] .navtoggle__bars::before{transform:translateY(7px) rotate(45deg)}
  .navtoggle[aria-expanded="true"] .navtoggle__bars::after{transform:translateY(-7px) rotate(-45deg)}
  .topbar.is-menu-open:not(.is-menu-probe){background:var(--navmenu-bg);-webkit-backdrop-filter:none;backdrop-filter:none}
  .topbar.is-menu-open .topbar__inner{position:static}
  .topbar.is-menu-open .nav{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:2px;position:absolute;left:0;right:0;top:100%;z-index:1;margin:0;padding:8px max(var(--m-gutter),env(safe-area-inset-left)) 16px;background:var(--navmenu-bg,var(--bg,#fff));border-bottom:1px solid var(--line,rgba(0,0,0,.12));box-shadow:0 24px 32px -24px rgba(0,0,0,.45);max-height:calc(100dvh - 100%);overflow-y:auto;overscroll-behavior:contain}
  .topbar.is-menu-open .nav a{display:flex;align-items:center;min-height:48px;margin:0;font-size:1.05rem;white-space:normal}
  .grid>*,.contact__grid>*,.hero__inner>*,.footer__inner>*{min-width:0}
  .contact__line,.contact a,.footer a,.footer p{overflow-wrap:anywhere}
  .reviews-dots__dot{position:relative}
  .reviews-dots__dot::after{content:"";position:absolute;inset:-14px -6px}
  .footer__links a{display:inline-block;padding:11px 0}
}
@media (max-width:560px){
  .topbar .brand__name{white-space:normal;text-overflow:clip;letter-spacing:normal;overflow:hidden;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;font-size:min(1rem,4.3vw);line-height:1.15;max-width:none}
  .topbar__inner{column-gap:10px}
  .topbar__inner>.btn--cart{flex:none;min-height:44px;padding-left:12px;padding-right:12px;letter-spacing:normal}
  .ctabar__inner{flex-wrap:nowrap;justify-content:center}
  .ctabar__phone{white-space:nowrap;margin-left:0;margin-right:0}
  .ctabar__phone~.ctabar__action{display:none}
  :is(#services,#teaser-services):not([data-variant="list"]) :is(#servicesGrid,.grid)>.card:not(.card--media){display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:16px;align-items:start;text-align:left}
  :is(#services,#teaser-services):not([data-variant="list"]) :is(#servicesGrid,.grid)>.card:not(.card--media)>.card__icon{grid-row:1 / span 9;width:48px;height:48px;margin:0;display:grid;place-items:center}
  :is(#services,#teaser-services):not([data-variant="list"]) :is(#servicesGrid,.grid)>.card:not(.card--media)>.card__icon svg{width:26px;height:26px}
  :is(#services,#teaser-services):not([data-variant="list"]) :is(#servicesGrid,.grid)>.card:not(.card--media)>:is(h3,p){grid-column:2;margin-left:0;margin-right:0}
  :is(#services,#teaser-services):not([data-variant="list"]) :is(#servicesGrid,.grid)>.card:not(.card--media)>h3{margin-top:0}
  :is(#services,#teaser-services)[data-variant="icons"] :is(#servicesGrid,.grid){gap:8px}
  :is(#services,#teaser-services)[data-variant="icons"] :is(#servicesGrid,.grid)>.card{padding-top:14px;padding-bottom:14px}
  .trustbar[data-variant="stats"] .trustbar__inner{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex-direction:row;align-items:start}
  .trustbar:not([data-variant="stats"]) .trustbar__inner{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .trustbar:not([data-variant="stats"]) .trustbar__inner::-webkit-scrollbar{display:none}
  .trustbar__inner:focus-visible{outline:3px solid var(--focus-ring,var(--ink));outline-offset:2px}
  .trustbar:not([data-variant="stats"]) .trustbar__item{flex:none;scroll-snap-align:start;white-space:nowrap}
}
@media (max-width:400px){.topbar__inner>.btn--phone{display:none}}
@media (prefers-reduced-motion:reduce){.navtoggle__bars,.navtoggle__bars::before,.navtoggle__bars::after{transition:none}}
