/*
 * Dualcom Solutions: precision-hardware design system.
 * Materials: Graphite (bench mat) · Warm White (daylight) · Signal Blue (live wire + accents).
 */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --graphite: #17191d;
  --graphite-hi: #1f232a;
  --graphite-edge: rgba(255, 255, 255, 0.14);
  --white: #ffffff;
  --white-dim: #eef0f4;
  --paper: #f5f6f9;
  --ink: #17191d;
  --ink-2: #43474f;
  --dim: rgba(255, 255, 255, 0.78);
  --blue: #126df9;
  --blue-deep: #0b54c0;
  --blue-press: #0a4aab;
  --accent: #4f8df9;
  --accent-ink: #0b54c0;
  --accent-line: rgba(18, 109, 249, 0.4);
  --line: rgba(23, 25, 29, 0.14);
  --line-strong: rgba(23, 25, 29, 0.32);

  --midnight: #060a1c;
  --grad-dark: linear-gradient(165deg, #060a1c 0%, #0a1a52 58%, #0d3fae 135%);
  --grad-band: linear-gradient(165deg, #0a1a52 0%, #126df9 100%);
  --grad-footer: linear-gradient(180deg, #060a1c 0%, #0a1f66 130%);
  --grad-nav: linear-gradient(180deg, #060a1c 0%, #0a1a52 100%);

  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --display: clamp(2.6rem, 6vw, 5.25rem);
  --h2: clamp(1.9rem, 3.6vw, 3.1rem);
  --h3: clamp(1.2rem, 1.8vw, 1.45rem);
  --lede: clamp(1.12rem, 1.5vw, 1.3rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space-section: clamp(4.5rem, 9vw, 8rem);
  --shell: min(1240px, 92vw);

  --z-peek: 2;
  --z-header: 40;
  --z-nav: 50;
  --z-skip: 60;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-weight: 420;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.06;
  font-weight: 640;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 { font-size: var(--display); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); letter-spacing: -0.012em; line-height: 1.25; }

p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-press); }

ul, ol, dl, figure { margin: 0; padding: 0; }
li { list-style: none; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--blue); color: #fff; }

.site-shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: var(--z-skip);
  padding: 0.7rem 1.2rem;
  background: var(--blue);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 560;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Drawer label (the one named kicker system) ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-ink);
  max-width: none;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--blue);
  flex: none;
}

/* ---------- Bench rule ---------- */

.bench-rule {
  width: 64px;
  height: 2px;
  border: 0;
  margin: 0 0 1.6rem;
  background: var(--blue);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 580;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.button:active { transform: translateY(1px); }

.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-deep); color: #fff; }

.button-secondary { background: transparent; color: inherit; border-color: currentColor; }
.button-secondary:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

.button-invert { background: var(--white); color: var(--ink); }
.button-invert:hover { background: var(--graphite); color: var(--white); }

.button .arrow { transition: transform 0.25s var(--ease); }
.button:hover .arrow { transform: translateX(4px); }

.text-link,
.text-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 580;
  text-decoration: none;
  color: var(--blue-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.text-link:hover, .text-action:hover { color: var(--blue-press); }

.button-row { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--midnight);
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(3, 6, 18, 0.45);
}

/* Pages that open with a gradient hero: the bar disappears into the hero, frosts in on scroll */
.has-dark-hero .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 0;
}
.has-dark-hero .site-header.is-scrolled {
  background: rgba(6, 10, 28, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(3, 6, 18, 0.45);
}
/* backdrop-filter turns the header into the containing block for fixed children,
   which would trap the mobile nav overlay inside it; disable it while the menu is open */
body.nav-locked .site-header,
body.has-dark-hero.nav-locked .site-header.is-scrolled {
  backdrop-filter: none;
  background: transparent;
  box-shadow: none;
}
.has-dark-hero .hero-gradient-inner { padding-top: calc(clamp(4.5rem, 12vh, 8rem) + 80px); }
.has-dark-hero .page-hero--gradient .subpage-copy { padding-top: calc(clamp(4rem, 10vw, 7rem) + 80px); }
.has-dark-hero .contact-hero { padding-top: calc(clamp(3.5rem, 7vw, 5.5rem) + 80px); }

.nav-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 80px;
}

.site-logo { display: inline-flex; flex: none; }
.site-logo img { width: clamp(148px, 14vw, 182px); height: auto; }

.nav-phone {
  margin-left: auto;
  color: #fff;
  text-decoration: none;
  font-weight: 540;
  font-size: 0.99rem;
  font-variant-numeric: tabular-nums;
}
.nav-phone:hover { color: var(--accent); }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.28rem;
  backdrop-filter: blur(10px);
}

