/* ==========================================================================
   Cellular Solutions — Dark theme with red and blue brand accents
   Black background with red "Cellular", blue "Solutions", and accent treatments.
   ========================================================================== */

:root {
  --brand-red: #F80604;
  --brand-red-dark: #D40503;
  --brand-blue: #0411F2;
  --brand-blue-light: #5F64FF;
  --brand-blue-accessible: #6B74FE;
  --pale-blue: #BADBFB;
  --ink: #FFFFFF;
  --ink-soft: #D7DAE0;
  --muted: #A9AEB6;
  --white: #FFFFFF;
  --bg: #101010;
  --bg-subtle: #1B1D20;
  --bg-charcoal: #202327;
  --border: #2C2F33;
  --border-strong: #3A3D42;
  --danger: #F80604;
  --focus: #0411F2;

  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-wordmark: "Arial Narrow", "Segoe UI Semibold", Arial, sans-serif;
  --font-hero-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --header-h: 68px;
  --catnav-h: 84px;
}

/* ---- Fonts ----------------------------------------------------------------- */
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed/barlow-condensed-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible { outline-offset: 3px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

/* ---- Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) { .container { padding-inline: 2rem; } }

.section { padding-block: 3rem; }
.section-tight { padding-block: 2rem; }
@media (min-width: 900px) {
  .section { padding-block: 4.5rem; }
  .section-tight { padding-block: 2.5rem; }
}
.section-subtle { background: var(--bg-subtle); }

#shop-categories { scroll-margin-top: calc(var(--header-h) + var(--catnav-h) + 1rem); }

.section-head { margin-bottom: 1.75rem; max-width: 62ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--brand-red);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
h2.section-title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.section-lede { color: var(--ink-soft); font-size: 1.05rem; margin-top: 0.6rem; }

/* ---- Icons ----------------------------------------------------------------- */
.icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 32px; height: 32px; }

