/*
Theme Name: University Pain Management Center
Theme URI: https://upmctampa.com/
Author: University Pain Management Center P.A.
Author URI: https://upmctampa.com/
Description: Custom WordPress theme for University Pain Management Center, Tampa. UPMC navy and cyan, Quicksand headings, original illustrations and an animated spine hero. Editable menus, pages, services, location, patient information and articles.
Version: 1.0.7
Requires at least: 6.0
Tested up to: 6.9
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: upmc
Tags: medical, pain-management, one-column, two-columns, custom-menu, custom-logo, featured-images, translation-ready
*/


/* ==========================================================================
   University Pain Management Center
   Colours come from the practice's existing site: navy #27477d and cyan
   #07ccec. Cyan is too light for text on white, so text uses --cyan-ink
   (#067a8f, 4.9:1); pure cyan is kept for fills, lines and the hero pulses.
   Headings use Quicksand, the practice's existing heading face.
   ========================================================================== */

:root {
  --navy: #27477d;
  --navy-deep: #16305a;
  --ink: #0f2140;
  --cyan: #07ccec;
  --cyan-ink: #067a8f;
  --cyan-pale: #cdf8ff;
  --smoke: #f3f6f7;
  --white: #ffffff;
  --text: #3d4a5c;
  --muted: #66758a;
  --line: #dfe6ea;
  --success: #0f8a5f;
  --error: #c0392b;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(15, 33, 64, 0.06), 0 8px 24px rgba(15, 33, 64, 0.06);
  --shadow-lg: 0 24px 48px -20px rgba(15, 33, 64, 0.35);
  --font-head: 'Quicksand', 'Nunito Sans', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h: 84px;
  /* Thin cyan nerve lines, used as a texture on the navy bands. */
  --nerves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='240' viewBox='0 0 480 240'%3E%3Cg fill='none' stroke='%2307ccec' stroke-opacity='.08' stroke-width='1.5'%3E%3Cpath d='M0 60 C80 20 160 100 240 60 S400 20 480 60'/%3E%3Cpath d='M0 140 C90 100 150 180 240 140 S390 100 480 140'/%3E%3Cpath d='M0 210 C70 190 170 240 240 210 S410 180 480 210'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy); }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin-bottom: 1rem; }
