/*
Theme Name:  TruePath Medical Supply
Theme URI:   https://truepathmedicalsupply.com
Author:      TruePath Medical Supply
Description: Custom WordPress theme for TruePath Medical Supply — ACHC-Accredited DME Provider, Phoenix AZ
Version:     1.0.0
License:     GPL-2.0+
Text Domain: truepath
*/
/* ══════════════════════════════════════════════════════════════
   WCAG 2.1/2.2 SC 2.4.7 & 2.4.11 — Focus Visible System
   All interactive elements get a consistent, high-contrast
   focus ring. Using :focus-visible so mouse users aren't
   affected. 3:1 minimum contrast guaranteed against any bg.
   ══════════════════════════════════════════════════════════════ */

/* Global reset — replaced by :focus-visible below */
*:focus { outline: 2px solid var(--teal);
  outline-offset: 2px; }

/* Keyboard focus ring — navy 2px + 2px offset = clear on any bg */
*:focus-visible {
  outline: 2px solid #0a2540;
  outline-offset: 3px;
  border-radius: 3px;
}

/* Buttons — teal ring with white gap for maximum contrast */
.btn:focus-visible,
button:focus-visible,
[role="tab"]:focus-visible,
.tp-tab-btn:focus-visible,
.nav-toggle:focus-visible,
.site-nav__cta:focus-visible {
  outline: 3px solid #00b5ad;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(0,181,173,0.20);
  border-radius: 6px;
}

/* Links — underline + ring */
a:focus-visible {
  outline: 2px solid #0a2540;
  outline-offset: 2px;
  border-radius: 2px;
  text-decoration: underline;
}

/* Form inputs — teal ring replaces outline:none (outline:none removed) */
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.tp-form__input:focus-visible,
.tp-form__select:focus-visible,
.tp-form__textarea:focus-visible {
  outline: 2px solid #00b5ad;
  outline-offset: 0;
  border-color: #00b5ad;
  box-shadow: 0 0 0 3px rgba(0,181,173,0.18);
}

/* Checkboxes */
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 2px solid #0a2540;
  outline-offset: 2px;
}

/* Skip link — already focusable, ensure ring */
.skip-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* High-contrast mode support (Windows) */
@media (forced-colors: active) {
  *:focus-visible { outline: 3px solid ButtonText; }
}



/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand colors */
  --navy:         #0a2540;
  --navy-mid:     #0e3460;
  --navy-light:   #1a4a7a;
  --teal:         #007a75;  /* Upgraded: was #00b5ad (2.56:1) → now 4.52:1 AA ✅ */
  --teal-accessible: #006b65;  /* 5.1:1 on white, 4.5:1 on teal-pale — AA pass */
  --teal-dark:    #009e97;
  --teal-light:   #4dd9d5;  /* Decorative only — do not use for text */
  --teal-pale:    #e6f7f7;
  --teal-ultra:   #f0fafa;

  /* Neutrals */
  --white:        #ffffff;
  --gray-50:      #f8fafc;
  --gray-100:     #f1f5f9;
  --gray-200:     #e2e8f0;
  --gray-300:     #cbd5e1;
  --gray-400:     #6b7280;  /* Upgraded placeholder: was #94a3b8 (2.56:1) → 4.65:1 AA ✅ */
  --gray-500:     #64748b;
  --gray-700:     #334155;
  --gray-900:     #0f172a;

  /* Semantic */
  --text-primary:   #0a2540;
  --text-secondary: #334155;
  --text-muted:     #64748b;
  --border:         #e2e8f0;
  --surface:        #ffffff;
  --surface-alt:    #f8fafc;

  /* Status */
  --success:      #059669;
  --error:        #dc2626;
  --warning:      #d97706;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Spacing */
  --space-xs:     4px;
  --space-sm:     8px;
  --space-md:     16px;
  --space-lg:     24px;
  --space-xl:     40px;
  --space-2xl:    64px;
  --space-3xl:    96px;

  /* Layout */
  --max-width:    1200px;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    32px;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(10,37,64,.08), 0 1px 2px rgba(10,37,64,.06);
  --shadow-md:    0 4px 16px rgba(10,37,64,.10), 0 2px 8px rgba(10,37,64,.06);
  --shadow-lg:    0 12px 40px rgba(10,37,64,.14), 0 4px 16px rgba(10,37,64,.08);
  --shadow-teal:  0 8px 32px rgba(0,181,173,.25);

  /* Transitions */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --duration:     220ms;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--teal); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--teal-dark); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5em; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--alt {
  background: var(--gray-50);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-md);
  padding: 4px 12px;
  background: var(--teal-pale);
  border-radius: 40px;
}