/* ---- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand-blue); color: var(--white); }
.btn-primary:hover { background: var(--brand-blue-light); }
.btn-secondary { background: transparent; color: var(--brand-blue-accessible); border-color: var(--brand-blue-accessible); }
.btn-secondary:hover { background: var(--bg-charcoal); border-color: var(--brand-blue-light); }
.btn-dark { background: transparent; color: var(--white); border-color: var(--border-strong); }
.btn-dark:hover { background: var(--bg-subtle); border-color: var(--brand-blue); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-charcoal); border-color: var(--brand-blue); color: var(--brand-blue); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }

/* ---- Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  position: relative;
}
.header-actions { display: none; align-items: center; gap: 1.25rem; }
.header-contact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  white-space: nowrap;
}
.header-contact:hover { color: var(--brand-blue-accessible); }
.header-contact .icon { color: var(--brand-blue-accessible); }
.header-nav { display: none; align-items: center; gap: 1.5rem; position: relative; }
.header-nav a { font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); }
.header-nav a:hover { color: var(--brand-blue); }
.header-nav a[aria-current="page"] { color: var(--brand-blue); }

.shop-categories-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
  padding: 0;
}
.shop-categories-btn:hover { color: var(--brand-blue); }
.shop-categories-btn[aria-expanded="true"] { color: var(--brand-blue); }
.shop-categories-btn.is-parent-active { color: var(--brand-blue); }
.shop-categories-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.dropdown-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.shop-categories-btn[aria-expanded="true"] .dropdown-chevron {
  transform: rotate(180deg);
}

.shop-dropdown {
  background: var(--bg-charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 50;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
}
.shop-dropdown-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding: 0.75rem 0;
  min-width: 280px;
}
.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  border: none;
  cursor: pointer;
}
.dropdown-item:hover { background: var(--bg-subtle); color: var(--brand-blue); }
.dropdown-item:focus-visible {
  outline: none;
  background: var(--bg-subtle);
  color: var(--brand-blue);
}
.dropdown-item[aria-current="page"] { color: var(--brand-blue); background: var(--bg-subtle); }

.repair-nav-dropdown-content { grid-template-columns: 1fr; min-width: 220px; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--ink);
  background: transparent;
}
.menu-toggle:hover { background: var(--bg-subtle); }

@media (min-width: 1180px) {
  .header-actions { display: flex; }
  .header-nav { display: flex; }
  .menu-toggle { display: none; }
}

/* ---- Brand wordmark (text-based) ------------------------------------------------- */
.brand-wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}
.brand-wordmark:hover { opacity: 0.85; }
.brand-wordmark:focus-visible {
  outline: 3px solid var(--brand-blue-accessible);
  outline-offset: 2px;
  border-radius: 2px;
}
.brand-wordmark .brand-line1 {
  display: flex;
  gap: 0.26em;
  font-size: 1.6rem;
  font-family: "Barlow Condensed", var(--font-wordmark);
  font-weight: 900;
  white-space: nowrap;
}
.brand-wordmark .brand-cell { color: var(--brand-red); }
.brand-wordmark .brand-sol { color: var(--brand-blue-accessible); }
.brand-wordmark .brand-loc {
  display: flex;
  align-items: center;
  gap: 0.55em;
  color: var(--ink);
  font-family: var(--font-wordmark);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  margin-top: 0.4em;
  white-space: nowrap;
}
.brand-wordmark .brand-loc::before,
.brand-wordmark .brand-loc::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--brand-blue-accessible);
}
/* Desktop wordmark (default, for 1180px and up) */
.brand-wordmark.lg .brand-line1 { font-size: 2.3rem; }
.brand-wordmark.lg .brand-loc { font-size: 0.8rem; gap: 0.7em; }
.brand-wordmark.lg {
  margin-right: 2rem;
}
/* Tablet wordmark (below 1180px) */
@media (max-width: 1179px) {
  .brand-wordmark.lg .brand-line1 { font-size: 1.7rem; }
  .brand-wordmark.lg .brand-loc { font-size: 0.66rem; }
  .brand-wordmark.lg { margin-right: 1.5rem; }
}
/* Mobile wordmark (below 420px) */
@media (max-width: 420px) {
  .header-bar { gap: 0.5rem; }
  .brand-wordmark.lg .brand-line1 { font-size: 1.2rem; }
  .brand-wordmark.lg .brand-loc { font-size: 0.5rem; gap: 0.4em; }
  .brand-wordmark.lg { margin-right: 0.5rem; }
}
/* Mobile menu wordmark */
.brand-wordmark.sm .brand-line1 { font-size: 1.2rem; }
.brand-wordmark.sm .brand-loc { font-size: 0.5rem; gap: 0.4em; }
.brand-wordmark.sm {
  margin-right: 0.75rem;
}
/* Dark background variant (footer) */
.brand-wordmark.on-dark .brand-sol { color: var(--white); }
.brand-wordmark.on-dark .brand-loc { color: var(--white); }
.brand-wordmark.on-dark .brand-loc::before,
.brand-wordmark.on-dark .brand-loc::after { background: var(--white); }

/* ---- Footer image logo (official merchant logo) --------------------------------- */
.brand-image-logo {
  display: inline-block;
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}
.brand-image-logo:hover { opacity: 0.85; }
.brand-image-logo:focus-visible {
  outline: 3px solid var(--brand-blue-accessible);
  outline-offset: 2px;
  border-radius: 2px;
}
.brand-image-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-width: 240px;
}

/* ---- Mobile menu ---------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 1.75rem; }
.mobile-menu nav ul { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-menu nav a {
  display: block;
  padding: 0.85rem 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.mobile-menu nav a:hover { color: var(--brand-blue); }
.mobile-menu-contact { display: flex; flex-direction: column; gap: 0.75rem; }
body.menu-open { overflow: hidden; }

/* ---- Category navigation ----------------------------------------------------------- */
.category-nav { background: var(--bg); border-bottom: 1px solid var(--border); }
.category-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding-block: 0.75rem;
}
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  text-align: center;
  padding: 0.6rem 0.35rem;
  border-radius: var(--radius-md);
  color: var(--ink);
  border: 1px solid transparent;
  background: transparent;
}
.category-item .icon { color: var(--brand-blue-accessible); width: 26px; height: 26px; }
.category-item span { font-size: 0.72rem; font-weight: 700; line-height: 1.2; color: var(--ink); }
.category-item:hover, .category-item:focus-visible { background: var(--bg-charcoal); border-color: var(--brand-blue); }
.category-item.is-active { background: var(--bg-charcoal); border-color: var(--brand-blue); }