.primary-navigation .menu-contact { display: none; }
.primary-navigation .menu { position: relative; display: flex; align-items: center; gap: 0.05rem; }
.primary-navigation .menu li { position: relative; z-index: 1; }
.nav-glow {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 48px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  opacity: 0;
  transition: transform 0.26s var(--ease), width 0.26s var(--ease), opacity 0.18s var(--ease);
  pointer-events: none;
}
.primary-navigation a {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.primary-navigation a:hover { color: #fff; }
.primary-navigation a[aria-current="page"] { color: #fff; font-weight: 650; background: rgba(255, 255, 255, 0.13); }

/* ---------- Part-categories dropdown ---------- */

.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 0.35rem; }
.has-dropdown .caret { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.has-dropdown:hover .caret, .has-dropdown:focus-within .caret { transform: rotate(180deg); }

.nav-dropdown, .primary-navigation .menu .sub-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  min-width: 232px;
  padding: 0.45rem;
  display: grid;
  gap: 2px;
  background: rgba(9, 14, 36, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(3, 6, 18, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s var(--ease);
}
.nav-dropdown::before, .primary-navigation .menu .sub-menu::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown,
.has-dropdown.dropdown-open .nav-dropdown,
.primary-navigation .menu li:hover > .sub-menu,
.primary-navigation .menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-dropdown a, .primary-navigation .menu .sub-menu a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-dropdown a:hover, .primary-navigation .menu .sub-menu a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
/* ---------- Shop parts dropdown ---------- */

/* Grouped by device family so iPad and Mac sit beside iPhone instead of
   lengthening one list. A lone family splits its repairs across two columns
   for the same reason. */
.nav-dropdown--devices { min-width: 0; width: max-content; max-width: min(760px, calc(100vw - 2rem)); padding: 0.7rem; }
.nav-dropdown__grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, max-content); }
.nav-dropdown__group { min-width: 0; padding: 0 0.5rem; }
.nav-dropdown__group + .nav-dropdown__group { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.nav-dropdown .nav-dropdown__device {
  padding: 0.2rem 0.85rem 0.55rem;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.71rem;
  font-weight: 680;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.nav-dropdown .nav-dropdown__device:hover { background: transparent; color: var(--accent); }
.nav-dropdown__links { display: grid; gap: 2px; }
/* Seven or more repairs split into four row columns rather than running down
   the page, which keeps the menu the same height however many devices are
   listed. Without :has support it stays a single column, which still works. */
.nav-dropdown__links:has(> a:nth-child(7)) {
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
}
/* The device route leads, because most people know their handset and not the
   name of the part they need. */
.nav-dropdown .nav-dropdown__byphone {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.6rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(79, 141, 249, 0.34);
  border-radius: 13px;
  background: linear-gradient(120deg, rgba(18, 109, 249, 0.2) 0%, rgba(18, 109, 249, 0.06) 100%);
  color: #fff;
}
.nav-dropdown .nav-dropdown__byphone:hover {
  border-color: var(--accent);
  background: linear-gradient(120deg, rgba(18, 109, 249, 0.34) 0%, rgba(18, 109, 249, 0.12) 100%);
}
.nav-dropdown__byphone svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--accent); }
.nav-dropdown__byphone span { display: grid; gap: 0.05rem; min-width: 0; }
.nav-dropdown__byphone strong { font-size: 0.94rem; font-weight: 640; }
.nav-dropdown__byphone small { color: rgba(255, 255, 255, 0.6); font-size: 0.79rem; line-height: 1.35; }

.nav-dropdown__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-dropdown .nav-dropdown__finder { color: rgba(255, 255, 255, 0.6); font-size: 0.87rem; }
.nav-dropdown .nav-dropdown-all { color: var(--accent); font-weight: 600; }

/* ---------- Finder prompt on the shop ---------- */

/* One line, because the finder itself pushed the products off the screen. */
.woocommerce .finder-prompt {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.05rem;
  margin-bottom: clamp(1.1rem, 2.2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.finder-prompt:hover { border-color: var(--blue); transform: translateY(-1px); box-shadow: 0 14px 30px -24px rgba(18, 109, 249, 0.9); }
.finder-prompt__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
}
.finder-prompt__icon svg { width: 18px; height: 18px; }
.finder-prompt__text { display: grid; gap: 0.1rem; min-width: 0; }
.finder-prompt__text strong { font-size: 0.97rem; font-weight: 620; }
.finder-prompt__text small { color: var(--ink-2); font-size: 0.86rem; line-height: 1.4; }
.finder-prompt__go { margin-left: auto; padding-left: 0.5rem; color: var(--blue-deep); font-size: 1.05rem; transition: transform 0.2s var(--ease); }
.finder-prompt:hover .finder-prompt__go { transform: translateX(3px); }

/* ---------- Finder page ---------- */

.finder-shell { padding-block: clamp(2.5rem, 5vw, 3.75rem) var(--space-section); }
.finder-page-copy { margin-top: clamp(1.6rem, 3vw, 2.2rem); }
.finder-page-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
}
.finder-route {
  display: grid;
  gap: 0.2rem;
  align-content: start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.finder-route strong { font-size: 0.97rem; font-weight: 620; }
.finder-route small { color: var(--ink-2); font-size: 0.86rem; line-height: 1.4; }
.finder-route:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 14px 30px -24px rgba(18, 109, 249, 0.9); }

/* On its own page the finder is the content, so it loses the collapsed card
   framing and always sits open. */
.finder-page .finder { box-shadow: 0 24px 60px -40px rgba(6, 10, 28, 0.6); }


.nav-booking {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.56rem 1.15rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 590;
  font-size: 0.94rem;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-booking:hover { background: rgba(255, 255, 255, 0.85); color: var(--ink); }

.nav-action {
  display: inline-flex;
  position: relative;
  color: #fff;
  padding: 0.45rem;
}
.nav-action:hover { color: var(--accent); }
.nav-action svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.nav-action.cart-link { gap: 0.3rem; align-items: center; }
.cart-count {
  min-width: 17px;
  height: 17px;
  padding-inline: 4px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 560;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------- Hero (homepage): pure gradient, graphic not photographic ---------- */

.hero-gradient {
  position: relative;
  overflow: hidden;
  background: linear-gradient(168deg, #060a1c 0%, #0a1a52 52%, #0e46c4 108%);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: min(84vh, 820px);
}

.hero-mark {
  position: absolute;
  top: 46%;
  right: -3%;
  width: min(44vw, 620px);
  transform: translateY(-50%);
  opacity: 0.07;
  pointer-events: none;
}

.hero-gradient-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(4.5rem, 12vh, 8rem);
}

.hero-copy { max-width: 760px; }
.hero-copy h1 { font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -0.028em; }
.hero-kicker {
  display: block;
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.75);
}
.hero-copy h1 { margin-bottom: 0.42em; color: #fff; }
.hero-copy .button-invert { background: #fff; color: var(--ink); }
.hero-copy .button-invert:hover { background: rgba(255, 255, 255, 0.85); color: var(--ink); }
.hero-copy .button-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.hero-copy .button-secondary:hover { background: #fff; border-color: #fff; color: var(--ink); }

.hero-line { display: block; overflow: hidden; }
.hero-line > span { display: inline-block; }

.hero-intro {
  font-size: var(--lede);
  line-height: 1.55;
  font-weight: 430;
  color: var(--dim);
  max-width: 48ch;
  margin-bottom: 1.9rem;
}

.hero-copy .text-action { color: var(--white); border-color: var(--accent-line); }
.hero-copy .text-action:hover { color: var(--accent); }

/* GSAP owns load and scroll choreography. Content remains visible before JS runs. */
html.has-gsap .hero-line > span,
html.has-gsap .hero-kicker,
html.has-gsap .hero-intro,
html.has-gsap .hero-copy .button-row,
html.has-gsap .hero-mark { will-change: transform, opacity; }

/* Bench strip: the spec bar closing the hero */

.bench-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}
.bench-strip ul {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.bench-strip li {
  padding: 1.05rem 1.4rem 1.05rem 0;
  font-size: 0.94rem;
  color: var(--dim);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.bench-strip li + li { padding-left: 1.4rem; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.bench-strip strong { color: #fff; font-weight: 580; font-variant-numeric: tabular-nums; }
.bench-strip small { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.bench-strip a { color: #fff; text-decoration: none; }
.bench-strip a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Services index ---------- */

.services-index { padding-block: var(--space-section); }

.services-index .section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.4rem); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.service-card { display: block; text-decoration: none; color: var(--ink); }
.service-card figure {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--white-dim);
  box-shadow: 0 18px 40px rgba(23, 25, 29, 0.12);
}
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover img { transform: scale(1.05); }
.service-card h3 {
  margin: 1.15rem 0 0.3rem;
  font-size: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.service-card .row-arrow { font-size: 1.3rem; color: var(--blue-deep); transition: transform 0.3s var(--ease); }
.service-card:hover .row-arrow { transform: translateX(6px); }
.service-card:hover h3 { color: var(--blue-deep); }
.service-card p { color: var(--ink-2); font-size: 1rem; margin: 0; max-width: 40ch; }

/* ---------- Workshop band ---------- */

.workshop-band {
  background: var(--grad-dark);
  color: #fff;
  padding-block: var(--space-section);
}
.workshop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.workshop-copy { max-width: 560px; }
.workshop-copy .eyebrow { color: var(--accent); }
.workshop-copy p { color: var(--dim); font-size: 1.1rem; }
.workshop-photo {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(3, 6, 18, 0.5);
}
.workshop-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Parts spec ---------- */

.parts-spec { padding-block: var(--space-section); }
.parts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.parts-photo { overflow: hidden; border-radius: 14px; }
.parts-photo img { transform: scale(1.06); will-change: transform; }

.spec-sheet { margin-top: 1.8rem; border-top: 2px solid var(--blue); }
.spec-sheet > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.spec-sheet dt {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  padding-top: 0.2rem;
}
.spec-sheet dd { margin: 0; color: var(--ink); font-weight: 480; }

/* ---------- Job-card process ---------- */

.jobcard-process { padding-block: var(--space-section); background: var(--white-dim); }
.jobcard-head { max-width: 700px; margin-bottom: clamp(2rem, 4vw, 3rem); }

.jobcard {
  background: var(--paper);
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: 0 30px 60px rgba(23, 25, 29, 0.08);
}
.jobcard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  padding-bottom: 1.3rem;
  margin-bottom: 0.4rem;
  border-bottom: 2px solid var(--graphite);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.jobcard-meta strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.jobcard-steps { --line-progress: 1; counter-reset: step; position: relative; }
.jobcard-steps::after {
  content: "";
  position: absolute;
  top: 2.1rem;
  bottom: 1.2rem;
  left: 31px;
  width: 2px;
  background: var(--blue);
  transform: scaleY(var(--line-progress));
  transform-origin: top;
  opacity: 0.24;
  pointer-events: none;
}
.jobcard-steps li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 1.6rem;
  padding: 1.7rem 0;
  border-bottom: 1px dashed var(--accent-line);
}
.jobcard-steps li:last-child { border-bottom: 0; padding-bottom: 0.4rem; }
.jobcard-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 4px;
  color: var(--accent-ink);
  font-size: 1.35rem;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  transform: rotate(-3deg);
}
.jobcard-steps h3 { margin-bottom: 0.35rem; }
.jobcard-steps p { color: var(--ink-2); max-width: 58ch; }

/* ---------- Nairobi band ---------- */

.nairobi-band { background: var(--grad-dark); color: var(--white); padding-block: var(--space-section); }
.nairobi-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.nairobi-band .eyebrow { color: var(--accent); }
.nairobi-band p { color: var(--dim); }

.location-facts { display: grid; gap: 0; margin-top: 1.8rem; border-top: 2px solid var(--blue); }
.location-facts > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--graphite-edge);
}
.location-facts span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.2rem;
}
.location-facts strong { font-weight: 540; color: var(--white); font-variant-numeric: tabular-nums; }

.google-cta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  align-items: center;
}
.google-cta .button-secondary { color: var(--white); }
.google-cta .button-secondary:hover { background: var(--white); border-color: var(--white); color: var(--graphite); }

/* ---------- Blue band (closing CTA) ---------- */

.blue-band { background: var(--grad-band); color: #fff; padding-block: clamp(4rem, 8vw, 6.5rem); }
.blue-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 3rem;
}
.blue-band h2 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  margin-bottom: 0.35em;
  max-width: 16ch;
}
.blue-band p { color: #fff; font-size: 1.15rem; font-weight: 460; max-width: 42ch; }
.blue-band .button { font-size: 1.05rem; padding: 1.05rem 1.9rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--grad-footer);
  color: var(--dim);
  border-top: 2px solid var(--blue);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-brand .site-logo img { width: 180px; }
.footer-brand p { margin-top: 1.2rem; max-width: 34ch; }
.footer-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.site-footer .menu, .footer-contact { display: grid; gap: 0.55rem; }
.site-footer a { color: var(--dim); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-contact a { font-variant-numeric: tabular-nums; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--graphite-edge);
  font-size: 0.92rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue-deep); }
.breadcrumbs span[aria-hidden] , .breadcrumbs > span:not(:last-child) { color: var(--accent-ink); }
.on-dark .breadcrumbs, .page-hero--gradient .breadcrumbs, .contact-hero .breadcrumbs { color: var(--dim); }
.on-dark .breadcrumbs > span:not(:last-child), .page-hero--gradient .breadcrumbs > span:not(:last-child), .contact-hero .breadcrumbs > span:not(:last-child) { color: var(--accent); }

/* ---------- Page heroes ---------- */

.page-hero--gradient {
  position: relative;
  overflow: hidden;
  background: linear-gradient(168deg, #060a1c 0%, #0a1a52 58%, #0e46c4 118%);
  color: #fff;
}
.page-hero--gradient .hero-mark { width: min(38vw, 520px); top: 52%; }
.page-hero--gradient .subpage-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-block: clamp(4rem, 10vw, 7rem);
}
.page-hero--gradient .hero-intro { color: var(--dim); }
.page-hero--gradient .text-action { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.page-hero--gradient .text-action:hover { color: #fff; opacity: 0.85; }
.page-hero--gradient .button-invert { background: #fff; color: var(--ink); }
.page-hero--gradient .button-invert:hover { background: rgba(255, 255, 255, 0.85); color: var(--ink); }

.page-hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.page-hero--split .hero-intro { color: var(--ink-2); }
.page-hero--split figure { overflow: hidden; border-radius: 14px; }

.page-hero--statement { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem); }
.page-hero--statement h1 { max-width: 16ch; }
.page-hero--statement .hero-intro { color: var(--ink-2); max-width: 56ch; }

/* ---------- Symptom ledger (service pages) ---------- */

.symptom-section { padding-block: var(--space-section); }
.symptom-section > div:first-child { max-width: 680px; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }

.symptom-list { border-top: 1px solid var(--line-strong); }
.symptom-list article {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1rem 2.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.symptom-list article > span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-ink);
  padding-top: 0.4rem;
}
.symptom-list article > span::before {
  content: "";
  display: inline-block;
  vertical-align: 2px;
  margin-right: 0.6rem;
  width: 18px;
  height: 2px;
  background: var(--blue);
}
.symptom-list h3 { margin-bottom: 0.35rem; }
.symptom-list p { color: var(--ink-2); max-width: 62ch; }
.symptom-body { min-width: 0; }

/* ---------- Model-check callout ---------- */

.model-check { background: var(--paper); border-block: 1px solid var(--accent-line); padding-block: clamp(3rem, 6vw, 4.5rem); }
.model-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.model-grid h2 { margin-bottom: 0; }
.model-grid p { color: var(--ink-2); }
.model-grid .text-link { margin-top: 0.8rem; }

/* ---------- Rule list / split explainer ---------- */

.split-explainer { padding-block: var(--space-section); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.rule-list { border-top: 2px solid var(--blue); }
.rule-list > div { padding: 1.3rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.3rem; }
.rule-list span { font-weight: 620; font-size: 1.08rem; }
.rule-list p { color: var(--ink-2); }

/* ---------- Evidence band (repairs) ---------- */

.evidence-band { background: var(--grad-dark); color: var(--white); padding-block: var(--space-section); }
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.evidence-grid > div { border-top: 2px solid var(--blue); padding-top: 1.3rem; }
.evidence-grid h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.evidence-grid p { color: var(--dim); font-size: 1rem; }

/* ---------- Process detail (service pages) ---------- */

.process-detail { padding-block: var(--space-section); }
.process-detail > div:first-child { max-width: 680px; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.process-detail ol { counter-reset: pstep; border-top: 1px solid var(--line-strong); }
.process-detail li {
  counter-increment: pstep;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.process-detail li::before {
  content: counter(pstep, decimal-leading-zero);
  font-size: 1.15rem;
  font-weight: 640;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}
.process-detail h3 { margin-bottom: 0.3rem; }
.process-detail p { color: var(--ink-2); }
.process-detail li > span { display: none; }

/* ---------- Intent list (repairs overview) ---------- */

.intent-section { padding-block: var(--space-section); }
.intent-heading { max-width: 700px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.intent-list { border-top: 1px solid var(--line-strong); }
.intent-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2.5rem;
  align-items: center;
  padding: clamp(1.4rem, 2.6vw, 2rem) 0.5rem;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}
.intent-list a:hover { background: var(--white-dim); padding-left: 1.2rem; }
.intent-list h3 { margin: 0 0 0.2rem; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.intent-list p { color: var(--ink-2); margin: 0; font-size: 1rem; }
.intent-list strong { color: var(--blue-deep); font-weight: 580; white-space: nowrap; }
.intent-list a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.intent-list a > span:first-child { display: none; }

/* ---------- FAQ ---------- */

.faq-section { padding-block: var(--space-section); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq-heading { position: sticky; top: 100px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-size: 1.12rem;
  font-weight: 580;
  transition: color 0.2s var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-weight: 500;
  color: var(--accent-ink);
  transition: transform 0.3s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--graphite); color: var(--accent); border-color: var(--graphite); }
.faq-list summary:hover { color: var(--blue-deep); }
.faq-list details p { color: var(--ink-2); padding-bottom: 1.3rem; max-width: 62ch; }

/* ---------- Shop ---------- */

.shop-intro { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }
.shop-intro h1 { max-width: 15ch; margin-bottom: 0; }

.shop-search label { display: block; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 0.7rem; }
.shop-search > div { display: flex; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; background: #fff; }
.shop-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0.95rem 1.1rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
}
.shop-search input::placeholder { color: #5c6068; }
.shop-search input:focus { outline: none; }
.shop-search > div:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.shop-search button {
  border: 0;
  background: var(--graphite);
  color: var(--white);
  font-family: var(--font);
  font-weight: 580;
  font-size: 0.98rem;
  padding: 0 1.5rem;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.shop-search button:hover { background: var(--blue); }
.shop-search > p { margin-top: 0.7rem; font-size: 0.92rem; color: var(--ink-2); }

.catalog-section { padding-block: clamp(2rem, 4vw, 3rem) var(--space-section); }
.catalog-heading { max-width: 680px; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.catalog-grid { border-top: 1px solid var(--line-strong); }
.catalog-grid a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2.5rem;
  align-items: center;
  padding: clamp(1.3rem, 2.4vw, 1.9rem) 0.5rem;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}
.catalog-grid a:hover { background: var(--white-dim); padding-left: 1.2rem; }
.catalog-grid h3 { margin: 0 0 0.15rem; font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.catalog-grid p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.catalog-grid strong { color: var(--blue-deep); font-weight: 580; white-space: nowrap; }
.catalog-grid a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.catalog-grid a > span:first-child { display: none; }

.compatibility-section { background: var(--grad-dark); color: var(--white); padding-block: var(--space-section); }
.compatibility-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.compatibility-grid figure { overflow: hidden; border-radius: 14px; }
.compatibility-section .eyebrow { color: var(--accent); }
.compatibility-section p { color: var(--dim); }
.compatibility-section ol { counter-reset: cstep; margin: 1.6rem 0; border-top: 1px solid var(--graphite-edge); }
.compatibility-section ol li {
  counter-increment: cstep;
  display: flex;
  gap: 1.1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--graphite-edge);
  color: var(--white);
  font-weight: 480;
}
.compatibility-section ol li::before {
  content: counter(cstep, decimal-leading-zero);
  color: var(--accent);
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}
.compatibility-section ol li > span { display: none; }
.compatibility-section .text-link { color: var(--white); border-color: var(--accent-line); }
.compatibility-section .text-link:hover { color: var(--accent); }

.inventory-preview { padding-block: var(--space-section); }
.inventory-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.inventory-heading > p { color: var(--ink-2); margin: 0 0 0.5rem; }

.product-standard { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.product-standard article { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 22px 54px rgba(23, 25, 29, 0.08); }
.product-image-placeholder { aspect-ratio: 1; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.product-image-placeholder img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.65s var(--ease); }
.product-standard article:hover .product-image-placeholder img { transform: scale(1.035); }
.product-standard .product-category { padding: 1.2rem 1.4rem 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent-ink); }
.product-standard h3 { padding: 0.3rem 1.4rem 0; margin: 0; }
.product-standard dl { padding: 0.9rem 1.4rem 0; }
.product-standard dl > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 0.8rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.product-standard dl > div:last-child { border-bottom: 0; }
.product-standard dt { color: var(--ink-2); font-weight: 480; }
.product-standard dd { margin: 0; font-weight: 560; }
.product-note { display: inline-block; margin: 0.8rem 1.4rem 1.4rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Guides ---------- */

.guides-hero { padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; }
.guides-hero h1 { max-width: 16ch; margin-bottom: 0; }
.guides-intro { color: var(--ink-2); font-size: 1.1rem; margin: 0 0 0.4rem; }

.featured-guide { padding-block: clamp(1.5rem, 3vw, 2.5rem) var(--space-section); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.featured-guide figure { overflow: hidden; border-radius: 14px; }
.featured-guide-copy p { color: var(--ink-2); }
.featured-guide-copy .text-link { margin-top: 0.6rem; }

.guides-index { padding-block: var(--space-section); background: var(--white); }
.guides-index-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.guides-index-heading > p { color: var(--ink-2); margin: 0 0 0.4rem; }

.guide-list { border-top: 1px solid var(--line-strong); }
.guide-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 1rem 2.5rem;
  align-items: center;
  padding: 1.4rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}
.guide-row:hover { background: var(--white-dim); padding-left: 1.2rem; }
.guide-row h3 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.guide-row:hover h3 { color: var(--blue-deep); }
.guide-row p { margin: 0; color: var(--ink-2); font-size: 0.99rem; }
.guide-row small { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); text-align: right; }
.guide-row > span:first-child { display: none; }

/* ---------- Guide article ---------- */

.guide-page { padding-block: clamp(3rem, 6vw, 4.5rem) var(--space-section); }
.guide-header { max-width: 780px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.guide-header h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.guide-deck { font-size: var(--lede); color: var(--ink-2); line-height: 1.55; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.8rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 2px solid var(--blue); font-size: 0.9rem; color: var(--ink-2); }

.guide-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.guide-toc { position: sticky; top: 100px; display: grid; gap: 0.35rem; border-top: 1px solid var(--line-strong); padding-top: 1rem; }
.guide-toc strong { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 0.4rem; }
.guide-toc a { text-decoration: none; color: var(--ink-2); font-size: 0.96rem; padding: 0.25rem 0; border-left: 2px solid transparent; padding-left: 0.7rem; margin-left: -0.7rem; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.guide-toc a:hover { color: var(--blue-deep); border-left-color: var(--accent); }

.guide-content { max-width: 68ch; }
.guide-content h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.2em; }
.guide-content h2:first-of-type { margin-top: 1.6em; }
.guide-content p { color: var(--ink-2); }
.guide-content ul { margin: 1.2rem 0; display: grid; gap: 0.55rem; }
.guide-content ul li { padding-left: 1.4rem; position: relative; color: var(--ink-2); }
.guide-content ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 14px; height: 2px; background: var(--blue); }
.guide-content ol { counter-reset: gstep; margin: 1.2rem 0; display: grid; gap: 0.7rem; }
.guide-content ol li { counter-increment: gstep; display: flex; gap: 0.9rem; align-items: baseline; color: var(--ink-2); }
.guide-content ol li::before { content: counter(gstep, decimal-leading-zero); color: var(--accent-ink); font-weight: 640; font-variant-numeric: tabular-nums; font-size: 0.92rem; }

.answer-block {
  background: var(--paper);
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  padding: 1.5rem 1.7rem;
  font-size: 1.12rem;
  font-weight: 480;
  color: var(--ink) !important;
  max-width: none;
}

.guide-note { background: var(--white-dim); border-radius: 6px; padding: 1.3rem 1.5rem; margin: 1.5rem 0; }
.guide-note strong { display: block; margin-bottom: 0.3rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.guide-note p { margin: 0; }

.related-guides { margin-top: 2.6rem; border-top: 2px solid var(--blue); padding-top: 1.2rem; display: grid; gap: 0.55rem; }
.related-guides strong { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 0.2rem; }
.related-guides a { font-weight: 540; text-decoration: none; color: var(--blue-deep); width: fit-content; border-bottom: 1px solid transparent; }
.related-guides a:hover { border-bottom-color: currentColor; }

.source-note { margin-top: 2.2rem; font-size: 0.88rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 1rem; }

.guide-cta { margin-top: 3rem; background: var(--grad-dark); color: var(--white); border-radius: 6px; padding: clamp(1.8rem, 4vw, 2.6rem); }
.guide-cta .eyebrow { color: var(--accent); }
.guide-cta h2 { margin-top: 0 !important; color: var(--white); }

/* ---------- About ---------- */

.about-hero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 3vw, 2.5rem); }
.about-hero h1 { max-width: 15ch; }
.about-lead { font-size: var(--lede); color: var(--ink-2); max-width: 56ch; line-height: 1.55; }

.about-image { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.about-image img { border-radius: 14px; }

.about-story { padding-block: var(--space-section); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about-story h2 { margin-bottom: 0; }
.about-story > div:last-child p { color: var(--ink-2); }
.about-story > div:last-child p + p { margin-top: 1.1em; }

.principles-section { background: var(--grad-dark); color: var(--white); padding-block: var(--space-section); }
.principles-section .eyebrow { color: var(--accent); margin-bottom: 2rem; }
.principle-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
.principle-list article { border-top: 2px solid var(--blue); padding-top: 1.2rem; }
.principle-list h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin-bottom: 0.45rem; }
.principle-list p { color: var(--dim); font-size: 0.99rem; }
.principle-list article > span { display: none; }

.local-section { background: var(--grad-dark); color: var(--white); padding-block: var(--space-section); }
.local-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.local-section .eyebrow { color: var(--accent); }
.local-copy p { color: var(--dim); }
.about-page .local-section { background: var(--white); color: var(--ink); }
.about-page .local-section .eyebrow { color: var(--accent-ink); }
.about-page .local-copy p { color: var(--ink-2); }
.about-page .location-facts > div { border-bottom-color: var(--line); }
.about-page .location-facts span { color: var(--accent-ink); }
.about-page .location-facts strong { color: var(--ink); }

/* ---------- Contact ---------- */

.contact-hero { background: var(--grad-dark); color: var(--white); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.contact-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.contact-hero .eyebrow { color: var(--accent); }
.contact-hero .hero-intro { color: var(--dim); }

.contact-direct { display: grid; gap: 0.8rem; }
.contact-direct a {
  display: grid;
  gap: 0.15rem;
  padding: 1.15rem 1.4rem;
  border: 1px solid var(--graphite-edge);
  border-radius: 6px;
  text-decoration: none;
  color: var(--white);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.contact-direct a:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.06); transform: translateY(-2px); }
.contact-direct span { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent); }
.contact-direct strong { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.contact-direct small { color: var(--dim); font-size: 0.92rem; }
.contact-direct .primary-contact { border-color: var(--accent); background: rgba(255, 255, 255, 0.07); }

.message-checklist { padding-block: var(--space-section); background: var(--white-dim); }
.checklist-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.checklist-grid ol { counter-reset: check; border-top: 2px solid var(--blue); }
.checklist-grid ol li { counter-increment: check; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1.2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.checklist-grid ol li::before { content: counter(check, decimal-leading-zero); font-weight: 640; color: var(--accent-ink); font-variant-numeric: tabular-nums; padding-top: 0.1rem; }
.checklist-grid strong { font-weight: 620; font-size: 1.08rem; display: block; margin-bottom: 0.15rem; }
.checklist-grid p { color: var(--ink-2); margin: 0; }
.checklist-grid ol li > span { display: none; }

.visit-section { padding-block: var(--space-section); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.visit-section p { color: var(--ink-2); }
.visit-section dl { border-top: 2px solid var(--blue); }
.visit-section dl > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.visit-section dt { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); padding-top: 0.2rem; }
.visit-section dd { margin: 0; font-weight: 520; }

.map-card {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(165deg, #0a1230 0%, #0a1a52 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px rgba(3, 6, 18, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.map-card:hover { transform: translateY(-4px); box-shadow: 0 32px 60px rgba(3, 6, 18, 0.45); }
.map-card svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.map-hint {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(9, 14, 36, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 560;
  transition: background 0.25s var(--ease);
}
.map-card:hover .map-hint { background: var(--blue); border-color: var(--blue); }
@media (prefers-reduced-motion: no-preference) {
  .map-pulse { transform-origin: center; transform-box: fill-box; animation: map-pulse 2.6s var(--ease) infinite; }
}
@keyframes map-pulse {
  0% { transform: scale(0.5); opacity: 0.5; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.contact-paths { padding-block: 0 var(--space-section); display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.contact-paths a {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  padding: clamp(1.8rem, 4vw, 2.5rem);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.contact-paths a:hover { border-color: var(--graphite); background: var(--white-dim); transform: translateY(-3px); }
.contact-paths span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent-ink); }
.contact-paths h2 { font-size: 1.5rem; margin: 0; }
.contact-paths strong { color: var(--blue-deep); font-weight: 580; margin-top: 0.5rem; }

/* ---------- WordPress content pages ---------- */

.content-shell { padding-block: clamp(3rem, 6vw, 4.5rem) var(--space-section); }
.archive-header { max-width: 760px; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }

.article-list { border-top: 1px solid var(--line-strong); }
.article-row { padding: 1.6rem 0.25rem; border-bottom: 1px solid var(--line); }
.article-row > div { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 0.88rem; color: var(--ink-2); margin-bottom: 0.45rem; }
.article-row h2 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.article-row h2 a { text-decoration: none; color: var(--ink); }
.article-row h2 a:hover { color: var(--blue-deep); }
.article-row p { color: var(--ink-2); max-width: 68ch; }
.empty-state { padding: 3rem 0; }

.prose-page { max-width: 760px; }
.entry-header { margin-bottom: 2rem; padding-bottom: 1.2rem; border-bottom: 2px solid var(--blue); }
.entry-deck { font-size: var(--lede); color: var(--ink-2); line-height: 1.55; }
.article-image { margin: 0 0 2rem; border-radius: 4px; overflow: hidden; }
.entry-content h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2em; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content p { color: var(--ink-2); }
.entry-content a { color: var(--blue-deep); }
.entry-content ul, .entry-content ol { margin: 1.2rem 0 1.2rem 1.2rem; display: grid; gap: 0.5rem; color: var(--ink-2); }
.entry-content ul li { list-style: none; position: relative; padding-left: 1.4rem; margin-left: -1.2rem; }
.entry-content ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 14px; height: 2px; background: var(--blue); }
.entry-content ol li { list-style: decimal-leading-zero; }
.entry-content img { border-radius: 4px; }
.entry-content blockquote { margin: 1.6rem 0; padding: 1.2rem 1.5rem; background: var(--white-dim); border-radius: 6px; }

.search-form { display: flex; max-width: 460px; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; background: #fff; margin: 1.5rem 0; }
.search-form label { flex: 1; display: flex; }
.search-form .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.search-form input[type="search"] { flex: 1; min-width: 0; border: 0; padding: 0.85rem 1.1rem; font-family: var(--font); font-size: 1rem; background: transparent; color: var(--ink); }
.search-form input[type="search"]:focus { outline: none; }
.search-form:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.search-form input[type="submit"], .search-form button { border: 0; background: var(--graphite); color: var(--white); font-family: var(--font); font-weight: 580; font-size: 0.96rem; padding: 0 1.4rem; cursor: pointer; }

.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding-inline: 0.6rem; border: 1px solid var(--line-strong); border-radius: 4px; text-decoration: none; color: var(--ink); font-weight: 540; }
.pagination .page-numbers.current { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--blue); color: var(--blue-deep); }

/* ---------- 404 ---------- */

.not-found { padding-block: var(--space-section); }
.not-found h1 { max-width: 18ch; }
.not-found > p { color: var(--ink-2); }

.error-page { padding-block: var(--space-section); text-align: left; }
.error-page h1 { max-width: 18ch; }

/* ---------- WooCommerce: shop, product, cart, checkout ---------- */

/* Layout reset. WooCommerce's legacy sheet floats products and gives them
   percentage widths; this theme lays them out with grid instead. */
.woocommerce ul.products,
.woocommerce-page ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(1.2rem, 2vw, 1.9rem); margin: 0; padding: 0; list-style: none; }
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after { content: none; display: none; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products.columns-1 li.product,
.woocommerce ul.products.columns-2 li.product,
.woocommerce ul.products.columns-3 li.product,
.woocommerce ul.products.columns-4 li.product,
.woocommerce ul.products.columns-5 li.product,
.woocommerce ul.products.columns-6 li.product { float: none; clear: none; width: auto; margin: 0; padding: 0; }

.shop-shell { padding-block: clamp(2.5rem, 5vw, 3.75rem) var(--space-section); }

/* ---------- Shop hero ---------- */

.shop-hero .subpage-copy { max-width: 720px; }
.shop-hero .hero-intro { color: var(--dim); }
/* ---------- Shop by phone ---------- */

.devices-shell { padding-block: clamp(2.5rem, 5vw, 3.75rem) var(--space-section); }
.device-picker { display: grid; gap: clamp(2.6rem, 5vw, 4rem); }

.device-gen__title {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0 0 clamp(1.2rem, 2.4vw, 1.8rem);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 640;
  letter-spacing: -0.015em;
}
/* The rule grows out of the heading as the section scrolls in. */
.device-gen__title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong) 0%, rgba(23, 25, 29, 0) 100%);
  transform: scaleX(var(--rule-progress, 1));
  transform-origin: left center;
}

.device-gen__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: clamp(0.8rem, 1.8vw, 1.25rem);
}

.device-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  padding: 1.5rem 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.28s var(--ease), box-shadow 0.28s var(--ease), transform 0.28s var(--ease);
}
/* A wash of Signal Blue rises behind the handset on hover. */
.device-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 105%, rgba(18, 109, 249, 0.16) 0%, rgba(18, 109, 249, 0) 70%);
  opacity: 0;
  transition: opacity 0.32s var(--ease);
}
.device-card > * { position: relative; z-index: 1; }
.device-card:hover {
  border-color: var(--blue);
  box-shadow: 0 22px 44px -28px rgba(18, 109, 249, 0.85);
  transform: translateY(-4px);
}
.device-card:hover::before { opacity: 1; }
.device-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Flex with max-height, not grid with height:100%. In a grid the implicit row
   auto-sizes to the image, so the percentage resolved against a row the image
   was itself sizing, fell back to auto, and overflowed the card. */
.device-card__shot {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  /* The cards carry the back of each phone, which is a taller crop than the
     old front render, and the size difference between a Mini and a Pro Max is
     part of how someone recognises theirs. */
  height: 158px;
  margin-bottom: 0.85rem;
}
.device-card__shot img {
  width: auto;
  height: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(6, 10, 28, 0.16));
  transition: transform 0.38s var(--ease);
}
.device-card:hover .device-card__shot img { transform: translateY(-6px) scale(1.04); }

.device-card__name { font-size: 0.95rem; font-weight: 620; line-height: 1.25; text-align: center; }
.device-card__count { color: var(--ink-2); font-size: 0.82rem; font-variant-numeric: tabular-nums; }

.devices-page-copy { margin-top: clamp(2rem, 4vw, 3rem); }
.devices-footnote {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.93rem;
  line-height: 1.6;
}
.devices-footnote a { color: var(--blue-deep); font-weight: 600; }

/* Scroll-triggered entrance. Cards start low and faded, GSAP staggers them in.
   Without motion they are simply visible, so nothing depends on the script. */
.has-motion .device-card { opacity: 0; transform: translateY(26px); }
.has-motion .device-gen__title { --rule-progress: 0; }

@media (prefers-reduced-motion: reduce) {
  .device-card, .device-card__shot img, .device-card::before { transition: none; }
  .device-card:hover { transform: none; }
  .has-motion .device-card { opacity: 1; transform: none; }
  .has-motion .device-gen__title { --rule-progress: 1; }
}

/* ---------- Repair finder ---------- */

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Two steps in plain language for anyone who does not know the part name.
   Built on <details> so it opens and closes with no script at all, and the
   symptom cards are real category links for the same reason. */
.finder {
  margin-bottom: clamp(1.4rem, 2.6vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 44px -32px rgba(6, 10, 28, 0.55);
  overflow: hidden;
}
.finder__summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1.1rem, 2.2vw, 1.6rem);
  cursor: pointer;
  list-style: none;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
  transition: background 0.25s var(--ease);
}
.finder__summary::-webkit-details-marker { display: none; }
.finder__summary:hover { background: linear-gradient(180deg, #ffffff 0%, #eef3fc 100%); }
.finder__summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -4px; }
.finder__summary-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
}
.finder__summary-icon svg { width: 21px; height: 21px; }
.finder__summary-text { display: grid; gap: 0.15rem; min-width: 0; }
.finder__summary-text strong { font-size: 1.05rem; font-weight: 640; letter-spacing: -0.01em; }
.finder__summary-text small { color: var(--ink-2); font-size: 0.89rem; line-height: 1.45; }
.finder__summary-toggle {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2343474f' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
  transition: transform 0.3s var(--ease), border-color 0.25s var(--ease);
}
.finder[open] .finder__summary-toggle { transform: rotate(180deg); }
.finder__summary:hover .finder__summary-toggle { border-color: var(--blue); }

.finder__body {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  border-top: 1px solid var(--line);
}
.finder__step { display: flex; flex-direction: column; padding: clamp(1.2rem, 2.4vw, 1.75rem); min-width: 0; }
.finder__step + .finder__step { border-left: 1px solid var(--line); background: linear-gradient(180deg, #fbfcfe 0%, #f6f8fc 100%); }
.finder__step-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  font-size: 1.02rem;
  font-weight: 640;
  letter-spacing: -0.01em;
}
.finder__num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--midnight);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 640;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.finder.is-armed [data-finder-step="model"] .finder__num { background: var(--blue); }
.finder.is-armed [data-finder-step="symptom"] .finder__num { background: var(--blue); transform: scale(1.08); }

.finder__search {
  width: 100%;
  padding: 0.62rem 1rem 0.62rem 2.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2343474f' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.4'/%3E%3Cpath d='m16 16 4.4 4.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.9rem center;
  background-size: 15px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink);
}
.finder__search::-webkit-search-cancel-button { cursor: pointer; }
.finder__search:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 109, 249, 0.16); }

.finder__models { display: flex; flex-wrap: wrap; gap: 0.42rem; margin-top: 0.85rem; }
.finder__model {
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font);
  font-size: 0.89rem;
  font-weight: 540;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease);
}
.finder__model:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.finder__model.is-selected {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  font-weight: 620;
}
.finder__model[hidden] { display: none; }
.finder__more {
  align-self: flex-start;
  margin-top: 0.75rem;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font);
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--blue-deep);
  cursor: pointer;
  border-bottom: 1px solid currentColor;
}
.finder__more:hover { color: var(--blue); }
.finder__empty { margin: 0.8rem 0 0; color: var(--ink-2); font-size: 0.89rem; }

