/* ============================================================
   Knee Centers of America — Americana Modern
   Palette drawn from the KCA logo: patriot red, union navy,
   flag blue, and parchment white.
   ============================================================ */

:root {
  --red: #e0201f;
  --red-dark: #b81718;
  --navy: #0b163f;
  --navy-2: #12235f;
  --blue: #2837a0;
  --blue-light: #3d4fc4;
  --cream: #f7f5ef;
  --paper: #ffffff;
  --ink: #1c2333;
  --ink-soft: #4c5568;
  --line: #e5e2d9;
  --gold: #f4b942;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 22, 63, 0.1);
  --shadow-lg: 0 24px 60px rgba(11, 22, 63, 0.18);
  --font: "Libre Franklin", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }
ul { list-style: none; }
address { font-style: normal; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.4rem; }
.container.narrow { max-width: 800px; }
.center { text-align: center; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; color: var(--navy); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h1 em { font-style: normal; color: var(--red); position: relative; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 1rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); font-weight: 400; }
.split-copy p + p, .split-copy p + h2 { margin-top: 1.1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem;
}
.eyebrow .star { font-size: 0.6rem; transform: translateY(-1px); }
.eyebrow-dark { color: var(--red); }
.eyebrow-dark .star { color: var(--blue); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 0.85rem 1.7rem; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 2px solid transparent; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.05rem; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(224, 32, 31, 0.35); }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 8px 22px rgba(11, 22, 63, 0.25); }
.btn-navy:hover { background: var(--blue); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,0.75); color: #fff; background: rgba(255,255,255,0.06); backdrop-filter: blur(4px); }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

.text-link { font-weight: 700; color: var(--red); font-size: 0.95rem; }
.text-link:hover { color: var(--navy); }

.pill-link {
  display: inline-block; padding: 0.5rem 1.1rem; border-radius: 999px;
  background: var(--cream); border: 1.5px solid var(--line);
  color: var(--navy); font-weight: 600; font-size: 0.92rem;
}
.pill-link:hover { border-color: var(--red); color: var(--red); }

/* ---------- topbar & header ---------- */
.topbar {
  background:
    linear-gradient(rgba(11, 22, 63, 0.88), rgba(11, 22, 63, 0.88)),
    var(--blue-flag) center 45% / cover no-repeat;
  color: rgba(255,255,255,0.85); font-size: 0.85rem;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 0.45rem; padding-bottom: 0.45rem; gap: 1rem; }
.topbar svg { vertical-align: -2px; margin-right: 0.3rem; opacity: 0.8; }
.topbar-phone { color: #fff; font-weight: 700; }
.topbar-phone:hover { color: var(--gold); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--red);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11,22,63,0.12); }
.header-inner { display: flex; align-items: center; gap: 1.6rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.logo-link img { width: clamp(160px, 20vw, 225px); height: auto; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: 0.2rem; align-items: center; }
.nav-item > a {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.6rem 0.85rem; font-weight: 600; font-size: 0.95rem; color: var(--navy);
  border-radius: 8px;
}
.nav-item > a:hover { color: var(--red); background: var(--cream); }
.nav-item.active > a { color: var(--red); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); border-top: 3px solid var(--red);
  padding: 0.5rem; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.2s ease; z-index: 50;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 0.55rem 0.9rem; border-radius: 8px; font-size: 0.92rem; font-weight: 500; color: var(--ink); }
.dropdown a:hover { background: var(--cream); color: var(--red); }

.nav-cta { white-space: nowrap; }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: all 0.25s ease; }