@media (min-width: 1180px) {
  .category-list {
    display: flex;
    justify-content: space-between;
    padding-block: 0.85rem;
  }
  .category-item { flex-direction: row; flex: 1; gap: 0.55rem; padding: 0.6rem 0.5rem; }
  .category-item span { font-size: 0.82rem; }
  .category-item .icon { width: 22px; height: 22px; }
}

/* ---- Hero -------------------------------------------------------------------------- */
.hero { padding-block: 2.5rem; border-bottom: 1px solid var(--border); background: var(--bg); overflow: hidden; }
@media (min-width: 900px) { .hero { padding-block: 3.5rem; } }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 0.82fr 1fr; gap: 1.25rem; }
}
.hero-copy { max-width: 620px; }
.hero-title {
  font-family: var(--font-hero-display);
  font-size: clamp(2.75rem, 1.7rem + 4.6vw, 4.75rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--ink);
}
.hero-title .hl { color: var(--brand-blue); }
.hero-sub { margin-top: 1.1rem; font-size: 1.1rem; color: var(--ink-soft); max-width: 58ch; }
.hero-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-meta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--muted); font-size: 0.9rem; }
.hero-meta a { color: var(--ink); }
.hero-meta a:hover { color: var(--brand-blue); }
.hero-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-meta .icon { color: var(--brand-blue); }

.hero-media { position: relative; }
.hero-media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.hero-media-frame img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: 60% 55%;
}
@media (min-width: 560px) { .hero-media-frame img { height: 340px; } }
@media (min-width: 900px) {
  .hero-media-frame img { height: clamp(420px, 34vw, 560px); }
  .hero-media {
    margin-right: calc(-2rem - max(0px, (100vw - 1200px) / 2));
  }
  .hero-media-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, var(--bg) 0%, var(--bg) 8%, rgba(16, 16, 16, 0.8) 18%, rgba(16, 16, 16, 0) 40%);
    pointer-events: none;
  }
}

/* ---- Benefits strip ------------------------------------------------------------- */
.benefits-strip {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}
.benefit-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--border);
}
.benefit-item:first-child { border-top: 0; }
@media (min-width: 560px) {
  .benefit-item { border-top: 0; border-left: 1px solid var(--border); padding: 0.85rem 1rem; }
  .benefit-item:first-child { border-left: 0; }
}
.benefit-item .icon { color: var(--brand-blue); width: 26px; height: 26px; flex-shrink: 0; }
.benefit-text { display: flex; flex-direction: column; line-height: 1.3; }
.benefit-title { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.02em; color: var(--brand-red); }
.benefit-sub { font-weight: 600; font-size: 0.7rem; letter-spacing: 0.02em; color: var(--ink-soft); }

/* ---- Cards / grids -------------------------------------------------------------------- */
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(1, 1fr); align-items: start; }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }
/* .grid-5 holds the seven homepage category cards: flexbox (not grid) so a
   partial last row (3 cards) centers itself instead of stretching to fill
   the row or leaving a lopsided gap. */
.grid-5 { display: flex; flex-wrap: wrap; justify-content: center; }
.grid-5 > * { flex: 0 0 100%; }
@media (min-width: 560px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 > * { flex-basis: calc(50% - 0.55rem); }
}
@media (min-width: 800px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 > * { flex-basis: calc(33.333% - 0.734rem); }
}
@media (min-width: 1024px) {
  .grid-5 > * { flex-basis: calc(25% - 0.825rem); }
}

.card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
a.card:hover, a.card:focus-visible { border-color: var(--brand-blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.shop-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-subtle); }
.shop-card-media { display: block; aspect-ratio: 4 / 3; background: #F0F0F0; overflow: hidden; }
.shop-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
a.shop-card:hover .shop-card-media img, a.shop-card:focus-visible .shop-card-media img { transform: scale(1.04); }
a.shop-card:hover, a.shop-card:focus-visible { border-color: var(--brand-blue); }
.shop-card-body { display: flex; flex-direction: column; gap: 0.9rem; padding: 1.35rem 1.4rem 1.5rem; }
.shop-card .shop-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-charcoal);
  color: var(--brand-blue);
  display: flex; align-items: center; justify-content: center;
}
.shop-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.shop-card p { color: var(--ink-soft); font-size: 0.92rem; }
.shop-card .card-link { margin-top: auto; color: var(--brand-blue-accessible); font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.3rem; }