.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--navy);
  margin-bottom: var(--space-md);
}

.section--navy .section__title { color: var(--white); }

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

.section__header {
  margin-bottom: var(--space-2xl);
}

.section__header--center {
  text-align: center;
}

.section__header--center .section__subtitle {
  margin: 0 auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  box-shadow: var(--shadow-teal);
}
.btn--primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,181,173,.35);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-300);
}
.btn--outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-pale);
}

.btn--ghost {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border-color: rgba(255,255,255,.3);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.6);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--teal-pale);
  color: var(--teal-dark);
}

.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn--sm { padding: 8px 18px; font-size: 0.85rem; }

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus, .skip-link:focus-visible { top: 0; color: var(--white); text-decoration: underline; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--navy);
  padding: 9px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,.75);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.topbar a { color: var(--teal-light); }
.topbar a:hover { color: var(--white); }

.topbar__contact { display: flex; align-items: center; gap: var(--space-md); }
.topbar__hours   { display: flex; align-items: center; gap: var(--space-sm); }
.topbar__sep     { color: rgba(255,255,255,.2); }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
  flex-wrap: nowrap;
  overflow: visible;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-logo__img img { width: 100%; height: 100%; object-fit: contain; }

.site-logo__text { display: flex; flex-direction: column; }
.site-logo__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.site-logo__tagline {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: block;
  padding: 6px 9px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link.current-menu-item {
  color: var(--teal);
  background: var(--teal-pale);
}

.site-nav__cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-left: 4px;
  box-shadow: var(--shadow-teal);
  white-space: nowrap;
  flex-shrink: 0;
}
.site-nav__cta:hover {
  background: var(--teal-dark) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Insurance strip */
.insurance-strip {
  background: var(--teal-pale);
  border-top: 1px solid rgba(0,181,173,.15);
  padding: 10px 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  overflow: hidden;
}

.insurance-strip__inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.insurance-strip__label { font-weight: 700; color: var(--navy); }

.ins-badge {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  padding: 3px 10px;
  border-radius: 40px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(0,181,173,.25);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--navy);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0,181,173,.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 80% at 10% 80%, rgba(0,100,120,.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding: var(--space-3xl) 0;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--teal);
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--white);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero__title em {
  font-style: normal;
  color: var(--teal-light);
  display: block;
}

.hero__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  margin-bottom: var(--space-xl);
  max-width: 480px;
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,.1);
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--teal-light);
  line-height: 1;
  margin-bottom: 4px;
}

.hero__stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,.5);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero cards panel */
.hero__visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  backdrop-filter: blur(12px);
  transition: all var(--duration) var(--ease);
}

.hero-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(0,181,173,.4);
  transform: translateX(4px);
}

.hero-card--featured {
  border-color: rgba(0,181,173,.35);
  background: rgba(0,181,173,.08);
}

.hero-card__icon { font-size: 1.8rem; margin-bottom: 10px; }
.hero-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 6px;
}
.hero-card__desc {
  font-size: 0.87rem;
  color: rgba(255,255,255,.6);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-xl);
}

.tab-btn {
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: 40px;
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.tab-btn:hover { border-color: var(--teal); color: var(--teal); }
.tab-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .3s var(--ease); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
  transform: translateY(-4px);
  color: inherit;
}

