/* =============================================================
   URPhone Store - CONSOLIDATED STYLESHEET
   Built from the shared base system (project-base) + the URPhone design.

   Cascade layers (low -> high precedence):
     base       : project-base reset            + URPhone element reset
     components : project-base predefined classes (.btn--*, .card, .grid--auto-*, .content-width ...)
     utilities  : project-base utilities         + URPhone atomic utilities
     urphone    : URPhone component blocks (the visual design - always wins)

   The shared vocabulary is available for every page; the URPhone layer
   guarantees the current look is preserved exactly.
   ============================================================= */

/* ============================================================
   PART 1 - SHARED BASE SYSTEM (project-base, tokens mapped to URPhone)
   ============================================================ */
/* =============================================================
   PROJECT BASE  (per-project system starter - copy per project, then
   make it unique). Pure custom, variable-driven, no framework.

   THE SYSTEM is reused across projects (class names, structure, the
   variable surface). THE DESIGN is unique per project: change the
   variable VALUES below and every button, card, color, and rhythm
   changes with them. Same vocabulary, different-looking site.

   Three layers:
     1. TOKENS      (:root)             <- edit per project (this is the design)
     2. PREDEFINED  (@layer base / components)  <- shared vocabulary, reads tokens
     3. UTILITIES   (@layer utilities)  <- small modifiers layered on top

   Layer order below = UTILITIES beat PREDEFINED beat BASE. No !important.
   ============================================================= */

@layer base, components, utilities;

/* =============================================================
   1. TOKENS - THE DESIGN  (edit every value per project)
   Placeholder values below are only a demo. Set them from the logo,
   colors, and reference. Make each project look like nobody else's.
   ============================================================= */
:root {
  /* ---- BRAND COLORS ----
     Set the three base colors. The ramps auto-derive with relative
     color syntax (oklch) - this is the "automatic color relationships"
     idea, native. Set one color, get its tints/shades/hover. */
  --primary: #F5B800;              /* URPhone gold */
  --accent:  #15171C;              /* URPhone ink  */

  --primary-hover:       oklch(from var(--primary) calc(l - 0.06) c h);
  --primary-light:       oklch(from var(--primary) calc(l + 0.18) calc(c * 0.85) h);
  --primary-ultra-light: oklch(from var(--primary) calc(l + 0.36) calc(c * 0.45) h);
  --primary-dark:        oklch(from var(--primary) calc(l - 0.16) c h);
  --primary-ultra-dark:  oklch(from var(--primary) calc(l - 0.30) c h);
  --primary-contrast:    #15171C;   /* ink text on gold */

  --accent-hover:        oklch(from var(--accent) calc(l - 0.06) c h);
  --accent-light:        oklch(from var(--accent) calc(l + 0.18) calc(c * 0.85) h);
  --accent-ultra-light:  oklch(from var(--accent) calc(l + 0.36) calc(c * 0.45) h);
  --accent-dark:         oklch(from var(--accent) calc(l - 0.16) c h);
  --accent-contrast:     #ffffff;

  /* ---- NEUTRALS / SURFACES (explicit for full control) ---- */
  --bg:         #ffffff;   /* page background */
  --surface:    #f6f4ef;   /* section / card background */
  --surface-2:  #ece8df;   /* deeper surface */
  --dark:       #101413;   /* dark sections */
  --text:       #16181a;   /* body text */
  --text-muted: #5b6166;   /* secondary text */
  --text-light: #f5f6f5;   /* text on dark */
  --border-color: #e3e0d8;

  /* ---- TYPE ---- */
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --heading-weight: 600;
  --heading-line-height: 1.08;
  --heading-letter-spacing: -0.01em;
  --heading-text-wrap: balance;

  --h1: clamp(2.5rem, 5vw + 1rem, 4.25rem);
  --h2: clamp(2rem, 3.5vw + 1rem, 3rem);
  --h3: clamp(1.6rem, 2vw + 1rem, 2.25rem);
  --h4: clamp(1.3rem, 1vw + 1rem, 1.6rem);
  --h5: clamp(1.1rem, 0.5vw + 1rem, 1.25rem);
  --h6: 1rem;
  --text-lead: clamp(1.15rem, 0.5vw + 1rem, 1.4rem);
  --text-small: 0.875rem;

  /* ---- FLUID SPACING SCALE (one source for gaps/padding/rhythm) ---- */
  --space-2xs: clamp(0.375rem, 0.3rem + 0.3vw, 0.5rem);
  --space-xs:  clamp(0.5rem, 0.4rem + 0.4vw, 0.75rem);
  --space-s:   clamp(0.75rem, 0.6rem + 0.6vw, 1.25rem);
  --space-m:   clamp(1.25rem, 1rem + 1vw, 2rem);
  --space-l:   clamp(2rem, 1.6rem + 1.8vw, 3.5rem);
  --space-xl:  clamp(3rem, 2.4rem + 3vw, 5.5rem);
  --space-2xl: clamp(4.5rem, 3.5rem + 4vw, 8rem);

  /* ---- LAYOUT ---- */
  --section-space: var(--space-xl);
  --content-width: 1120px;
  --content-narrow: 720px;
  --content-wide: 1320px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* ---- RADIUS (drives the whole shape language of the site) ---- */
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;

  /* ---- BORDERS ---- */
  --border-width: 1px;
  --border-style: solid;

  /* ---- SHADOWS (a big lever for a site's character) ---- */
  --shadow-s: 0 1px 2px rgb(0 0 0 / 0.06);
  --shadow-m: 0 6px 20px rgb(0 0 0 / 0.08);
  --shadow-l: 0 18px 50px rgb(0 0 0 / 0.12);

  --transition: 200ms ease;

  /* ---- BUTTON SURFACE (deep, so button style is fully per-project) ---- */
  --btn-padding-block: 0.85rem;
  --btn-padding-inline: 1.6rem;
  --btn-radius: 999px;          /* pill by default; set 6px for squared brands */
  --btn-border-width: 2px;
  --btn-font-size: 1rem;
  --btn-font-weight: 600;
  --btn-transition: var(--transition);

  --btn-primary-bg: var(--primary);
  --btn-primary-bg-hover: var(--primary-hover);
  --btn-primary-text: var(--primary-contrast);

  --btn-secondary-bg: var(--accent);
  --btn-secondary-bg-hover: var(--accent-hover);
  --btn-secondary-text: var(--accent-contrast);

  /* ---- CARD SURFACE (deep, so card construction is per-project) ---- */
  --card-bg: var(--surface);
  --card-padding: clamp(1.25rem, 3vw, 2rem);
  --card-radius: var(--radius-m);
  --card-border: var(--border-width) var(--border-style) var(--border-color);
  --card-shadow: none;          /* set to var(--shadow-m) for a shadowed brand */

  /* ---- HEADING ELEMENT/CLASS shared props ---- */
  --heading-font-family: var(--font-display);

  /* ---- LINKS ---- */
  --link-color: var(--primary);
  --link-decoration: underline;
  --link-underline-offset: 0.15em;

  /* ---- ICONS ---- */
  --icon-size-s: 1rem;
  --icon-size-m: 1.5rem;
  --icon-size-l: 2.25rem;
  --icon-stroke: 2;             /* stroke width for line-style SVG icons */

  /* ---- DARK RELATIONSHIPS ----
     Values a container switches to when it opts into a dark context
     (.bg--dark / .theme--dark). Everything inside auto-adapts. */
  --dark-surface:     oklch(from var(--dark) calc(l + 0.06) c h);
  --dark-surface-2:   oklch(from var(--dark) calc(l + 0.12) c h);
  --dark-text:        var(--text-light);
  --dark-text-muted:  #a6adad;
  --dark-border:      rgb(255 255 255 / 0.14);
  --dark-link:        var(--primary-light);

  /* ---- BREADCRUMB ---- */
  --breadcrumb-sep: "/";        /* set to a chevron etc per project */

  /* ---- SYSTEM KNOBS ---- */
  --grid-gap: var(--space-m);
  --grid-min: 16rem;
  --flow-space: var(--space-m);   /* auto vertical rhythm for .flow */
}

/* =============================================================
   2a. BASE  - reset + element defaults (low precedence)
   ============================================================= */
@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }

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

  body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  img, picture, svg, video { display: block; max-width: 100%; height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }

  /* Headings: element AND class targeting decouples visual size from
     semantic level. <h2 class="h--4"> stays an h2, renders at h4 size. */
  h1, h2, h3, h4, h5, h6,
  .h1, .h2, .h3, .h4, .h5, .h6,
  .h--1, .h--2, .h--3, .h--4, .h--5, .h--6 {
    font-family: var(--heading-font-family);
    font-weight: var(--heading-weight);
    line-height: var(--heading-line-height);
    letter-spacing: var(--heading-letter-spacing);
    text-wrap: var(--heading-text-wrap);
  }
  h1, .h1, .h--1 { font-size: var(--h1); }
  h2, .h2, .h--2 { font-size: var(--h2); }
  h3, .h3, .h--3 { font-size: var(--h3); }
  h4, .h4, .h--4 { font-size: var(--h4); }
  h5, .h5, .h--5 { font-size: var(--h5); }
  h6, .h6, .h--6 { font-size: var(--h6); }

  a:where(:not([class*="btn"])) {
    color: var(--link-color);
    text-decoration: var(--link-decoration);
    text-underline-offset: var(--link-underline-offset);
    transition: color var(--transition);
  }
  a:where(:not([class*="btn"])):hover { color: var(--primary-hover); }

  :focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
}

/* =============================================================
   2b. PREDEFINED CLASSES - the shared vocabulary (use these first)
   ============================================================= */
