/*
Theme Name: Computer Wall
Theme URI: https://computer-wall.com
Author: Computer Wall
Author URI: https://computer-wall.com
Description: Conversion-focused custom theme for Computer Wall — honest local computer repair in Stony Plain, Spruce Grove, and Parkland County. Built on the people-first approach: clear answer, clear price, honest repair-or-replace advice.
Version: 2.6.0
Requires at least: 5.6
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: computer-wall
Tags: one-column, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   Computer Wall — Brand stylesheet (v2)
   Design language: editorial, premium, tech-confident.
   No external fonts. System stack only. Custom SVG icons.
   ========================================================= */

:root {
  /* Surfaces */
  --bg: #FBFCFD;
  --surface: #FFFFFF;
  --surface-2: #F4F7FA;
  --surface-3: #EAF0F4;

  /* Ink */
  --ink-950: #060B14;
  --ink-900: #0F172A;
  --ink-800: #1E293B;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748B;
  --ink-400: #94A3B8;
  --ink-300: #CBD5E1;
  --ink-200: #E2E8F0;
  --ink-100: #F1F5F9;

  /* Brand */
  --teal-950: #042F2E;
  --teal-900: #134E4A;
  --teal-800: #115E59;
  --teal-700: #0F766E;
  --teal-600: #0D9488;
  --teal-500: #14B8A6;
  --teal-400: #2DD4BF;
  --teal-100: #CCFBF1;
  --teal-50:  #F0FDFA;

  /* Accent */
  --gold-500: #F59E0B;

  /* Type */
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Radii / shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.05);
  --shadow-2: 0 4px 14px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.04);
  --shadow-3: 0 18px 48px rgba(15,23,42,.10), 0 6px 18px rgba(15,23,42,.06);
  --shadow-glow: 0 30px 80px -30px rgba(13,148,136,.45);

  /* Containers */
  --max: 1240px;
  --max-narrow: 880px;
  --gutter: clamp(1rem, 2.5vw, 2rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-900); }

h1, h2, h3, h4 { color: var(--ink-900); margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw + .2rem, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
h2 { font-size: clamp(1.8rem, 2.6vw + .8rem, 2.6rem); letter-spacing: -0.025em; }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.015em; }

p { margin: 0 0 1em; }
.muted { color: var(--ink-500); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal-700);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--teal-600); display: inline-block;
}
.eyebrow.on-dark { color: var(--teal-400); }
.eyebrow.on-dark::before { background: var(--teal-400); }

