/* ==========================================================================
   Option I: Bento
   Its own page structure (template-parts/i/), not a recolour of A/D: a
   floating pill menu, a bento-grid hero, a "Where does it hurt?" finder,
   a sideways service strip, a first-visit timeline, an FAQ accordion, a
   combined visit card and a light footer. Rounded slabs on a soft grey page.
   UPMC navy and cyan, Quicksand headings, as the rest of the site.
   ========================================================================== */

:root {
  --radius: 14px;
  --radius-lg: 26px;
  --slab: 40px;
  --page: #f2f6f8;
}

body { background: var(--page); }
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-white, .section-alt, .section-cream { background: transparent; }

/* Labels become small pills; headings sit left. */
.section-label, .eyebrow {
  padding: .35rem .85rem; border-radius: 999px; background: var(--cyan-pale);
  color: var(--navy); letter-spacing: .08em; font-size: .75rem;
}
.section-label::before, .eyebrow::before { display: none; }
.a-heading { max-width: 640px; margin-bottom: 2rem; }
.a-heading p { color: var(--muted); font-size: 1.1rem; }

/* Pill buttons. */
.btn { border-radius: 999px; }
.btn-secondary { border-width: 1.5px; }

/* ---------- Floating pill header ---------- */
.site-header { background: transparent; padding-top: 14px; }
.site-header.is-scrolled { box-shadow: none; }
.header-top { display: none; }
.header-main { border-bottom: 0; }
.header-main .container {
  min-height: 68px; padding: 0 .6rem 0 1.25rem; border-radius: 999px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px -14px rgba(15, 33, 64, .25);
  width: calc(100% - 2rem);
}
.logo-mark { width: 42px; height: 42px; }
.logo-text { font-size: 1.08rem; }
.nav-links { gap: 1.4rem; }
.nav-links a { font-size: .97rem; }
.header-cta { padding: .75rem 1.3rem; }

/* ---------- Bento hero ---------- */
.bento-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.bento-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.bento-note {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.5rem;
  padding: .45rem 1rem; border-radius: 999px; background: var(--white); box-shadow: var(--shadow);
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--navy);
}
.bento-dot { width: 9px; height: 9px; border-radius: 50%; background: #1fbf75; box-shadow: 0 0 0 0 rgba(31, 191, 117, .5); animation: bento-ping 2s infinite; }
@keyframes bento-ping { 70% { box-shadow: 0 0 0 9px rgba(31, 191, 117, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 191, 117, 0); } }
.bento-intro h1 { font-size: clamp(2.6rem, 5.2vw, 4.3rem); line-height: 1.04; color: var(--ink); letter-spacing: -0.02em; }
.bento-lead { font-size: 1.2rem; max-width: 34rem; }
.bento-intro .hero-buttons { margin-top: 1.75rem; }

.bento {
  display: grid; gap: 14px;
  grid-template-columns: 1.1fr 1fr;
  grid-template-areas: "spine s1" "spine svc" "s2 svc" "call s3";
}
.bento-tile { border-radius: var(--radius-lg); padding: 1.25rem 1.35rem; background: var(--white); box-shadow: var(--shadow); color: var(--ink); }
a.bento-tile { transition: transform .25s ease, box-shadow .25s ease; }
a.bento-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.bento-spine {
  grid-area: spine; display: flex; flex-direction: column; justify-content: space-between; min-height: 330px;
  padding: .5rem 1.25rem 1.35rem; color: var(--white);
  background: radial-gradient(circle at 50% 35%, rgba(7, 204, 236, .3), transparent 60%), linear-gradient(160deg, var(--navy), var(--ink));
}
.bento-spine .hero-art { max-width: 290px; margin: 0 auto; }
.bento-spine p { margin: 0; text-align: center; font-size: .85rem; color: var(--cyan-pale); }
.bento-stat { display: flex; flex-direction: column; gap: .2rem; }
.bento-stat strong { font-family: var(--font-head); font-size: 1.25rem; color: inherit; }
.bento-stat span:last-child { font-size: .9rem; opacity: .8; }
.bento-stat-1 { grid-area: s1; background: var(--cyan); }
.bento-stat-2 { grid-area: s2; }
.bento-stat-3 { grid-area: s3; background: var(--cyan-pale); }
.bento-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .65); color: var(--navy); margin-bottom: .45rem; }
.bento-stat-2 .bento-icon { background: var(--cyan-pale); }
.bento-service { grid-area: svc; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.bento-service-media { flex: 1; min-height: 150px; background: var(--smoke); }
.bento-service-media img { width: 100%; height: 100%; object-fit: cover; }
.bento-service-title { padding: .9rem 1.2rem 1.1rem; font-family: var(--font-head); font-weight: 700; line-height: 1.3; }
.bento-call { grid-area: call; background: var(--navy); color: var(--white); display: flex; flex-direction: column; gap: .15rem; }
.bento-call strong { color: var(--white); font-family: var(--font-head); font-size: 1.25rem; }
.bento-call span:last-child { font-size: .88rem; color: var(--cyan-pale); }
.bento-call .bento-icon { background: rgba(7, 204, 236, .2); color: var(--cyan); }
a.bento-call:hover { color: var(--white); }

/* ---------- Finder ---------- */
.finder { background: var(--white); border-radius: var(--slab); width: calc(100% - 2rem); max-width: 1280px; margin: 0 auto; }
.finder-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.finder-tabs button {
  display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.25rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.finder-tabs button svg { color: var(--cyan-ink); }
.finder-tabs button:hover { border-color: var(--navy); }
.finder-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.finder-tabs button[aria-selected="true"] svg { color: var(--cyan); }
.finder-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1.5rem; align-items: start; }
.finder-panel + .finder-panel { margin-top: 2rem; }
.finder-panel[hidden] { display: none; }
.finder-panel-intro { background: var(--smoke); border-radius: var(--radius-lg); padding: 1.75rem; }
.finder-panel-intro h3 { font-size: 1.5rem; }
.finder-panel-intro p { color: var(--muted); }
.finder-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.finder-card { display: flex; gap: 1rem; align-items: center; padding: .75rem; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; }
.finder-card:hover { border-color: var(--cyan); box-shadow: var(--shadow); color: var(--ink); }
.finder-card-media { flex-shrink: 0; width: 88px; }
.finder-card-media img { width: 88px; height: 88px; object-fit: cover; border-radius: 14px; }
.finder-card-body strong { display: block; font-family: var(--font-head); font-size: 1.02rem; line-height: 1.3; margin-bottom: .2rem; }
.finder-card-body span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; color: var(--muted); line-height: 1.45; }