/* ---- Repair section ------------------------------------------------------------------ */
.repair-section { background: var(--bg); color: var(--white); }
.repair-section .eyebrow { color: var(--brand-red); }
.repair-section .section-lede { color: var(--ink-soft); }
.repair-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .repair-grid { grid-template-columns: 1.2fr 0.8fr; gap: 3rem; } }
.repair-media { order: -1; }
@media (min-width: 960px) { .repair-media { order: 0; } }
.repair-media-frame {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-charcoal);
  padding: 0.6rem;
}
.repair-media-frame img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
}
@media (min-width: 640px) { .repair-media-frame img { height: 280px; } }
@media (min-width: 960px) { .repair-media-frame img { height: 100%; min-height: 360px; } }
.repair-devices { margin-top: 2rem; }
.repair-device {
  background: var(--bg-charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  color: var(--white);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.repair-device .icon { color: var(--brand-blue); width: 30px; height: 30px; }
.repair-device span { font-weight: 700; font-size: 0.95rem; }
.repair-device:hover, .repair-device:focus-visible { border-color: var(--brand-blue); background: var(--bg-subtle); }
.repair-section .btn-primary { background: var(--brand-blue); }
.repair-section .btn-primary:hover { background: var(--brand-blue-light); }
.repair-section .btn-ghost { border-color: var(--border-strong); color: var(--white); }
.repair-section .btn-ghost:hover { background: var(--bg-charcoal); border-color: var(--brand-blue); }

/* ---- Trust section ------------------------------------------------------------------- */
.trust-grid { margin-top: 1.75rem; }
.trust-item { display: flex; gap: 1rem; align-items: flex-start; }
.trust-item .icon { color: var(--brand-blue); width: 28px; height: 28px; margin-top: 0.15rem; }
.trust-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--ink); }
.trust-item p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---- Contact / location --------------------------------------------------------------- */
.contact-panel {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 800px) { .contact-panel { grid-template-columns: 1.1fr 0.9fr; padding: 2.75rem; } }
.contact-detail { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.1rem; }
.contact-detail .icon { color: var(--brand-blue); width: 26px; height: 26px; margin-top: 0.1rem; }
.contact-detail strong { display: block; font-size: 1rem; color: var(--ink); }
.contact-detail span, .contact-detail a { color: var(--ink-soft); font-size: 0.95rem; }
.contact-detail a:hover { color: var(--brand-blue); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

/* ---- Breadcrumbs --------------------------------------------------------------------- */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumbs a { color: var(--brand-blue); font-weight: 600; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; color: var(--brand-blue-light); }
.breadcrumbs .icon { width: 14px; height: 14px; color: var(--muted); }

/* ---- Repair section contextual sub-nav (Repair Services / Repair Protection Plans) ---- */
.repair-subnav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.25rem;
  margin-bottom: 1.25rem;
  background: var(--bg-charcoal);
  border: 1px solid var(--border);
  border-radius: 999px;
  max-width: 100%;
}
.repair-subnav a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.repair-subnav a:hover { color: var(--brand-blue-accessible); }
.repair-subnav a[aria-current="page"] { background: var(--brand-blue); color: var(--white); }

/* Force the hero eyebrow onto its own line below the sub-nav — both are
   inline-level boxes and would otherwise sit side by side when there's
   enough horizontal room (e.g. the repair-protection.html hero). */
.repair-subnav + .eyebrow { display: block; }

.page-hero { border-bottom: 1px solid var(--border); background: var(--bg); overflow: hidden; }
.page-hero-grid { display: grid; gap: 1.25rem; padding-block: 1.75rem; align-items: center; }
@media (min-width: 760px) { .page-hero-grid { grid-template-columns: 1.3fr 1fr; gap: 2rem; } }
.page-hero h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.page-hero p { margin-top: 0.75rem; color: var(--ink-soft); max-width: 62ch; font-size: 1.02rem; }
.page-hero-media-frame {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #F0F0F0;
}
.page-hero-media-frame img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}
@media (min-width: 560px) { .page-hero-media-frame img { height: 190px; } }
@media (min-width: 760px) { .page-hero-media-frame img { height: 220px; } }
.page-hero-media-frame.featured img { height: 220px; }
@media (min-width: 560px) { .page-hero-media-frame.featured img { height: 280px; } }
@media (min-width: 760px) { .page-hero-media-frame.featured img { height: 320px; } }