.big-text { font-size: 1.15rem; color: var(--ink-700); line-height: 1.6; }
.centered { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: var(--ink-900); color: #fff; padding: .5rem .75rem; border-radius: 4px;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 1000; }

/* ---------- Icon system ---------- */
.icon { width: 1em; height: 1em; flex: 0 0 auto; stroke-width: 1.6; vertical-align: middle; }
.icon-lg { width: 28px; height: 28px; }
.icon-xl { width: 36px; height: 36px; }
.icon-inline { width: 1.05em; height: 1.05em; margin-right: .25em; vertical-align: -0.1em; }
.icon-spr { display: none !important; }

/* ---------- Layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: var(--max-narrow); }
.section { padding: clamp(3rem, 6vw, 6rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.section-light { background: var(--surface-2); }
.section-dark { background: var(--ink-950); color: var(--ink-100); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .muted { color: var(--ink-400); }

.section-head { max-width: 720px; margin: 0 auto 2.5rem; }
.section-head.centered { text-align: center; }
.section-sub { color: var(--ink-500); font-size: 1.05rem; margin-top: .5rem; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--teal-700);
  --fg: #fff;
  --bd: transparent;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: -0.005em;
  border: 1.5px solid var(--bd);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 2px; }
.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.02rem; }
.btn-xl { padding: 1.2rem 2rem; font-size: 1.08rem; }

.btn-primary { --bg: var(--teal-700); --fg: #fff; box-shadow: 0 6px 24px -10px rgba(13,148,136,.6); }
.btn-primary:hover { --bg: var(--teal-900); color: #fff; box-shadow: 0 12px 32px -8px rgba(13,148,136,.6); }

.btn-secondary { --bg: #fff; --fg: var(--ink-900); --bd: var(--ink-200); }
.btn-secondary:hover { --bd: var(--teal-700); --fg: var(--teal-700); }

.btn-ghost { --bg: transparent; --fg: var(--ink-700); --bd: transparent; padding-left: .25rem; padding-right: .25rem; }
.btn-ghost:hover { --fg: var(--teal-700); }

.btn-on-dark.btn-secondary { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.25); }
.btn-on-dark.btn-secondary:hover { --bd: #fff; --fg: #fff; }

.btn .icon { width: 18px; height: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.cta-row.centered { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.header-grid {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem var(--gutter);
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--ink-900); }
.brand:hover { text-decoration: none; color: var(--ink-900); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; }
.brand-name { font-size: 1.08rem; letter-spacing: -0.015em; }
.primary-nav { display: flex; gap: 2rem; }
.primary-nav a {
  color: var(--ink-700);
  font-weight: 600;
  font-size: 0.94rem;
  position: relative;
  padding: .25rem 0;
}
.primary-nav a:hover { color: var(--ink-900); }
.primary-nav a.is-active { color: var(--teal-700); }

.header-actions { display: inline-flex; align-items: center; gap: .75rem; }
.open-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 700;
  padding: .35rem .65rem;
  border-radius: var(--r-pill);
  background: rgba(20,184,166,.10);
  color: var(--teal-800);
  border: 1px solid rgba(20,184,166,.25);
}
.open-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-500); box-shadow: 0 0 0 4px rgba(20,184,166,.18);
}
.open-pill.is-closed { background: rgba(100,116,139,.08); color: var(--ink-600); border-color: rgba(100,116,139,.2); }
.open-pill.is-closed .dot { background: var(--ink-400); box-shadow: none; }

.header-phone {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--ink-900); color: #fff;
  padding: .55rem 1rem; border-radius: var(--r-pill);
  font-weight: 700; font-size: .9rem;
  border: 1px solid var(--ink-900);
  transition: background .15s ease;
}
.header-phone:hover { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.header-phone .icon { width: 16px; height: 16px; }

/* mobile menu toggle */
.menu-toggle {
  display: none;
  background: transparent; border: 0;
  width: 42px; height: 42px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  color: var(--ink-900);
  cursor: pointer;
}
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle[aria-expanded="true"] { background: var(--ink-100); }

/* mobile drawer (when nav.is-open on small screens) */
.primary-nav.is-open,
nav.primary-nav.is-open {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  position: fixed !important;
  top: 60px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 60px) !important;
  height: calc(100dvh - 60px) !important;
  background: #ffffff !important;
  padding: 1rem var(--gutter) !important;
  z-index: 200 !important;
  overflow-y: auto !important;
  border-top: 1px solid var(--ink-200);
  margin: 0 !important;
  list-style: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  align-items: stretch !important;
  justify-content: flex-start !important;
}
.primary-nav.is-open ul,
.primary-nav.is-open ul.primary-nav,
nav.primary-nav.is-open ul,
nav.primary-nav.is-open ul.primary-nav {
  display: flex !important;
  flex-direction: column !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  gap: 0 !important;
}
.primary-nav.is-open li,
nav.primary-nav.is-open li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
}
.primary-nav.is-open a,
nav.primary-nav.is-open a,
.primary-nav.is-open li a,
nav.primary-nav.is-open li a {
  display: block !important;
  padding: 1.05rem .5rem !important;
  font-size: 1.15rem !important;
  border-bottom: 1px solid var(--ink-100);
  color: var(--ink-900) !important;
  text-decoration: none !important;
  width: 100%;
}
.primary-nav.is-open a:hover,
nav.primary-nav.is-open a:hover { color: var(--teal-700) !important; background: var(--ink-50); }
/* lock body scroll when menu is open */
body.cw-menu-open { overflow: hidden; }

/* ---------- Blog: post grid + cards ---------- */
.post-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
  border-color: var(--teal-500);
}
.post-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.post-card-link:hover { text-decoration: none; color: inherit; }
.post-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-2);
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-card-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal-50) 0%, var(--surface-2) 100%);
}
.post-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.post-card-meta {
  font-size: .82rem;
  color: var(--ink-500);
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
.post-card-cat { color: var(--teal-700); }
.post-card-title {
  font-size: 1.15rem;
  margin: 0 0 .5rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink-900);
}
.post-card:hover .post-card-title { color: var(--teal-700); }
.post-card-excerpt {
  color: var(--ink-600);
  font-size: .96rem;
  margin: 0 0 .75rem;
  line-height: 1.5;
}
.post-card-more {
  color: var(--teal-700);
  font-weight: 700;
  font-size: .92rem;
}