/* ---------- Sideways service strip ---------- */
.services-strip { overflow: hidden; }
.strip-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.strip-head h2 { margin: 0; }
.strip-controls { display: flex; align-items: center; gap: .5rem; }
.strip-all { font-family: var(--font-head); font-weight: 700; margin-right: .75rem; }
.strip-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); color: var(--navy); font-size: 1.2rem; cursor: pointer; }
.strip-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.strip {
  --edge: max(1.5rem, calc((100vw - 1200px) / 2 + 1.5rem));
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--edge);
  padding: .75rem var(--edge) 1.75rem; list-style: none; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip li { flex: 0 0 300px; scroll-snap-align: start; }
.strip-card { display: flex; flex-direction: column; gap: .4rem; height: 100%; padding: .75rem .75rem 1.5rem; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); color: var(--ink); transition: transform .25s ease, box-shadow .25s ease; }
.strip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.strip-card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.strip-card strong { padding: .6rem .5rem 0; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.3; }
.strip-card > span:last-child { padding: 0 .5rem; color: var(--muted); font-size: .95rem; }

/* ---------- Doctor card ---------- */
.doctor-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
  padding: clamp(2rem, 5vw, 4rem); border-radius: var(--slab); color: rgba(255, 255, 255, .85);
  background: radial-gradient(circle at 15% 20%, rgba(7, 204, 236, .25), transparent 45%), linear-gradient(135deg, var(--navy), var(--ink));
}
.doctor-card::after { content: '\201C'; position: absolute; right: 2.5rem; top: -1.5rem; font: 700 15rem/1 var(--font-head); color: rgba(7, 204, 236, .12); pointer-events: none; }
.doctor-card-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 22%; border-radius: 50%; border: 6px solid rgba(7, 204, 236, .45); }
.doctor-card h2 { color: var(--white); margin-top: .5rem; }
.doctor-card .section-label { background: rgba(7, 204, 236, .16); color: var(--cyan); }
.doctor-card-role { color: var(--cyan); font-family: var(--font-head); font-weight: 600; }
.doctor-card-lead { font-size: 1.12rem; max-width: 46rem; }
.doctor-card .btn-secondary { color: var(--white); border-color: rgba(255, 255, 255, .6); }
.doctor-card .btn-secondary:hover { background: var(--white); color: var(--navy); }

/* ---------- First-visit timeline ---------- */
.timeline { list-style: none; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.timeline::before { content: ''; position: absolute; top: 27px; left: 28px; right: calc((100% - 4.5rem) / 4 - 28px); height: 2px; background: linear-gradient(90deg, var(--cyan), var(--navy)); }
.timeline li { position: relative; padding-top: 78px; counter-increment: step; }
.timeline li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 2px solid var(--cyan); box-shadow: var(--shadow);
  font: 700 1.3rem var(--font-head); color: var(--navy);
}
.timeline h3 { font-size: 1.25rem; }
.timeline p { color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq-split-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-split-intro p { color: var(--muted); font-size: 1.1rem; }
.accordion details { background: var(--white); border-radius: 20px; margin-bottom: .75rem; box-shadow: var(--shadow); }
.accordion summary { position: relative; cursor: pointer; list-style: none; padding: 1.25rem 4rem 1.25rem 1.5rem; font: 700 1.1rem/1.35 var(--font-head); color: var(--ink); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '+'; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cyan-pale); color: var(--navy); font-size: 1.3rem; line-height: 1;
}
.accordion details[open] summary::after { content: '\2212'; background: var(--cyan); color: var(--ink); }
.accordion details p { margin: 0; padding: 0 1.5rem 1.4rem; }