.finder__note { margin: 0 0 0.9rem; color: var(--ink-2); font-size: 0.89rem; line-height: 1.5; }
.finder__symptoms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.finder__symptom {
  display: grid;
  gap: 0.12rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.finder__symptom .finder-icon {
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  padding: 7px;
  margin-bottom: 0.55rem;
  border-radius: 11px;
  background: rgba(18, 109, 249, 0.08);
  color: var(--blue-deep);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.finder__symptom strong { font-size: 0.94rem; font-weight: 600; line-height: 1.3; }
.finder__symptom small { color: var(--ink-2); font-size: 0.82rem; line-height: 1.35; }
.finder__symptom:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 26px -20px rgba(18, 109, 249, 0.9);
  transform: translateY(-2px);
}
.finder__symptom:hover .finder-icon { background: rgba(18, 109, 249, 0.16); color: var(--blue); }
.finder__symptom.is-selected { border-color: var(--blue); background: rgba(18, 109, 249, 0.06); }
.finder__symptom.is-selected .finder-icon { background: var(--blue); color: #fff; }

/* Pinned to the foot of step one so the column does not sit empty while the
   symptom grid runs long. */
.finder__reassure { margin: 1.6rem 0 0; padding: 1.15rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.finder__reassure li {
  position: relative;
  padding-left: 1.55rem;
  margin-bottom: 0.5rem;
  color: var(--ink-2);
  font-size: 0.87rem;
  line-height: 1.45;
}
.finder__reassure li:last-child { margin-bottom: 0; }
.finder__reassure li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23126df9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8.4 3.4 3.4L13 5.2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.finder__aside { margin: 1rem 0 0; color: var(--ink-2); font-size: 0.86rem; line-height: 1.55; }
.finder__aside a { color: var(--blue-deep); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .finder__summary-toggle,
  .finder__num,
  .finder__model,
  .finder__symptom { transition: none; }
  .finder.is-armed [data-finder-step="symptom"] .finder__num { transform: none; }
}

/* ---------- Catalog filters ---------- */

/* Two axes: what the repair is, and which handset it fits. Without both, a
   catalog this size is twenty pages of undifferentiated cards. */
.woocommerce .shop-filters {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.1rem, 2.2vw, 1.6rem) clamp(1.2rem, 2.4vw, 1.75rem);
  margin-bottom: clamp(1.6rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  box-shadow: 0 1px 2px rgba(6, 10, 28, 0.04);
}
.shop-filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; min-width: 0; }
.shop-filters__row--model { padding-top: 1.05rem; border-top: 1px solid var(--line); }
/* Both labels sit on their own line so the two rows share one left edge. */
.shop-filters__label {
  flex: 1 0 100%;
  margin-bottom: -0.1rem;
  color: var(--ink-2);
  font-size: 0.72rem;
  font-weight: 660;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.shop-filters__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; min-width: 0; }
.shop-filters__chips a {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 540;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.shop-filters__chips a:hover { border-color: var(--blue); color: var(--blue); }
.shop-filters__chips a.is-current {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  font-weight: 620;
}
.shop-filters__select {
  appearance: none;
  -webkit-appearance: none;
  flex: 1 1 15rem;
  max-width: 22rem;
  padding: 0.62rem 2.6rem 0.62rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2343474f' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 520;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.shop-filters__select { min-width: 0; }
.shop-filters__select:hover { border-color: var(--blue); }

/* Searchable replacement for the model select. A native popup cannot be
   styled or positioned, so with 37 models it opened as a tall unstyled list
   over the hero. The select stays in the form, hidden, carrying the value. */
.combo { position: relative; flex: 1 1 15rem; min-width: 0; max-width: 22rem; }
.combo__button {
  display: block;
  width: 100%;
  padding: 0.62rem 2.6rem 0.62rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2343474f' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 520;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.combo__button:hover { border-color: var(--blue); }
.combo.is-open .combo__button { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 109, 249, 0.16); }
.combo__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 26px 52px -26px rgba(6, 10, 28, 0.5);
}
.combo.is-up .combo__panel { top: auto; bottom: calc(100% + 6px); }
.combo__search {
  width: 100%;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--ink);
}
.combo__search:focus { outline: none; border-color: var(--blue); }
.combo__list { display: grid; gap: 1px; max-height: 258px; margin-top: 0.45rem; overflow-y: auto; overscroll-behavior: contain; }
.combo__group {
  margin: 0.55rem 0 0.15rem;
  padding: 0 0.6rem;
  color: var(--ink-2);
  font-size: 0.68rem;
  font-weight: 680;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.combo__group[hidden], .combo__option[hidden] { display: none; }
.combo__option {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 0;
  border-radius: 9px;
  background: none;
  font-family: var(--font);
  font-size: 0.93rem;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.combo__option:hover, .combo__option.is-active { background: rgba(18, 109, 249, 0.08); color: var(--blue-deep); }
.combo__option.is-selected { background: var(--blue); color: #fff; font-weight: 600; }
.combo__option--any { margin-bottom: 0.25rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--line); border-radius: 9px 9px 0 0; }
.woocommerce .shop-filters__submit {
  padding: 0.62rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font);
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.woocommerce .shop-filters__submit:hover { background: var(--blue-deep); }
.shop-filters__reset { color: var(--ink-2); font-size: 0.9rem; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.shop-filters__reset:hover { color: var(--blue); border-color: var(--blue); }
/* Scripted browsers filter on change, so the button is only a fallback. */
.shop-filters.is-live .shop-filters__submit { display: none; }

/* ---------- Results toolbar ---------- */

.woocommerce .shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-bottom: 1.1rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line);
}
.woocommerce .woocommerce-result-count { margin: 0; color: var(--ink-2); font-size: 0.97rem; font-variant-numeric: tabular-nums; }
.woocommerce .woocommerce-ordering { margin: 0; }
.woocommerce .woocommerce-ordering select,
.woocommerce select.orderby {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.62rem 2.6rem 0.62rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2343474f' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 520;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.woocommerce .woocommerce-ordering select:hover { border-color: var(--blue); }

/* ---------- Product cards ---------- */

.woocommerce ul.products li.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.woocommerce ul.products li.product:hover { transform: translateY(-4px); border-color: rgba(18, 109, 249, 0.35); box-shadow: 0 24px 50px rgba(6, 10, 28, 0.12); }
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: var(--ink); }
.woocommerce ul.products li.product a { text-decoration: none; color: var(--ink); }

.woocommerce ul.products li.product img,
.woocommerce ul.products li.product a img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0;
  padding: clamp(0.9rem, 2vw, 1.4rem);
  background: linear-gradient(170deg, #f7f9fc 0%, #eef2f8 100%);
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
  transition: transform 0.5s var(--ease);
}
.woocommerce ul.products li.product:hover img { transform: scale(1.04); }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 1.05rem 1.15rem 0.45rem;
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.008em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title { color: var(--blue-deep); }
.woocommerce ul.products li.product .price {
  display: block;
  padding: 0 1.15rem 1rem;
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.woocommerce ul.products li.product .price del { color: var(--ink-2); font-weight: 480; opacity: 1; margin-right: 0.45rem; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--blue-deep); }
.woocommerce ul.products li.product .price .from { color: var(--ink-2); font-size: 0.85rem; font-weight: 500; }
.woocommerce ul.products li.product .woocommerce-product-details__short-description { display: none; }

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
  margin: auto 1.15rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.94rem;
}
.woocommerce ul.products li.product .added_to_cart { background: var(--white-dim); color: var(--ink); font-weight: 560; margin-top: -0.4rem; }
.woocommerce ul.products li.product .added_to_cart:hover { background: var(--graphite); color: #fff; }

.woocommerce span.onsale,
.woocommerce ul.products li.product span.onsale {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  right: auto;
  z-index: 2;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ---------- Pagination ---------- */

.woocommerce nav.woocommerce-pagination { margin: clamp(2.2rem, 4vw, 3rem) 0 0; text-align: left; }
.woocommerce nav.woocommerce-pagination ul { display: flex; flex-wrap: wrap; gap: 0.5rem; border: 0; margin: 0; padding: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0; overflow: visible; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 540;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.woocommerce nav.woocommerce-pagination ul li a:hover { border-color: var(--blue); color: var(--blue-deep); background: #fff; }

/* ---------- Single product ---------- */

.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4.5rem); align-items: start; }
.woocommerce div.product .woocommerce-product-gallery { float: none; width: auto; position: sticky; top: 104px; margin: 0; }
.woocommerce div.product .summary.entry-summary { float: none; width: auto; margin: 0; }
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related.products,
.woocommerce div.product .upsells.products { grid-column: 1 / -1; }

/* The frame sits on the gallery viewport, never on the slider wrapper:
   flexslider applies inline widths and transforms to the wrapper. */
.woocommerce div.product .woocommerce-product-gallery .flex-viewport,
.woocommerce div.product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, #f7f9fc 0%, #eef2f8 100%);
}
.woocommerce div.product .woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce div.product .woocommerce-product-gallery__image { border-radius: 0; }
.woocommerce div.product .woocommerce-product-gallery__image img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: clamp(1.5rem, 4vw, 3rem); box-sizing: border-box; }
.woocommerce div.product .woocommerce-product-gallery__trigger {
  top: 1rem;
  right: 1rem;
  left: auto;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317191d' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(6, 10, 28, 0.12);
  text-indent: -9999px;
  overflow: hidden;
}
.woocommerce div.product .woocommerce-product-gallery__trigger::after,
.woocommerce div.product .woocommerce-product-gallery__trigger::before { display: none; }
.woocommerce div.product .woocommerce-product-gallery__trigger img { display: none; }
.woocommerce div.product .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0 0; padding: 0; }
.woocommerce div.product .flex-control-thumbs li { width: auto; float: none; margin: 0; list-style: none; }
.woocommerce div.product .flex-control-thumbs li img { width: 76px; height: 76px; object-fit: contain; padding: 0.4rem; box-sizing: border-box; border: 1px solid var(--line); border-radius: 12px; background: #fff; opacity: 1; transition: border-color 0.2s var(--ease); }
.woocommerce div.product .flex-control-thumbs li img.flex-active,
.woocommerce div.product .flex-control-thumbs li img:hover { border-color: var(--blue); }

.woocommerce div.product .product_title {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 0 0 0.6rem;
  text-wrap: balance;
}
.woocommerce div.product .woocommerce-product-rating { margin-bottom: 0.8rem; }
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  margin: 0 0 1.2rem;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.woocommerce div.product p.price del, .woocommerce div.product span.price del { color: var(--ink-2); font-weight: 460; font-size: 0.66em; opacity: 1; }
.woocommerce div.product p.price ins, .woocommerce div.product span.price ins { text-decoration: none; color: var(--blue-deep); }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--ink-2); font-size: 1.04rem; line-height: 1.6; margin-bottom: 1.5rem; max-width: 56ch; }
.woocommerce div.product .stock.in-stock { display: inline-flex; align-items: center; gap: 0.45rem; color: #0f7b48; font-weight: 560; font-size: 0.95rem; }
.woocommerce div.product .stock.in-stock::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.woocommerce div.product .stock.out-of-stock { color: #b3261e; font-weight: 560; }

.woocommerce div.product form.cart { margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.7rem; }
.woocommerce div.product form.cart::before, .woocommerce div.product form.cart::after { content: none; display: none; }
.woocommerce div.product form.cart .quantity { margin: 0; }
.woocommerce .quantity input.qty,
.woocommerce div.product form.cart .quantity input.qty {
  width: 78px;
  min-height: 52px;
  padding: 0.6rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 560;
  color: var(--ink);
  text-align: center;
  box-shadow: none;
}
.woocommerce .quantity input.qty:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.woocommerce div.product form.cart .button,
.woocommerce div.product form.cart button.single_add_to_cart_button {
  flex: 1 1 220px;
  min-height: 52px;
  padding: 0.85rem 1.8rem;
  border-radius: 10px;
  font-size: 1rem;
}
.woocommerce div.product form.cart .variations { margin: 0 0 1rem; width: 100%; border: 0; }
.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th { border: 0; padding: 0 0 0.75rem; vertical-align: middle; background: transparent; }
.woocommerce div.product form.cart .variations label { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.woocommerce div.product form.cart .variations select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 0.7rem 2.6rem 0.7rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2343474f' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
}
.woocommerce div.product form.cart .reset_variations { font-size: 0.9rem; color: var(--blue-deep); font-weight: 540; }
.woocommerce div.product .woocommerce-variation-price { margin-bottom: 0.9rem; }
.woocommerce div.product .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: stretch; width: 100%; }

.product-ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1rem;
  padding: 1rem 1.2rem;
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.product-ask p { margin: 0; color: var(--ink-2); font-size: 0.96rem; flex: 1 1 200px; }
.product-ask .button { flex: none; }

.product-facts { display: grid; gap: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--line); }
.product-facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.product-facts dt { color: var(--ink-2); font-weight: 500; margin: 0; }
.product-facts dd { margin: 0; color: var(--ink); font-weight: 560; }