/* Pagination */
.post-pagination { margin-top: 2.5rem; text-align: center; }
.post-pagination .nav-links { display: inline-flex; gap: .35rem; flex-wrap: wrap; justify-content: center; }
.post-pagination a, .post-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: .55rem .85rem;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--ink-200);
  color: var(--ink-700);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  transition: border-color .15s ease, color .15s ease;
}
.post-pagination a:hover { border-color: var(--teal-700); color: var(--teal-700); }
.post-pagination .current {
  background: var(--teal-700);
  color: #fff;
  border-color: var(--teal-700);
}

/* Single post */
.post-hero h1 { max-width: 22ch; }
.post-hero .post-meta {
  display: inline-flex; flex-wrap: wrap; gap: .25rem;
  font-size: .9rem; color: var(--ink-500);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
  margin-bottom: 1rem;
}
.post-hero .post-meta a { color: var(--teal-700); }
.post-featured {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.post-featured img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post-article { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.post-content { font-size: 1.08rem; line-height: 1.7; color: var(--ink-700); }
.post-content h2 { font-size: 1.7rem; margin: 2rem 0 .75rem; color: var(--ink-900); }
.post-content h3 { font-size: 1.3rem; margin: 1.5rem 0 .5rem; color: var(--ink-900); }
.post-content h4 { font-size: 1.1rem; margin: 1.25rem 0 .5rem; color: var(--ink-900); }
.post-content p { margin: 0 0 1.1em; }
.post-content ul, .post-content ol { margin: 0 0 1.25em; padding-left: 1.5em; }
.post-content li { margin: .35em 0; }
.post-content a { color: var(--teal-700); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.post-content a:hover { color: var(--teal-900); }
.post-content blockquote {
  border-left: 3px solid var(--teal-600);
  padding: .25rem 0 .25rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 1.15rem;
  color: var(--ink-900);
  font-style: italic;
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  margin: 1.25rem 0;
}
.post-content code {
  background: var(--ink-100);
  padding: .15rem .4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: .92em;
}
.post-content pre {
  background: var(--ink-950);
  color: var(--ink-100);
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  overflow-x: auto;
  font-size: .92rem;
}
.post-content pre code { background: transparent; padding: 0; color: inherit; }
.post-content hr { border: 0; border-top: 1px solid var(--ink-200); margin: 2.25rem 0; }

.post-tags {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink-200);
  font-size: .9rem;
  color: var(--ink-500);
}
.post-tags a {
  display: inline-block;
  margin: 0 .25rem .35rem 0;
  padding: .3rem .7rem;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  color: var(--ink-700);
  text-decoration: none;
  font-weight: 500;
}
.post-tags a:hover { background: var(--teal-50); color: var(--teal-700); }

.post-comments { margin-top: 2rem; }
.post-comments .comments-title { font-size: 1.5rem; margin-bottom: 1.5rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 105% -10%, rgba(20,184,166,.18), transparent 60%),
    radial-gradient(800px 360px at -10% 110%, rgba(13,148,136,.10), transparent 60%),
    linear-gradient(180deg, #FFF 0%, var(--surface-2) 100%);
  border-bottom: 1px solid var(--ink-200);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,23,42,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 30%, #000 30%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 70% 30%, #000 30%, transparent 70%);
  pointer-events: none;
  opacity: .55;
}
.hero-grid {
  position: relative;
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
}
.hero h1 { max-width: 16ch; margin-bottom: 1.25rem; }
.hero h1 .accent { color: var(--teal-700); }
.hero .lede { max-width: 56ch; font-size: 1.18rem; color: var(--ink-700); margin-bottom: .75rem; }
.hero .hero-support {
  max-width: 60ch;
  font-size: .98rem;
  color: var(--ink-500);
  font-style: italic;
  margin: 0 0 1.75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--teal-100);
}
.hero-ctas { margin-bottom: 1.75rem; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem;
  font-size: .92rem; color: var(--ink-700);
}
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-trust .icon { color: var(--teal-700); width: 18px; height: 18px; }

/* hero stat panel */
.stat-panel {
  background: linear-gradient(180deg, #fff 0%, var(--teal-50) 100%);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-3);
  position: relative;
}
.stat-panel::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  background: linear-gradient(180deg, rgba(20,184,166,.4), transparent 50%);
  z-index: -1; filter: blur(16px); opacity: .35;
}
.stat-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem; color: var(--ink-500);
  margin-bottom: 1rem;
}
.stat-panel-head .open-pill { font-size: .72rem; padding: .25rem .55rem; }
.stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-bottom: 1.25rem;
}
.stat-tile {
  background: rgba(255,255,255,.7);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 1rem;
}
.stat-tile .num {
  display: flex; align-items: center; gap: .35rem;
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink-900);
  line-height: 1;
}
.stat-tile .num .star { color: var(--gold-500); width: 22px; height: 22px; }
.stat-tile .label { font-size: .85rem; color: var(--ink-600); margin-top: .35rem; }