strong { color: var(--ink); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.content-narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.screen-reader-text:focus {
  clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
  background: var(--white); padding: .75rem 1rem; border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .975rem; line-height: 1.2;
  border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-primary { background: var(--cyan); color: var(--ink); }
.btn-primary:hover { background: #3ad8f0; color: var(--ink); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-phone { background: var(--navy); color: var(--white); }
.btn-phone:hover { background: var(--navy-deep); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn svg { flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 33, 64, .08); }
.header-top { background: var(--navy-deep); color: rgba(255,255,255,.85); font-size: .85rem; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.header-top a { color: var(--white); font-weight: 700; }
.header-top a:hover { color: var(--cyan); }
.header-top-contact { display: flex; align-items: center; gap: 1.25rem; }
.header-hours { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.header-top-contact a { white-space: nowrap; }
.header-hours svg { opacity: .75; }
.header-main { border-bottom: 1px solid var(--line); }
.header-main .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

.logo { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; color: var(--navy); }
.logo img.custom-logo { max-height: 56px; width: auto; }
.logo-mark { width: 48px; height: 48px; }
.logo-text {
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; line-height: 1.1;
  color: var(--navy); white-space: nowrap;
}
.logo-text span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan-ink); margin-top: .2rem; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links > li { position: relative; }
.nav-links a {
  display: block; padding: .5rem 0;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--ink);
  white-space: nowrap; position: relative;
}
.nav-links > li > a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links > li > a:hover::after,
.nav-links > .current-menu-item > a::after,
.nav-links > .current-menu-ancestor > a::after,
.nav-links > .current_page_item > a::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--navy); }

.nav-links .sub-menu, .nav-links .children {
  position: absolute; top: 100%; left: -1rem; min-width: 230px; padding: .5rem;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s ease; z-index: 10;
}
.nav-links li:hover > .sub-menu, .nav-links li:focus-within > .sub-menu,
.nav-links li:hover > .children, .nav-links li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.nav-links .sub-menu a, .nav-links .children a { padding: .55rem .75rem; border-radius: 8px; font-size: .95rem; }
.nav-links .sub-menu a:hover, .nav-links .children a:hover { background: var(--smoke); }

.mobile-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.mobile-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.mobile-toggle span:nth-child(1) { top: 14px; } .mobile-toggle span:nth-child(2) { top: 21px; } .mobile-toggle span:nth-child(3) { top: 28px; }
.mobile-toggle span.active:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle span.active:nth-child(2) { opacity: 0; }
.mobile-toggle span.active:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(circle at 78% 40%, rgba(7, 204, 236, .22), transparent 42%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 70%, var(--ink) 100%);
}
.hero::before { content: ''; position: absolute; inset: 0; background-image: var(--nerves); background-size: 640px; opacity: .8; pointer-events: none; }
.hero .container {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: 2rem; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: 0;
}
.hero-content { padding-bottom: 1rem; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-lead { font-size: 1.2rem; color: rgba(255,255,255,.85); max-width: 34rem; }
.eyebrow, .section-label {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan-ink); margin-bottom: .9rem;
}
.eyebrow::before, .section-label::before { content: ''; width: 28px; height: 3px; border-radius: 3px; background: var(--cyan); }
.hero .eyebrow { color: var(--cyan); }
.hero-note {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.5rem;
  padding: .45rem .9rem .45rem .45rem; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(7,204,236,.35);
  color: rgba(255,255,255,.9); font-size: .9rem;
}
.hero-note strong { background: var(--cyan); color: var(--ink); border-radius: 999px; padding: .2rem .7rem; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; font-family: var(--font-head); }
a.hero-note:hover { color: var(--white); border-color: var(--cyan); }
.hero-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.hero-phone { display: inline-flex; align-items: center; gap: .5rem; color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.hero-phone svg { color: var(--cyan); }
.hero-phone:hover { color: var(--cyan); }

.hero-art { width: 100%; max-width: 560px; justify-self: center; }
.hero-art svg { width: 100%; height: auto; }
.hero-art-ring { fill: none; stroke: rgba(7,204,236,.22); stroke-width: 1.5; stroke-dasharray: 3 7; }
.hero-art-ring-2 { stroke: rgba(7,204,236,.14); }
.hero-art-nerve { fill: none; stroke: rgba(205,248,255,.3); stroke-width: 3; stroke-linecap: round; }
.hero-art-pulse {
  fill: none; stroke: var(--cyan); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 12 88; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 6px rgba(7,204,236,.9));
  animation: nerve-pulse 3.2s linear infinite;
}
.hero-art-bone { fill: var(--white); }
.hero-art-disc { fill: var(--cyan); }
@keyframes nerve-pulse { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.hero-stats {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem; border-top: 1px solid rgba(255,255,255,.14);
}
.hero-stats li { display: flex; align-items: center; gap: 1rem; padding: 1.5rem 1.5rem 1.75rem 0; }
.hero-stats li + li { padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.14); }
.hero-stat-icon { flex-shrink: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(7,204,236,.14); color: var(--cyan); }
.hero-stat-number { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--white); line-height: 1.25; }
.hero-stat-label { display: block; color: rgba(255,255,255,.72); font-size: .9rem; }

/* Photo or video hero: media fills the band under a navy wash. */
.hero-has-media .hero-image { position: absolute; inset: 0; }
.hero-has-media .hero-image img, .hero-has-media .hero-image video { width: 100%; height: 100%; object-fit: cover; }
.hero-has-media .hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,33,64,.92) 0%, rgba(22,48,90,.75) 45%, rgba(22,48,90,.25) 100%); }
.hero-has-media .container { grid-template-columns: minmax(0, 1fr); min-height: 560px; }
.hero-has-media .hero-content { max-width: 640px; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-white { background: var(--white); }
.section-alt, .section-cream { background: var(--smoke); }
.section-header { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-header .section-label { justify-content: center; }
.section-header p { color: var(--muted); font-size: 1.1rem; }
.rule { display: block; width: 64px; height: 4px; border-radius: 4px; margin: 1.5rem auto 0; background: linear-gradient(90deg, var(--navy), var(--cyan)); }

/* Intro + service tiles */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.tile {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--line); color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--navy); }
.tile-media { display: block; aspect-ratio: 4 / 3; background: var(--smoke); overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover .tile-media img { transform: scale(1.04); }
.tile-title {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: 1.1rem 1.25rem 1.25rem; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; line-height: 1.3;
}
.tile-title::after { content: '\2192'; color: var(--cyan-ink); font-size: 1.2rem; transition: transform .25s ease; }
.tile:hover .tile-title::after { transform: translateX(4px); }

/* Doctor feature */
.doctor-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.doctor-panel {
  position: relative; text-align: center; padding: 2.75rem 2rem 2.25rem; border-radius: var(--radius-lg); color: var(--white);
  background: radial-gradient(circle at 50% 0%, rgba(7,204,236,.28), transparent 60%), linear-gradient(160deg, var(--navy), var(--ink));
  overflow: hidden;
}
.doctor-panel::before { content: ''; position: absolute; inset: 0; background-image: var(--nerves); background-size: 420px; }
.doctor-portrait {
  position: relative; width: 200px; height: 200px; margin: 0 auto 1.5rem; border-radius: 50%;
  padding: 6px; background: conic-gradient(from 200deg, var(--cyan), rgba(7,204,236,.1), var(--cyan));
}
.doctor-portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 4px solid var(--navy-deep); }
.doctor-name { position: relative; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; margin-bottom: .25rem; }
.doctor-role { position: relative; color: var(--cyan-pale); font-size: .95rem; margin: 0; }
.doctor-body p { font-size: 1.075rem; }
.doctor-body .btn { margin-top: .75rem; }