/* ---------- Visit card ---------- */
.visit-card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); overflow: hidden; border-radius: var(--slab); background: var(--white); box-shadow: var(--shadow); }
.visit-map iframe { display: block; width: 100%; height: 100%; min-height: 440px; border: 0; }
.visit-info { padding: clamp(2rem, 4vw, 3rem); }
.visit-info dl { margin: 1rem 0 1.5rem; }
.visit-info dl div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.visit-info dt { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ink); }
.visit-info dt svg { color: var(--cyan-ink); }
.visit-info dd { margin: .25rem 0 0 28px; }

/* ---------- Call to action: a bright slab ---------- */
.cta { background: none; padding: 0 0 clamp(3.5rem, 7vw, 5.5rem); color: var(--ink); }
.cta::before { display: none; }
.cta .container { max-width: 1200px; padding: clamp(2.5rem, 6vw, 4rem); border-radius: var(--slab); width: calc(100% - 2rem); background: linear-gradient(120deg, var(--cyan), #8de9f6); }
.cta h2 { color: var(--ink); }
.cta p { color: var(--ink); opacity: .85; }
.cta .btn-primary { background: var(--navy); color: var(--white); }
.cta .btn-primary:hover { background: var(--ink); color: var(--white); }
.cta .btn-outline-light { color: var(--ink); border-color: rgba(15, 33, 64, .5); }
.cta .btn-outline-light:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Interior page header: a rounded panel ---------- */
.page-header { background: none; padding: 1.5rem 0 0; color: var(--text); }
.page-header::before { display: none; }
.page-header .container { padding: clamp(2rem, 5vw, 3.25rem); border-radius: var(--slab); width: calc(100% - 2rem); background: linear-gradient(120deg, var(--white) 0%, var(--cyan-pale) 100%); }
.page-header h1 { color: var(--ink); }
.page-header-sub { color: var(--text); }
.page-header .section-label { color: var(--navy); background: var(--white); }
.breadcrumb a { color: var(--cyan-ink); }
.breadcrumb [aria-current] { color: var(--muted); }
.breadcrumb li + li::before { color: var(--muted); }

/* Seeded page content on the soft grey page. */
.entry-content-wide > .section:nth-child(even) { background: transparent; }
.feature-card, .treatment-card, .service-detail, .location-card, .post-card, .contact-info-card { border-radius: var(--radius-lg); border-color: transparent; box-shadow: var(--shadow); }
.contact-info-card { background: var(--white); }

/* ---------- Light footer ---------- */
.footer { background: var(--white); color: var(--text); border-top: 1px solid var(--line); }
.footer h4 { color: var(--navy); }
.footer a { color: var(--text); }
.footer a:hover { color: var(--cyan-ink); }
.footer-bottom { border-top-color: var(--line); color: var(--muted); }
.footer-social a { border-color: var(--line); color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  .bento-dot { animation: none; }
  a.bento-tile, .strip-card, .finder-card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-links { left: 1rem; right: 1rem; top: calc(100% + 8px); border-radius: 24px; border: 0; box-shadow: var(--shadow-lg); }
}

@media (max-width: 1000px) {
  .bento-hero-grid, .finder-panel, .faq-split-grid, .visit-card { grid-template-columns: 1fr; }
  .doctor-card { grid-template-columns: 1fr; text-align: center; }
  .doctor-card-photo { width: 180px; margin: 0 auto; }
  .doctor-card-lead { margin-left: auto; margin-right: auto; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .timeline::before { display: none; }
  .visit-map iframe { min-height: 300px; }
}

@media (max-width: 640px) {
  .header-main .container { width: calc(100% - 1rem); padding-left: .9rem; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "spine spine" "s1 s2" "svc svc" "call s3"; }
  .bento-spine { min-height: 0; }
  .bento-spine .hero-art { max-width: 220px; }
  .bento-tile { padding: 1rem; }
  .bento-stat strong, .bento-call strong { font-size: 1.05rem; }
  .finder, .page-header .container, .cta .container { width: calc(100% - 1rem); }
  .finder-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -1rem 1.5rem; padding: 0 1rem .25rem; scrollbar-width: none; }
  .finder-tabs::-webkit-scrollbar { display: none; }
  .finder-tabs button { flex-shrink: 0; }
  .finder-cards { grid-template-columns: 1fr; }
  .strip li { flex-basis: 78vw; }
  .strip-all { display: none; }
  .timeline { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .timeline li { padding: 0 0 0 76px; min-height: 56px; }
  .doctor-card::after { font-size: 9rem; right: 1rem; }
}