.next-window {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1rem;
  background: var(--ink-950);
  color: #fff;
  border-radius: var(--r-md);
  font-size: .9rem;
}
.next-window .icon { color: var(--teal-400); }
.next-window strong { color: #fff; }

/* ---------- Symptom selector ---------- */
.symptoms-section { padding-top: clamp(3rem, 5vw, 5rem); }
.symptoms-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.symptoms-head h2 { max-width: 18ch; margin: 0; }
.symptoms-grid {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(4, 1fr);
}
.symptom {
  display: flex; flex-direction: column; gap: .65rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  color: var(--ink-900);
  font-weight: 600;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  position: relative;
  min-height: 110px;
}
.symptom:hover {
  border-color: var(--teal-500);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
  text-decoration: none;
  color: var(--ink-900);
}
.symptom .icon { width: 26px; height: 26px; color: var(--teal-700); }
.symptom-arrow {
  position: absolute; right: 1rem; bottom: 1rem;
  color: var(--ink-300);
  transition: color .15s ease, transform .15s ease;
}
.symptom:hover .symptom-arrow { color: var(--teal-700); transform: translateX(2px); }

/* ---------- Process timeline ---------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-200, #99F6E4), var(--teal-600), var(--teal-200, #99F6E4));
  background: linear-gradient(90deg, rgba(20,184,166,.2), rgba(13,148,136,.7), rgba(20,184,166,.2));
  z-index: 0;
}
.t-step { position: relative; z-index: 1; text-align: center; padding: 0 .5rem; }
.t-bubble {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: #fff;
  border: 2px solid var(--teal-600);
  border-radius: 50%;
  color: var(--teal-700);
  margin-bottom: 1rem;
  box-shadow: 0 6px 18px -8px rgba(13,148,136,.5);
}
.t-bubble .icon { width: 24px; height: 24px; stroke-width: 1.8; }
.t-step h3 { font-size: 1rem; margin-bottom: .35rem; letter-spacing: -0.01em; }
.t-step p { font-size: .92rem; color: var(--ink-600); margin: 0; }

/* ---------- Repair-or-replace (dark) ---------- */
.rr-section {
  position: relative;
  background:
    radial-gradient(900px 480px at 80% -10%, rgba(20,184,166,.18), transparent 60%),
    radial-gradient(700px 360px at -10% 120%, rgba(13,148,136,.12), transparent 60%),
    var(--ink-950);
  color: var(--ink-100);
}
.rr-section h2 { color: #fff; max-width: 22ch; }
.rr-section .lede { color: rgba(255,255,255,.7); max-width: 60ch; }
.rr-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2.5rem;
}
.rr-grid.rr-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .rr-grid.rr-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .rr-grid.rr-grid-4 { grid-template-columns: 1fr; } }
.rr-card p { color: rgba(255,255,255,.78); margin: 0; font-size: .96rem; line-height: 1.55; }
.rr-card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  position: relative;
}
.rr-card.is-best { border-color: rgba(20,184,166,.5); background: linear-gradient(180deg, rgba(20,184,166,.10), rgba(20,184,166,.04)); }
.rr-card .tag {
  display: inline-flex; align-items: center;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  padding: .35rem .65rem; border-radius: var(--r-pill);
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.85);
  margin-bottom: 1rem;
}
.rr-card.is-best .tag { background: rgba(20,184,166,.18); color: var(--teal-400); }
.rr-card h3 { color: #fff; margin-bottom: .75rem; font-size: 1.25rem; }
.rr-card ul { list-style: none; padding: 0; margin: 0; }
.rr-card li { padding: .45rem 0 .45rem 1.6rem; position: relative; color: rgba(255,255,255,.78); font-size: .96rem; }
.rr-card li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 12px; height: 1.5px; background: var(--teal-400);
}