@layer components {

  /* ---------- LAYOUT ---------- */
  .content-width        { width: min(100% - (var(--gutter) * 2), var(--content-width));  margin-inline: auto; }
  .content-width--narrow{ width: min(100% - (var(--gutter) * 2), var(--content-narrow)); margin-inline: auto; }
  .content-width--wide  { width: min(100% - (var(--gutter) * 2), var(--content-wide));   margin-inline: auto; }

  .section { padding-block: var(--section-space); }
  .section--sm { padding-block: calc(var(--section-space) * 0.6); }
  .section--lg { padding-block: calc(var(--section-space) * 1.5); }

  /* ---------- AUTO SPACING (contextual "flow" rhythm) ----------
     Adds consistent vertical space between stacked children. */
  .flow > * + * { margin-block-start: var(--flow-space); }
  .flow--tight { --flow-space: var(--space-s); }
  .flow--loose { --flow-space: var(--space-l); }

  /* ---------- AUTO GRIDS (content-responsive, no breakpoints) ---------- */
  .grid--auto-2, .grid--auto-3, .grid--auto-4, .grid--auto-5, .grid--auto-6 {
    display: grid; gap: var(--grid-gap);
    grid-template-columns: repeat(auto-fit, minmax(min(var(--grid-min), 100%), 1fr));
  }
  .grid--auto-2 { --grid-min: 26rem; }
  .grid--auto-3 { --grid-min: 19rem; }
  .grid--auto-4 { --grid-min: 15rem; }
  .grid--auto-5 { --grid-min: 12rem; }
  .grid--auto-6 { --grid-min: 10rem; }

  /* ---------- FIXED + RATIO GRIDS ---------- */
  .grid--2, .grid--3, .grid--4 { display: grid; gap: var(--grid-gap); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--1-2 { display: grid; gap: var(--grid-gap); grid-template-columns: 1fr 2fr; }
  .grid--2-1 { display: grid; gap: var(--grid-gap); grid-template-columns: 2fr 1fr; }
  @media (max-width: 720px) {
    .grid--2, .grid--3, .grid--4, .grid--1-2, .grid--2-1 { grid-template-columns: 1fr; }
  }

  /* ---------- BUTTONS (fully variable-driven) ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: var(--btn-padding-block) var(--btn-padding-inline);
    border-radius: var(--btn-radius);
    border: var(--btn-border-width) solid transparent;
    font-family: var(--font-body); font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight); line-height: 1;
    text-decoration: none; cursor: pointer;
    transition: background-color var(--btn-transition), color var(--btn-transition), border-color var(--btn-transition);
  }
  .btn--primary { background-color: var(--btn-primary-bg); color: var(--btn-primary-text); }
  .btn--primary:hover { background-color: var(--btn-primary-bg-hover); }
  .btn--secondary { background-color: var(--btn-secondary-bg); color: var(--btn-secondary-text); }
  .btn--secondary:hover { background-color: var(--btn-secondary-bg-hover); }
  .btn--outline { background-color: transparent; border-color: var(--primary); color: var(--primary); }
  .btn--outline:hover { background-color: var(--primary); color: var(--primary-contrast); }

  /* ---------- CARDS (fully variable-driven) ---------- */
  .card {
    background-color: var(--card-bg);
    padding: var(--card-padding);
    border-radius: var(--card-radius);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
  }
  .card--dark { --card-bg: var(--dark); color: var(--text-light); --card-border: 0; }

  /* ---------- BACKGROUNDS / TEXT ---------- */
  .bg--primary       { background-color: var(--primary); color: var(--primary-contrast); }
  .bg--primary-light { background-color: var(--primary-ultra-light); color: var(--text); }
  .bg--accent        { background-color: var(--accent); color: var(--accent-contrast); }
  .bg--surface       { background-color: var(--surface); color: var(--text); }
  .bg--surface-2     { background-color: var(--surface-2); color: var(--text); }
  /* Dark relationships: opting a container into dark context re-scopes the
     tokens locally, so every card, text, border, and link inside adapts
     automatically - the ACSS "dark relationships" idea, native. */
  .bg--dark, .theme--dark {
    --bg: var(--dark);
    --surface: var(--dark-surface);
    --surface-2: var(--dark-surface-2);
    --text: var(--dark-text);
    --text-muted: var(--dark-text-muted);
    --border-color: var(--dark-border);
    --card-bg: var(--dark-surface);
    --card-border: var(--border-width) var(--border-style) var(--dark-border);
    --link-color: var(--dark-link);
    background-color: var(--bg);
    color: var(--text);
  }

  .text--primary { color: var(--primary); }
  .text--accent  { color: var(--accent); }
  .text--muted   { color: var(--text-muted); }
  .text--lead    { font-size: var(--text-lead); color: var(--text-muted); }

  /* ---------- BORDERS ---------- */
  .border    { border: var(--border-width) var(--border-style) var(--border-color); }
  .border-t  { border-top: var(--border-width) var(--border-style) var(--border-color); }
  .border-b  { border-bottom: var(--border-width) var(--border-style) var(--border-color); }
  .rounded   { border-radius: var(--radius-m); }
  .rounded-l { border-radius: var(--radius-l); }

  /* ---------- ICONS (inline SVG, currentColor) ---------- */
  .icon {
    display: inline-block;
    inline-size: var(--icon-size, var(--icon-size-m));
    block-size: var(--icon-size, var(--icon-size-m));
    flex-shrink: 0;
    fill: none; stroke: currentColor; stroke-width: var(--icon-stroke);
    stroke-linecap: round; stroke-linejoin: round;
    vertical-align: middle;
  }
  .icon--s { --icon-size: var(--icon-size-s); }
  .icon--l { --icon-size: var(--icon-size-l); }
  .icon--fill { fill: currentColor; stroke: none; }   /* for solid icons */

  /* Icon-only button (meets 44px touch target). Needs an aria-label. */
  .icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    inline-size: 2.75rem; block-size: 2.75rem;
    border: 0; border-radius: var(--radius-s);
    background: transparent; color: inherit; cursor: pointer;
    transition: background-color var(--transition);
  }
  .icon-btn:hover { background: var(--surface-2); }

  /* Icon in a tinted container (feature icons, etc.) */
  .icon-box {
    display: inline-flex; align-items: center; justify-content: center;
    inline-size: 3rem; block-size: 3rem;
    border-radius: var(--radius-m);
    background: var(--primary-ultra-light); color: var(--primary);
  }

  /* ---------- BREADCRUMB ---------- */
  .breadcrumb__list {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: var(--space-2xs); list-style: none; font-size: var(--text-small);
  }
  .breadcrumb__item { display: inline-flex; align-items: center; gap: var(--space-2xs); color: var(--text-muted); }
  .breadcrumb__item + .breadcrumb__item::before {
    content: var(--breadcrumb-sep); color: var(--text-muted); margin-inline-end: var(--space-2xs);
  }
  .breadcrumb__item[aria-current="page"] { color: var(--text); font-weight: 600; }

  /* ---------- TABS ---------- */
  .tabs__list {
    display: flex; flex-wrap: wrap; gap: var(--space-xs);
    border-bottom: var(--border-width) var(--border-style) var(--border-color);
  }
  .tabs__tab {
    padding: 0.75rem 1.1rem; margin-bottom: -1px;
    border: 0; border-bottom: 2px solid transparent; background: transparent;
    color: var(--text-muted); font-weight: 600; cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
  }
  .tabs__tab:hover { color: var(--text); }
  .tabs__tab[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
  .tabs__panel { padding-block-start: var(--space-m); }
  .tabs__panel[hidden] { display: none; }

  /* ---------- MODAL ---------- */
  .modal {
    position: fixed; inset: 0; z-index: 500;
    display: none; align-items: center; justify-content: center;
    padding: var(--space-m);
  }
  .modal.is-open { display: flex; }
  .modal__backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / 0.5); }
  .modal__dialog {
    position: relative; z-index: 1;
    inline-size: 100%; max-inline-size: 32rem; max-block-size: 90vh; overflow: auto;
    background: var(--bg); color: var(--text);
    border-radius: var(--radius-l); box-shadow: var(--shadow-l);
    padding: clamp(1.5rem, 4vw, 2.5rem);
  }
  .modal__close { position: absolute; inset-block-start: var(--space-s); inset-inline-end: var(--space-s); }

  /* ---------- FORMS ---------- */
  .field { display: flex; flex-direction: column; gap: var(--space-2xs); }
  .label { font-weight: 600; font-size: var(--text-small); }
  .input, .textarea, .select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg);
    border: var(--border-width) var(--border-style) var(--border-color);
    border-radius: var(--radius-s);
    transition: border-color var(--transition), box-shadow var(--transition);
  }
  .input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ultra-light);
  }
  .textarea { min-height: 8rem; resize: vertical; }
  .field--error .input,
  .field--error .textarea,
  .field--error .select { border-color: #c0392b; }
  .field__error { color: #c0392b; font-size: var(--text-small); }
  .field__help  { color: var(--text-muted); font-size: var(--text-small); }

  /* ---------- NAV / FOOTER STRUCTURE (behavior hooks; look is per-project) ----
     Minimal structure only. Design the visual style per project. JS drives
     the open/close and accordion state via these classes + data-attributes. */
  .site-header { position: sticky; top: 0; z-index: 100; background-color: var(--bg); }
  .nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); }
  .nav__list { display: flex; gap: var(--space-m); list-style: none; }
  .nav__toggle { display: none; }   /* shown on mobile via utility/query per project */

  .footer__col > .footer__title { cursor: default; }
  /* Mobile: footer columns collapse into accordions (see .is-open in JS). */
  @media (max-width: 720px) {
    .footer__col > .footer__title { cursor: pointer; }
    .footer__col .footer__panel { display: none; }
    .footer__col.is-open .footer__panel { display: block; }
  }
}

/* =============================================================
   3. UTILITIES - small modifiers, highest precedence (token-driven)
   ============================================================= */
@layer utilities {
  /* Flex primitives */
  .flex    { display: flex; gap: var(--gap, var(--space-m)); }
  .stack   { display: flex; flex-direction: column; gap: var(--gap, var(--space-m)); }
  .cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, var(--space-s)); }
  .flex--center  { align-items: center; justify-content: center; }
  .flex--between { align-items: center; justify-content: space-between; }
  .flex--wrap    { flex-wrap: wrap; }

  .gap--xs { --gap: var(--space-xs); }
  .gap--s  { --gap: var(--space-s); }
  .gap--m  { --gap: var(--space-m); }
  .gap--l  { --gap: var(--space-l); }

  /* Grid modifiers - customize a predefined grid with no new CSS */
  .grid--gap-s  { --grid-gap: var(--space-s); }
  .grid--gap-l  { --grid-gap: var(--space-l); }
  .grid--gap-xl { --grid-gap: var(--space-xl); }
  .grid--min-s  { --grid-min: 12rem; }
  .grid--min-l  { --grid-min: 22rem; }

  /* Spacing */
  .pad--s { padding: var(--space-s); }
  .pad--m { padding: var(--space-m); }
  .pad--l { padding: var(--space-l); }
  .mt--m  { margin-block-start: var(--space-m); }
  .mt--l  { margin-block-start: var(--space-l); }

  /* Text */
  .text--center { text-align: center; }
  .text--left   { text-align: left; }
  .text--right  { text-align: right; }
  .max-w-none   { max-width: none; }

  /* Accessibility helpers */
  .sr-only {
    position: absolute; 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: var(--space-s); top: -100%;
    background: var(--primary); color: var(--primary-contrast);
    padding: 0.6rem 1rem; border-radius: var(--radius-s); z-index: 999;
    transition: top var(--transition);
  }
  .skip-link:focus-visible { top: var(--space-s); }
}

/* =============================================================
   QUALITY FLOOR
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================================
   HOW TO MAKE EACH PROJECT UNIQUE
   The class names stay the same across projects. To make THIS project
   look like nobody else's, change the TOKEN VALUES in Region 1:
     - a distinct --primary / --accent (ramps auto-derive)
     - a different --btn-radius / --btn-border-width (pill vs squared)
     - --card-shadow / --card-border / --card-bg (flat vs shadowed cards)
     - --font-display / --font-body pairing
     - --radius-* shape language and --space-* rhythm
     - one signature element built as a project-specific class
   Add project-only classes freely; keep them token-driven.
   ============================================================= */


/* register the URPhone design layer as the highest-priority layer */
@layer urphone;

/* ============================================================
   PART 2 - URPhone DESIGN TOKENS (override shared tokens)
   ============================================================ */
/* ============================================================
   URPhone Store - THEME / DESIGN TOKENS
   Brand: gold (#F5B800) + ink black, clean modern sans.
   These variables are the single source of truth. Mirror them
   into tailwind.config / Astro theme when migrating.
   ============================================================ */

:root {
  /* ---- Brand ---- */
  --brand-gold: #F5B800;          /* logo yellow */
  --brand-gold-bright: #FFC400;   /* button fills */
  --brand-gold-soft: #FFF4D1;     /* tints / highlight band */
  --brand-gold-deep: #B07900;     /* readable gold text */
  --brand-ink: #15171C;           /* near-black */
  --brand-ink-2: #20232B;         /* raised black surfaces */

  /* ---- Text ---- */
  --text-strong: #15171C;
  --text-body: #4A4E59;
  --text-muted: #757A86;
  --text-inverse: #FFFFFF;
  --text-inverse-soft: #B9BDC7;

  /* ---- Surfaces ---- */
  --surface: #FFFFFF;
  --surface-2: #F5F6F9;           /* light gray section */
  --surface-3: #EEF0F4;
  --surface-warm: #FCF9F0;        /* warm gold-tinted section */
  --surface-dark: #111318;        /* footer / dark CTA */

  /* ---- Lines / borders ---- */
  --line: #E6E8EE;
  --line-strong: #D5D8E0;

  /* ---- Functional ---- */
  --success: #1F9D57;
  --success-soft: #E6F6ED;
  --star: #F5B800;

  /* ---- Radius ---- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* ---- Shadow ---- */
  --shadow-xs: 0 1px 2px rgba(21,23,28,.06);
  --shadow-sm: 0 2px 8px rgba(21,23,28,.06);
  --shadow-md: 0 10px 30px rgba(21,23,28,.08);
  --shadow-lg: 0 24px 60px rgba(21,23,28,.12);
  --shadow-gold: 0 12px 30px rgba(245,184,0,.35);

  /* ---- Type ---- */
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---- Layout ---- */
  --container: 1200px;
  --container-wide: 1320px;
  --header-h: 76px;

  /* ---- Spacing scale (4px base) ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .28s;
}

/* ============================================================
   RESET + BASE
   ============================================================ */

/* ============================================================
   PART 3 - URPhone element reset  (-> base layer)
   ============================================================ */
@layer base {
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--surface);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* contain the off-screen mobile drawer without breaking sticky */
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--text-strong);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

ul, ol { list-style: none; padding: 0; }

input, textarea, select { font: inherit; }

:focus-visible { outline: 3px solid var(--brand-gold); outline-offset: 2px; border-radius: 4px; }

::selection { background: var(--brand-gold-soft); color: var(--brand-ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
}

/* ============================================================
   PART 4 - URPhone atomic utilities  (-> utilities layer)
   ============================================================ */
@layer utilities {
/* ============================================================
   URPhone Store - UTILITY FRAMEWORK
   Lightweight, Tailwind-ish atomic classes built on theme tokens.
   Use these to compose layouts; reusable blocks live in components.css.
   ============================================================ */

/* ---- Container ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-wide { max-width: var(--container-wide); }
.container-narrow { max-width: 860px; }

/* ---- Display ---- */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* ---- Flex / grid helpers ---- */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.flex-1 { flex: 1; }
.shrink-0 { flex-shrink: 0; }

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Gap ---- */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }

/* ---- Spacing (margin) ---- */
.mx-auto { margin-inline: auto; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }

/* ---- Section paddings ---- */
.section { padding-block: var(--space-24); }
.section-sm { padding-block: var(--space-16); }
.py-0 { padding-block: 0; }

/* ---- Width ---- */
.w-full { width: 100%; }
.max-w-prose { max-width: 60ch; }
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 760px; }