/* ---- Selectable chips / option grids --------------------------------------------------- */
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .option-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .option-grid.cols-5 { grid-template-columns: repeat(5, 1fr); } }
.option-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--bg-charcoal);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.option-btn .icon { color: var(--brand-blue); width: 20px; height: 20px; flex-shrink: 0; }
.option-btn:hover { border-color: var(--brand-blue); background: var(--bg-subtle); }
.option-btn[aria-pressed="true"] { border-color: var(--brand-blue); background: var(--bg-subtle); color: var(--brand-blue); }

/* ---- Larger visual choice cards (phone brands, device types) -------------------------- */
.option-grid.visual-grid .option-btn {
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.35rem 1rem;
}
.option-grid.visual-grid .option-btn .icon { width: 34px; height: 34px; }
.option-grid.visual-grid .option-btn span { font-size: 0.9rem; }

.subcat-group { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.35rem; background: var(--bg-subtle); }
.subcat-group-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.subcat-group-head .group-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-charcoal);
  color: var(--brand-blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.subcat-group-head h3 { font-size: 1.02rem; font-weight: 800; color: var(--ink); }
.subcat-group ul { display: flex; flex-direction: column; gap: 0.4rem; }
.subcat-group li button {
  width: 100%;
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.subcat-group li button:hover { background: var(--bg-charcoal); color: var(--brand-blue); }

/* Gaming Consoles: distinguish Shop by Platform vs Shop by Type */
.subcat-group.platform-group .subcat-group-head .group-icon { background: var(--bg-charcoal); color: var(--brand-blue); }
.subcat-group.type-group { background: var(--bg-subtle); }
.subcat-group.type-group .subcat-group-head .group-icon { background: var(--bg-charcoal); color: var(--brand-blue); }

/* ---- iPad Accessories icon-card grid --------------------------------------------------- */
.icon-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
@media (min-width: 640px) { .icon-card-grid { grid-template-columns: repeat(3, 1fr); } }
.icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1.35rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-charcoal);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.icon-card .icon { width: 30px; height: 30px; color: var(--brand-blue); }
.icon-card:hover, .icon-card:focus-visible { border-color: var(--brand-blue); background: var(--bg-subtle); }

/* ---- Apple Watch size comparison cards -------------------------------------------------- */
.size-card-grid { display: grid; grid-template-columns: 1fr; gap: 0.85rem; margin-top: 0.75rem; }
@media (min-width: 640px) { .size-card-grid { grid-template-columns: repeat(3, 1fr); } }
.size-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-charcoal);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.size-card .icon { width: 28px; height: 28px; color: var(--brand-blue); }
.size-card strong { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.size-card:hover { border-color: var(--brand-blue); background: var(--bg-subtle); }
.size-card[aria-pressed="true"] { border-color: var(--brand-blue); background: var(--bg-subtle); }

/* ---- Forms --------------------------------------------------------------------------- */
.form-card { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  background: var(--bg-charcoal);
  color: var(--ink);
  width: 100%;
}
.field input::placeholder, .field select::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-blue); outline: none; }
.field textarea { resize: vertical; min-height: 100px; }
.field.full { grid-column: 1 / -1; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }
.form-actions { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

.form-result {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-charcoal);
  border: 1px solid var(--brand-blue);
  color: var(--ink);
  display: none;
  gap: 0.7rem;
}
.form-result.is-visible { display: flex; }
/* Direct child only: this is the panel's own status icon. Icons nested inside
   buttons must inherit the button's color, not the panel's accent. */
.form-result > .icon { color: var(--brand-blue); flex-shrink: 0; margin-top: 0.1rem; }
.form-result strong { display: block; margin-bottom: 0.2rem; color: var(--white); }
/* Inline links only — without :not(.btn) this rule outranks .btn-primary and
   paints the call button's label brand-blue on a brand-blue background. */
.form-result a:not(.btn) { color: var(--brand-blue); font-weight: 700; text-decoration: underline; }
.form-result.is-error { border-color: var(--danger); }
.form-result.is-error .icon { color: var(--danger); }