/* ---------- Bento services ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1rem;
}
.bento .tile {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: var(--ink-900);
}
.bento .tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
  border-color: var(--teal-500);
  text-decoration: none;
}
.bento .tile h3 { font-size: 1.15rem; margin: 0 0 .35rem; }
.bento .tile p { color: var(--ink-600); margin: 0; font-size: .96rem; }
.bento .tile .icon { width: 28px; height: 28px; color: var(--teal-700); }
.bento .tile .head { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.25rem; font-weight: 700; color: var(--ink-900); }
.bento .tile .arrow { color: var(--ink-300); align-self: flex-end; transition: color .15s ease, transform .15s ease; }
.bento .tile:hover .arrow { color: var(--teal-700); transform: translateX(2px); }

.bento .tile.span-3 { grid-column: span 3; }
.bento .tile.span-2 { grid-column: span 2; }
.bento .tile.span-4 { grid-column: span 4; }
.bento .tile.feature {
  background:
    radial-gradient(420px 160px at 80% -10%, rgba(20,184,166,.18), transparent 60%),
    linear-gradient(180deg, var(--ink-950), var(--ink-900));
  color: #fff;
  border-color: var(--ink-800);
}
.bento .tile.feature h3 { color: #fff; }
.bento .tile.feature p { color: rgba(255,255,255,.72); }
.bento .tile.feature .icon { color: var(--teal-400); }
.bento .tile.feature .head { color: #fff; }
.bento .tile.feature .arrow { color: rgba(255,255,255,.4); }
.bento .tile.feature:hover .arrow { color: var(--teal-400); }

/* ---------- System Exam pricing card ---------- */
.exam-section { padding: clamp(3rem, 5vw, 5rem) 0; }
.exam-card {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-3);
}
.exam-left {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, var(--ink-950) 0%, var(--ink-900) 100%);
  color: #fff;
  display: flex; flex-direction: column; gap: 1rem;
  position: relative; overflow: hidden;
}
.exam-left::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(20,184,166,.35), transparent 60%);
}
.exam-left h2 { color: #fff; max-width: 18ch; }
.exam-left .price-block { display: flex; align-items: baseline; gap: .5rem; margin: 1rem 0 .5rem; }
.exam-left .price-block .dollar { font-size: 1.5rem; color: rgba(255,255,255,.6); font-weight: 600; vertical-align: super; line-height: 1; }
.exam-left .price-block .price-num {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 5rem);
  font-weight: 800; line-height: .9;
  letter-spacing: -0.05em; color: #fff;
}
.exam-left .price-block .price-suffix { color: rgba(255,255,255,.7); font-size: 1rem; font-weight: 600; }
.exam-left .lede { color: rgba(255,255,255,.78); }
.exam-left .ctas { margin-top: auto; display: flex; flex-wrap: wrap; gap: .65rem; padding-top: .75rem; }

.exam-right { padding: clamp(1.75rem, 3vw, 2.5rem); }
.exam-right h3 { font-size: 1.05rem; margin-bottom: 1rem; color: var(--ink-700); font-weight: 700; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.check-list li {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .45rem 0;
  color: var(--ink-700);
  font-size: .98rem;
}
.check-list li .icon { color: var(--teal-700); width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; }

/* ---------- Stat banner ---------- */
.stat-banner {
  background:
    radial-gradient(700px 320px at 80% -20%, rgba(20,184,166,.35), transparent 60%),
    linear-gradient(180deg, var(--teal-900), var(--teal-800));
  color: #fff;
  padding: clamp(2.5rem, 4vw, 3.5rem) 0;
}
.stat-banner-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  align-items: end;
}
.stat-banner-tile { text-align: left; }
.stat-banner-tile .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}
.stat-banner-tile .num .star { color: var(--gold-500); width: 26px; height: 26px; vertical-align: -.05em; margin-right: .25rem; }
.stat-banner-tile .label { color: rgba(255,255,255,.78); margin-top: .35rem; font-size: .95rem; }

/* ---------- Reviews CTA block ---------- */
.reviews-block {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
.reviews-block .meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.reviews-block .stars { color: var(--gold-500); font-size: 1.25rem; letter-spacing: .15em; }
.reviews-block .meta .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1;
}
.reviews-block .quote-cell {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-1);
}
.reviews-block .quote-cell h3 { font-size: 1rem; color: var(--ink-700); margin-bottom: .5rem; }
.reviews-block .quote-cell p { color: var(--ink-600); margin: 0 0 1rem; font-size: .96rem; }

