/* Orthopedics Northwest, PLLC: shared site styles
   Type: Archivo (variable width + weight, self-hosted, SIL OFL 1.1).
   Headings use extended widths to echo the logo's wide lettering; body text stays at normal width.
   No inline styles are used anywhere so a strict Content-Security-Policy (style-src 'self') works. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-var.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext-var.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-ext-var.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-italic-var.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-italic-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand blue, deepened from the old #008CFF so white text passes WCAG AA (about 4.8:1) */
  --blue: #0070e0;
  --blue-ink: #0a58b0;
  --blue-bright: #3ea2ff;
  --blue-tint: #eaf3fd;
  --navy: #0b1f33;
  --ink: #1b2733;
  --muted: #566778;
  --mist: #f2f5f8;
  --line: #dde4eb;
  --line-strong: #c3cfdb;
  --focus: #0a58b0;
  --shadow: 0 1px 2px rgba(11, 31, 51, .06), 0 6px 18px rgba(11, 31, 51, .08);
  --shadow-lg: 0 14px 36px rgba(11, 31, 51, .18);
  --radius: 10px;
  --radius-l: 16px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --section-y: clamp(52px, 7vw, 88px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  font-stretch: 100%;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-ink); }
h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 720;
  font-stretch: 112%;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.1rem); font-stretch: 118%; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }
h3, .h3 { font-size: 1.22rem; font-stretch: 106%; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li + li { margin-top: .35em; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.hero, .info-strip, .stats, .band, .page-banner, .site-footer, .aside-card--call, .cta-panel { --focus: #9ccbff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--mist { background: var(--mist); }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(28px, 4vw, 44px); }
.section-head h2 { margin: 0; }
.section-head h2::after {
  content: ""; display: block; width: 44px; height: 3px; border-radius: 2px;
  background: var(--blue); margin: .55em auto 0;
}
.section-head p { color: var(--muted); font-size: 1.125rem; margin: .9em 0 0; }
.section-cta { margin: 32px 0 0; text-align: center; }
.lede { font-size: 1.18rem; color: var(--muted); }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .7em 1.35em;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 640; font-stretch: 104%; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-tint); color: var(--navy); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.btn-sm { min-height: 40px; padding: .55em 1.05em; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { height: 58px; width: auto; }
.primary-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav-list > li { position: relative; margin: 0; }
.nav-item { display: flex; align-items: center; }
.nav-link {
  display: block; padding: 10px; border-radius: 8px;
  color: var(--navy); text-decoration: none;
  font-weight: 560; font-stretch: 102%; font-size: .97rem; line-height: 1.2;
}
.nav-link:hover { color: var(--blue); }
.nav-link[aria-current="page"], .is-section > .nav-item > .nav-link { color: var(--blue); }
.dropdown-toggle {
  display: grid; place-items: center; width: 26px; height: 34px; margin-left: -7px;
  border: 0; background: none; color: var(--navy); cursor: pointer; border-radius: 6px; padding: 0;
}
.dropdown-toggle .icon { width: 16px; height: 16px; transition: transform .15s; }
.has-dropdown.open > .nav-item .dropdown-toggle .icon { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: -8px; z-index: 60;
  min-width: 250px; list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dropdown li { margin: 0; }
.dropdown a {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.3;
}
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--blue-tint); color: var(--blue-ink); }
.dropdown--wide {
  display: grid; grid-template-columns: repeat(2, minmax(210px, 1fr)); gap: 2px 8px;
  width: 520px; left: 50%; transform: translate(-50%, 6px);
}
.dropdown .dropdown-group { grid-column: 1 / -1; font-size: .78rem; font-weight: 650; color: var(--muted); padding: 8px 12px 2px; }
.dropdown .dropdown-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.dropdown .dropdown-all a { font-weight: 650; color: var(--blue); }
.has-dropdown.open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.has-dropdown.open > .dropdown--wide { transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1141px) {
  .has-dropdown:hover > .dropdown { opacity: 1; visibility: visible; transform: none; }
  .has-dropdown:hover > .dropdown--wide { transform: translate(-50%, 0); }
}
.btn-call { flex: none; }
.call-short { display: none; }
.nav-toggle { display: none; }

@media (max-width: 1279px) {
  .call-long { display: none; }
  .call-short { display: inline; }
}
@media (max-width: 1140px) {
  :root { --header-h: 72px; }
  .brand img { height: 50px; }
  .btn-call { margin-left: auto; padding: .55em .95em; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px; flex: none;
    border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); cursor: pointer;
  }
  .nav-toggle .icon-close { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }
  .primary-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; margin: 0;
    background: #fff; overflow-y: auto; padding: 6px var(--gutter) 40px;
    border-top: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .primary-nav { visibility: visible; opacity: 1; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-item { justify-content: space-between; }
  .nav-link { flex: 1; padding: 15px 4px; font-size: 1.06rem; }
  .dropdown-toggle { width: 46px; height: 46px; margin: 0; }
  .dropdown, .dropdown--wide {
    position: static; display: none; width: auto; min-width: 0;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 12px 8px; grid-template-columns: 1fr;
  }
  .dropdown::before { display: none; }
  .has-dropdown.open > .dropdown { display: block; }
  .has-dropdown.open > .dropdown--wide { display: grid; transform: none; }
}
@media (max-width: 520px) {
  .btn-call { width: 46px; height: 46px; min-height: 46px; padding: 0; }
  .btn-call .call-short { display: none; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; height: clamp(460px, 74vh, 680px); background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-img--building { object-position: 64% 40%; }
.hero-img--team { object-position: 50% 0%; }
/* Team slide: on wider screens the text sits above everyone's heads instead of over faces */
@media (min-width: 701px) {
  .hero-slide--top .hero-content { top: clamp(44px, 8vh, 80px); bottom: auto; }
  .hero-slide--top::after {
    background:
      linear-gradient(180deg, rgba(8, 24, 40, .86) 0%, rgba(8, 24, 40, .56) 36%, rgba(8, 24, 40, 0) 60%),
      linear-gradient(90deg, rgba(8, 24, 40, .35) 0%, rgba(8, 24, 40, 0) 55%);
  }
}
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 24, 40, .88) 0%, rgba(8, 24, 40, .66) 32%, rgba(8, 24, 40, .14) 62%, rgba(8, 24, 40, 0) 76%),
    linear-gradient(0deg, rgba(8, 24, 40, .55) 0%, rgba(8, 24, 40, 0) 42%);
}
.hero-content { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(92px, 13vh, 120px); }
.hero-content .container > * { max-width: 40rem; }
.hero-title {
  color: #fff; margin: 0 0 .35em;
  font-size: clamp(2.1rem, 1.2rem + 2.7vw, 3.25rem); font-stretch: 118%; font-weight: 760; line-height: 1.05;
}
.hero-sub { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: rgba(255, 255, 255, .92); margin: 0 0 1.4em; }
.hero-controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 26px; }
.hero-controls-inner { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.hero-btn {
  width: 42px; height: 42px; border-radius: 50%; padding: 0;
  border: 1.5px solid rgba(255, 255, 255, .6); background: rgba(8, 24, 40, .35); color: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.hero-btn:hover { background: rgba(255, 255, 255, .18); }
.hero-btn .icon { width: 18px; height: 18px; }
.hero-pause .icon-play { display: none; }
.hero-pause[aria-pressed="true"] .icon-play { display: block; }
.hero-pause[aria-pressed="true"] .icon-pause { display: none; }
.hero-dots { display: flex; gap: 4px; margin: 0 4px; }
.hero-dot { position: relative; width: 32px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; }
.hero-dot::before { content: ""; position: absolute; left: 3px; right: 3px; top: 10px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .45); }
.hero-dot[aria-current="true"]::before { background: #fff; }
@media (max-width: 700px) {
  /* Phones: photo on top, text on solid navy below, so the headline never covers faces */
  .hero { height: 620px; }
  .hero-img { height: 54%; }
  .hero-slide::after { background: linear-gradient(180deg, rgba(8, 24, 40, 0) 32%, rgba(8, 24, 40, .55) 46%, #0b1f33 55%); }
  .hero-content { bottom: 88px; }
  .hero-img--building { object-position: 52% 40%; }
  .hero-controls-inner { justify-content: flex-start; }
}

/* ---------- Info strip ---------- */
.info-strip { background: var(--blue); color: #fff; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 30px 28px; }
.info-item:first-child { padding-left: 0; }
.info-item + .info-item { border-left: 1px solid rgba(255, 255, 255, .24); }
.info-icon { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; flex: none; }
.info-icon .icon { width: 22px; height: 22px; }
.info-item h2 { color: #fff; font-size: 1.08rem; font-stretch: 108%; margin: 3px 0 6px; }
.info-item p { margin: 0; color: rgba(255, 255, 255, .93); font-size: .98rem; line-height: 1.5; }
.info-item p + p { margin-top: 8px; }
.info-item a { color: #fff; font-weight: 600; }
.info-phone { display: inline-block; font-size: 1.35rem; font-weight: 720; font-stretch: 110%; text-decoration: none; margin-bottom: 4px; }
.link-row { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 900px) {
  .info-grid { grid-template-columns: 1fr; }
  .info-item { padding: 22px 0; }
  .info-item + .info-item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .24); }
}

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 28px; display: flex; flex-direction: column; align-items: flex-start;
}
.feature-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; flex: none; }
.feature-icon .icon { width: 26px; height: 26px; }
.feature-card p { color: var(--muted); flex: 1; }
.feature-card .btn { margin-top: 6px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Stats band ---------- */
.stats { background: var(--blue); color: #fff; padding-block: clamp(44px, 6vw, 64px); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; list-style: none; margin: 0; padding: 0; }
.stats-grid li { margin: 0; }
.stat .icon { width: 34px; height: 34px; margin: 0 auto 10px; stroke-width: 1.6; display: block; }
.stat-num { display: block; font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem); font-weight: 760; font-stretch: 118%; line-height: 1.05; }
.stat-label { display: block; margin-top: 6px; color: rgba(255, 255, 255, .92); }
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Carousels (scroll-snap, swipe, drag, autoplay) ---------- */
.carousel { position: relative; --per: 3; --gap: 24px; }
.carousel-track {
  display: flex; gap: var(--gap); list-style: none; margin: 0; padding: 4px 2px 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.carousel-slide { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; margin: 0; }
.carousel img { user-select: none; -webkit-user-drag: none; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.carousel-btn {
  width: 44px; height: 44px; border-radius: 50%; padding: 0;
  border: 1.5px solid var(--line-strong); background: #fff; color: var(--navy);
  display: grid; place-items: center; cursor: pointer;
}
.carousel-btn:hover { border-color: var(--blue); color: var(--blue); }
.carousel-btn .icon { width: 18px; height: 18px; }
.carousel-dots { display: flex; gap: 2px; }
.carousel-dot { position: relative; width: 26px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; }
.carousel-dot::before { content: ""; position: absolute; left: 4px; right: 4px; top: 10px; height: 4px; border-radius: 2px; background: #c3cfdb; }
.carousel-dot[aria-current="true"]::before { background: var(--blue); }
@media (max-width: 980px) { .carousel { --per: 2; } }
@media (max-width: 620px) { .carousel { --per: 1.15; --gap: 16px; } }

.care-card { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column; }
.care-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.care-card-body { padding: 20px 22px 24px; }
.care-card h3 { margin-bottom: .4em; }
.care-card p { margin: 0; color: var(--muted); font-size: .98rem; }

.provider-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden;
  color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.provider-card:hover { border-color: #afc3d8; box-shadow: var(--shadow); color: inherit; }
.provider-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 22%; background: var(--mist); }
.provider-card-body { padding: 18px 20px 22px; }
.provider-card h3 { font-size: 1.1rem; margin: 0 0 .25em; }
.provider-card:hover h3 { color: var(--blue); }
.provider-card .specialty { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; list-style: none; margin: 0 0 48px; padding: 0; }
.provider-grid li { margin: 0; }

/* ---------- Patient-centered band ---------- */
.band {
  position: relative; isolation: isolate; color: #fff; text-align: center;
  padding-block: clamp(64px, 9vw, 104px);
  background: var(--navy) url("../img/band-bg.jpg") center / cover no-repeat;
}
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 24, 40, .78), rgba(8, 24, 40, .88)); }
.band h2 { color: #fff; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); font-stretch: 118%; max-width: 24ch; margin: 0 auto .8em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d6e3; border-top: 4px solid var(--blue); font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr .9fr 1.25fr; gap: 40px; padding-block: 56px 40px; }
.footer-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 8px 12px; margin-bottom: 18px; }
.footer-logo img { height: 52px; width: auto; }
.site-footer h2 { color: #fff; font-size: 1.04rem; font-stretch: 110%; margin: 4px 0 .9em; }
.site-footer p { margin: 0 0 .9em; }
.site-footer a { color: #e6eef6; }
.site-footer a:hover { color: #fff; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li + li { margin-top: .5em; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: .2em; color: var(--blue-bright); }
.footer-small { font-size: .9rem; color: #9fb2c6; margin-top: 1em !important; }
.break-any { overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 18px 22px; font-size: .9rem; color: #9fb2c6; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
.footer-bottom p { margin: 0; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-block: 44px 28px; } }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0;
  background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; cursor: pointer;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue-ink); }

/* ---------- Inner page banner and layout ---------- */
.page-banner {
  position: relative; isolation: isolate; color: #fff;
  padding-block: clamp(40px, 6vw, 64px);
  background: var(--navy) url("../img/xray-banner.jpg") center / cover no-repeat;
}
.page-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 33, 72, .9) 0%, rgba(0, 66, 150, .6) 52%, rgba(0, 112, 224, .16) 100%); }
.page-banner h1 { color: #fff; margin: .3em 0 0; max-width: 32ch; }
.nowrap { white-space: nowrap; }
.banner-sub { color: rgba(255, 255, 255, .9); margin: .7em 0 0; max-width: 42rem; font-size: 1.1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; font-size: .92rem; color: rgba(255, 255, 255, .82); }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; color: rgba(255, 255, 255, .5); }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }

.page-body { background: var(--mist); padding-block: clamp(36px, 5vw, 60px); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(22px, 4vw, 42px); }
.panel + .panel { margin-top: 24px; }
.sidebar { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } .sidebar { position: static; } }

.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; }
.aside-card h2 { font-size: 1.12rem; font-stretch: 108%; margin-bottom: .6em; }
.aside-card p { font-size: .96rem; color: var(--muted); margin-bottom: .9em; }
.aside-card p:last-child { margin-bottom: 0; }
.aside-card--call { background: var(--navy); border-color: var(--navy); color: #d6e2ee; }
.aside-card--call h2 { color: #fff; }
.aside-card--call p { color: #c9d6e3; }
.aside-phone { display: flex; align-items: center; gap: 10px; font-size: 1.42rem; font-weight: 720; font-stretch: 112%; color: #fff; text-decoration: none; margin: 2px 0 10px; }
.aside-phone:hover { color: #fff; text-decoration: underline; }
.aside-phone .icon { color: var(--blue-bright); }
.hours { list-style: none; padding: 0; margin: 12px 0 0; font-size: .95rem; }
.hours li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.contact-lines { list-style: none; padding: 0; margin: 0; font-size: .96rem; }
.contact-lines li { display: flex; gap: 10px; align-items: flex-start; }
.contact-lines .icon { color: var(--blue); margin-top: .2em; }
.address { font-style: normal; margin: 0 0 1em; }
.toc { list-style: none; padding: 0; margin: 0; font-size: .96rem; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.toc li:last-child a { border-bottom: 0; }
.toc a:hover { color: var(--blue); }

/* ---------- Prose ---------- */
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 1.5em; font-size: clamp(1.4rem, 1.15rem + .9vw, 1.85rem); }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { max-width: 72ch; }
.prose blockquote { margin: 1.4em 0; padding: 2px 0 2px 20px; border-left: 4px solid var(--blue); font-style: italic; color: var(--ink); }
.prose blockquote p { margin: 0; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230070e0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.todo-note { border: 1px dashed #b9c8d7; background: #f7fafc; border-radius: 10px; padding: 12px 14px; color: var(--muted); font-size: .93rem; }
.back-link { margin-top: 2em; }

.callout { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: var(--blue-tint); border: 1px solid #cfe2f7; margin: 0 0 24px; font-size: .97rem; }
.callout .icon { color: var(--blue); margin-top: .15em; }
.callout p { margin: 0 0 .5em; max-width: none; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout ul { margin: .2em 0 0; }
.callout--warn { background: #fff6e8; border-color: #f2d7a8; }
.callout--warn .icon { color: #a15c00; }
.callout--urgent { background: #fdecec; border-color: #f3c1c1; }
.callout--urgent .icon { color: #b3261e; }

/* ---------- About ---------- */
.about-intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.about-photos { display: grid; gap: 16px; }
.about-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-l); }
@media (max-width: 900px) { .about-intro { grid-template-columns: 1fr; } }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.services-grid li { margin: 0; display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 620; color: var(--navy); }
.services-grid .icon { color: var(--blue); }

/* ---------- Sports screenings ---------- */
.sessions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 1.2em 0 1.6em; }
.sessions li { margin: 0; }
.session { display: flex; gap: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; height: 100%; }
.session-date { flex: none; width: 66px; text-align: center; border-radius: 10px; background: var(--blue); color: #fff; padding: 8px 4px; line-height: 1.1; }
.session-date span { display: block; }
.session-date .dow { font-size: .78rem; opacity: .92; }
.session-date .day { font-size: 1.6rem; font-weight: 760; font-stretch: 115%; margin: 2px 0; }
.session-date .mon { font-size: .8rem; }
.session h3 { font-size: 1.02rem; margin: 0 0 .25em; }
.session p { margin: 0; font-size: .94rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 640px) { .sessions { grid-template-columns: 1fr; } }
.figure { margin: 1.6em 0 0; }
.figure img { border-radius: 12px; border: 1px solid var(--line); }
.figure figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
/* [Claude 2026-11-21] Real flyer is shown in full so the QR code and dates stay readable (was cropped at 600px for the screenshot placeholder). */
.flyer-img { width: 100%; max-width: 560px; height: auto; }

/* ---------- Provider profile ---------- */
.profile { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px; align-items: start; }
.profile-card { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.profile-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 22%; background: var(--mist); }
.profile-card-body { padding: 20px 22px 24px; }
.profile-card h2 { margin-bottom: .2em; }
.profile-card .role { color: var(--muted); margin: 0 0 1em; }
.profile-facts { list-style: none; padding: 0; margin: 0 0 18px; font-size: .95rem; }
.profile-facts li { display: flex; gap: 10px; align-items: flex-start; }
.profile-facts .icon { color: var(--blue); margin-top: .2em; }
@media (max-width: 900px) { .profile { grid-template-columns: 1fr; } .profile-card { position: static; max-width: 520px; } }
/* [Claude 2026-11-21] Provider education and training list, migrated from the WordPress profiles */
.cred-list { margin: 0 0 1.4em; display: grid; gap: 10px; }
.cred-list div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 4px 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cred-list dt { font-weight: 650; color: var(--navy); }
.cred-list dd { margin: 0; }
@media (max-width: 560px) { .cred-list div { grid-template-columns: 1fr; } }

/* ---------- Careers ---------- */
.job-list { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0 0 28px; }
.job-list li { margin: 0; }
.job-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; background: #fff; }
.job-card h3 { margin: 0 0 .2em; font-size: 1.15rem; }
.job-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.cta-panel { background: var(--navy); color: #d6e2ee; border-radius: var(--radius-l); padding: clamp(22px, 4vw, 34px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.cta-panel h2 { color: #fff; margin: 0 0 .3em; font-size: 1.5rem; }
.cta-panel p { margin: 0; }
.facts-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 1.6em; }
.facts-row li { margin: 0; display: flex; align-items: center; gap: 8px; background: var(--blue-tint); color: var(--navy); border-radius: 999px; padding: 7px 14px; font-size: .92rem; font-weight: 620; }
.facts-row .icon { color: var(--blue); width: 1.05em; height: 1.05em; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-weight: 620; color: var(--navy); margin-bottom: 6px; font-size: .97rem; }
.req { color: #b3261e; margin-left: 2px; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 112, 224, .18); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: #b3261e; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.file-drop {
  position: relative; display: flex; align-items: center; gap: 14px;
  border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 16px 18px; background: var(--mist);
}
.file-drop:hover { border-color: var(--blue); }
.file-drop:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 112, 224, .18); }
.file-drop .icon { width: 28px; height: 28px; color: var(--blue); }
.file-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop strong { color: var(--navy); }
.file-name { display: block; font-size: .92rem; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }
.form-status { display: none; padding: 14px 16px; border-radius: 10px; font-size: .97rem; }
.form-status.is-shown { display: block; }
.form-status.ok { background: #e8f5ec; color: #1e5b32; border: 1px solid #bfe1c9; }
.form-status.err { background: #fdecec; color: #8c1d18; border: 1px solid #f3c1c1; }
.form-status.info { background: var(--blue-tint); color: var(--navy); border: 1px solid #cfe2f7; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.info-cards { display: grid; gap: 20px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.map-embed { margin-top: 28px; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); background: #e4ebf2; }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Patient education ---------- */
.edu-section + .edu-section { margin-top: 48px; }
.edu-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.edu-head .feature-icon { margin: 0; width: 44px; height: 44px; border-radius: 12px; }
.edu-head .feature-icon .icon { width: 22px; height: 22px; }
.edu-head h2 { margin: 0; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.resource-grid li { margin: 0; }
.resource-link {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.resource-link:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--ink); }
.resource-link strong { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; color: var(--navy); font-size: 1.02rem; font-stretch: 104%; line-height: 1.3; }
.resource-link strong .icon { width: 16px; height: 16px; color: var(--blue); margin-top: .15em; }
.resource-link span { color: var(--muted); font-size: .93rem; line-height: 1.45; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .two-up { grid-template-columns: 1fr; } }
.source-note { font-size: .88rem; color: var(--muted); margin-top: .6em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .to-top, .hero-controls, .carousel-controls, .sidebar { display: none !important; }
  .page-banner { background: none; color: #000; }
  .page-banner h1 { color: #000; }
}

/* [Claude 2026-11-21] Cloudflare Turnstile widget slot inside each form (filled by site.js when keys are configured) */
.turnstile-slot { min-height: 65px; }
.turnstile-slot[hidden] { display: none; }