/* ---------- hero ---------- */
.hero {
  background-size: cover; background-position: center 30%;
  color: #fff; position: relative;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--red) 0 80px, #fff 80px 160px, var(--blue) 160px 240px);
  opacity: 0.9;
}
.hero-inner { padding: 4.5rem 1.4rem; max-width: var(--max); }
.hero-tall .hero-inner { padding-top: clamp(5rem, 12vh, 9rem); padding-bottom: clamp(5rem, 12vh, 9rem); }
.hero-tall { background-position: center center; }
@media (max-width: 700px) { .hero-tall { background-position: 76% center; } }
.hero h1 { color: #fff; max-width: 17ch; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero-sub { margin-top: 1.2rem; font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 56ch; color: rgba(255,255,255,0.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2.2rem; }
.hero-badges li {
  padding: 0.45rem 1.1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.35); backdrop-filter: blur(4px);
}

.breadcrumbs { font-size: 0.85rem; margin-bottom: 1.4rem; color: rgba(255,255,255,0.75); }
.breadcrumbs a { color: rgba(255,255,255,0.85); font-weight: 600; }
.breadcrumbs a:hover { color: var(--gold); }
.crumb-sep { margin: 0 0.5rem; opacity: 0.5; }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-alt { background: var(--cream); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 2.6rem; }
.section-sub { color: var(--ink-soft); font-size: 1.1rem; }

/* selected light flag backgrounds */
.intro-section,
.doctor-preview {
  background:
    linear-gradient(rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.48)),
    var(--light-flag) center / cover no-repeat;
}

/* split layout */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.intro-section .split, .doctor-preview .split { align-items: center; }
.doctor-preview .split { grid-template-columns: 0.8fr 1.2fr; }
.split-side { display: flex; flex-direction: column; gap: 1.4rem; position: static; }

.photo-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.photo-frame::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  border: 4px solid rgba(255,255,255,0.5); pointer-events: none; z-index: 2;
}
.photo-frame::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; z-index: 2;
  background: linear-gradient(90deg, var(--red) 33%, #fff 33% 66%, var(--blue) 66%);
}
.photo-frame img { width: 100%; object-fit: cover; }

/* cards */
.card-grid { display: grid; gap: 1.6rem; }
.card-grid.cols-1 { grid-template-columns: minmax(0, 520px); justify-content: center; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { display: block; aspect-ratio: 16/10; overflow: hidden; position: relative; }
.card-img::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--red) 33%, #fff 33% 66%, var(--blue) 66%); z-index: 2; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.card-body h3 { font-size: 1.25rem; }
.card-body h3 a { color: var(--navy); }
.card-body h3 a:hover { color: var(--red); }
.card-body p { color: var(--ink-soft); font-size: 0.97rem; flex: 1; }

/* condition tiles */
.cond-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.cond-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background-size: cover; background-position: center;
  aspect-ratio: 4/3; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.4rem; color: #fff; box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.cond-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: #fff; }
.cond-card-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cond-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,22,63,.15) 0%, rgba(11,22,63,.85) 100%); z-index: 1; }
.cond-card > span { position: relative; z-index: 2; }
.cond-name { font-size: 1.25rem; font-weight: 800; line-height: 1.25; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.cond-more { font-size: 0.85rem; font-weight: 700; color: var(--gold); margin-top: 0.4rem; opacity: 0; transform: translateY(6px); transition: all 0.22s ease; }
.cond-card:hover .cond-more { opacity: 1; transform: translateY(0); }

/* stat band */
.stat-band {
  background:
    linear-gradient(120deg, rgba(11, 22, 63, 0.9), rgba(18, 35, 95, 0.78)),
    var(--blue-flag) center 48% / cover no-repeat;
  color: #fff; padding: 2.8rem 0; position: relative; overflow: hidden;
}
.stat-band::before {
  content: "★"; position: absolute; right: -1rem; top: -3rem; font-size: 16rem;
  color: rgba(255,255,255,0.05); line-height: 1;
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-num { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; color: #fff; }
.stat-label { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.75); font-weight: 600; }

/* homepage video */
.video-section {
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.62)),
    var(--light-flag) center / cover no-repeat;
}
.video-frame {
  position: relative; max-width: 960px; margin: 0 auto;
  aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
  background: var(--navy); border: 1px solid rgba(11, 22, 63, 0.12);
  box-shadow: var(--shadow-lg);
}
.video-frame::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--red) 33%, #fff 33% 66%, var(--blue) 66%);
  z-index: 1; pointer-events: none;
}
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* check list */
.check-list { display: flex; flex-direction: column; gap: 0.6rem; margin: 1.2rem 0; }
.check-list li { position: relative; padding-left: 1.9rem; font-size: 0.98rem; }
.check-list li::before {
  content: "★"; position: absolute; left: 0; top: 0.05em;
  color: var(--red); font-size: 0.95rem;
}
.side-card-navy .check-list li::before { color: var(--gold); }