/* ---------- Local credibility ---------- */
.cred-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
}
.cred-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.cred-points li { display: flex; gap: 1rem; align-items: flex-start; }
.cred-points .icon-bubble {
  width: 40px; height: 40px;
  background: var(--teal-50); border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--teal-700); flex: 0 0 auto;
}
.cred-points strong { color: var(--ink-900); display: block; margin-bottom: .15rem; }
.cred-points span { color: var(--ink-600); font-size: .96rem; }

.visit-card {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-1);
}
.visit-card h3 { font-size: 1.05rem; }
.visit-card .pair { display: flex; gap: .65rem; padding: .5rem 0; color: var(--ink-700); }
.visit-card .pair-headline {
  background: linear-gradient(135deg, var(--teal-50) 0%, #fff 100%);
  border: 1px solid var(--teal-100);
  border-radius: var(--r-md);
  padding: .85rem 1rem;
  margin: 0 0 .5rem;
}
.visit-card .pair-headline strong { color: var(--teal-900); }
.visit-card .pair-headline .icon { color: var(--teal-700); }
.visit-card .pair .icon { color: var(--teal-700); width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; }
.visit-card .pair strong { color: var(--ink-900); display: block; margin-bottom: .1rem; }
.visit-card .pair span { font-size: .94rem; }

.map-block {
  margin-top: 1rem;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--ink-200);
  aspect-ratio: 16/9;
  background: var(--ink-100);
}
.map-block iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .5rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
}
.faq summary {
  font-weight: 700; color: var(--ink-900); cursor: pointer;
  list-style: none; position: relative; padding-right: 2rem;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center/14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center/1.5px 14px no-repeat;
  color: var(--teal-700);
  transform: translateY(-50%) rotate(0deg);
  transition: transform .15s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: .65rem 0 0; color: var(--ink-600); }

/* ---------- Final dark CTA ---------- */
.final-cta {
  background:
    radial-gradient(1100px 500px at 50% -30%, rgba(20,184,166,.32), transparent 65%),
    var(--ink-950);
  color: #fff; padding: clamp(3.5rem, 6vw, 5rem) 0;
  text-align: center;
}
.final-cta h2 { color: #fff; max-width: 22ch; margin-left: auto; margin-right: auto; }
.final-cta .lede { color: rgba(255,255,255,.78); max-width: 60ch; margin: 1rem auto 1.75rem; }
.final-cta .muted { color: rgba(255,255,255,.55); margin-top: 1rem; font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-950);
  color: rgba(255,255,255,.78);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 .9rem; letter-spacing: -0.01em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .3rem 0; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name { color: #fff; }
.site-footer p { color: rgba(255,255,255,.65); font-size: .94rem; }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding-top: 1.5rem;
  font-size: .88rem; color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.6); }

/* ---------- Mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--ink-950); color: #fff;
  padding: .85rem 1rem;
  align-items: center; justify-content: center; gap: .6rem;
  font-weight: 700;
  z-index: 60;
  box-shadow: 0 -10px 24px rgba(0,0,0,.18);
  border-top: 1px solid var(--teal-700);
}
.mobile-call-bar:hover { color: #fff; text-decoration: none; }
.mobile-call-bar .icon { color: var(--teal-400); }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  position: relative;
  padding: clamp(3rem, 5vw, 4.5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
  overflow: hidden;
  background:
    radial-gradient(900px 360px at 90% -10%, rgba(20,184,166,.16), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
  border-bottom: 1px solid var(--ink-200);
}
.page-hero h1 { max-width: 22ch; }
.page-hero .lede { max-width: 60ch; color: var(--ink-700); font-size: 1.1rem; margin-bottom: 1.5rem; }
.bluf {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-left: 3px solid var(--teal-600);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-1);
  margin-top: 1.5rem;
  color: var(--ink-700);
  font-size: .98rem;
}
.bluf strong { color: var(--ink-900); }

/* ---------- Generic prose ---------- */
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; color: var(--ink-900); font-weight: 700; }
.prose ul li { margin: .35rem 0; color: var(--ink-700); }
.prose ol li { margin: .35rem 0; color: var(--ink-700); }