.woocommerce div.product .product_meta { padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: 0.93rem; color: var(--ink-2); display: grid; gap: 0.4rem; }
.woocommerce div.product .product_meta > span { display: block; }
.woocommerce div.product .product_meta a { color: var(--blue-deep); text-decoration: none; border-bottom: 1px solid transparent; }
.woocommerce div.product .product_meta a:hover { border-bottom-color: currentColor; }

.woocommerce div.product .woocommerce-tabs { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(1.5rem, 3vw, 2.2rem); border-top: 1px solid var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.6rem; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; background: transparent; border: 0; border-radius: 999px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: inline-flex;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 560;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover { background: var(--white-dim); color: var(--ink); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { background: var(--graphite); color: #fff; }
.woocommerce div.product .woocommerce-Tabs-panel { max-width: 70ch; color: var(--ink-2); }
.woocommerce div.product .woocommerce-Tabs-panel h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: 0.8rem; }
.woocommerce div.product .woocommerce-Tabs-panel p { color: var(--ink-2); }

.woocommerce div.product .related.products,
.woocommerce div.product .upsells.products { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(1.6rem, 3vw, 2.4rem); border-top: 1px solid var(--line); }
.woocommerce div.product .related.products > h2,
.woocommerce div.product .upsells.products > h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 1.6rem; }

/* ---------- Buttons ---------- */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce a.checkout-button {
  background: var(--blue);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 580;
  line-height: 1.3;
  padding: 0.78rem 1.5rem;
  text-shadow: none;
  box-shadow: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce a.checkout-button:hover { background: var(--blue-deep); color: #fff; }
.woocommerce a.button:active, .woocommerce button.button:active { transform: translateY(1px); }
.woocommerce a.button.disabled, .woocommerce button.button:disabled, .woocommerce button.button.disabled,
.woocommerce a.button.disabled:hover, .woocommerce button.button:disabled:hover { background: var(--white-dim); color: var(--ink-2); opacity: 1; cursor: not-allowed; }
.woocommerce .button.wc-backward, .woocommerce .cart .button.wc-backward { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.woocommerce .button.wc-backward:hover { background: var(--graphite); border-color: var(--graphite); color: #fff; }

/* ---------- Notices ---------- */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  padding: 1rem 1.25rem;
  margin: 0 0 1.8rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.98rem;
  list-style: none;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-message { border-left-color: #0f7b48; }
.woocommerce-error { border-left-color: #b3261e; }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button { margin-left: auto; padding: 0.55rem 1.1rem; font-size: 0.92rem; }

/* ---------- Forms ---------- */

.woocommerce form .form-row { padding: 0; margin: 0 0 1.1rem; }
.woocommerce form .form-row label { display: block; margin-bottom: 0.4rem; font-weight: 560; font-size: 0.94rem; color: var(--ink); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.4;
  height: auto;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  background: #fff;
}

/* ---------- Cart ---------- */

.woocommerce-cart .prose-page,
.woocommerce-checkout .prose-page,
.woocommerce-account .prose-page { max-width: none; }

.woocommerce table.shop_table {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  margin: 0 0 1.8rem;
  background: #fff;
}
.woocommerce table.shop_table th {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.woocommerce table.shop_table td { padding: 1rem; border-top: 0; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.woocommerce table.shop_table tbody tr:last-child td { border-bottom: 0; }
.woocommerce table.shop_table .product-thumbnail img { width: 66px; height: 66px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0.25rem; box-sizing: border-box; }
.woocommerce table.shop_table td.product-name a { color: var(--ink); font-weight: 560; text-decoration: none; }
.woocommerce table.shop_table td.product-name a:hover { color: var(--blue-deep); }
.woocommerce table.shop_table td.product-price, .woocommerce table.shop_table td.product-subtotal, .woocommerce table.shop_table td.product-total { font-variant-numeric: tabular-nums; font-weight: 560; }
.woocommerce a.remove {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--white-dim);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  text-decoration: none;
}
.woocommerce a.remove:hover { background: #b3261e; color: #fff; }
.woocommerce .cart-collaterals { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.woocommerce .cart-collaterals .cart_totals { float: none; width: auto; }
.woocommerce .cart-collaterals .cross-sells { float: none; width: auto; }
.woocommerce .cart_totals h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.woocommerce .cart_totals table.shop_table { background: var(--paper); }
.woocommerce .cart_totals .order-total .amount { font-size: 1.25rem; font-weight: 680; }
.woocommerce .wc-proceed-to-checkout { padding: 0; margin-top: 1.2rem; }
.woocommerce .wc-proceed-to-checkout a.checkout-button { display: flex; align-items: center; justify-content: center; width: 100%; padding: 1rem 1.5rem; font-size: 1.05rem; border-radius: 12px; }
.woocommerce .actions .coupon { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.woocommerce .actions .coupon .input-text { width: auto; flex: 1 1 200px; padding: 0.7rem 1rem; border: 1px solid var(--line-strong); border-radius: 10px; font-family: var(--font); }

/* ---------- Checkout ---------- */

.woocommerce .col2-set, .woocommerce-page .col2-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); width: auto; }
.woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-1, .woocommerce-page .col2-set .col-2 { float: none; width: auto; }
.woocommerce-checkout h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.woocommerce-checkout #order_review_heading { margin-top: 2.5rem; }
.woocommerce-checkout #order_review { border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.2rem, 3vw, 1.8rem); background: var(--paper); }
.woocommerce-checkout #order_review table.shop_table { background: transparent; border: 0; margin-bottom: 1rem; }
.woocommerce-checkout #payment { background: transparent; border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods { padding: 0 0 1rem; border-bottom: 1px solid var(--line); list-style: none; }
.woocommerce-checkout #payment div.payment_box { background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-2); font-size: 0.95rem; }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment #place_order { width: 100%; padding: 1rem 1.5rem; font-size: 1.05rem; border-radius: 12px; }

/* ---------- My account ---------- */

.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.woocommerce-account .woocommerce-MyAccount-navigation { float: none; width: auto; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li { margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a { display: block; padding: 0.8rem 1.1rem; color: var(--ink-2); font-weight: 540; text-decoration: none; background: #fff; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover { background: var(--white-dim); color: var(--ink); }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a { background: var(--graphite); color: #fff; }
.woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }

/* ---------- Breadcrumb ---------- */

.woocommerce .woocommerce-breadcrumb { margin: 0 0 1.4rem; color: var(--ink-2); font-size: 0.9rem; }
.woocommerce .woocommerce-breadcrumb a { color: var(--ink-2); text-decoration: none; }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--blue-deep); }

/* ---------- GSAP motion layer ---------- */

.reveal { opacity: 1; }
html.has-gsap .reveal { will-change: transform, opacity, clip-path; }

.motion-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-skip);
  height: 2px;
  background: linear-gradient(90deg, #ffffff 0%, #70a5ff 45%, var(--blue) 100%);
  box-shadow: 0 0 14px rgba(79, 141, 249, 0.75);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.motion-surface {
  --signal-x: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.motion-surface::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -30% -20%;
  background: radial-gradient(circle at var(--signal-x) 50%, rgba(117, 170, 255, 0.18), transparent 24%);
  pointer-events: none;
}
/* The watermark stays absolutely positioned: lifting it into flow would push
   the hero copy down by its full height. */
.motion-surface > *:not(.hero-mark) { position: relative; z-index: 1; }

.workshop-photo img,
.featured-guide > figure img,
.compatibility-grid > figure img,
.page-hero--split figure img {
  transform: scale(1.08);
  will-change: transform;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .primary-navigation .menu { gap: 1.2rem; }
  .nav-phone { display: none; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; margin-bottom: 1rem; }
}

@media (max-width: 880px) {
  .menu-toggle { display: inline-flex; }
  .nav-pill { display: contents; }
  .nav-glow { display: none; }
  .nav-pill .cart-link { margin-left: auto; color: #fff; }
  .nav-booking { display: none; }
  .primary-navigation {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: var(--z-nav);
    margin: 0;
    background: var(--grad-nav);
    display: grid;
    align-content: center;
    padding: clamp(2rem, 8vw, 4rem);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  }
  .primary-navigation.is-open { opacity: 1; visibility: visible; }
  .primary-navigation .menu { flex-direction: column; gap: 0.4rem; border-top: 2px solid var(--blue); padding-top: 1.5rem; }
  .primary-navigation a {
    display: block;
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    font-weight: 620;
    letter-spacing: -0.02em;
    color: #fff;
    padding: 0.45rem 0;
    border-radius: 0;
  }
  .primary-navigation a:hover { background: transparent; color: var(--accent); }
  .primary-navigation a[aria-current="page"] { color: var(--accent); }
  .has-dropdown .caret { display: none; }
  .nav-dropdown, .primary-navigation .menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0.1rem 0 0.5rem 1.25rem;
    min-width: 0;
    gap: 0;
  }
  .nav-dropdown::before, .primary-navigation .menu .sub-menu::before { display: none; }
  .nav-dropdown a, .primary-navigation .menu .sub-menu a {
    font-size: 1.05rem;
    font-weight: 460;
    letter-spacing: 0;
    color: var(--dim);
    padding: 0.3rem 0;
    border-radius: 0;
  }
  .nav-dropdown a:hover, .primary-navigation .menu .sub-menu a:hover { background: transparent; color: var(--accent); }
  .nav-dropdown__grid { grid-auto-flow: row; }
  .nav-dropdown__group { padding: 0; }
  .nav-dropdown__group + .nav-dropdown__group { border-left: 0; margin-top: 0.7rem; }
  .nav-dropdown__links:has(> a:nth-child(7)) { grid-template-rows: none; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 0.75rem; }
  .nav-dropdown .nav-dropdown__device { padding: 0.15rem 0 0.35rem; font-size: 0.68rem; }
  .nav-dropdown__foot { flex-direction: column; align-items: flex-start; gap: 0.1rem; margin-top: 0.4rem; padding-top: 0.4rem; }
  .nav-dropdown .nav-dropdown-all { padding-top: 0.3rem; }
  .primary-navigation .menu-contact { margin-top: 2rem; display: grid; gap: 0.4rem; border-top: 1px solid var(--graphite-edge); padding-top: 1.5rem; justify-items: center; }
  .primary-navigation .menu-contact a { font-size: 1.1rem; font-weight: 480; color: var(--dim); }
  .menu-toggle.is-open { position: relative; z-index: calc(var(--z-nav) + 1); color: var(--white); border-color: var(--graphite-edge); }
  body.nav-locked { overflow: hidden; }

  .hero-gradient { min-height: 70vh; }


  .parts-grid, .model-grid, .split-explainer, .faq-section, .nairobi-grid,
  .compatibility-grid, .shop-intro, .inventory-heading, .guides-hero,
  .featured-guide, .guides-index-heading, .about-story, .local-grid,
  .contact-hero-grid, .checklist-grid, .visit-section, .page-hero--split, .workshop-grid { grid-template-columns: 1fr; }

  .faq-heading { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact a, .footer-contact li { overflow-wrap: anywhere; }
  .symptom-list article { grid-template-columns: 1fr; gap: 0.4rem; }
  .jobcard-steps li { grid-template-columns: 48px minmax(0, 1fr); gap: 1.1rem; }
  .jobcard-steps li::before { width: 48px; height: 48px; font-size: 1.1rem; }
  .guide-row { grid-template-columns: 1fr; }
  .guide-row small { text-align: left; }
  .bench-strip ul { grid-template-columns: 1fr 1fr; }
  .bench-strip li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .bench-strip li { padding-left: 1.4rem; border-left: 1px solid var(--graphite-edge); }
  .spec-sheet > div, .visit-section dl > div, .location-facts > div { grid-template-columns: 1fr; gap: 0.15rem; }

  /* WooCommerce */
  .woocommerce div.product { grid-template-columns: 1fr; }
  .woocommerce div.product .woocommerce-product-gallery { position: static; }
  .woocommerce .cart-collaterals { grid-template-columns: 1fr; }
  .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
  .woocommerce .shop-toolbar { flex-direction: column; align-items: flex-start; }
  .product-facts > div { grid-template-columns: 1fr; gap: 0.15rem; }
  .device-gen__grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 0.65rem; }
  .device-card { padding: 1.15rem 0.6rem 0.9rem; border-radius: 16px; }
  .device-card__shot { height: 104px; }
  .device-card__name { font-size: 0.87rem; }
  .finder-page-routes { grid-template-columns: 1fr; }
  .finder__body { grid-template-columns: 1fr; }
  .finder__step + .finder__step { border-left: 0; border-top: 1px solid var(--line); }
  .shop-filters__select, .combo { flex: 1 1 auto; max-width: none; }
  .combo__list { max-height: 44vh; }
  .woocommerce .shop-filters__submit { flex: 0 0 auto; }
}

@media (max-width: 640px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 0.93rem; padding: 0.85rem 0.9rem 0.35rem; }
  .woocommerce ul.products li.product .price { padding: 0 0.9rem 0.85rem; font-size: 0.98rem; }
  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product .added_to_cart { margin: auto 0.9rem 0.9rem; padding: 0.62rem 0.7rem; font-size: 0.88rem; }

  /* Nine chips stacked would push the grid off the first screen, so they
     scroll sideways instead. */
  .shop-filters__chips {
    flex: 1 1 100%;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    /* Bleed to the card edges so a partly visible chip signals the scroll. */
    margin-inline: calc(clamp(1.2rem, 2.4vw, 1.75rem) * -1);
    padding-inline: clamp(1.2rem, 2.4vw, 1.75rem);
  }
  .shop-filters__chips::-webkit-scrollbar { display: none; }
  .shop-filters__chips a { flex: 0 0 auto; }

  /* Stacked cart table, replacing WooCommerce's small-screen sheet */
  .woocommerce table.shop_table_responsive thead,
  .woocommerce table.shop_table_responsive tbody th { display: none; }
  .woocommerce table.shop_table_responsive tr { display: block; border-bottom: 1px solid var(--line); padding: 0.4rem 0; }
  .woocommerce table.shop_table_responsive tr:last-child { border-bottom: 0; }
  .woocommerce table.shop_table_responsive tr td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: auto;
    padding: 0.5rem 1rem;
    border: 0;
    text-align: right;
  }
  .woocommerce table.shop_table_responsive tr td::before {
    content: attr(data-title) ": ";
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-2);
    text-align: left;
  }
  .woocommerce table.shop_table_responsive tr td.product-remove::before,
  .woocommerce table.shop_table_responsive tr td.product-thumbnail::before,
  .woocommerce table.shop_table_responsive tr td.actions::before { content: none; }
  .woocommerce table.shop_table_responsive tr td.actions { display: block; text-align: left; }
  .woocommerce table.shop_table_responsive tr td.actions .button { width: 100%; justify-content: center; margin-top: 0.5rem; }
}

@media (max-width: 480px) {
  .bench-strip ul { grid-template-columns: 1fr; }
  .bench-strip li { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--graphite-edge); }
  .bench-strip li:first-child { border-top: 0; }
  .button { width: 100%; justify-content: center; }
  .button-row .text-action { padding-block: 0.4rem; }
  .nav-row { min-height: 64px; }
  .site-logo img { width: 138px; }
}

/* ---------- Page transitions (cross-document View Transitions; no-op where unsupported) ---------- */

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out 0.24s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in 0.42s var(--ease) both; }
  ::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none; }
}

@keyframes vt-out { to { opacity: 0; transform: translateY(-16px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(20px); } }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.has-motion .reveal, html.has-motion .reveal-clip {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
  .parts-photo img,
  .workshop-photo img,
  .featured-guide > figure img,
  .compatibility-grid > figure img,
  .page-hero--split figure img { transform: none; }
}


/* ---------- Full-bleed photography ---------- *
 * Photographs used to sit only in contained 14px cards. The bands break that
 * on purpose: one picture, edge to edge, between sections, carrying no text.
 */
.photo-band {
  position: relative;
  margin: 0;
  width: 100%;
  overflow: hidden;
  background: var(--white-dim);
}
.photo-band img {
  display: block;
  width: 100%;
  height: clamp(320px, 52vw, 680px);
  object-fit: cover;
  object-position: center;
}
.photo-band figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.1rem, 2vw, 1.6rem);
  background: linear-gradient(180deg, rgba(6, 10, 28, 0) 0%, rgba(6, 10, 28, 0.62) 100%);
  color: var(--white);
  pointer-events: none;
}
.photo-band figcaption span {
  display: block;
  width: var(--shell);
  margin-inline: auto;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--dim);
}