/* side cards */
.side-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.side-card h3 { font-size: 1.15rem; margin-bottom: 0.7rem; }
.side-card p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.9rem; }
.side-card-navy { background: linear-gradient(150deg, var(--navy), var(--navy-2)); border: 0; color: #fff; }
.side-card-navy h3 { color: #fff; }
.side-card-navy p { color: rgba(255,255,255,0.85); }
.side-card-navy .check-list li { color: rgba(255,255,255,0.92); }

/* steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.4rem; }
.step { background: #fff; border-radius: var(--radius); padding: 1.8rem 1.5rem; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.step-num {
  display: inline-flex; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 900; font-size: 1.2rem;
  align-items: center; justify-content: center; margin-bottom: 1rem;
  box-shadow: 0 6px 16px rgba(224,32,31,0.35);
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.93rem; color: var(--ink-soft); }

/* FAQ */
.faq-section .section-title { text-align: center; }
.faq-section .eyebrow { display: flex; justify-content: center; }
.faq-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 3.2rem 1.15rem 1.4rem;
  font-weight: 700; color: var(--navy); position: relative; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: absolute; right: 1.3rem; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--red); border-radius: 2px; transition: transform 0.2s ease; }
.faq-icon::before { left: 0; top: 6px; width: 14px; height: 2.5px; }
.faq-icon::after { left: 6px; top: 0; width: 2.5px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }
.faq-answer { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); font-size: 0.98rem; }
.section-alt .faq-item { background: #fff; }

/* testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.testimonial .stars { color: var(--gold); letter-spacing: 0.2em; margin-bottom: 0.8rem; }
.testimonial p { font-size: 1rem; color: var(--ink); font-style: italic; }
.testimonial footer { margin-top: 1rem; font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.testimonial footer span { font-weight: 400; color: var(--ink-soft); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 1.3rem; }
.contact-big { display: block; font-size: 1.7rem; font-weight: 900; color: var(--red); letter-spacing: -0.01em; }
.contact-big:hover { color: var(--navy); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); position: sticky; top: 110px; }
.map-wrap iframe { width: 100%; height: 560px; border: 0; display: block; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px dashed var(--line); font-size: 0.93rem; }
.hours-list li span:first-child { font-weight: 600; }
.hours-list li span:last-child { white-space: nowrap; }
.hours-dark li { border-color: var(--line); }

.contact-form { display: flex; flex-direction: column; gap: 0.9rem; }
.contact-form label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.contact-form input, .contact-form textarea {
  padding: 0.7rem 0.9rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font); font-size: 1rem; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); }

/* ---------- CTA band ---------- */
.legal-copy { overflow-wrap: anywhere; }
.legal-copy h2 { margin-top: 2rem; font-size: 1.5rem; }
.legal-copy p { margin-bottom: 1.1rem; }

.cta-band {
  background:
    linear-gradient(120deg, rgba(85, 0, 0, 0.35), rgba(85, 0, 0, 0.2)),
    var(--red-flag) center 52% / cover no-repeat;
  background-color: #a71912;
  color: #fff; text-align: center; padding: 4.5rem 0 5rem; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(224,32,31,0.25), transparent 55%);
}
.stars-row { color: var(--gold); letter-spacing: 1.2em; font-size: 0.9rem; margin-bottom: 1.4rem; position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 22ch; margin: 0 auto 0.9rem; position: relative; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 1.15rem; position: relative; }
.cta-band .btn-red { background: #fff; color: #971b16; box-shadow: 0 8px 22px rgba(70,0,0,0.2); }
.cta-band .btn-red:hover { background: #f5eceb; color: #76130f; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; position: relative; }

/* ---------- footer ---------- */
.site-footer {
  background:
    linear-gradient(rgba(11, 22, 63, 0.94), rgba(11, 22, 63, 0.9)),
    var(--blue-flag) center 65% / cover no-repeat;
  color: rgba(255,255,255,0.8); border-top: 6px solid var(--red);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 1.4rem 2.5rem; }
.footer-col h3 { color: #fff; font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col a { color: rgba(255,255,255,0.78); font-size: 0.93rem; }
.footer-col a:hover { color: var(--gold); }
.footer-brand img { width: 220px; max-width: 100%; height: auto; background: transparent; padding: 0; border-radius: 0; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.93rem; margin-bottom: 1rem; }
.footer-phone { display: inline-block; font-size: 1.35rem; font-weight: 800; color: #fff !important; margin-bottom: 0.6rem; }
.footer-phone:hover { color: var(--gold) !important; }
.footer-brand address { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.site-footer .hours-list li { border-color: rgba(255,255,255,0.12); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.2rem 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .main-nav {
    position: fixed; inset: 0; top: 0;
    background:
      linear-gradient(rgba(11, 22, 63, 0.92), rgba(11, 22, 63, 0.88)),
      var(--blue-flag) center / cover no-repeat;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1rem;
    opacity: 0; visibility: hidden; transition: opacity 0.25s ease; z-index: 200; margin: 0;
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav > ul { flex-direction: column; gap: 0.4rem; text-align: center; }
  .nav-item > a { color: #fff; font-size: 1.25rem; justify-content: center; }
  .nav-item > a:hover { background: rgba(255,255,255,0.08); color: var(--gold); }
  .nav-item > a svg { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; box-shadow: none; display: none; }
  .has-dropdown.open-sub .dropdown { display: block; }
  .dropdown a { color: rgba(255,255,255,0.7); text-align: center; font-size: 1rem; }
  .dropdown a:hover { background: transparent; color: var(--gold); }
  .nav-cta { display: none; }
  .nav-cta-mobile { display: inline-block; margin-top: 1.2rem; }
  .nav-toggle { display: flex; margin-left: auto; z-index: 300; position: relative; }
  body.nav-open .nav-toggle span { background: #fff; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }

  .split, .doctor-preview .split { grid-template-columns: 1fr; }
  .split-side { position: static; }
  .split-media { order: -1; }
  .doctor-preview .split-media { order: 0; }
  .cond-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .map-wrap { position: static; }
  .map-wrap iframe { height: 380px; }
}

@media (max-width: 640px) {
  .topbar-loc { display: none; }
  .topbar { position: sticky; top: 0; z-index: 101; }
  .site-header { top: var(--mobile-topbar-height, 37px); }
  .topbar-inner { justify-content: center; }
  .cond-grid, .steps-grid, .card-grid.cols-2, .card-grid.cols-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding-left: 1.4rem; padding-right: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

/* ---------- knee pain evaluation form ---------- */
.eval-section {
  background:
    radial-gradient(ellipse at 15% 10%, rgba(61, 79, 196, 0.45), transparent 55%),
    radial-gradient(ellipse at 90% 90%, rgba(224, 32, 31, 0.18), transparent 50%),
    linear-gradient(150deg, rgba(10, 20, 64, 0.92), rgba(18, 35, 95, 0.78)),
    var(--blue-flag) center 52% / cover no-repeat;
  color: #fff;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  position: relative;
  overflow: hidden;
}
.eval-section::before {
  content: "★"; position: absolute; left: -2rem; bottom: -4rem; font-size: 18rem;
  color: rgba(255,255,255,0.04); line-height: 1; pointer-events: none;
}
.eval-inner { text-align: center; }
.eval-title {
  color: #fff; font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  text-transform: uppercase; letter-spacing: 0.02em; font-weight: 900;
}
.eval-sub { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-top: 0.6rem; }
.eval-form { margin-top: 2.5rem; text-align: left; }
.eval-checks {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 3rem;
  max-width: 980px; margin: 0 auto;
}
.eval-col { display: flex; flex-direction: column; gap: 0.4rem; }
.eval-check {
  display: flex; align-items: center; gap: 0.9rem; cursor: pointer;
  font-size: 1.1rem; color: rgba(255,255,255,0.92);
  padding: 0.55rem 0.8rem; border-radius: 10px;
  transition: background 0.15s ease;
}
.eval-check:hover { background: rgba(255,255,255,0.07); }
.eval-check input { position: absolute; opacity: 0; pointer-events: none; }
.eval-box {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 5px;
  border: 2px solid rgba(255,255,255,0.55); background: rgba(255,255,255,0.06);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s ease; position: relative;
}
.eval-check input:checked + .eval-box { background: var(--red); border-color: var(--red); }
.eval-check input:checked + .eval-box::after {
  content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.eval-check input:focus-visible + .eval-box { outline: 2px solid var(--gold); outline-offset: 2px; }
.eval-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 3rem;
  max-width: 980px; margin: 2.5rem auto 0;
}
.eval-fields input {
  width: 100%; padding: 0.95rem 1.1rem; font-size: 1rem; font-family: var(--font);
  background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 10px; color: #fff;
}
.eval-fields input::placeholder { color: rgba(255,255,255,0.65); }
.eval-fields input:focus { outline: none; border-color: #fff; background: rgba(255,255,255,0.12); }
.eval-submit { text-align: center; margin-top: 2.2rem; }
.eval-submit .btn { text-transform: uppercase; letter-spacing: 0.08em; border: 0; font-family: var(--font); }
.eval-privacy { margin-top: 1rem; font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
@media (max-width: 760px) {
  .eval-checks, .eval-fields { grid-template-columns: 1fr; gap: 0.3rem; }
  .eval-fields { gap: 1rem; margin-top: 2rem; }
}

/* Keep office-hour ranges readable at intermediate widths. */
.footer-grid { grid-template-columns: 1.15fr 1fr 1fr minmax(270px,1.1fr); }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: minmax(0,1fr); } }
.site-footer .hours-list { gap: 0; }
.site-footer .hours-list li { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: .7rem; padding: .25rem 0; margin: 0; border: 0; font-size: .93rem; line-height: 1.5; }
.site-footer .hours-list li span:first-child { font-weight: 400; }
.site-footer .hours-list .hours-closed { color: rgba(255,255,255,.65); font-style: italic; }
.site-footer .hours-list li span { white-space: nowrap; }
.eval-privacy a { color: white; text-decoration: underline; }
.eyebrow.eyebrow-dark { color: #bd1919; }
.site-footer a.btn-red { color: #fff; background-color: #c51b1a; }

/* Conway brand lockup and split office hours. */
.logo-link { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.hours-list li span:last-child { line-height: 1.55; }
.intro-section .photo-frame { background: #edf1f6; }
.intro-section .photo-frame img { max-height: 580px; object-fit: contain; object-position: bottom; }
@media (max-width: 380px) {
  .site-footer .hours-list li { grid-template-columns: 93px minmax(0,1fr); gap: .4rem; font-size: .82rem; }
  .hours-dark li { gap: .5rem; font-size: .82rem; }
}

/* Keep the bio portrait framed above the model held in the source photo. */