/* Procedures band */
.band-dark { position: relative; padding: clamp(4rem, 8vw, 6.5rem) 0; color: rgba(255,255,255,.85); background: linear-gradient(135deg, var(--navy-deep), var(--ink)); overflow: hidden; }
.band-dark::before { content: ''; position: absolute; inset: 0; background-image: var(--nerves); background-size: 720px; }
.band-dark .container { position: relative; }
.feature-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.feature-panel h2 { color: var(--white); }
.feature-panel-kicker { font-family: var(--font-head); font-weight: 700; color: var(--cyan); letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; }
.feature-list { display: grid; gap: 1rem; }
.feature-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  padding: 1.4rem 1.5rem; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.05); border: 1px solid rgba(7,204,236,.2);
  transition: background .2s ease, border-color .2s ease;
}
.feature-list li:hover { background: rgba(255,255,255,.08); border-color: rgba(7,204,236,.5); }
.feature-list-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(7,204,236,.15); color: var(--cyan); }
.feature-list h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.feature-list h3 a { color: var(--white); }
.feature-list h3 a:hover { color: var(--cyan); }
.feature-list p { margin: 0; font-size: .975rem; color: rgba(255,255,255,.72); }

/* Values */
.values-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.value { position: relative; padding-top: 1.5rem; border-top: 3px solid var(--line); }
.value::before { content: ''; position: absolute; top: -3px; left: 0; width: 48px; height: 3px; background: var(--cyan); }
.value-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--white); color: var(--navy); box-shadow: var(--shadow); margin-bottom: 1.1rem; }
.value h3 { font-size: 1.15rem; }
.value p { color: var(--muted); font-size: .975rem; margin: 0; }

/* Location */
.locations-grid { display: grid; gap: 2rem; }
.location-card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.location-map { min-height: 360px; background: var(--smoke); }
.location-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.location-info { padding: 2.25rem; display: flex; flex-direction: column; gap: 1rem; }
.location-info h3 { font-size: 1.5rem; margin: 0; }
.location-detail { display: flex; gap: .85rem; align-items: flex-start; }
.location-detail svg { color: var(--cyan-ink); margin-top: .25rem; flex-shrink: 0; }
.location-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: auto; padding-top: .5rem; }

/* CTA */
.cta { position: relative; padding: clamp(3.5rem, 7vw, 5.5rem) 0; text-align: center; color: rgba(255,255,255,.85); background: radial-gradient(circle at 50% 120%, rgba(7,204,236,.35), transparent 55%), var(--navy); overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background-image: var(--nerves); background-size: 560px; }
.cta .container { position: relative; max-width: 760px; }
.cta h2 { color: var(--white); }
.cta p { font-size: 1.15rem; }
.cta .hero-buttons { justify-content: center; }

/* ---------- Interior page header ---------- */
.page-header { position: relative; padding: clamp(3rem, 6vw, 4.5rem) 0; color: var(--white); background: radial-gradient(circle at 85% 30%, rgba(7,204,236,.25), transparent 40%), linear-gradient(135deg, var(--navy), var(--navy-deep)); overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0; background-image: var(--nerves); background-size: 640px; }
.page-header .container { position: relative; }
.page-header h1 { color: var(--white); margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.page-header .section-label { color: var(--cyan); }
.page-header-body { display: grid; gap: 1rem; }
.page-header-sub { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 46rem; margin: 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .875rem; margin-bottom: 1.25rem; }
.breadcrumb li + li::before { content: '/'; margin-right: .4rem; color: rgba(255,255,255,.4); }
.breadcrumb a { color: var(--cyan-pale); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: rgba(255,255,255,.7); }

/* ---------- Seeded page content ---------- */
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { margin-top: 2rem; }
.entry-content ul:not([class]), .entry-content ol { margin: 0 0 1rem 1.25rem; list-style: disc; }
.entry-content-wide > .section:nth-child(even) { background: var(--smoke); }
.about-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-content-reverse > :first-child { order: 2; }
.about-content img { width: 100%; border-radius: var(--radius-lg); }
.about-content img.section-photo { box-shadow: var(--shadow-lg); max-width: 420px; margin: 0 auto; }
.illustration { border-radius: var(--radius-lg); }
.provider-role { color: var(--cyan-ink); font-weight: 700; font-family: var(--font-head); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.features-grid-4 { grid-template-columns: repeat(4, 1fr); }
.feature-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; transition: box-shadow .25s ease, transform .25s ease; }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--cyan-pale); color: var(--navy); margin-bottom: 1.1rem; }
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { color: var(--muted); font-size: .975rem; margin: 0; }