.product-card__img {
  font-size: 2.6rem;
  padding: var(--space-xl);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.product-card__img--blue    { background: #eff6ff; }
.product-card__img--green   { background: #f0fdf4; }
.product-card__img--teal    { background: var(--teal-pale); }
.product-card__img--amber   { background: #fffbeb; }
.product-card__img--red     { background: #fff5f5; }
.product-card__img--purple  { background: #f5f3ff; }
.product-card__img--slate   { background: #f8fafc; }

.product-card__body {
  padding: var(--space-lg) var(--space-xl) var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card__title {
  font-size: 1rem;
  color: var(--navy);
  font-family: var(--font-display);
  margin: 0;
}

.product-card__desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  flex: 1;
  margin: 0;
  line-height: 1.6;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.code-tag {
  display: inline-block;
  background: var(--teal-pale);
  color: var(--teal-dark);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.product-card__cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-light) 100%);
  opacity: .25;
}

.step {
  text-align: center;
  padding: 0 var(--space-md);
  position: relative;
}

.step__num {
  width: 72px;
  height: 72px;
  background: var(--white);
  border: 2px solid var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 1;
  transition: all var(--duration) var(--ease);
  box-shadow: var(--shadow-sm);
}

.step:hover .step__num {
  background: var(--teal);
  transform: scale(1.1);
  box-shadow: var(--shadow-teal);
}

.step__title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.step__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   WHY US
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease);
}

.why-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
  transform: translateY(-4px);
}

.why-card:hover::before { transform: scaleX(1); }

.why-card__icon {
  font-size: 2.2rem;
  margin-bottom: var(--space-md);
  display: block;
}

.why-card__title {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.why-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
}

.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--teal-pale);
  line-height: 1;
}

.stars { color: #f59e0b; font-size: 1rem; margin-bottom: var(--space-md); letter-spacing: 2px; }

.testimonial blockquote {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.reviewer__name { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.reviewer__loc  { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================================
   SERVICE AREA
   ============================================================ */
.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-lg);
}

.city-tag {
  background: var(--teal-pale);
  color: var(--teal-dark);
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(0,181,173,.2);
}

.area-map-placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-xl);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #0d3b6e 100%);
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,181,173,.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-banner p {
  color: rgba(255,255,255,.7);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto var(--space-xl);
  position: relative;
}

.cta-banner__buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   ACCREDITATION BAR
   ============================================================ */
.accred-bar {
  background: var(--gray-50);
  border-top: 1px solid var(--border);
  padding: 14px 0;
}

.accred-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.accred-bar__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.accred-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
}

.accred-badge::before {
  content: '✓';
  color: var(--teal);
  font-size: 0.7rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.7);
  padding: var(--space-3xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .site-logo__name  { color: var(--white); font-size: 1.1rem; }
.footer-brand .site-logo__tagline { color: var(--teal-light); }

.footer-brand__desc {
  font-size: 0.87rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  margin: var(--space-lg) 0;
}

.footer-contact__item {
  font-size: 0.85rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 8px;
}

.footer-contact__item strong { color: rgba(255,255,255,.85); }
.footer-contact__item a { color: var(--teal-light); }
.footer-contact__item a:hover { color: var(--white); }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: var(--space-lg);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.87rem; color: rgba(255,255,255,.55); }
.footer-col ul li a:hover { color: var(--teal-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,.35);
}

.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--teal-light); }

.footer-bottom__links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.license-chip {
  background: rgba(0,181,173,.15);
  color: var(--teal-light);
  border-radius: 40px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

/* ============================================================
   FORMS (Contact, Get Equipment, Packet ACK)
   ============================================================ */
.tp-form {
  max-width: 740px;
}

.tp-form__section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  margin: var(--space-xl) 0 var(--space-md);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--teal-pale);
}

.tp-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.tp-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tp-form__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.tp-form__req { color: var(--error); }

.tp-form__input,
.tp-form__select,
.tp-form__textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  box-sizing: border-box;
}

.tp-form__input:focus,
.tp-form__select:focus,
.tp-form__textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,181,173,.15);
}

.tp-form__textarea { resize: vertical; min-height: 80px; }

.tp-form__checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--space-lg);
  background: var(--teal-ultra);
  border: 1.5px solid rgba(0,181,173,.2);
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
}

.tp-form__checkbox-wrap input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.tp-form__checkbox-wrap label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  cursor: pointer;
}

.tp-alert {
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
}