/* Honeypot: off-screen for sighted users, hidden from assistive tech, and
   never focusable — only bots fill it in. Not display:none, because some bots
   skip fields they can tell are hidden that way. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Footer -------------------------------------------------------------------------- */
.site-footer { background: #050505; color: var(--ink-soft); padding-block: 3rem 1.75rem; border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 2.25rem; grid-template-columns: 1fr; }
.footer-col { min-width: 0; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; font-weight: 800; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
/* Two-column layout for SHOP category links (second footer-col) */
.footer-col:nth-child(2) ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; }
/* "Repair Protection Plans" is the trailing, longest link — give it the
   full row (its grid cell is otherwise empty) instead of half a column,
   so it doesn't wrap across three short lines. */
.footer-col:nth-child(2) li.footer-link-full { grid-column: 1 / -1; }

/* Tablet and up: two columns */
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:first-child { grid-column: 1 / 2; }
  .footer-col:nth-child(2) { grid-column: 1 / 2; grid-row: 2; }
  .footer-col:nth-child(3) { grid-column: 2 / 3; grid-row: 1 / 3; }
}

/* Desktop: three columns */
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: minmax(260px, 1.15fr) minmax(240px, 1fr) minmax(220px, 0.9fr); }
  .footer-col:first-child { grid-column: 1 / 2; grid-row: 1 / 2; }
  .footer-col:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
  .footer-col:nth-child(3) { grid-column: 3 / 4; grid-row: 1 / 2; }
}
.footer-col a { color: var(--ink-soft); text-decoration: none; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--brand-blue); }
.footer-col p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.footer-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--ink-soft); margin-top: 0.5rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
a.footer-social:hover { background: var(--brand-blue); border-color: var(--brand-blue); color: var(--white); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---- 404 ------------------------------------------------------------------------------ */
.error-page { padding-block: 5rem; text-align: center; background: var(--bg); }
.error-page .code { font-size: clamp(3.5rem, 3rem + 3vw, 6rem); font-weight: 800; color: var(--brand-red); line-height: 1; }
.error-page h1 { margin-top: 0.5rem; font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.error-page p { margin-top: 0.75rem; color: var(--ink-soft); max-width: 50ch; margin-inline: auto; }
.error-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; }

/* ---- Misc ------------------------------------------------------------------------------ */
.note-banner {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.note-banner .icon { color: var(--brand-blue); flex-shrink: 0; margin-top: 0.1rem; }

.watch-size-note { margin-top: 1.5rem; }

/* ---- Repair Protection promo (repair.html) ---------------------------------------------- */
.repair-protection-promo {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.repair-protection-promo .icon { width: 32px; height: 32px; color: var(--brand-blue); flex-shrink: 0; }
.repair-protection-promo-copy { flex: 1 1 320px; min-width: 0; }
.repair-protection-promo h2 { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.repair-protection-promo p { margin-top: 0.3rem; color: var(--ink-soft); font-size: 0.92rem; max-width: 52ch; }
.repair-protection-promo .btn { flex-shrink: 0; }
@media (max-width: 560px) {
  .repair-protection-promo { flex-direction: column; align-items: flex-start; }
  .repair-protection-promo .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Repair Protection — customer-facing page
   ========================================================================== */
.protection-hero { border-bottom: 1px solid var(--border); background: var(--bg); padding-block: 2.25rem; }
@media (min-width: 900px) { .protection-hero { padding-block: 3rem; } }
.protection-hero-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) {
  .protection-hero-grid { grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; }
}
.protection-hero-inner { max-width: 72ch; }
.protection-hero h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.protection-hero .section-lede { margin-top: 0.9rem; }
.protection-explainer {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-blue);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.protection-explainer strong { color: var(--ink); }

/* ---- Plan at a Glance (hero, right column) ---- */
.plan-glance-card {
  background: var(--bg-charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.plan-glance-card h2 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
}
.plan-glance-list { list-style: none; margin-top: 1.1rem; display: flex; flex-direction: column; gap: 1rem; }
.plan-glance-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.plan-glance-list .icon { width: 20px; height: 20px; color: var(--brand-blue-accessible); margin-top: 0.15rem; }
.plan-glance-list li div { display: flex; flex-direction: column; gap: 0.15rem; }
.plan-glance-list li strong { color: var(--white); font-size: 0.92rem; font-weight: 700; }
.plan-glance-list li span { color: var(--ink-soft); font-size: 0.85rem; line-height: 1.5; }

/* ---- Device Plan Lookup (interim customer form) ---- */
.device-lookup-panel {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
@media (min-width: 700px) { .device-lookup-panel { padding: 2rem 2.25rem; } }

.device-lookup-form { margin-top: 0.25rem; }
#device-lookup-note { margin-top: 0.5rem; line-height: 1.6; }

.device-lookup-result {
  margin-top: 1.5rem;
  padding: 1.35rem 1.5rem;
  background: var(--bg-charcoal);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-blue);
  border-radius: var(--radius-md);
}
.device-lookup-result.is-error { border-left-color: var(--danger); }
.device-lookup-result h3 { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.device-lookup-result > p { margin-top: 0.6rem; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; max-width: 62ch; }
.device-lookup-result > p strong { color: var(--ink); }

.device-lookup-summary { margin-top: 1.1rem; display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 560px) { .device-lookup-summary { grid-template-columns: repeat(3, 1fr); } }
.device-lookup-summary dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }
.device-lookup-summary dd { margin: 0.3rem 0 0; font-size: 0.98rem; font-weight: 700; color: var(--ink); word-break: break-word; overflow-wrap: anywhere; }

.device-lookup-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.device-lookup-actions .btn { min-height: 44px; }
@media (max-width: 480px) {
  .device-lookup-actions { flex-direction: column; align-items: stretch; }
  .device-lookup-actions .btn { width: 100%; }
}

/* ---- Pricing table (desktop) / cards (mobile) ---- */
.pricing-table-wrap { overflow-x: auto; }
.pricing-table { width: 100%; border-collapse: collapse; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.pricing-table caption { caption-side: bottom; text-align: left; padding-top: 0.85rem; color: var(--muted); font-size: 0.85rem; }
.pricing-table th, .pricing-table td { padding: 0.9rem 1.1rem; text-align: left; font-size: 0.92rem; }
.pricing-table thead th { background: #050505; color: var(--white); font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; }
.pricing-table tbody tr { border-top: 1px solid var(--border); }
.pricing-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.pricing-table tbody th { font-weight: 700; color: var(--ink); }
.pricing-table td.price-cell { font-weight: 700; color: var(--brand-blue-accessible); }
.pricing-table td.deductible-cell { font-weight: 700; color: var(--ink); }

.pricing-cards { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
.pricing-card { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.35rem 1.5rem; }
.pricing-card-range { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand-red); }
.pricing-card-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.9rem; }
.pricing-card-term dt { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.pricing-card-term dd { margin: 0.2rem 0 0; font-size: 1.25rem; font-weight: 800; color: var(--brand-blue-accessible); }
.pricing-card-deductible { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--border); font-size: 0.92rem; color: var(--ink-soft); }
.pricing-card-deductible strong { color: var(--ink); }

@media (min-width: 720px) {
  .pricing-cards { display: none; }
}
@media (max-width: 719.98px) {
  .pricing-table-wrap { display: none; }
}

.plan-includes-list, .not-covered-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.plan-includes-list li, .not-covered-list li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; }
.plan-includes-list .icon { color: var(--brand-blue-accessible); flex-shrink: 0; margin-top: 0.15rem; width: 20px; height: 20px; }

.terms-card, .exclusions-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.terms-block { max-width: 800px; }

/* ---- CTA ---- */
.protection-cta {
  background: var(--bg-charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
@media (min-width: 700px) { .protection-cta { padding: 2.5rem 3rem; } }
.protection-cta h2 { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.protection-cta p { margin-top: 0.6rem; color: var(--ink-soft); max-width: 56ch; margin-inline: auto; }
.protection-cta .cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
.protection-cta .cta-note { margin-top: 1.1rem; font-size: 0.85rem; color: var(--muted); }

/* ==========================================================================
   Repair Protection Records — staff admin foundation
   ========================================================================== */
.staff-shell { background: var(--bg); min-height: 100vh; }
.staff-topbar {
  border-bottom: 1px solid var(--border);
  padding-block: 1.1rem;
  background: #050505;
}
.staff-topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; }
.staff-topbar-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-red); }
.staff-topbar h1 { font-size: 1.35rem; font-weight: 800; color: var(--ink); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid var(--border-strong);
  color: var(--ink-soft);
  background: var(--bg-charcoal);
}
.status-badge-pending {
  border-color: #6B551F;
  color: #E8B84B;
  background: rgba(232, 184, 75, 0.1);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

.staff-main { padding-block: 2rem; display: flex; flex-direction: column; gap: 2rem; }

.staff-panel {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
@media (min-width: 700px) { .staff-panel { padding: 1.85rem 2rem; } }
.staff-panel h2 { font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.staff-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.1rem; }

.search-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.search-bar .field { flex: 1 1 320px; }
.search-bar .search-submit-field { flex: 0 0 auto; align-self: flex-end; }
.search-bar label { font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.search-hint { margin-top: 0.6rem; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 480px) {
  .search-bar { flex-direction: column; }
  .search-bar .field { flex: 0 0 auto; }
  .search-bar .search-submit-field { align-self: stretch; }
  .search-bar .search-submit-field .btn { width: 100%; }
}

.status-message {
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--bg-charcoal);
  border: 1px solid var(--border-strong);
  color: var(--ink-soft);
  font-size: 0.9rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.status-message .icon { color: var(--brand-red); flex-shrink: 0; margin-top: 0.1rem; }
.status-message.is-default { border-color: var(--border); color: var(--muted); }
.status-message.is-default .icon { color: var(--muted); }

.quick-facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .quick-facts-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .quick-facts-grid { grid-template-columns: repeat(6, 1fr); } }
.quick-fact { background: var(--bg-charcoal); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.9rem 1rem; }
.quick-fact-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }
.quick-fact-value { display: block; margin-top: 0.35rem; font-size: 1.1rem; font-weight: 800; color: var(--ink); word-break: break-word; }

.detail-groups { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 800px) { .detail-groups { grid-template-columns: repeat(2, 1fr); } }
.detail-group { background: var(--bg-charcoal); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.1rem 1.25rem; }
.detail-group h3 { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--brand-blue-accessible); margin-bottom: 0.75rem; }
.kv-list { display: flex; flex-direction: column; gap: 0.55rem; }
.kv-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; }
.kv-row dt { color: var(--muted); }
.kv-row dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; word-break: break-word; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 0.75rem 0.9rem; text-align: left; font-size: 0.88rem; border-bottom: 1px solid var(--border); }
.data-table thead th { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.03em; }
.data-table tbody td { color: var(--ink-soft); }

@media (max-width: 699.98px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { border-bottom: 1px solid var(--border); padding-block: 0.5rem; }
  .data-table td { border-bottom: 0; display: flex; justify-content: space-between; gap: 1rem; }
  .data-table td::before { content: attr(data-label); font-weight: 700; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.02em; }
}

.staff-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.staff-actions .btn,
.staff-dialog .btn,
.search-bar .btn {
  min-height: 44px;
}

.staff-actions .btn:disabled,
.staff-dialog .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: var(--muted);
  border-color: var(--border);
  background: transparent;
}
.staff-actions .btn:disabled:hover,
.staff-dialog .btn:disabled:hover {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}

dialog.staff-dialog {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  color: var(--ink);
  padding: 0;
  width: min(640px, calc(100vw - 2rem));
  max-height: calc(100vh - 4rem);
}
dialog.staff-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.staff-dialog-inner { padding: 1.5rem; overflow-y: auto; max-height: calc(100vh - 4rem); }
.staff-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: -1.5rem -1.5rem 1.1rem;
  padding: 1.5rem 1.5rem 1rem;
  position: sticky;
  top: 0;
  background: var(--bg-subtle);
  z-index: 1;
  border-bottom: 1px solid var(--border);
}
.staff-dialog-head h2 { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.staff-dialog-close { width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--ink); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.staff-dialog-close:hover { background: var(--bg-charcoal); }
.tier-preview { margin-top: 0.5rem; padding: 0.75rem 1rem; border-radius: var(--radius-sm); background: var(--bg-charcoal); border: 1px solid var(--border); font-size: 0.85rem; color: var(--ink-soft); }
.tier-preview strong { color: var(--ink); }
.field input[readonly] { color: var(--ink-soft); background: var(--bg-subtle); }