.treatments-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.treatment-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.steps-grid { counter-reset: step; }
.step-card { padding: 2rem 1.75rem; position: relative; }
.step-number { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--white); margin-bottom: 1.1rem; }
.step-number span { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.step-card h3 { font-size: 1.15rem; }
.step-card p { color: var(--muted); margin: 0; font-size: .975rem; }

.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1.25rem; }
.faq-card { padding: 1.75rem; border-left: 4px solid var(--cyan); }
.faq-card h3 { font-size: 1.1rem; }
.faq-card p { margin: 0; color: var(--muted); }

.check-list { display: grid; gap: .6rem; margin: 0 0 1.5rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: .3em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--cyan-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2327477d' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.service-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.service-tag { display: inline-block; padding: .35rem .85rem; border-radius: 999px; background: var(--smoke); border: 1px solid var(--line); font-size: .875rem; color: var(--ink); }
.insurance-list { justify-content: center; max-width: 880px; margin: 0 auto 1.5rem; }
.insurance-list .service-tag { background: var(--white); font-weight: 600; padding: .55rem 1.1rem; }
.small-print { font-size: .9rem; color: var(--muted); }

/* ---------- Services page ---------- */
.services-list { display: grid; gap: 1.5rem; }
.services-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-detail { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1.5rem; padding: 1.75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); align-items: start; }
.services-layout-rows .service-detail { grid-template-columns: 280px minmax(0, 1fr); }
.service-detail-featured { border-color: rgba(7,204,236,.6); box-shadow: inset 4px 0 0 var(--cyan); }
.service-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.service-detail h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.service-detail h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-ink); margin: 1rem 0 .6rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 700; font-size: .95rem; color: var(--ink); margin-bottom: .4rem; }
.form-control {
  width: 100%; padding: .85rem 1rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus { outline: none; border-color: var(--cyan-ink); box-shadow: 0 0 0 4px rgba(7,204,236,.18); }
textarea.form-control { min-height: 150px; resize: vertical; }
.form-control.error { border-color: var(--error); }
.form-error { color: var(--error); font-size: .875rem; margin-top: .35rem; }
.form-success { padding: 1rem 1.25rem; border-radius: var(--radius); background: #e7f7ef; color: var(--success); font-weight: 600; margin-bottom: 1rem; }
.form-loading { opacity: .6; pointer-events: none; }
.form-note { font-size: .85rem; color: var(--muted); }
.honeypot-field { position: absolute; left: -9999px; }
.contact-cards-grid { display: grid; gap: 1.25rem; }
.contact-info-card { padding: 1.75rem; border-radius: var(--radius-lg); background: var(--smoke); border: 1px solid var(--line); }
.contact-info-card h3 { font-size: 1.15rem; }
.contact-info-card-dark { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: rgba(255,255,255,.85); border: 0; }
.contact-info-card-dark h3 { color: var(--white); }
.contact-phone-lg { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--navy); }
.contact-card-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.appointment-frame iframe { width: 100%; min-height: 900px; border: 0; }

/* ---------- Articles ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.post-card-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card-body h2, .post-card-body h3 { font-size: 1.2rem; margin: 0; }
.post-card-body h2 a, .post-card-body h3 a { color: var(--navy); }
.entry-meta { font-size: .85rem; color: var(--muted); }
.post-card-topics { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.topic-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.topic-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: .9rem; background: var(--white); }
.topic-chip:hover, .topic-chip.is-current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.topic-chip-sm { padding: .15rem .6rem; font-size: .78rem; }
.topic-count { font-size: .75rem; opacity: .7; }
.article-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; align-items: center; margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.article-lead-no-media { grid-template-columns: 1fr; }
.article-lead-media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 10; object-fit: cover; }
.articles-more-heading { font-size: 1.4rem; margin-bottom: 1.5rem; }
.page-links { margin-top: 2rem; }

/* ---------- Testimonials (shown once real reviews are added) ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.testimonial-card { padding: 2rem; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.testimonial-text { font-size: 1.05rem; color: var(--ink); }
.testimonial-text::before { content: '\201C'; display: block; font-family: var(--font-head); font-size: 3rem; line-height: .8; color: var(--cyan); }
.testimonial-author { margin: 0; font-weight: 700; color: var(--navy); }

/* ---------- Comments, search, notices ---------- */
.comments-area { margin-top: 3rem; }
.comment-list { display: grid; gap: 1rem; margin-bottom: 2rem; }
.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] { flex: 1; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius); font: inherit; }
.notice { padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--smoke); margin-bottom: 1rem; }