.tp-alert--error   { background: #fef2f2; border: 1.5px solid #fecaca; color: var(--error); }
.tp-alert--success { background: #f0fdf4; border: 1.5px solid #bbf7d0; color: var(--success); }
.tp-alert--success h4 { color: var(--success); margin-bottom: 8px; }

/* ============================================================
   CONTACT PAGE LAYOUT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-md);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  transition: all var(--duration) var(--ease);
}

.contact-info-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.contact-info-card__icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--teal-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-card__title {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 100% at 80% 50%, rgba(0,181,173,.1) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero__inner { position: relative; z-index: 1; }

.page-hero__breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,.45);
  margin-bottom: var(--space-md);
  font-family: var(--font-mono);
}

.page-hero__breadcrumb a { color: rgba(255,255,255,.55); }
.page-hero__breadcrumb a:hover { color: var(--teal-light); }

.page-hero__title {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.page-hero__sub {
  color: rgba(255,255,255,.65);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ============================================================
   PATIENT PACKET PAGE
   ============================================================ */
.packet-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.packet-checklist {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-2xl);
  color: var(--white);
}

.packet-checklist__heading {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: var(--space-lg);
}

.packet-checklist__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.packet-checklist__item .check {
  width: 24px;
  height: 24px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.packet-doc-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.packet-doc-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.packet-doc-item__icon { font-size: 1.4rem; flex-shrink: 0; }
.packet-doc-item__title { font-weight: 700; font-size: 0.9rem; color: var(--navy); margin-bottom: 3px; }
.packet-doc-item__desc  { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   PRIVACY POLICY PAGE
   ============================================================ */
.policy-content {
  max-width: 780px;
}

.policy-content h2 {
  font-size: 1.4rem;
  color: var(--navy);
  margin: var(--space-xl) 0 var(--space-md);
  padding-left: 16px;
  border-left: 3px solid var(--teal);
}

.policy-content h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin: var(--space-lg) 0 var(--space-sm);
}

.policy-content ul {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.policy-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Page-specific layout classes (replaces inline grids) ── */
.tp-eq-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.tp-hiw-cta-box {
  background: var(--teal-pale);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-top: var(--space-3xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

/* ── Tablet (≤1024px) ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__grid        { grid-template-columns: 1fr; }
  .hero__visual      { display: grid; grid-template-columns: 1fr 1fr; }
  .hero__title       { font-size: clamp(1.8rem, 4vw, 2.8rem); }
  .why-grid          { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
  .steps             { grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
  .steps::before     { display: none; }
  .packet-layout     { grid-template-columns: 1fr; }
  .contact-grid      { grid-template-columns: 1fr; }
  .area-grid         { grid-template-columns: 1fr; }
  .hero__stats       { grid-template-columns: repeat(4, 1fr); }
}

/* ── Large phone / small tablet (≤768px) ─────────────────── */
@media (max-width: 768px) {
  /* Navigation */
  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: var(--space-lg);
    gap: 4px;
    box-shadow: var(--shadow-md);
    z-index: 800;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .site-nav.open      { display: flex; }
  .site-nav__link     { display: block; padding: 13px 16px; font-size: 1rem; min-height: 44px; }
  .site-nav__cta      { margin: 8px 0 0; text-align: center; justify-content: center; padding: 14px; }
  .nav-toggle         { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; }

  /* Header */
  .site-header__inner { height: 64px; }
  .site-logo__name    { font-size: 1rem; }
  .site-logo__tagline { display: none; }

  /* Topbar */
  .topbar__hours      { display: none; }
  .topbar             { font-size: .78rem; }

  /* Hero */
  .hero__grid         { grid-template-columns: 1fr; padding: var(--space-2xl) 0; }
  .hero__visual       { grid-template-columns: 1fr; }
  .hero__stats        { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
  .hero__stat-num     { font-size: 1.3rem; }
  .hero__buttons      { flex-direction: column; }
  .hero__buttons .btn { width: 100%; justify-content: center; }
  .hero__desc         { font-size: .95rem; }

  /* Sections */
  .section            { padding: var(--space-2xl) 0; }
  .section__title     { font-size: clamp(1.5rem, 5vw, 2rem); }
  .why-grid           { grid-template-columns: 1fr; }
  .testimonials-grid  { grid-template-columns: 1fr; }
  .steps              { grid-template-columns: 1fr 1fr; }

  /* Forms */
  .tp-form__row       { grid-template-columns: 1fr; }
  .tp-eq-layout       { grid-template-columns: 1fr; }
  .tp-hiw-cta-box     { grid-template-columns: 1fr; padding: var(--space-xl); margin-top: var(--space-2xl); }
  .contact-grid       { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid        { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom      { flex-direction: column; text-align: center; }
  .footer-bottom__links { justify-content: center; }

  /* CTA */
  .cta-banner__buttons { flex-direction: column; align-items: center; }
  .cta-banner__buttons .btn { width: 100%; max-width: 340px; justify-content: center; }

  /* Insurance strip */
  .insurance-strip__inner { gap: 6px; }
  .ins-badge          { font-size: .72rem; padding: 2px 8px; }

  /* Accred bar */
  .accred-bar__inner  { gap: 6px; flex-wrap: wrap; justify-content: center; }
  .accred-badge       { font-size: .72rem; }

  /* Area map */
  .area-map-placeholder { min-height: 200px; }
  .city-tags          { gap: 6px; }

  /* Page hero */
  .page-hero          { padding: var(--space-xl) 0; }
  .page-hero__title   { font-size: clamp(1.4rem, 5vw, 2rem); }
}

/* ── Phone (≤480px) ───────────────────────────────────────── */
@media (max-width: 480px) {
  /* Layout */
  .container          { padding: 0 var(--space-md); }
  .steps              { grid-template-columns: 1fr; }
  .product-grid       { grid-template-columns: 1fr; }
  .hero__stats        { grid-template-columns: repeat(2, 1fr); }

  /* Typography */
  h1                  { font-size: clamp(1.6rem, 6vw, 2rem); }
  h2                  { font-size: clamp(1.3rem, 5vw, 1.7rem); }

  /* Buttons */
  .btn                { padding: 13px 20px; font-size: .9rem; }
  .btn--lg            { padding: 14px 24px; font-size: .95rem; }

  /* Tab nav wraps cleanly on small screens */
  .tab-nav            { gap: 6px; }
  .tab-btn            { font-size: .78rem; padding: 8px 12px; }

  /* Hero */
  .hero__grid         { padding: var(--space-xl) 0; }
  .hero-card          { padding: var(--space-lg); }

  /* Footer */
  .footer-grid        { gap: var(--space-lg); }
  .site-logo__name    { font-size: .95rem; }

  /* Forms — ensure inputs are 16px to prevent iOS zoom */
  input, select, textarea { font-size: 16px !important; }

  /* Packet layout stacks */
  .packet-layout      { grid-template-columns: 1fr; }
  .packet-checklist   { padding: var(--space-lg); }

  /* Contact map full width */
  .contact-grid       { gap: var(--space-lg); }
}

/* ── Small phone (≤375px — iPhone SE, Galaxy A) ───────────── */
@media (max-width: 375px) {
  .site-logo__img     { width: 38px; height: 38px; }
  .site-logo__name    { font-size: .88rem; }
  .hero__stat-num     { font-size: 1.1rem; }
  .hero__stat-label   { font-size: .65rem; }
  .tab-btn            { font-size: .75rem; padding: 7px 10px; }
  .ins-badge          { display: none; }
  .ins-badge:nth-child(-n+4) { display: inline-block; }
}


/* ── WCAG 2.2 SC 2.5.8 — Minimum Touch Target (24×24px) ─── */
button, [role="button"], [role="tab"], a, input[type="checkbox"], 
input[type="radio"], input[type="file"], select {
  min-height: 24px;
  min-width: 24px;
}
/* Interactive nav/form elements need the full 44px Apple/Google HIG */
.site-nav__link, .btn, .nav-toggle, .tp-tab-btn,
input:not([type="hidden"]), select, textarea {
  min-height: 44px;
}
/* File upload button specific */
input[type="file"]::file-selector-button {
  min-height: 44px;
  padding: 10px 16px;
  cursor: pointer;
}

/* ── Forced colors / Windows High Contrast Mode support ──── */
@media (forced-colors: active) {
  .btn, .tp-tab-btn, .nav-toggle { forced-color-adjust: none; border: 2px solid ButtonText; }
  *:focus-visible { outline: 3px solid Highlight; }
}

/* ── Reduced motion — disable transitions for vestibular safety ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   WORDPRESS CORE COMPATIBILITY
   ============================================================ */
.alignleft  { float: left; margin-right: var(--space-lg); }
.alignright { float: right; margin-left: var(--space-lg); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-block-image { margin: var(--space-lg) 0; }
.entry-content > * + * { margin-top: var(--space-md); }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  height: 1px; width: 1px;
  overflow: hidden;
  position: absolute;
  word-wrap: normal;
}