/* ---------- Shop front: pick your phone ---------- */
.shop-front { padding-block: clamp(1rem, 2vw, 2rem) var(--space-section); }
.shop-front__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.shop-front__head h2 { font-size: var(--h2); letter-spacing: -0.02em; margin-bottom: 0.7rem; }
.shop-front__head p { color: var(--ink-2); font-size: var(--lede); }
.shop-front__aside {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  max-width: 68ch;
}
.shop-front__aside a { color: var(--accent-ink); text-underline-offset: 3px; }

/* Home page: the same route, shortened to the newest handsets. */
.home-picker { padding-block: var(--space-section); background: var(--white); }
.home-picker__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.home-picker__all { margin-top: clamp(1.6rem, 3vw, 2.4rem); }

/* ---------- Step two: this phone, and what it is doing ---------- */
.model-step {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.4rem);
  margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem);
}
.model-step__phone {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.6rem);
  padding-bottom: clamp(1.2rem, 2.4vw, 1.8rem);
  border-bottom: 1px solid var(--line);
}
.model-step__phone img { width: auto; height: clamp(76px, 9vw, 108px); }
.model-step__id { display: grid; gap: 0.15rem; }
.model-step__id small {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.model-step__id strong { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.02em; }
.model-step__change { justify-self: start; font-size: 0.92rem; color: var(--accent-ink); text-underline-offset: 3px; }

.model-step__title { font-size: var(--h3); font-weight: 640; margin-bottom: clamp(0.9rem, 2vw, 1.3rem); }
.model-step__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(0.7rem, 1.4vw, 1rem);
}
.model-fault {
  display: grid;
  gap: 0.3rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.26s var(--ease), box-shadow 0.26s var(--ease), transform 0.26s var(--ease);
}
.model-fault svg { width: 22px; height: 22px; color: var(--blue); }
.model-fault strong { font-size: 1.02rem; letter-spacing: -0.01em; }
.model-fault small { color: var(--ink-2); line-height: 1.45; }
.model-fault:hover {
  border-color: var(--blue);
  box-shadow: 0 18px 36px -26px rgba(18, 109, 249, 0.8);
  transform: translateY(-3px);
}
.model-fault:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.model-fault.is-selected { border-color: var(--blue); background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%); }