/* ---- Text ---- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.font-head { font-family: var(--font-head); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.uppercase { text-transform: uppercase; letter-spacing: .08em; }
.leading-tight { line-height: 1.15; }
.leading-relaxed { line-height: 1.7; }

.text-xs { font-size: .78rem; }
.text-sm { font-size: .9rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.35rem; }
.text-2xl { font-size: 1.7rem; }
.text-3xl { font-size: 2.1rem; }
.text-4xl { font-size: clamp(2.1rem, 4vw, 3rem); }
.text-5xl { font-size: clamp(2.6rem, 5.2vw, 3.9rem); }

/* ---- Color ---- */
.text-strong { color: var(--text-strong); }
.text-body { color: var(--text-body); }
.text-muted { color: var(--text-muted); }
.text-inverse { color: var(--text-inverse); }
.text-gold { color: var(--brand-gold-deep); }
.bg-white { background: var(--surface); }
.bg-gray { background: var(--surface-2); }
.bg-warm { background: var(--surface-warm); }
.bg-dark { background: var(--surface-dark); }

/* ---- Borders / radius / shadow ---- */
.border { border: 1px solid var(--line); }
.rounded-sm { border-radius: var(--r-sm); }
.rounded-md { border-radius: var(--r-md); }
.rounded-lg { border-radius: var(--r-lg); }
.rounded-xl { border-radius: var(--r-xl); }
.rounded-pill { border-radius: var(--r-pill); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }

/* ---- Position ---- */
.relative { position: relative; }
.sticky-top { position: sticky; top: 0; }
.overflow-hidden { overflow: hidden; }

/* ============================================================
   RESPONSIVE - collapse multi-column grids
   ============================================================ */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:hidden { display: none; }
  .md\:flex-col { flex-direction: column; }
  .section { padding-block: var(--space-16); }
}

@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .sm\:hidden { display: none; }
  .sm\:full { width: 100%; }
  .sm\:flex-col { flex-direction: column; }
  .sm\:text-center { text-align: center; }
  .container { padding-inline: 18px; }
  .section { padding-block: var(--space-12); }
}
}

/* ============================================================
   PART 5 - URPhone component blocks  (-> urphone layer, top)
   ============================================================ */
@layer urphone {
/* ============================================================
   URPhone Store - COMPONENTS / REUSABLE BLOCKS
   Each block here maps 1:1 to a future Astro component.
   ------------------------------------------------------------
   CONTENTS
     01. Shared bits ......... highlight, eyebrow, section-head
     02. Buttons ............. .btn + variants (incl. .btn-nav)
     03. Header / Navbar ..... .site-header, nav, dropdown, drawer
     04. Hero ................ .hero, hero-grid, rating, hero-badge
     05. Media placeholder ... .media-frame, .ph (+ tint helpers)
     06. Split feature ....... .split, check-grid, repair-flow, issue-grid
     07. Services grid ....... .services-grid, .service-card
     08. Brands grid ......... .brands-grid, .brand-card
     09. Process stepper ..... .process, rail, panel
     10. Locations explorer .. .locations, loc-tab, loc-pane (+ .acc-* accents)
     11. Testimonials slider . .slider, .review-card
     12. Parts shop .......... .cat-grid, .cat-card, .shop-note
     13. FAQ accordion ....... .faq-list, .faq-item, .faq-group, .faq-jump
     14. Final CTA band ...... .cta-band
     15. Footer .............. .site-footer
     16. Scroll reveal ....... @keyframes revealUp
     17. Responsive .......... @media 1024 / 680
     18. Internal page hero .. .page-hero, .crumbs
     19. Store finder card ... .storefind, .store-card
     20. Numbered step list .. .steplist, .step-row
     21. Comparison columns .. .compare, .compare-col
     22-23. (legacy spacing)
     24. Booking form ........ .book-wrap, .book-form, .radio-line
     24b. Sell / trade-in .... .offer-grid, .accept-grid, .proc-cards, .locate-band
     24c. Locations hub ...... .loc-grid, .loc-tile, .loc-map-banner
     25. Blog ................ archive (toolbar/featured/post-card/pagination)
                              + single post (toc/prose/share)
     26. Contact / About ..... .cloc-grid, .stat-band, .reach-grid
     27. Helpers ............. former inline styles → named classes
   ============================================================ */

/* ---------- 01. Shared bits ---------- */
.highlight {
  position: relative;
  color: var(--text-strong);
  background: linear-gradient(180deg, transparent 62%, var(--brand-gold) 62%, var(--brand-gold) 92%, transparent 92%);
  padding-inline: .04em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-gold-deep);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand-gold); border-radius: 2px; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 22px; height: 2px; background: var(--brand-gold); border-radius: 2px; }

.section-head { max-width: 720px; margin-inline: auto; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 16px; }
.section-head p { color: var(--text-muted); font-size: 1.06rem; }

/* ---------- 02. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 15px 26px; border-radius: var(--r-pill);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 19px; height: 19px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--brand-gold-bright); color: var(--brand-ink); box-shadow: var(--shadow-gold); }
.btn-primary:hover { background: #FFCE26; }

.btn-dark { background: var(--brand-ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-dark:hover { background: #000; }

.btn-ghost { background: #fff; color: var(--brand-ink); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand-ink); box-shadow: var(--shadow-sm); }

.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline-light:hover { background: #fff; color: var(--brand-ink); border-color:#fff; }

.btn-outline-dark { background: transparent; color: var(--brand-ink); border: 1.5px solid rgba(21,23,28,.45); }
.btn-outline-dark:hover { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }

.btn-white { background: #fff; color: var(--brand-ink); }
.btn-white:hover { background: #f4f4f4; }

.btn-block { width: 100%; }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }

/* ============================================================
   BLOCK: 03. Header / Navbar
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.nav-logo img { height: 28px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--text-strong);
  padding: 9px 12px; border-radius: var(--r-sm); transition: background var(--dur), color var(--dur);
}
.nav-link:hover { background: var(--surface-2); color: var(--brand-gold-deep); }
.nav-link .chev { width: 14px; height: 14px; transition: transform var(--dur); }
.nav-item:hover .chev { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
/* invisible bridge across the gap so hover doesn't drop when moving link → menu */
.nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: block; padding: 10px 14px; border-radius: var(--r-sm);
  font-size: .92rem; color: var(--text-body); font-weight: 500; transition: background var(--dur), color var(--dur);
}
.nav-dropdown a:hover { background: var(--surface-warm); color: var(--brand-ink); }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-meta { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--text-strong); }
.nav-meta svg { width: 20px; height: 20px; }
.nav-cart .cart-count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--brand-gold-bright); color: var(--brand-ink); border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 800;
}
.nav-divider { width: 1px; height: 22px; background: var(--line); }