/* ---------- Promo modal (off by default) ---------- */
.promo-modal-overlay { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; padding: 1.5rem; background: rgba(15,33,64,.7); }
.promo-modal-overlay.active { display: grid; }
.promo-modal { position: relative; max-width: 560px; width: 100%; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; }
.promo-modal-close { position: absolute; top: .75rem; right: .75rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--white); cursor: pointer; display: grid; place-items: center; }
.promo-modal-link { display: block; padding: 1rem; text-align: center; font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 4.5rem 0 0; font-size: .975rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 2.5rem; }
.footer h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 1.1rem; }
.footer ul { display: grid; gap: .55rem; }
.footer a { color: rgba(255,255,255,.82); }
.footer a:hover { color: var(--cyan); }
.footer-social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(7,204,236,.4); color: var(--cyan); }
.footer-social a:hover { background: var(--cyan); color: var(--ink); }
.footer-bottom { margin-top: 3.5rem; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .875rem; text-align: center; }
.footer-bottom p { margin: 0; }

/* ---------- Scroll reveal ---------- */
.js .js-animate { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .js-animate.animate-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art-pulse { animation: none; stroke-dashoffset: 40; }
  .js .js-animate { opacity: 1; transform: none; transition: none; }
  .btn, .tile, .tile-media img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .mobile-toggle { display: block; }
  .header-cta { display: none; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: .75rem 1.5rem 1.5rem;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(15,33,64,.1);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-links.active { display: flex; }
  .nav-links > li > a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav-links > li > a::after { display: none; }
  .nav-links .sub-menu, .nav-links .children { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .5rem 1rem; min-width: 0; }
  .tile-grid, .values-row, .features-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { max-width: 300px; }
  .hero-has-media .hero-art { display: none; }
  .doctor-grid, .feature-panel, .about-content, .contact-grid, .article-lead, .location-card { grid-template-columns: 1fr; }
  .about-content-reverse > :first-child { order: 0; }
  .services-layout-grid { grid-template-columns: 1fr; }
  .location-map, .location-map iframe { min-height: 280px; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  body { font-size: 1rem; }
  .container { padding: 0 1rem; }
  .header-top .container { justify-content: center; }
  .header-top-message { display: none; }
  .header-top-contact { gap: .9rem; font-size: .78rem; }
  .logo-mark { width: 40px; height: 40px; }
  .logo-text { font-size: 1.02rem; }
  .logo-text span { font-size: .62rem; letter-spacing: .12em; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats li, .hero-stats li + li { padding: .9rem 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .hero-stats li:first-child { border-top: 0; }
  .values-row, .features-grid-4, .footer-grid { grid-template-columns: 1fr; }
  .tile-grid { gap: 1rem; }
  .tile-title { padding: .9rem 1rem 1rem; font-size: 1rem; }
  .service-detail, .services-layout-rows .service-detail { grid-template-columns: 1fr; }
  .service-media { max-width: 280px; }
  .location-info { padding: 1.5rem; }
}

@media (max-width: 440px) {
  .tile-grid { grid-template-columns: 1fr; }
}

/* ---------- Design preview switcher (local / staging / editors only) ---------- */
.design-switcher {
  position: fixed; left: 16px; bottom: 16px; z-index: 999;
  display: flex; align-items: center; gap: 4px; padding: 6px;
  background: rgba(15, 33, 64, .92); border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  font: 700 .8rem/1 var(--font-body);
  max-width: calc(100vw - 32px); overflow-x: auto; scrollbar-width: none;
}
.design-switcher span { color: rgba(255,255,255,.7); padding: 0 8px 0 10px; text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; }
.design-switcher a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--white); }
.design-switcher a:hover { background: rgba(255,255,255,.15); color: var(--white); }
.design-switcher a[aria-current] { background: var(--cyan); color: var(--ink); }