/* A repair category reached without a handset asks for one first. */
.model-ask { margin-bottom: clamp(2rem, 4vw, 3rem); }
.model-ask__copy { max-width: 60ch; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.model-ask__copy h2 { font-size: var(--h2); letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.model-ask__copy p { color: var(--ink-2); font-size: var(--lede); }

@media (max-width: 880px) {
  .model-step__phone { gap: 1rem; }
  .model-step__grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
}
@media (max-width: 480px) {
  .photo-band img { height: clamp(260px, 62vw, 360px); }
  .home-picker__grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
}

/* ---------- Hero photography ---------- *
 * The gradient stays underneath: if the photograph is slow, or missing, the
 * hero still reads. The scrim runs from the copy side so white type keeps its
 * contrast over the picture.
 */
.hero-gradient--photo { position: relative; isolation: isolate; }
.hero-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
  will-change: transform;
}
.hero-gradient--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6, 10, 28, 0.94) 0%, rgba(6, 10, 28, 0.82) 38%, rgba(6, 10, 28, 0.35) 72%, rgba(6, 10, 28, 0.2) 100%),
    linear-gradient(180deg, rgba(6, 10, 28, 0.55) 0%, rgba(6, 10, 28, 0) 34%);
}
.hero-gradient--photo > .site-shell,
.hero-gradient--photo > .bench-strip,
.hero-gradient--photo > .hero-mark { position: relative; z-index: 2; }