/* Hamburger */
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); align-items: center; justify-content: center; }
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--brand-ink); border-radius: 2px; position: relative; transition: transform var(--dur), opacity var(--dur); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--brand-ink); border-radius: 2px; transition: transform var(--dur); }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 55;
  background: #fff; padding: 22px; overflow-y: auto;
  transform: translateX(100%); transition: transform var(--dur) var(--ease); visibility: hidden;
}
.mobile-menu.is-open { transform: translateX(0); visibility: visible; }
.mobile-group + .mobile-group { border-top: 1px solid var(--line); }
.mobile-group > summary, .mobile-group > a {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--text-strong); text-align: left;
}
.mobile-group > summary .chev { width: 18px; height: 18px; transition: transform var(--dur); }
.mobile-group[open] > summary .chev { transform: rotate(180deg); }
.mobile-sub { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.mobile-group[open] .mobile-sub { max-height: 1600px; }
.mobile-sub a { display: block; padding: 11px 4px 11px 16px; color: var(--text-body); font-weight: 500; }
.mobile-cta { margin-top: 22px; display: grid; gap: 12px; }

/* ============================================================
   BLOCK: 04. Hero
   ============================================================ */
.hero { padding-block: clamp(48px, 6vw, 84px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 78% -8%, var(--brand-gold-soft) 0%, transparent 60%),
    radial-gradient(700px 420px at 0% 110%, #FBFCFE 0%, transparent 60%);
}
.hero-title { font-size: clamp(2.4rem, 5.4vw, 4rem); text-align: center; margin-bottom: 46px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy p.hero-lead { font-size: 1.18rem; color: var(--text-strong); font-weight: 600; margin-bottom: 18px; }
.hero-copy p { color: var(--text-body); font-size: 1.04rem; margin-bottom: 14px; }
.hero-copy p strong { color: var(--text-strong); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-media { position: relative; }
.hero-media .media-frame { aspect-ratio: 4 / 3.1; border-radius: var(--r-xl); }
.hero-badge {
  position: absolute; left: -14px; bottom: -18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.hero-badge .num { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--brand-ink); line-height: 1; }
.hero-badge .lbl { font-size: .8rem; color: var(--text-muted); }

/* rating row */
.rating { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 18px; height: 18px; }
.rating-text { font-size: .92rem; color: var(--text-body); }
.rating-text b { color: var(--text-strong); }

/* ============================================================
   BLOCK: 05. Media placeholder (user supplies real images)
   ============================================================ */
.media-frame {
  position: relative; width: 100%; height: auto; border-radius: var(--r-lg); overflow: hidden;
  background:
    repeating-linear-gradient(45deg, #f2f3f6 0 12px, #eceef2 12px 24px);
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-muted);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame .ph {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 18px;
  font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: #9499a3;
}
.media-frame .ph svg { width: 30px; height: 30px; opacity: .55; }

/* ============================================================
   BLOCK: 06. Split feature (Experienced technicians / Common repairs)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media .media-frame { aspect-ratio: 4 / 3.4; }
.split h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 20px; }
.split > div > p { color: var(--text-body); font-size: 1.04rem; margin-bottom: 16px; }
.split-note { color: var(--text-muted); font-size: .98rem; }

/* check grid */
.check-label { font-family: var(--font-head); font-weight: 600; color: var(--text-strong); margin: 18px 0 14px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.check-item {
  display: flex; align-items: flex-start; gap: 12px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px;
}
.check-item .tick {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-gold-soft); color: var(--brand-gold-deep);
}
.check-item .tick svg { width: 15px; height: 15px; }
.check-item span { font-size: .94rem; font-weight: 600; color: var(--text-strong); line-height: 1.4; }

/* repair flow - numbered workflow (technicians section) */
.repair-flow { margin: 2px 0 22px; }
.flow-step {
  position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 18px;
  padding-bottom: 22px; align-items: center;
}
.flow-step:last-child { padding-bottom: 0; }
.flow-step:not(:last-child)::before {
  content: ""; position: absolute; left: 22px; top: 46px; bottom: -1px; width: 2px;
  background: linear-gradient(var(--line) 60%, transparent);
}
.flow-num {
  position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand-gold-soft);
  color: var(--brand-gold-deep); font-family: var(--font-head); font-weight: 800;
  font-size: 1rem; letter-spacing: .01em; box-shadow: 0 0 0 5px var(--surface-warm);
}
.flow-step .step-title {
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  color: var(--text-strong); line-height: 1.35;
}

/* common-repair issue cards (common-repairs section) */
.issue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 4px 0 20px; }
.issue-card {
  display: flex; align-items: center; gap: 16px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
.issue-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.issue-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--brand-ink); color: #fff; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease);
}
.issue-card:hover .issue-icon { transform: scale(1.06) rotate(-3deg); }
.issue-icon svg { width: 24px; height: 24px; }
.issue-text { min-width: 0; }
.issue-text h4 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--text-strong); line-height: 1.25; margin: 0; }
.issue-text p { font-size: .88rem; color: var(--text-muted); margin: 3px 0 0; line-height: 1.4; }
.issue-card:nth-child(1) .issue-icon { background: linear-gradient(145deg, #3B82F6, #2563EB); }
.issue-card:nth-child(2) .issue-icon { background: linear-gradient(145deg, #22C55E, #16A34A); }
.issue-card:nth-child(3) .issue-icon { background: linear-gradient(145deg, #FB923C, #F97316); }
.issue-card:nth-child(4) .issue-icon { background: linear-gradient(145deg, #22D3EE, #06B6D4); }
.issue-card:nth-child(5) .issue-icon { background: linear-gradient(145deg, #A855F7, #7C3AED); }
.issue-card:nth-child(6) .issue-icon { background: linear-gradient(145deg, #F472B6, #DB2777); }
.issue-card:nth-child(7) .issue-icon { background: linear-gradient(145deg, #64748B, #475569); }
.issue-card:nth-child(8) .issue-icon { background: linear-gradient(145deg, #A3E635, #65A30D); }
@media (max-width: 680px) { .issue-grid { grid-template-columns: 1fr; } }

/* Grid/flex children must allow shrinking below content min-content,
   otherwise aspect-ratio media inflates the track and cards overflow. */
.service-card, .brand-card, .part-card, .loc-card, .step-card, .review-card { min-width: 0; }

/* ============================================================
   BLOCK: 07. Services grid
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px;
  position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-icon {
  width: 56px; height: 56px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--brand-ink); color: #fff; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease);
}
.service-card:hover .service-icon { transform: scale(1.06) rotate(-3deg); }
.service-icon svg { width: 27px; height: 27px; }
.service-card h3 { font-size: 1.04rem; }
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card p { font-size: .92rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Colorful per-service icon tiles (order matches the cards) */
.services-grid .service-card:nth-child(1) .service-icon { background: linear-gradient(145deg, #3B82F6, #2563EB); }
.services-grid .service-card:nth-child(2) .service-icon { background: linear-gradient(145deg, #22C55E, #16A34A); }
.services-grid .service-card:nth-child(3) .service-icon { background: linear-gradient(145deg, #FB923C, #F97316); }
.services-grid .service-card:nth-child(4) .service-icon { background: linear-gradient(145deg, #A855F7, #7C3AED); }
.services-grid .service-card:nth-child(5) .service-icon { background: linear-gradient(145deg, #22D3EE, #06B6D4); }
.services-grid .service-card:nth-child(6) .service-icon { background: linear-gradient(145deg, #F472B6, #DB2777); }
.services-grid .service-card:nth-child(7) .service-icon { background: linear-gradient(145deg, #64748B, #475569); }
.services-grid .service-card:nth-child(8) .service-icon { background: linear-gradient(145deg, #A3E635, #65A30D); }
.services-grid .service-card:nth-child(9) .service-icon { background: linear-gradient(145deg, #FBBF24, #D97706); }
@media (min-width: 981px) { .services-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   BLOCK: 08. Brands grid
   ============================================================ */
.brands-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.brand-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px;
  text-align: center; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
  position: relative;
}
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-gold); }
.brand-card .media-frame { aspect-ratio: 3 / 2.4; margin-bottom: 18px; background: #fff; border-color: var(--line); }
.brand-card .media-frame img { object-fit: contain; padding: 14px; }
.brand-card h3 { font-size: 1.08rem; }
.brand-card h3 a { color: inherit; text-decoration: none; }
.brand-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ============================================================
   BLOCK: 09. Process steps - interactive stepper
   ============================================================ */
.process { max-width: 1000px; margin-inline: auto; }

/* clickable step rail */
.process-rail { position: relative; display: flex; justify-content: space-between; gap: 12px; margin-bottom: 36px; }
.process-track {
  position: absolute; top: 28px; left: 7%; right: 7%; height: 3px; border-radius: 3px;
  background: var(--line-strong);
}
.process-track-fill {
  display: block; height: 100%; width: 0%; border-radius: 3px;
  background: var(--brand-gold-bright); transition: width .4s var(--ease);
}
.process-step {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px;
  flex: 1; min-width: 0;
}
.process-dot {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 3px solid var(--line-strong); color: var(--text-muted);
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.process-step-label {
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--text-muted);
  transition: color var(--dur); text-align: center;
}
.process-step:hover .process-dot { border-color: var(--brand-gold); color: var(--brand-ink); }
/* completed + active states (set by JS) */
.process-step.is-done .process-dot { background: var(--brand-gold-soft); border-color: var(--brand-gold); color: var(--brand-gold-deep); }
.process-step.is-active .process-dot {
  background: var(--brand-gold-bright); border-color: var(--brand-gold-bright); color: var(--brand-ink);
  transform: scale(1.08); box-shadow: var(--shadow-gold);
}
.process-step.is-active .process-step-label { color: var(--text-strong); }

/* detail panel */
.process-panel { position: relative; }
.process-pane {
  display: flex; align-items: center; gap: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 36px 40px;
}
.process-pane[hidden] { display: none; }
.process-pane-num {
  flex-shrink: 0; width: 84px; height: 84px; border-radius: var(--r-lg); display: grid; place-items: center;
  background: linear-gradient(145deg, var(--brand-gold-bright), var(--brand-gold)); color: var(--brand-ink);
  font-family: var(--font-head); font-weight: 800; font-size: 2.1rem;
}
.process-pane h3 { font-size: 1.3rem; margin-bottom: 8px; }
.process-pane p { color: var(--text-body); font-size: 1.04rem; }
html.js .process-pane.is-active { animation: revealUp .45s var(--ease) both; }

/* prev / next controls */
.process-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.process-nav .btn { padding: 12px 22px; }
.process-nav .btn svg { width: 18px; height: 18px; }
.process-nav .btn:disabled { opacity: .4; pointer-events: none; transform: none; box-shadow: none; }
.process-count { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--text-muted); min-width: 52px; text-align: center; }
.process-count b { color: var(--text-strong); font-weight: 800; }

/* ============================================================
   BLOCK: 10. Locations - interactive explorer
   ============================================================ */
.locations { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 24px; max-width: 1080px; margin-inline: auto; align-items: stretch; }

/* selectable list */
.loc-list { display: flex; flex-direction: column; gap: 14px; }
.loc-tab {
  display: flex; align-items: center; gap: 16px; text-align: left; width: 100%;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid transparent; border-radius: var(--r-lg);
  padding: 18px 20px; transition: transform var(--dur) var(--ease);
}
.loc-tab:hover { transform: translateY(-2px); }
.loc-tab.is-active { border-color: var(--brand-gold); border-left-color: var(--brand-gold-bright); box-shadow: 0 12px 22px -12px rgba(21, 23, 28, 0.2); }
.loc-tab-pin {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--text-muted);
}
.loc-tab.is-active .loc-tab-pin { background: var(--brand-gold-soft); color: var(--brand-gold-deep); }
.loc-tab-pin svg { width: 22px; height: 22px; }
.loc-tab-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.loc-tab-text strong { font-family: var(--font-head); font-size: 1rem; color: var(--text-strong); }
.loc-tab-text small { font-size: .82rem; color: var(--text-muted); }
.loc-tab-arrow { margin-left: auto; flex-shrink: 0; width: 18px; height: 18px; color: var(--line-strong); }
.loc-tab-short { display: none; }
.loc-tab.is-active .loc-tab-arrow { color: var(--brand-gold-deep); }

/* detail panel */
.loc-detail { position: relative; }
.loc-pane {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.loc-pane[hidden] { display: none; }
html.js .loc-pane.is-active { animation: revealUp .4s var(--ease) both; }
.loc-map {
  position: relative; aspect-ratio: 16 / 8.5;
  background-color: #e8ecf3;
  background-image:
    radial-gradient(420px 220px at 50% 42%, rgba(245,184,0,.12), transparent 70%),
    linear-gradient(rgba(120,135,160,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,135,160,.16) 1px, transparent 1px);
  background-size: 100% 100%, 30px 30px, 30px 30px;
}
.loc-map::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(118deg, transparent 46%, rgba(255,255,255,.85) 46% 52%, transparent 52%),
    linear-gradient(28deg, transparent 62%, rgba(255,255,255,.7) 62% 66%, transparent 66%);
}
.loc-map-pin {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50% 50% 50% 0; transform-origin: center;
  background: var(--brand-gold-bright); rotate: -45deg;
  display: grid; place-items: center; box-shadow: 0 8px 18px rgba(245,184,0,.5);
}
.loc-map-pin svg { width: 22px; height: 22px; color: var(--brand-ink); rotate: 45deg; }
.loc-map-label {
  position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.92);
  border-radius: var(--r-pill); padding: 6px 14px; font-family: var(--font-head); font-weight: 600;
  font-size: .8rem; color: var(--text-strong); box-shadow: var(--shadow-sm);
}
.loc-pane-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.loc-pane-body h3 { font-size: 1.22rem; }
.loc-area { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: .92rem; margin-top: -6px; }
.loc-area svg { width: 15px; height: 15px; }
.loc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.loc-chip { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 13px; font-size: .8rem; font-weight: 600; color: var(--text-body); }
.loc-addr { color: var(--text-muted); font-size: .9rem; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
/* mobile: equal-size (full-width) action buttons in the locations explorer panel */
@media (max-width: 680px) {
  #locations .loc-pane .loc-actions { display: grid; grid-template-columns: 1fr; }
  #locations .loc-pane .loc-actions .btn { width: 100%; }
}

/* ============================================================
   BLOCK: 11. Testimonials slider - one-at-a-time carousel (all sizes)
   ============================================================ */
.slider { position: relative; max-width: 720px; margin-inline: auto; }
.slider-track { display: block; }
.review-card {
  display: none; text-align: center; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 44px 40px;
  flex-direction: column; gap: 18px; box-shadow: var(--shadow-sm);
}
.review-card.active { display: flex; }
html.js .review-card.active { animation: revealUp .4s var(--ease) both; }
.review-card .stars { justify-content: center; }
.review-card .stars svg { width: 22px; height: 22px; }
.review-card blockquote { font-size: 1.35rem; color: var(--text-strong); line-height: 1.5; font-weight: 500; }
.review-card .who { font-family: var(--font-head); font-weight: 700; color: var(--text-strong); font-size: .98rem; }

/* control row: prev · dots · next, centered, works on every screen */
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.slider-dots { display: flex; gap: 8px; justify-content: center; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); transition: width var(--dur), background var(--dur); }
.slider-dots button.active { width: 26px; border-radius: var(--r-pill); background: var(--brand-gold); }
.slider-arrow {
  width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--brand-ink); box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), border-color var(--dur);
}
.slider-arrow:hover { border-color: var(--brand-gold); transform: translateY(-2px); }
.slider-arrow svg { width: 20px; height: 20px; }

/* ============================================================
   BLOCK: 12. Parts shop - categories only (store on separate domain)
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card {
  display: flex; align-items: center; gap: 18px; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-gold); }
.cat-icon {
  flex-shrink: 0; width: 54px; height: 54px; border-radius: var(--r-md); display: grid; place-items: center;
  color: #fff; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease);
}
.cat-card:hover .cat-icon { transform: scale(1.06) rotate(-3deg); }
.cat-icon svg { width: 26px; height: 26px; }
.cat-text { min-width: 0; }
.cat-text h3 { font-size: 1.05rem; margin-bottom: 2px; }
.cat-text p { font-size: .85rem; color: var(--text-muted); }
.cat-arrow { margin-left: auto; flex-shrink: 0; width: 20px; height: 20px; color: var(--line-strong); transition: transform var(--dur) var(--ease), color var(--dur); }
.cat-card:hover .cat-arrow { transform: translateX(4px); color: var(--brand-gold-deep); }

/* category color coding */
.cat-card[data-c="screens"]   .cat-icon { background: linear-gradient(145deg, #3B82F6, #2563EB); }
.cat-card[data-c="batteries"] .cat-icon { background: linear-gradient(145deg, #22C55E, #16A34A); }
.cat-card[data-c="charging"]  .cat-icon { background: linear-gradient(145deg, #FB923C, #F97316); }
.cat-card[data-c="tools"]     .cat-icon { background: linear-gradient(145deg, #64748B, #475569); }
.cat-card[data-c="cases"]     .cat-icon { background: linear-gradient(145deg, #F472B6, #DB2777); }
.cat-card[data-c="cameras"]   .cat-icon { background: linear-gradient(145deg, #A855F7, #7C3AED); }

/* "store lives elsewhere" callout */
.shop-note {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin-top: 14px; font-size: .92rem; color: var(--text-muted);
}
.shop-note svg { width: 16px; height: 16px; color: var(--brand-gold-deep); }

/* ============================================================
   BLOCK: 13. FAQ accordion
   ============================================================ */
.faq-list { max-width: 860px; margin-inline: auto; display: grid; gap: 16px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: box-shadow var(--dur), border-color var(--dur); }
.faq-item[open] { box-shadow: var(--shadow-md); border-color: var(--brand-gold); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; text-align: left; font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--text-strong);
}
.faq-icon { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--brand-ink); transition: background var(--dur), transform var(--dur), color var(--dur); }
.faq-item[open] .faq-icon { background: var(--brand-gold-bright); transform: rotate(180deg); }
.faq-icon svg { width: 16px; height: 16px; }
.faq-a { overflow: hidden; }
.faq-a-inner { padding: 0 26px 24px; color: var(--text-body); font-size: 1rem; line-height: 1.65; }

/* ============================================================
   BLOCK: 14. Final CTA band
   ============================================================ */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(125deg, #FFCB1F 0%, #F5B800 55%, #EBA600 100%);
  padding: clamp(48px, 6vw, 80px); text-align: center; color: var(--brand-ink);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(620px 320px at 85% 120%, rgba(21,23,28,.16) 0%, transparent 60%),
              radial-gradient(520px 280px at 5% -20%, rgba(255,255,255,.45) 0%, transparent 60%);
}
.cta-band::after {
  content: ""; position: absolute; right: 34px; top: 28px; width: 150px; height: 84px; z-index: 0; opacity: .5;
  background-image: radial-gradient(rgba(21,23,28,.22) 1.6px, transparent 1.6px);
  background-size: 16px 16px; pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--brand-ink); font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 16px; }
.cta-band p { color: #3a3320; font-size: 1.1rem; max-width: 620px; margin: 0 auto 32px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============================================================
   BLOCK: 15. Footer
   ============================================================ */
.site-footer { background: var(--surface-dark); color: var(--text-inverse-soft); padding-block: 72px 28px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr 1fr; gap: 40px; align-items: start; }
.footer-brand img { height: 36px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-brand p { color: var(--text-inverse-soft); font-size: .94rem; max-width: 300px; }
.footer-col h3 { color: #fff; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 18px; }
.footer-col + .footer-col h3 { margin-top: 0; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: var(--text-inverse-soft); font-size: .94rem; transition: color var(--dur); }
.footer-col a:hover { color: var(--brand-gold); }
.footer-subhead { color: #fff; font-family: var(--font-head); font-size: 1.05rem; margin: 28px 0 18px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 40px; height: 40px; border-radius: var(--r-sm); background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: background var(--dur), transform var(--dur); }
.footer-social a:hover { background: var(--brand-gold); color: var(--brand-ink); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: .88rem; color: var(--text-inverse-soft); }

/* ============================================================
   16. Scroll reveal - transform-only (opacity stays 1) so content
   is NEVER hidden if animation can't run; real browsers get a
   smooth slide-up as elements enter the viewport.
   ============================================================ */
@keyframes revealUp { from { transform: translateY(20px); } to { transform: translateY(0); } }
html.js .reveal.in { animation: revealUp .6s var(--ease) both; }
html.js .reveal.in[data-delay="1"] { animation-delay: .09s; }
html.js .reveal.in[data-delay="2"] { animation-delay: .18s; }
html.js .reveal.in[data-delay="3"] { animation-delay: .27s; }

/* ============================================================
   17. Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .nav-menu, .nav-meta-text { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  /* mobile hero order: heading (above) → image → reviews → CTA → text */
  .hero-grid { display: flex; flex-direction: column; gap: 28px; }
  .hero-copy { display: contents; }
  .hero-media { order: 1; }
  .rating { order: 2; margin-top: 0; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
  .hero-actions { order: 3; margin-top: 0; }
  .hero-text { order: 4; }
  .split.reverse .split-media { order: 0; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .brands-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .locations { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 460px; }
}
@media (max-width: 680px) {
  .hero-title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .check-grid, .cat-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .brand-card { padding: 20px 16px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-dot { width: 44px; height: 44px; font-size: 1rem; }
  .process-step-label { font-size: .74rem; }
  .process-track { top: 22px; }
  .process-pane { flex-direction: column; text-align: center; padding: 28px 22px; gap: 18px; }
  .process-pane-num { width: 64px; height: 64px; font-size: 1.6rem; }
  .review-card { padding: 32px 24px; }
  .review-card blockquote { font-size: 1.15rem; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 0; }
  .footer-brand { margin-bottom: 8px; }
  .footer-social { margin-bottom: 32px; }
  /* footer accordion */
  .footer-col h3 {
    display: flex; align-items: center; justify-content: space-between; cursor: pointer;
    margin: 0; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1);
  }
  .footer-col h3.footer-subhead { margin-top: 0; padding-top: 16px; }
  .footer-col h3::after {
    content: ""; width: 8px; height: 8px; flex-shrink: 0; margin-left: 12px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform var(--dur) var(--ease);
  }
  .footer-col h3.open::after { transform: rotate(-135deg); }
  html.js .footer-col ul { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
  .footer-col ul { padding-bottom: 6px; }
}

/* ============================================================
   BLOCK: 18. Internal page hero (lighter than the home hero)
   Centered title + two-column copy/media row. Reuses .hero-actions,
   .media-frame, .eyebrow, .check-grid from the shared kit.
   ============================================================ */
.page-hero { padding-block: clamp(40px, 5vw, 76px); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(880px 460px at 82% -10%, var(--brand-gold-soft) 0%, transparent 58%),
    radial-gradient(640px 380px at -4% 112%, #FBFCFE 0%, transparent 60%);
}
.page-hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.page-hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.page-hero-copy .eyebrow { margin-bottom: 14px; }
.page-hero-copy p { color: var(--text-body); font-size: 1.05rem; margin-bottom: 14px; }
.page-hero-copy p.lead { font-size: 1.18rem; color: var(--text-strong); font-weight: 600; }
.page-hero-copy p strong { color: var(--text-strong); }
.page-hero-media .media-frame { aspect-ratio: 4 / 3.1; border-radius: var(--r-xl); }
.page-hero-media { position: relative; }

/* breadcrumb above the title */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-bottom: 18px; font-size: .86rem; color: var(--text-muted); }
.crumbs a { color: var(--text-muted); transition: color var(--dur); }
.crumbs a:hover { color: var(--brand-gold-deep); }
.crumbs svg { width: 14px; height: 14px; color: var(--line-strong); }
.crumbs .cur { color: var(--text-strong); font-weight: 600; }

/* ============================================================
   BLOCK: 19. Store finder card (location page - map + info card)
   ============================================================ */
.storefind { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 52px); align-items: stretch; }
.storefind .loc-map { border-radius: var(--r-lg); border: 1px solid var(--line); aspect-ratio: auto; min-height: 340px; }
.store-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: clamp(26px, 3vw, 36px); display: flex; flex-direction: column; }
.store-card .eyebrow { margin-bottom: 8px; }
.store-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.store-card > p { color: var(--text-muted); font-size: .96rem; margin-bottom: 8px; }
.store-rows { display: grid; gap: 2px; margin: 10px 0 22px; }
.store-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.store-row:first-child { border-top: none; }
.store-row .ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--brand-gold-soft); color: var(--brand-gold-deep); display: grid; place-items: center; }
.store-row .ic svg { width: 19px; height: 19px; }
.store-row b { display: block; font-family: var(--font-head); color: var(--text-strong); font-size: .98rem; line-height: 1.3; }
.store-row span { font-size: .9rem; color: var(--text-muted); }
.store-card .loc-actions { margin-top: auto; }
/* mobile: equal-size action buttons in the store finder card */
@media (max-width: 680px) {
  .store-card .loc-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .store-card .loc-actions .btn { width: 100%; }
}
@media (max-width: 430px) {
  .store-card .loc-actions { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOCK: 20. Numbered step list (diagnostic / process points)
   ============================================================ */
.steplist { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1000px; margin-inline: auto; }
.step-row {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
}
.step-row:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-gold); }
.step-row .step-no {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center;
  background: linear-gradient(145deg, var(--brand-ink-2), var(--brand-ink)); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 1.12rem;
}
.step-row h3 { font-size: 1.08rem; margin-bottom: 5px; }
.step-row p { font-size: .93rem; color: var(--text-muted); line-height: 1.55; }

/* ============================================================
   BLOCK: 21. Comparison columns (two-side approach panels)
   ============================================================ */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin-inline: auto; }
.compare-col { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 32px; box-shadow: var(--shadow-sm); }
.compare-col > h3 { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.compare-col .ctag { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.compare-col .ctag svg { width: 18px; height: 18px; }
.compare-col.is-simple .ctag { background: var(--success-soft); color: var(--success); }
.compare-col.is-complex .ctag { background: var(--brand-gold-soft); color: var(--brand-gold-deep); }
.compare-li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; font-size: .96rem; color: var(--text-body); }
.compare-li:not(:last-child) { border-bottom: 1px dashed var(--line); }
.compare-li svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; color: var(--brand-gold-deep); }

/* interactive screen self-check */
.compare-prompt { margin-top: 12px; font-family: var(--font-head); font-weight: 600; color: var(--text-muted); }
.compare[data-screen-check] { align-items: start; }
.compare[data-screen-check] .compare-col {
  font: inherit; text-align: left; width: 100%; cursor: pointer;
  border-width: 1.5px; position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur), opacity var(--dur);
}
.compare[data-screen-check] .compare-col::after {
  content: ""; position: absolute; top: 16px; right: 16px;
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong);
  transition: border-color var(--dur), background var(--dur);
}
.compare[data-screen-check] .compare-col:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.compare[data-screen-check] .compare-col.is-simple.is-selected { border-color: var(--success); }
.compare[data-screen-check] .compare-col.is-complex.is-selected { border-color: var(--brand-gold-bright); }
.compare[data-screen-check] .compare-col.is-simple.is-selected::after { border-color: var(--success); background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E") center / 13px no-repeat; }
.compare[data-screen-check] .compare-col.is-complex.is-selected::after { border-color: var(--brand-gold-bright); background: var(--brand-gold-bright) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315171C' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E") center / 13px no-repeat; }
.compare[data-screen-check].has-selection .compare-col:not(.is-selected) { opacity: .5; }
.compare-reco {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  margin-top: 0; transition: grid-template-rows var(--dur) var(--ease), opacity var(--dur), margin-top var(--dur);
}
.compare-reco > * { min-height: 0; overflow: hidden; }
.compare-col.is-selected .compare-reco { grid-template-rows: 1fr; opacity: 1; margin-top: 18px; }
.compare-reco-verdict { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--text-strong); margin: 18px 0 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.compare-reco-note { font-size: .92rem; line-height: 1.6; color: var(--text-body); margin: 0 0 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   BLOCK: 22. Info card grid (icon + title + body - index / capability tiles)
   ============================================================ */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin-inline: auto; }
.info-card {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand-gold); border-radius: var(--r-lg);
  padding: 30px 28px; position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.info-card .info-ic {
  width: 54px; height: 54px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--brand-ink); color: #fff; box-shadow: var(--shadow-sm); margin-bottom: 18px;
  transition: transform var(--dur) var(--ease);
}
.info-card:hover .info-ic { transform: scale(1.06) rotate(-3deg); }
.info-card .info-ic svg { width: 26px; height: 26px; }
.info-card h3 { font-size: 1.14rem; margin-bottom: 8px; }
.info-card h3 a { color: inherit; }
.info-card h3 a::after { content: ""; position: absolute; inset: 0; }
.info-card p { font-size: .95rem; color: var(--text-body); line-height: 1.6; }
.info-grid .info-card:nth-child(3n+1) .info-ic { background: linear-gradient(145deg, #3B82F6, #2563EB); }
.info-grid .info-card:nth-child(3n+2) .info-ic { background: linear-gradient(145deg, #A855F7, #7C3AED); }
.info-grid .info-card:nth-child(3n+3) .info-ic { background: linear-gradient(145deg, #22C55E, #16A34A); }

/* ============================================================
   BLOCK: 23. Static reviews grid (3-up, non-carousel)
   ============================================================ */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reviews-grid .review-card { display: flex; text-align: left; align-items: flex-start; padding: 30px 28px; gap: 14px; }
.reviews-grid .review-card .stars { justify-content: flex-start; }
.reviews-grid .review-card .stars svg { width: 18px; height: 18px; }
.reviews-grid .review-card blockquote { font-size: 1.04rem; font-weight: 500; line-height: 1.55; }

/* ============================================================
   BLOCK: 24. Booking form
   ============================================================ */
.book-wrap {
  max-width: 780px; margin-inline: auto; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px);
}
.book-head { text-align: center; max-width: 540px; margin: 0 auto 28px; }
.book-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 10px; }
.book-head p { color: var(--text-muted); font-size: .98rem; }
.book-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .86rem; color: var(--text-strong); }
.field label .req { color: var(--brand-gold-deep); }
.field input, .field select, .field textarea {
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 13px 15px; color: var(--text-strong); width: 100%;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field input::placeholder, .field textarea::placeholder { color: #aab0bc; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-gold); box-shadow: 0 0 0 3px var(--brand-gold-soft);
}
.field textarea { resize: vertical; min-height: 116px; }
.book-form .btn { margin-top: 6px; }
.book-ok {
  display: none; align-items: center; gap: 12px; grid-column: 1 / -1;
  background: var(--success-soft); border: 1px solid #b7e6c9; border-radius: var(--r-md);
  padding: 16px 18px; color: #136b3a; font-weight: 600;
}
.book-ok.show { display: flex; }
.book-ok svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ============================================================
   BLOCK: 24b. Sell / Trade-in page blocks
   ============================================================ */
/* offer form (image + form card) */
.offer-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(24px, 4vw, 44px); align-items: stretch; }
.offer-media { position: relative; }
.offer-media .media-frame { height: 100%; min-height: 380px; border-radius: var(--r-lg); }
.offer-form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: clamp(24px, 3vw, 34px); }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 2px; }
.radio-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: .9rem; color: var(--text-body);
  transition: border-color var(--dur), background var(--dur), color var(--dur);
}
.radio-chip input { width: auto; accent-color: var(--brand-gold-deep); }
.radio-chip:has(input:checked) { border-color: var(--brand-gold); background: var(--brand-gold-soft); color: var(--text-strong); }

/* device acceptance groups */
.accept-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.accept-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--text-strong);
  padding: 9px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill);
  background: #fff; cursor: pointer; transition: color var(--dur), background var(--dur), border-color var(--dur);
}
.accept-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--brand-gold-bright)); flex: none; }
.accept-chip:hover { border-color: var(--brand-ink); }
.accept-chip.is-active { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.accept-group.is-hidden { display: none; }
html.js .accept-group { animation: acceptIn .32s var(--ease) both; }
@keyframes acceptIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.accept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 40px) clamp(28px, 4vw, 56px); }
.accept-group h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--text-strong); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.accept-list { display: grid; gap: 11px; }
.accept-list li { display: flex; align-items: center; gap: 11px; font-size: .96rem; color: var(--text-body); }
.accept-list .chk { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-gold-soft); color: var(--brand-gold-deep); }
.accept-list .chk svg { width: 13px; height: 13px; }

/* process step cards (2×2) */
.proc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.proc-card { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.proc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.proc-card .n { flex-shrink: 0; width: 50px; height: 50px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--brand-ink); color: var(--brand-gold-bright); font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.proc-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.proc-card p { font-size: .96rem; color: var(--text-muted); line-height: 1.55; margin: 0; }

/* soft locations band */
.locate-band { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(120deg, var(--brand-gold-soft) 0%, var(--surface-2) 58%, #EEF4FB 100%); padding: clamp(40px, 5vw, 68px); text-align: center; }
.locate-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.locate-band p { color: var(--text-body); max-width: 560px; margin: 0 auto 28px; font-size: 1.04rem; }

/* ============================================================
   BLOCK: 24c. Locations hub - map directory tiles
   ============================================================ */
.text-link { color: var(--brand-gold-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.text-link:hover { color: var(--brand-ink); }

.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.loc-tile {
  --lc: var(--brand-gold); --lcd: var(--brand-gold-deep);
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.loc-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: color-mix(in srgb, var(--lc) 45%, var(--line)); }

/* stylised map banner */
.loc-map-banner {
  position: relative; height: 150px; flex-shrink: 0; overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--lc) 16%, #fff) 0%, color-mix(in srgb, var(--lc) 7%, #fff) 100%);
}
.loc-map-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--lc) 22%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--lc) 22%, transparent) 1px, transparent 1px);
  background-size: 30px 30px; opacity: .5;
}
.loc-map-banner::after {
  content: ""; position: absolute; left: -10%; right: -10%; top: 52%; height: 8px;
  background: color-mix(in srgb, var(--lc) 60%, #fff);
  border-radius: 6px; transform: rotate(-13deg);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lc) 12%, transparent);
}
.loc-route2 {
  position: absolute; left: -10%; right: 40%; top: 24%; height: 5px;
  background: color-mix(in srgb, var(--lc) 38%, #fff);
  border-radius: 6px; transform: rotate(9deg);
}
.loc-map-marker {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -60%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50% 50% 50% 0; rotate: -45deg;
  background: var(--lc); display: grid; place-items: center;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--lc) 45%, transparent);
}
.loc-map-marker svg { rotate: 45deg; width: 20px; height: 20px; color: #fff; }
.loc-map-marker::after {
  content: ""; position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--lc) 30%, transparent);
}
.loc-map-tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--lcd); font-family: var(--font-head); font-weight: 700;
  font-size: .8rem; padding: 6px 12px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
}
.loc-map-tag svg { width: 13px; height: 13px; }

/* per-district color accents on the home locations widget */
.locations .loc-tab.is-active { border-color: var(--lc, var(--brand-gold)); border-left-color: var(--lc, var(--brand-gold-bright)); }
.locations .loc-tab.is-active .loc-tab-pin { background: color-mix(in srgb, var(--lc, var(--brand-gold)) 16%, #fff); color: var(--lcd, var(--brand-gold-deep)); }
.locations .loc-pane .loc-map { background-color: color-mix(in srgb, var(--lc, #2D8DFE) 15%, #eef2f7); }
.locations .loc-pane .loc-map-pin { background: var(--lc, var(--brand-gold-bright)); box-shadow: 0 8px 18px color-mix(in srgb, var(--lc, var(--brand-gold)) 45%, transparent); }
.locations .loc-pane .loc-map-pin svg { color: #fff; }
.locations .loc-pane .loc-map-label { color: var(--lcd, var(--brand-gold-deep)); }
.locations .loc-pane .loc-chip { background: color-mix(in srgb, var(--lc, var(--brand-gold)) 12%, #fff); color: var(--lcd, var(--brand-gold-deep)); border-color: color-mix(in srgb, var(--lc, var(--brand-gold)) 30%, transparent); }

/* mobile: 3-up segmented selector on top, map + details right below */
@media (max-width: 1024px) {
  #locations .locations { display: flex; flex-direction: column; gap: 16px; }
  #locations .loc-list {
    order: -1; flex-direction: row; gap: 8px; padding: 0;
  }
  #locations .loc-tab {
    flex: 1 1 0; min-width: 0; justify-content: center; text-align: center;
    gap: 8px; padding: 13px 8px; border-left-width: 1px;
    border-bottom: 3px solid transparent;
  }
  #locations .loc-tab:hover { transform: none; }
  #locations .loc-tab.is-active {
    border-color: var(--line); border-left-color: var(--line);
    border-bottom-color: var(--lc, var(--brand-gold-bright));
  }
  #locations .loc-tab-pin { width: 30px; height: 30px; }
  #locations .loc-tab-pin svg { width: 17px; height: 17px; }
  #locations .loc-tab-text { display: none; }
  #locations .loc-tab-short {
    display: block; font-family: var(--font-head); font-weight: 700;
    font-size: .92rem; color: var(--text-strong); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  }
  #locations .loc-tab.is-active .loc-tab-short { color: var(--lcd, var(--brand-gold-deep)); }
  #locations .loc-tab-arrow { display: none; }
}
@media (max-width: 400px) {
  #locations .loc-tab { flex-direction: column; gap: 5px; padding: 11px 6px; }
  #locations .loc-tab-short { font-size: .82rem; }
}

/* body */
.loc-tile-body { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.loc-tile-body h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 12px; }
.loc-tile-body > p { color: var(--text-body); font-size: .94rem; line-height: 1.6; margin-bottom: 18px; }
.loc-feats { list-style: none; display: grid; gap: 9px; margin-bottom: 22px; }
.loc-feats li { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; color: var(--text-body); }
.loc-feats .fchk {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--lc) 16%, #fff); color: var(--lcd);
}
.loc-feats .fchk svg { width: 12px; height: 12px; }
.loc-tile-actions { margin-top: auto; display: grid; gap: 10px; }
.loc-tile-actions .btn { width: 100%; }
.loc-tile-actions .btn-view { background: var(--lc); color: #fff; box-shadow: var(--shadow-sm); }
.loc-tile-actions .btn-view:hover { filter: brightness(.94); }

/* split "process" step list - connected numbered cards */
.proc-list { position: relative; display: grid; gap: 14px; margin: 4px 0 22px; }
.proc-list::before {
  content: ""; position: absolute; left: 23px; top: 26px; bottom: 26px; width: 2px;
  background: linear-gradient(var(--brand-gold) 0%, var(--line-strong) 100%); z-index: 0;
}
.proc-item {
  position: relative; z-index: 1; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 18px; box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.proc-item:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.proc-num {
  width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--brand-ink); color: var(--brand-gold-bright);
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; letter-spacing: .01em;
}
.proc-title { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--text-strong); line-height: 1.35; margin: 0; }

/* ============================================================
   BLOCK: 25. Responsive - new internal-page blocks
   ============================================================ */
@media (max-width: 1024px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-media { order: -1; }
  .storefind { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-media { order: -1; }
  .offer-media .media-frame { min-height: 280px; }
  .proc-cards { grid-template-columns: 1fr; }
  .accept-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .steplist, .compare, .info-grid, .info-grid.cols-2, .book-form { grid-template-columns: 1fr; }
  .field.full, .book-form > .field { grid-column: 1 / -1; }
  .accept-grid { grid-template-columns: 1fr; }
  .accept-filter {
    flex-wrap: nowrap; justify-content: flex-start; gap: 8px;
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; scroll-snap-type: x proximity;
    padding-bottom: 4px;
  }
  .accept-filter::-webkit-scrollbar { display: none; }
  .accept-chip { flex: 0 0 auto; scroll-snap-align: start; }
}

/* ============================================================
   BLOCK: 25. Blog - archive + single post
   ============================================================ */
/* toolbar: search + category chips */
.blog-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; justify-content: space-between; margin-bottom: 40px; }
.blog-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.blog-chip {
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--text-body);
  padding: 9px 16px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: #fff;
  cursor: pointer; transition: all var(--dur) var(--ease); white-space: nowrap;
}
.blog-chip:hover { border-color: var(--brand-ink); }
.blog-chip.is-active { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.blog-search { position: relative; flex-shrink: 0; }
.blog-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; }
.blog-search input {
  width: 280px; max-width: 100%; padding: 11px 16px 11px 42px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: #fff; font-size: .92rem; color: var(--text-strong);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.blog-search input:focus { outline: none; border-color: var(--brand-gold); box-shadow: 0 0 0 3px var(--brand-gold-soft); }

/* category tag */
.post-tag { align-self: flex-start; display: inline-flex; align-items: center; font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: var(--r-pill); background: var(--brand-gold-soft); color: var(--brand-gold-deep); }
.post-tag.is-blue { background: #E7F0FF; color: #1F56BC; }
.post-tag.is-teal { background: #DBF5F0; color: #0A7A6D; }
.post-tag.is-violet { background: #EFE7FE; color: #6B3FD4; }

/* post meta line */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .86rem; color: var(--text-muted); }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

/* featured post */
.blog-featured { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(24px, 3vw, 44px); align-items: center; margin-bottom: 56px; }
.blog-featured .media-frame { aspect-ratio: 16 / 11; border-radius: var(--r-lg); height: 100%; }
.blog-featured .feat-body { display: flex; flex-direction: column; gap: 16px; }
.blog-featured h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; }
.blog-featured h2 a { color: inherit; text-decoration: none; }
.blog-featured h2 a:hover { color: var(--brand-gold-deep); }
.blog-featured p { color: var(--text-body); font-size: 1.04rem; line-height: 1.65; }
.feat-author { display: flex; align-items: center; gap: 12px; }
.feat-author .av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.feat-author .av-fallback { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-ink); color: var(--brand-gold-bright); font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.feat-author b { display: block; font-family: var(--font-head); font-size: .92rem; color: var(--text-strong); }

/* post grid */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.post-card .media-frame { aspect-ratio: 16 / 10; border-radius: 0; border: none; border-bottom: 1px solid var(--line); }
.post-card-body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 22px 24px 26px; }
.post-card h3 { font-size: 1.18rem; line-height: 1.3; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--brand-gold-deep); }
.post-card p { font-size: .94rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.post-card .post-meta { margin-top: 2px; padding-top: 14px; border-top: 1px solid var(--line); }

/* pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 52px; }
.pagination a, .pagination span {
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: .94rem; color: var(--text-body);
  border: 1px solid var(--line-strong); background: #fff; transition: all var(--dur) var(--ease);
}
.pagination a:hover { border-color: var(--brand-ink); color: var(--brand-ink); }
.pagination .is-current { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.pagination .is-disabled { opacity: .4; pointer-events: none; }
.pagination svg { width: 16px; height: 16px; }

/* ---- single post ---- */
.post-head { max-width: 800px; margin: 0 auto; text-align: center; }
.post-head h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.12; margin: 18px 0 22px; text-wrap: balance; }
.post-byline { display: inline-flex; align-items: center; gap: 14px; }
.post-byline .av, .post-byline .av-fallback { width: 48px; height: 48px; border-radius: 50%; }
.post-byline .av { object-fit: cover; border: 1px solid var(--line); }
.post-byline .av-fallback { display: grid; place-items: center; background: var(--brand-ink); color: var(--brand-gold-bright); font-family: var(--font-head); font-weight: 700; }
.post-byline .by-text { text-align: left; }
.post-byline b { display: block; font-family: var(--font-head); font-size: .98rem; color: var(--text-strong); }
.post-cover { max-width: 1000px; margin: 44px auto 0; }
.post-cover .media-frame { aspect-ratio: 16 / 8; border-radius: var(--r-xl); }

/* article layout: TOC aside + prose */
.post-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); max-width: 1080px; margin: 0 auto; align-items: start; }
.post-toc { position: sticky; top: 100px; }
.post-toc-label { font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.post-toc ul { list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.post-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: .9rem; color: var(--text-muted); transition: color var(--dur), border-color var(--dur); }
.post-toc a:hover { color: var(--text-strong); }
.post-toc a.is-active { color: var(--brand-gold-deep); border-left-color: var(--brand-gold); font-weight: 600; }

/* prose */
.prose { font-size: 1.075rem; line-height: 1.8; color: var(--text-body); }
.prose > * + * { margin-top: 1.35em; }
.prose h2 { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--text-strong); line-height: 1.25; margin-top: 2em; scroll-margin-top: 100px; }
.prose h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.28rem; color: var(--text-strong); margin-top: 1.6em; scroll-margin-top: 100px; }
.prose p { color: var(--text-body); }
.prose a { color: var(--brand-gold-deep); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.prose strong { color: var(--text-strong); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .5em; }
.prose li { padding-left: .3em; }
.prose li::marker { color: var(--brand-gold-deep); }
.prose figure { margin: 2.2em 0; }
.prose figure .media-frame { aspect-ratio: 16 / 9; border-radius: var(--r-lg); }
.prose figcaption { margin-top: 12px; text-align: center; font-size: .88rem; color: var(--text-muted); }
.prose blockquote {
  margin: 2em 0; padding: 28px 32px; border-radius: var(--r-lg);
  background: var(--surface-warm); border-left: 4px solid var(--brand-gold);
  font-family: var(--font-head); font-weight: 500; font-size: 1.3rem; line-height: 1.45; color: var(--text-strong);
}
.prose blockquote p { margin: 0; }
.prose blockquote cite { display: block; margin-top: 14px; font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: .92rem; color: var(--text-muted); }

/* router quick-links directory (home "Repairs We Do") */
.repair-router { max-width: 860px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.repair-router-row { display: flex; align-items: flex-start; gap: 20px; padding: 26px 28px; }
.repair-router-row + .repair-router-row { border-top: 1px solid var(--line); }
.repair-router-ic { flex-shrink: 0; width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--brand-ink); color: var(--brand-gold-bright); box-shadow: var(--shadow-sm); }
.repair-router-ic svg { width: 24px; height: 24px; }
.repair-router-body { flex: 1; min-width: 0; }
.repair-router-label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--text-strong); margin-bottom: 4px; }
.repair-router-body > p { color: var(--text-muted); font-size: .95rem; margin: 0 0 14px; max-width: 60ch; }
.router-links { display: flex; flex-wrap: wrap; gap: 10px; }
.router-links a { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 600; font-size: .84rem; color: var(--text-strong); padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface-2); transition: border-color var(--dur), background var(--dur), color var(--dur); }
.router-links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-gold); flex-shrink: 0; }
.router-links a:hover { border-color: var(--brand-gold); background: var(--brand-gold); color: var(--brand-ink); }
.router-links a:hover::before { background: var(--brand-ink); }
@media (max-width: 620px) {
  .repair-router-row { gap: 16px; padding: 22px 20px; }
}

/* why-choose colorful stat cards */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin-inline: auto; }
.why-card { --c: var(--brand-gold); position: relative; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 30px 28px; transition: transform var(--dur) var(--ease), box-shadow var(--dur); }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.why-card-ic { width: 54px; height: 54px; border-radius: var(--r-md); display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); margin-bottom: 20px; }
.why-card-ic svg { width: 26px; height: 26px; }
.why-card-stat { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.6rem); line-height: 1; color: var(--c); }
.why-card h3 { font-size: 1.15rem; margin: 12px 0 10px; }
.why-card p { color: var(--text-body); font-size: .96rem; line-height: 1.6; margin: 0; }
.why-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; max-width: 1000px; margin: 32px auto 0; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.why-foot p { margin: 0; color: var(--text-muted); font-size: .96rem; }
.why-foot .btn { flex-shrink: 0; }
.why-grid-wrap { max-width: 1000px; margin-inline: auto; }
.why-swipe { display: none; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 0 6px; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-ink); }
.why-swipe svg { width: 18px; height: 18px; animation: costSwipe 1.2s var(--ease) infinite; }
@media (max-width: 860px) {
  .why-grid { display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-inline: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 8px 4px 20px; margin-block: -8px; max-width: 100%; }
  .why-grid::-webkit-scrollbar { display: none; }
  .why-grid::after { content: ""; flex: 0 0 8px; }
  .why-card { scroll-snap-align: start; flex: 0 0 82%; max-width: 320px; }
  .why-swipe { display: flex; }
}

/* sell / trade-in estimator */
.trade-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 52px); align-items: center; max-width: 980px; margin-inline: auto; }
.trade-copy p { color: var(--text-body); font-size: 1.05rem; line-height: 1.65; margin: 0 0 14px; }
.trade-est { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); padding: clamp(24px, 3vw, 34px); }
.trade-est-head { margin-bottom: 22px; }
.trade-est-badge { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-gold-deep); background: var(--brand-gold-soft); padding: 5px 11px; border-radius: var(--r-pill); margin-bottom: 12px; }
.trade-est-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--text-strong); margin: 0; letter-spacing: -.01em; }
.trade-est-sub { font-size: .92rem; color: var(--text-muted); margin: 6px 0 0; }
.trade-field { margin-bottom: 18px; }
.trade-field > label { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 11px; }
.trade-step-n { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: var(--r-pill); background: var(--brand-ink); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: 0; }

/* device tiles */
.trade-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.trade-tile { --c: var(--brand-ink); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: #fff; cursor: pointer; transition: border-color var(--dur), background var(--dur), transform var(--dur), box-shadow var(--dur); }
.trade-tile:hover { border-color: var(--c); transform: translateY(-2px); }
.trade-tile-ic { display: inline-flex; color: var(--text-muted); transition: color var(--dur); }
.trade-tile-ic svg { width: 26px; height: 26px; }
.trade-tile-name { font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--text-strong); }
.trade-tile.is-active { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, #fff); box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 22%, transparent); }
.trade-tile.is-active .trade-tile-ic { color: var(--c); }

.trade-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.trade-chip { --c: var(--brand-ink); display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--text-strong); padding: 9px 15px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: #fff; cursor: pointer; transition: border-color var(--dur), background var(--dur), color var(--dur); }
.trade-chip:hover { border-color: var(--c); }
.trade-chip.is-active { background: color-mix(in srgb, var(--c) 12%, #fff); border-color: var(--c); color: var(--c); }
.trade-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }

.trade-result { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding: 20px 22px; border-radius: var(--r-lg); background: linear-gradient(135deg, #FFCB1F 0%, #F5B800 55%, #EBA600 100%); transition: transform .2s var(--ease); }
.trade-result.is-bumped { transform: scale(1.025); }
.trade-result-label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: color-mix(in srgb, var(--brand-ink) 72%, transparent); margin-bottom: 3px; }
.trade-result-value { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem, 2.8vw, 1.85rem); color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.trade-result-ic { display: inline-flex; color: color-mix(in srgb, var(--brand-ink) 78%, transparent); flex: none; }
.trade-result-ic svg { width: 34px; height: 34px; }
.trade-note { font-size: .82rem; color: var(--text-muted); margin: 14px 0 0; }
@media (max-width: 780px) {
  .trade-wrap { display: flex; flex-direction: column; }
  .trade-wrap .trade-est { order: -1; }
}
@media (max-width: 460px) {
  .trade-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* repair cost interactive guide */
.section-subnote { font-family: var(--font-head); font-weight: 600; color: var(--text-strong); margin-top: 8px; }
.cost-guide { max-width: 820px; margin-inline: auto; }
.cost-chips { display: flex; gap: 12px; justify-content: safe center; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-inline: 34px; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 24px 34px 44px; margin-block: -14px; max-width: 100%; }
.cost-chips::-webkit-scrollbar { display: none; }
.cost-chips::after { content: ""; flex: 0 0 30px; }
.cost-chip { --c: #888; scroll-snap-align: start; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 132px; padding: 20px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: #fff; cursor: pointer; transition: border-color var(--dur), background var(--dur), color var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur); }
.cost-chip:hover { transform: translateY(-3px); border-color: var(--c); }
.cost-chip.is-active { background: color-mix(in srgb, var(--c) 8%, #fff); border-color: var(--c); box-shadow: var(--shadow-md); }
.cost-chip-ic { width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); transition: background var(--dur), color var(--dur), transform var(--dur) var(--ease); }
.cost-chip-ic svg { width: 24px; height: 24px; }
.cost-chip.is-active .cost-chip-ic { background: var(--c); color: #fff; transform: scale(1.05); }
.cost-chip-label { font-family: var(--font-head); font-weight: 600; font-size: .86rem; color: var(--text-strong); text-align: center; line-height: 1.25; }
.cost-chip.is-active .cost-chip-label { color: var(--text-strong); }
.cost-swipe { display: none; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 0 6px; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-ink); }
.cost-swipe svg { width: 18px; height: 18px; animation: costSwipe 1.2s var(--ease) infinite; }
@keyframes costSwipe { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.cost-result { --c: var(--brand-gold); display: flex; align-items: stretch; justify-content: center; gap: 0; margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); overflow: hidden; }
.cost-stat { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 30px 24px; text-align: center; }
.cost-stat-divider { width: 1px; background: var(--line); flex-shrink: 0; }
.cost-stat:first-child { background: color-mix(in srgb, var(--c) 9%, #fff); transition: background var(--dur); }
.cost-stat-label { font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-gold-deep); }
.cost-stat:first-child .cost-stat-label { color: var(--c); transition: color var(--dur); }
.cost-stat-value { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--brand-ink); }
.cost-stat:first-child .cost-stat-value { color: var(--c); transition: color var(--dur); }
html.js .cost-stat-value { transition: opacity var(--dur); }
.cost-note { text-align: center; font-size: .84rem; color: var(--text-muted); margin: 16px 0 0; }
@media (max-width: 640px) {
  .cost-result { flex-direction: column; }
  .cost-stat-divider { width: auto; height: 1px; }
  .cost-stat { padding: 22px 18px; }
}
@media (max-width: 780px) {
  #repair-costs .container { display: flex; flex-direction: column; }
  #repair-costs .section-head { order: 1; }
  #repair-costs .cost-guide { order: 2; margin-top: var(--space-8); margin-inline: 0; width: 100%; max-width: 100%; align-self: stretch; }
  #repair-costs .cost-intro { order: 3; }
  #repair-costs .cost-cta { order: 4; }
  .cost-chips { justify-content: flex-start; }
  .cost-chip { min-width: 118px; padding: 16px 12px; }
  .cost-swipe { display: flex; }
}
@media (min-width: 781px) {
  .cost-chips { justify-content: center; overflow: visible; padding: 24px 2px 30px; }
  .cost-chips::after { content: none; }
  .cost-chip { flex: 1 1 0; min-width: 0; padding: 20px 12px; }
}
@media (max-width: 620px) {
  .repair-router-row { gap: 16px; padding: 22px 20px; }
}

/* legal / content page "last updated" line */
.legal-updated { margin-top: 18px; display: flex; width: fit-content; margin-inline: auto; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .02em; color: var(--text-muted); padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-warm); }

/* share row */
.post-share { display: flex; align-items: center; gap: 12px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-share span { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--text-strong); }
.post-share .sh-btns { display: flex; gap: 10px; }
.post-share a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--text-body); transition: all var(--dur) var(--ease); }
.post-share a:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.post-share svg { width: 18px; height: 18px; }

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured .media-frame { aspect-ratio: 16 / 9; }
  .post-layout { grid-template-columns: 1fr; }
  .post-toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .post-toc ul { border-left: none; grid-auto-flow: row; }
}
@media (max-width: 680px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-search input { width: 100%; }
  .blog-search { width: 100%; order: 2; }
  .blog-toolbar { gap: 18px; }
}

/* ============================================================
   BLOCK: 26. Contact location cards + About stats + value grid
   ============================================================ */
.cloc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cloc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 28px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur); }
.cloc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.cloc-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cloc-card-head .pin { flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--brand-gold-soft); color: var(--brand-gold-deep); }
.cloc-card-head .pin svg { width: 20px; height: 20px; }
.cloc-card-head h3 { font-size: 1.12rem; line-height: 1.25; }
.cloc-rows { display: grid; gap: 13px; margin-bottom: 22px; }
.cloc-row { display: flex; gap: 11px; align-items: flex-start; font-size: .92rem; color: var(--text-body); line-height: 1.45; }
.cloc-row svg { flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px; color: var(--brand-gold-deep); }
.cloc-row a { color: inherit; }
.cloc-row a:hover { color: var(--brand-gold-deep); }
.cloc-card .btn { margin-top: auto; width: 100%; }

/* About - stats band */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); background: var(--brand-ink); border-radius: var(--r-xl); padding: clamp(36px, 4vw, 56px) clamp(28px, 4vw, 52px); }
.stat-band .stat { text-align: center; }
.stat-band .stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.1rem); color: var(--brand-gold-bright); line-height: 1; white-space: nowrap; }
.stat-band .stat-lbl { margin-top: 10px; font-size: .95rem; color: var(--text-inverse-soft); }

/* Contact - "ways to reach" method cards */
.reach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.reach-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 28px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur); }
.reach-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.reach-icon { width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center; color: #fff; margin-bottom: 18px; }
.reach-icon svg { width: 26px; height: 26px; }
.reach-card:nth-child(1) .reach-icon { background: linear-gradient(145deg, #3B82F6, #2563EB); }
.reach-card:nth-child(2) .reach-icon { background: linear-gradient(145deg, #22C55E, #16A34A); }
.reach-card:nth-child(3) .reach-icon { background: linear-gradient(145deg, #FB923C, #F97316); }
.reach-card:nth-child(4) .reach-icon { background: linear-gradient(145deg, #A855F7, #7C3AED); }
.reach-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.reach-card p { font-size: .93rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.reach-link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--brand-gold-deep); }
.reach-link svg { width: 15px; height: 15px; transition: transform var(--dur); }
.reach-card:hover .reach-link svg { transform: translateX(3px); }

@media (max-width: 1024px) { .reach-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reach-grid { grid-template-columns: 1fr; } }

/* FAQ groups (faq.html) */
.faq-group + .faq-group { margin-top: 44px; }
.faq-group-title { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--text-strong); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--brand-gold); display: inline-block; }
.faq-group { scroll-margin-top: 150px; }

/* FAQ jump nav (sticky category pills) */
.faq-jump {
  position: sticky; top: calc(var(--header-h) + 8px); z-index: 20;
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; padding: 12px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--r-pill);
}
.faq-jump a {
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--text-body);
  padding: 8px 16px; border-radius: var(--r-pill); transition: background var(--dur), color var(--dur); white-space: nowrap;
}
.faq-jump a:hover { background: var(--surface-2); color: var(--brand-ink); }
.faq-jump a.is-active { background: var(--brand-ink); color: #fff; }

@media (max-width: 680px) {
  .faq-jump { flex-nowrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); }
  .faq-jump a { flex: none; }
}

@media (max-width: 1024px) {
  .cloc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .stat-band { padding: 28px 18px; gap: 12px; }
  .stat-band .stat-num { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .stat-band .stat-lbl { font-size: .8rem; }
}

/* ============================================================
   BLOCK: 27. Helpers - replaces former inline styles
   ============================================================ */
/* compact nav CTA button */
.btn-nav { padding: 11px 20px; font-size: .9rem; }

/* per-district accent tokens (locations widget + map tiles) */
.acc-gold { --lc: var(--brand-gold); --lcd: var(--brand-gold-deep); }
.acc-blue { --lc: #2F6BD8; --lcd: #1F56BC; }
.acc-teal { --lc: #0E9F8E; --lcd: #0A7A6D; }

/* centered intro lead under a page-hero h1 */
.lead-center { max-width: 680px; margin-inline: auto; text-align: center; }

/* narrow centered form column */
.form-narrow { max-width: 720px; margin-inline: auto; }

/* section padding overrides */
.pt-sm { padding-top: 8px; }
.pb-0 { padding-bottom: 0; }

/* hero trust badge anchored to the right edge */
.hero-badge.badge-right { left: auto; right: -14px; bottom: -18px; }

/* about - values grid (2-up, capped width) */
.issue-grid.is-2up { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin-inline: auto; }
.issue-grid.is-spaced { margin-top: 24px; }

/* tinted media-frame placeholders */
.media-frame.tint-violet { background: linear-gradient(150deg, #E7E1FF, #C9BEFF); border-color: transparent; }
.media-frame.tint-gold { background: linear-gradient(150deg, #FFE9A8, #FFC400); border-color: transparent; }
.ph.on-violet { color: #5B4DDB; }
.ph.on-ink { color: var(--brand-ink); }

/* inline radio group (booking forms) */
.radio-line { display: flex; gap: var(--space-6); padding-top: 2px; }
.radio-line .radio-opt { display: flex; align-items: center; gap: var(--space-2); font-weight: 500; font-family: var(--font-body); }
.radio-line .radio-opt input { width: auto; }

/* centered breadcrumb + spaced article tag (single post) */
.crumbs.is-center { justify-content: center; }
.post-head .post-tag { margin-top: 18px; }

  /* heading-level fix: issue-card titles are h3 semantically but keep
     the h4 visual size (added so markup can use the correct level) */
  .issue-text h3 {
    font-family: var(--font-head); font-size: 1rem; font-weight: 700;
    color: var(--text-strong); line-height: 1.25; margin: 0;
  }
}

/* ============================================================
   PART 6 - LIGHT-ONLY PAGE CANVAS (unlayered = wins every layer)
   This is a light theme. Declare color-scheme:light so browsers/OS in
   dark mode don't paint a dark viewport canvas behind untinted sections,
   and pin the page background regardless of cascade-layer ordering.
   ============================================================ */
:root { color-scheme: light; }
html { background-color: var(--surface); }
body { background-color: var(--surface); }


/* ============================================================
   PART 7 - closes framework deviations #3-#6 (index)
   ============================================================ */
@layer urphone {
  /* #4 - per-item accent tokens (replace inline style="--c:...") */
  .accent-blue   { --c: #2A6FDB; }
  .accent-green  { --c: #1F8A5B; }
  .accent-amber  { --c: #E08A00; }
  .accent-violet { --c: #7A4DD8; }
  .accent-cyan   { --c: #0E9BB8; }
  .accent-ink    { --c: #15171C; }
  .accent-red    { --c: #D64545; }

  /* #3 - scroll reveal wired to the base [data-reveal]/.is-visible hook */
  html.js [data-reveal].is-visible { animation: revealUp .6s var(--ease) both; }
  html.js [data-reveal].is-visible[data-delay="1"] { animation-delay: .09s; }
  html.js [data-reveal].is-visible[data-delay="2"] { animation-delay: .18s; }
  html.js [data-reveal].is-visible[data-delay="3"] { animation-delay: .27s; }

  /* #6 - native <summary> markers off (mobile drawer groups + FAQ) */
  .mobile-group > summary, .faq-q { list-style: none; cursor: pointer; }
  .mobile-group > summary::-webkit-details-marker,
  .faq-q::-webkit-details-marker { display: none; }
  .mobile-group > summary::marker, .faq-q::marker { content: ""; }
  html.js .faq-item[open] .faq-a-inner { animation: revealUp .28s var(--ease) both; }
}


/* ============================================================
   PART 8 - Screen self-check chooser (screen-repair) - compact,
   both options visible on every screen; result panel swaps below.
   Driven by the base data-tabs behavior.
   ============================================================ */
@layer urphone {
  .screen-check { max-width: 840px; margin-inline: auto; }
  .sc-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .sc-opt {
    display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
    background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--r-lg);
    padding: 18px 20px; cursor: pointer;
    transition: border-color var(--dur), background var(--dur), box-shadow var(--dur), transform var(--dur) var(--ease);
  }
  .sc-opt:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
  .sc-opt-ic {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: var(--r-md);
    display: grid; place-items: center; background: var(--surface-2); color: var(--text-muted);
    transition: background var(--dur), color var(--dur);
  }
  .sc-opt-ic svg { width: 24px; height: 24px; }
  .sc-opt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .sc-opt-title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--text-strong); line-height: 1.25; }
  .sc-opt-sub { font-size: .85rem; color: var(--text-muted); line-height: 1.3; }
  .sc-opt[aria-selected="true"].is-simple { border-color: var(--success); background: var(--success-soft); }
  .sc-opt[aria-selected="true"].is-simple .sc-opt-ic { background: var(--success); color: #fff; }
  .sc-opt[aria-selected="true"].is-complex { border-color: var(--brand-gold); background: var(--brand-gold-soft); }
  .sc-opt[aria-selected="true"].is-complex .sc-opt-ic { background: var(--brand-gold-bright); color: var(--brand-ink); }

  .sc-result {
    margin-top: 16px; background: #fff; border: 1px solid var(--line);
    border-top: 4px solid var(--brand-gold); border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm); padding: clamp(22px, 3vw, 30px);
  }
  .sc-result.is-simple { border-top-color: var(--success); }
  .sc-result[hidden] { display: none; }
  html.js .sc-result:not([hidden]) { animation: revealUp .3s var(--ease) both; }
  .sc-result-badge {
    display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: .78rem;
    letter-spacing: .04em; text-transform: uppercase; padding: 7px 14px; border-radius: var(--r-pill);
    background: var(--brand-gold-soft); color: var(--brand-gold-deep);
  }
  .sc-result.is-simple .sc-result-badge { background: var(--success-soft); color: var(--success); }
  .sc-list { display: grid; gap: 11px; margin: 18px 0; }
  .sc-list li { display: flex; align-items: flex-start; gap: 11px; font-size: .98rem; color: var(--text-body); line-height: 1.5; list-style: none; }
  .sc-list li span { max-width: none; }
  .sc-list svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; color: var(--brand-gold-deep); }
  .sc-result.is-simple .sc-list svg { color: var(--success); }
  .sc-note { color: var(--text-muted); font-size: .94rem; line-height: 1.6; margin: 0 0 20px; max-width: none; }
  @media (max-width: 560px) {
    .sc-opt { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 15px; }
  }
}


/* ============================================================
   PART 9 - Article TOC (legal-template / blog-post) as a native
   <details>: collapsible sticky "On this page" dropdown on mobile,
   always-open sidebar list on desktop.
   ============================================================ */
@media (max-width: 1024px) {
  .post-toc {
    position: sticky; top: var(--header-h); z-index: 30;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
    box-shadow: var(--shadow-sm); margin-bottom: 24px; padding: 0; overflow: hidden;
  }
  .post-toc > summary.post-toc-label {
    list-style: none; cursor: pointer; display: flex; align-items: center;
    justify-content: space-between; gap: 12px; margin: 0; padding: 15px 18px;
    font-size: .8rem; letter-spacing: .08em; color: var(--text-strong);
  }
  .post-toc > summary::-webkit-details-marker { display: none; }
  .post-toc > summary::marker { content: ""; }
  .toc-caret {
    flex-shrink: 0; width: 8px; height: 8px; margin-top: -3px;
    border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg); transition: transform var(--dur) var(--ease);
  }
  .post-toc[open] > summary .toc-caret { transform: rotate(-135deg); margin-top: 2px; }
  .post-toc[open] > summary.post-toc-label { border-bottom: 1px solid var(--line); }
  .post-toc:not([open]) > ul { display: none; }
  .post-toc[open] > ul {
    display: block; border-left: 0; margin: 0; padding: 6px;
    max-height: 55vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .post-toc > ul li { padding: 0; max-width: none; }
  .post-toc a {
    display: block; margin-left: 0; border-left: 0; padding: 11px 12px;
    border-radius: var(--r-sm); font-size: .95rem; color: var(--text-body);
  }
  .post-toc a:hover { background: var(--surface-2); color: var(--text-strong); }
  .post-toc a.is-active { background: var(--brand-gold-soft); color: var(--brand-gold-deep); font-weight: 600; }
}
@media (min-width: 1025px) {
  .post-toc > summary.post-toc-label { list-style: none; cursor: default; }
  .post-toc > summary::-webkit-details-marker { display: none; }
  .post-toc > summary::marker { content: ""; }
  .toc-caret { display: none; }
  .post-toc > ul { display: block !important; }
}