/* ---------- Photo placeholders ---------- */
/*
 * Used as placeholders where a real photo will be swapped in.
 * To swap: replace the .photo-placeholder div with <img src="..." alt="...">
 * (or wrap it in an <img> with the same class; the placeholder will be hidden by default).
 *
 * Add aspect modifiers: .is-wide (16:9), .is-square (1:1), .is-tall (3:4), .is-ultrawide (21:9)
 */
.photo-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .65rem;
  aspect-ratio: 4/3;
  background:
    radial-gradient(420px 200px at 30% 20%, rgba(20,184,166,.18), transparent 60%),
    linear-gradient(135deg, var(--teal-50) 0%, var(--surface-2) 100%);
  border: 2px dashed var(--teal-600);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  color: var(--ink-700);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.photo-placeholder.is-wide { aspect-ratio: 16/9; }
.photo-placeholder.is-ultrawide { aspect-ratio: 21/9; }
.photo-placeholder.is-square { aspect-ratio: 1/1; }
.photo-placeholder.is-tall { aspect-ratio: 3/4; }
.photo-placeholder.is-portrait { aspect-ratio: 4/5; }
.photo-placeholder.on-dark {
  background:
    radial-gradient(420px 200px at 30% 20%, rgba(20,184,166,.20), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-color: rgba(20,184,166,.5);
  color: rgba(255,255,255,.85);
}
.photo-placeholder .ph-icon {
  width: 44px; height: 44px;
  color: var(--teal-700);
  opacity: .85;
}
.photo-placeholder.on-dark .ph-icon { color: var(--teal-400); }
.photo-placeholder .ph-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--teal-700);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .35rem .65rem;
  border-radius: var(--r-pill);
}
.photo-placeholder .ph-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-900);
  margin: 0;
  max-width: 28ch;
}
.photo-placeholder.on-dark .ph-label { color: #fff; }
.photo-placeholder .ph-hint {
  font-size: .82rem;
  color: var(--ink-500);
  margin: 0;
  font-weight: 500;
  max-width: 32ch;
  line-height: 1.4;
}
.photo-placeholder.on-dark .ph-hint { color: rgba(255,255,255,.65); }
.photo-placeholder .ph-dim {
  position: absolute;
  bottom: 12px; right: 12px;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--ink-400);
  background: rgba(255,255,255,.7);
  padding: .15rem .5rem;
  border-radius: 4px;
}
.photo-placeholder.on-dark .ph-dim {
  color: rgba(255,255,255,.55);
  background: rgba(0,0,0,.25);
}

/* Real photo when swapped in — same shape as placeholder */
.trust-photo,
.section-photo,
.hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: 60% 45%;        /* default: favors the technician + bench, crops edge clutter */
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  filter: brightness(1.06) contrast(1.03) saturate(1.04); /* subtle lift */
  background: var(--surface-2);
}
.hero-photo {
  object-position: center 50%;     /* hero counter shot — keep both subjects + branding visible */
}
.section-photo.is-wide { aspect-ratio: 16/9; }
.section-photo.is-ultrawide { aspect-ratio: 21/9; }
.section-photo.is-portrait { aspect-ratio: 4/5; }

/* Photo frame: shows <img> by default; if image fails to load, JS adds .is-missing
 * which hides the img and reveals a placeholder figcaption telling you what to put there.
 */
.photo-frame {
  position: relative;
  margin: 0;
  padding: 0;
  display: block;
  width: 100%;
}
.photo-frame .photo-frame-fallback { display: none; }
.photo-frame.is-missing img { display: none; }
.photo-frame.is-missing .photo-frame-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  aspect-ratio: 16/10;
  background:
    radial-gradient(420px 200px at 30% 20%, rgba(20,184,166,.18), transparent 60%),
    linear-gradient(135deg, var(--teal-50) 0%, var(--surface-2) 100%);
  border: 2px dashed var(--teal-600);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  text-align: center;
  position: relative;
}
.photo-frame .photo-frame-fallback .ph-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--teal-700); color: #fff;
  font-size: .68rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .35rem .65rem; border-radius: var(--r-pill);
}
.photo-frame .photo-frame-fallback .ph-icon { width: 44px; height: 44px; color: var(--teal-700); opacity: .85; }
.photo-frame .photo-frame-fallback .ph-label { font-weight: 700; font-size: 1rem; color: var(--ink-900); margin: 0; }
.photo-frame .photo-frame-fallback .ph-label code { background: rgba(20,184,166,.12); padding: .15rem .4rem; border-radius: 4px; font-family: var(--font-mono); font-size: .9em; }
.photo-frame .photo-frame-fallback .ph-hint { font-size: .82rem; color: var(--ink-500); margin: 0; max-width: 36ch; line-height: 1.4; }