@media (max-width: 880px) {
  /* On a phone the copy covers most of the frame, so the picture carries a
     heavier scrim and sits centred rather than off to one side. */
  .hero-photo img { object-position: 60% 50%; }
  .hero-gradient--photo::after {
    background: linear-gradient(180deg, rgba(6, 10, 28, 0.88) 0%, rgba(6, 10, 28, 0.76) 55%, rgba(6, 10, 28, 0.86) 100%);
  }
}

/* ---------- Identification reference ---------- *
 * Ruled rows, not cards: this is a table someone reads against the phone in
 * their hand, so it stays quiet and scannable.
 */
.identify { margin-top: clamp(3rem, 6vw, 5rem); }
.identify__head { max-width: 62ch; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.identify__head h2 { font-size: var(--h2); letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.identify__head p { color: var(--ink-2); font-size: var(--lede); }
.identify__rows { margin: 0; border-top: 1px solid var(--line); }
.identify__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: clamp(0.6rem, 2vw, 2rem);
  align-items: baseline;
  padding: clamp(1rem, 2vw, 1.4rem) 0;
  border-bottom: 1px solid var(--line);
}
.identify__row dt { font-weight: 600; letter-spacing: -0.01em; }
.identify__row dd { margin: 0; color: var(--ink-2); }
.identify__is { color: var(--ink); font-variant-numeric: tabular-nums; }
.identify__foot { margin-top: 1.4rem; color: var(--ink-2); max-width: 74ch; }

@media (max-width: 880px) {
  .identify__row { grid-template-columns: 1fr; gap: 0.3rem; }
  .identify__is { order: -1; font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); }
}

/* ---------- What the price covers ---------- */
.model-step__price-note,
.product-price-note {
  margin: 0;
  color: var(--ink-2);
  max-width: 70ch;
}
.model-step__price-note {
  padding: 0.9rem 0 0;
  font-size: 0.98rem;
}
.product-price-note {
  padding: 0.6rem 0 0.2rem;
  font-size: 0.95rem;
}

/* ---------- Software and upgrades ---------- */
.software-section { padding-block: var(--space-section); }
.software-section + .software-section { padding-top: 0; }
.software-list { margin: 0; border-top: 1px solid var(--line); }
.software-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(0.6rem, 3vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2.2rem) 0;
  border-bottom: 1px solid var(--line);
}
.software-row dt {
  font-size: var(--h3);
  font-weight: 620;
  letter-spacing: -0.015em;
}
.software-row dd { margin: 0; }
.software-row p { color: var(--ink-2); max-width: 68ch; }

.software-limits { display: grid; gap: 1rem; max-width: 74ch; }
.software-limits p {
  padding-left: 1.1rem;
  border-left: 2px solid var(--accent-line);
  color: var(--ink-2);
}
.software-checklist { margin: 0; padding: 0; list-style: none; max-width: 74ch; }
.software-checklist li {
  padding: 0.85rem 0 0.85rem 1.7rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--ink-2);
}
.software-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.software-note { margin-top: 1.4rem; color: var(--ink-2); max-width: 74ch; }

/* ---------- Pick-up and delivery ---------- */
.collection-band { padding-block: var(--space-section); background: var(--white-dim); }
.collection-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: start;
}
.collection-steps { counter-reset: stop; margin: 0; padding: 0; list-style: none; }
.collection-steps li {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.collection-steps li::before {
  counter-increment: stop;
  content: counter(stop);
  font-variant-numeric: tabular-nums;
  font-weight: 620;
  color: var(--accent-ink);
}
.collection-copy h2 { font-size: var(--h2); letter-spacing: -0.02em; margin-bottom: 0.7rem; }
.collection-copy p { color: var(--ink-2); max-width: 60ch; }

@media (max-width: 880px) {
  .software-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .collection-grid { grid-template-columns: 1fr; }
}

/* ---------- Service index rows ---------- */
.service-index { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.service-index li { border-bottom: 1px solid var(--line); }
.service-index a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(0.9rem, 2vw, 1.3rem) 0;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.service-index strong { font-size: var(--h3); font-weight: 600; letter-spacing: -0.015em; }
.service-index__count { color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.service-index a:hover { color: var(--accent-ink); }
.service-index a:hover .row-arrow { transform: translateX(4px); }
.service-index .row-arrow { transition: transform 0.24s var(--ease); }
.service-index a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

@media (max-width: 480px) {
  .service-index a { grid-template-columns: minmax(0, 1fr) auto; }
  .service-index .row-arrow { display: none; }
}

/* A model with no picture yet, usually a device family added before its
   photography. The card keeps its shape but drops the empty frame. */
.device-card--nophoto { padding: 1.15rem 1rem 1rem; align-content: center; }
.device-card--nophoto .device-card__shot { display: none; }
.device-card--nophoto .device-card__name { text-align: center; }