/* Photo-frame variants */
.photo-frame.photo-frame-grid {
  aspect-ratio: 1/1;
}
.photo-frame.photo-frame-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--r-md);
  display: block;
  filter: brightness(1.04) contrast(1.02);
  box-shadow: var(--shadow-1);
}
.photo-frame.photo-frame-grid.is-missing .photo-frame-fallback {
  aspect-ratio: 1/1;
  padding: 1rem;
  border-radius: var(--r-md);
  border-width: 1.5px;
}
.photo-frame.photo-frame-grid .photo-frame-fallback .ph-icon { width: 28px; height: 28px; }
.photo-frame.photo-frame-grid .photo-frame-fallback .ph-tag { font-size: .58rem; padding: .2rem .45rem; top: 8px; left: 8px; }
.photo-frame.photo-frame-grid .photo-frame-fallback .ph-label { font-size: .82rem; }
.photo-frame.photo-frame-grid .photo-frame-fallback .ph-hint { display: none; }

/* Photo-frame ultrawide variant for arrival hero on Contact page */
.photo-frame.photo-frame-arrival img {
  aspect-ratio: 21/9;
  object-fit: cover;
  object-position: center 60%;
  border-radius: var(--r-lg);
  width: 100%;
  height: 100%;
  display: block;
  filter: brightness(1.04) contrast(1.03) saturate(1.04);
  box-shadow: var(--shadow-2);
}
.photo-frame.photo-frame-arrival.is-missing .photo-frame-fallback {
  aspect-ratio: 21/9;
}

/* photo grid (used for location photos in the visit card) */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
  margin: 0 0 1rem;
}
.photo-grid .photo-placeholder {
  aspect-ratio: 1/1;
  padding: 1rem;
  border-radius: var(--r-md);
  border-width: 1.5px;
  overflow: hidden;
}
.photo-grid .photo-placeholder .ph-icon { width: 28px; height: 28px; }
.photo-grid .photo-placeholder .ph-tag { font-size: .58rem; padding: .2rem .45rem; top: 8px; left: 8px; }
.photo-grid .photo-placeholder .ph-label { font-size: .82rem; font-weight: 700; }
.photo-grid .photo-placeholder .ph-hint { display: none; }
.photo-grid .photo-placeholder .ph-dim { display: none; }

/* When a photo is dropped in via .ph-swap, it covers the placeholder text */
.photo-placeholder .ph-swap {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 2;
  filter: brightness(1.04) contrast(1.02);
}
.photo-placeholder { position: relative; } /* ensure absolute positioning context */

/* ---------- Pricing rows ---------- */
.price-list {
  list-style: none; padding: 0; margin: 1rem 0;
  display: grid; gap: .35rem;
}
.price-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.1rem;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  font-size: .97rem;
}
.price-list .price { color: var(--teal-700); font-weight: 800; }

/* ---------- Contact form ---------- */
.contact-form {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-1);
}
.contact-form .row { display: grid; gap: .9rem; grid-template-columns: 1fr 1fr; }
.contact-form .field { display: block; margin: 0 0 .9rem; }
.contact-form label { display: block; font-weight: 600; color: var(--ink-700); margin-bottom: .25rem; font-size: .92rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--ink-300);
  border-radius: var(--r-md); font: inherit; color: var(--ink-900); background: #fff;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--teal-500); outline-offset: 1px; border-color: var(--teal-500);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento .tile.span-3 { grid-column: span 2; }
  .bento .tile.span-4 { grid-column: span 4; }
  .stat-banner-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 980px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions .open-pill { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .stat-panel { max-width: 520px; }
  .symptoms-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
  .rr-grid { grid-template-columns: 1fr; }
  .exam-card { grid-template-columns: 1fr; }
  .reviews-block { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .tile.span-2, .bento .tile.span-3, .bento .tile.span-4 { grid-column: span 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .timeline { grid-template-columns: 1fr; }
  .symptoms-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-phone { display: none; }
  .mobile-call-bar { display: inline-flex; }
  body.has-sticky-call { padding-bottom: 4rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-banner-grid { grid-template-columns: 1fr 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento .tile.span-2, .bento .tile.span-3, .bento .tile.span-4 { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
