/* ── Landing page: transparent-to-white navbar + hero + about ── */
/* Base navbar structure/collapse comes from navbar.css; this file layers the
   transparent-over-hero look on top, plus the hero/about/footer sections. */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* Transparent navbar that becomes white on scroll */
#navbar {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  /* Safari/WebKit: backdrop-filter on a transparent fixed element causes the
     navbar to appear faded or invisible. Disable it until the bar is scrolled
     (solid background), where it renders correctly on all browsers. */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
  border-bottom-color: rgba(229,231,235,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-logo-name { color: #fff; }
.nav-logo-sub  { color: rgba(255,255,255,0.65); }
#navbar.scrolled .nav-logo-name { color: var(--text); }
#navbar.scrolled .nav-logo-sub  { color: var(--muted); }

/* White text only on desktop where the navbar floats over the dark hero.
   On mobile the dropdown is white so navbar.css colour defaults apply. */
@media (min-width: 992px) {
  .nav-links .nav-link { color: rgba(255,255,255,0.85); }
  .nav-links .nav-link:hover { color: #fff; }
  .nav-links .nav-link.active { color: #fff; font-weight: 600; }
  #navbar.scrolled .nav-links .nav-link { color: var(--muted); }
  #navbar.scrolled .nav-links .nav-link:hover { color: var(--orange); }
  #navbar.scrolled .nav-links .nav-link.active { color: var(--orange); font-weight: 600; }

  .nav-actions .nav-login { color: rgba(255,255,255,0.85); }
  .nav-actions .nav-login:hover { color: #fff; }
  #navbar.scrolled .nav-actions .nav-login { color: var(--muted); }
  #navbar.scrolled .nav-actions .nav-login:hover { color: var(--orange); }

  .nav-profile-name, .nav-profile-chevron { color: rgba(255,255,255,0.85); }
  .nav-profile-btn:hover { background: rgba(255,255,255,0.14); }
  #navbar.scrolled .nav-profile-name, #navbar.scrolled .nav-profile-chevron { color: var(--muted); }
  #navbar.scrolled .nav-profile-btn:hover { background: rgba(127,127,127,0.1); }
}

.nav-toggle span { background: #fff; }
#navbar.scrolled .nav-toggle span { background: var(--text); }

@media (max-width: 991.98px) {
  /* Hamburger lines are white over the hero; revert to dark once scrolled */
  .nav-toggle span { background: #fff; }
  #navbar.scrolled .nav-toggle span { background: var(--text); }
  #navbar.scrolled .nav-toggle[aria-expanded="false"] span { background: var(--text); }
}

/* Hero */
/* 100vh alone is a well-known Safari trap: it measures the LARGEST possible
   viewport (as if the address bar/toolbar were always hidden), not the
   actual visible area — as the toolbar shows/hides during scrolling, the
   real viewport shrinks/grows underneath a hero that's still sized to the
   bigger number, leaving a visible gap. 100dvh (dynamic viewport height)
   is the actual fix; kept as a second declaration so browsers that don't
   support dvh yet still fall back to the old (imperfect but working) vh
   value instead of getting no height at all. max-height keeps very large
   monitors from turning the hero into an excessively tall, mostly-empty
   block just because the viewport happens to be huge. */
#hero { position: relative; height: 100vh; height: 100dvh; max-height: 960px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: -12px; background-size: cover; background-position: right center; background-repeat: no-repeat; filter: blur(3px); z-index: 0; }
@media (max-width: 768px) { .hero-bg { background-position: center center; } }
#hero::before { content: ''; position: absolute; inset: 0; background: rgba(15,15,20,0.72); z-index: 1; }
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 700px; width: 100%; min-width: 0; padding: 0 24px; box-sizing: border-box; }
.hero-tagline { font-size: clamp(0.74rem, 0.65rem + 0.4vw, 0.88rem); font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: var(--orange); margin-bottom: 20px; }
.hero-heading { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); font-weight: 700; line-height: 1.15; color: #ffffff; letter-spacing: -0.02em; margin-bottom: 22px; }
.hero-heading .orange { color: var(--orange); }
.hero-sub { font-size: clamp(0.85rem, 0.78rem + 0.35vw, 1.05rem); color: rgba(255,255,255,0.8); line-height: 1.7; max-width: 580px; margin: 0 auto 32px auto; }
.hero-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn-solid { display: inline-flex; align-items: center; gap: 7px; padding: 13px 28px; background: var(--orange); color: #fff; font-size: 0.88rem; font-weight: 600; font-family: 'Poppins', sans-serif; border-radius: 8px; border: none; cursor: pointer; white-space: nowrap; transition: opacity 0.25s ease, transform 0.25s ease; }
.btn-solid:hover { opacity: 0.92; transform: translateY(-2px); }
.btn-solid:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn-outline { display: inline-flex; align-items: center; gap: 7px; padding: 13px 28px; background: transparent; color: #fff; font-size: 0.88rem; font-weight: 500; font-family: 'Poppins', sans-serif; border-radius: 8px; border: 1.5px solid rgba(255,255,255,0.5); cursor: pointer; white-space: nowrap; transition: border-color 0.25s ease, background 0.25s ease; }
.btn-outline:hover { border-color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.08); }
.btn-outline:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Scroll indicator */
.scroll-indicator { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; color: rgba(255,255,255,0.45); cursor: pointer; text-decoration: none; transition: color 0.2s ease; }
.scroll-indicator:hover { color: rgba(255,255,255,0.8); }
.scroll-indicator svg { animation: bounce 2s ease infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ── About section ── */
#about { background: #fff; border-top: 1px solid var(--border); overflow: hidden; }

/* ── Full-width draggable gallery strip ── */
.about-gallery-strip {
  position: relative;
  padding: 48px 0;
  background: #fafafa;
}
/* Viewport — clips the draggable track */
.about-carousel {
  position: relative;
  width: 100%;
  overflow-x: clip;
  overflow-y: visible;
  user-select: none;
  -webkit-user-select: none;
  z-index: 1;
}
.ac-track { cursor: grab; }
.about-carousel.is-dragging .ac-track { cursor: grabbing; }
/* Scrolling track */
.ac-track {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 36px 0 24px;
  min-width: 100%;
  width: max-content;
  transform: translateX(0);
  transition: transform .52s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}
.about-carousel.is-dragging .ac-track { transition: none; }
/* Photo cards — width set by JS for exact 3-per-view */
.ac-fan-card {
  flex: 0 0 auto;
  /* width injected via JS */
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 4px solid #fff;
  background-color: #d1d5db;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 32px rgba(0,0,0,.17), 0 3px 8px rgba(0,0,0,.09);
  transform: rotate(var(--rot, 0deg)) translateY(var(--ty, 0px)) scale(var(--s, 1));
  transition: transform .42s cubic-bezier(.34,1.56,.64,1), box-shadow .28s ease;
  z-index: 1;
}
.ac-fan-card:hover {
  transform: rotate(0deg) translateY(-20px) scale(1.05) !important;
  box-shadow: 0 28px 54px rgba(0,0,0,.2), 0 8px 18px rgba(0,0,0,.1) !important;
  z-index: 10 !important;
}
.about-carousel.is-dragging .ac-fan-card,
.about-carousel.is-dragging .ac-fan-card:hover {
  transform: rotate(var(--rot, 0deg)) translateY(var(--ty, 0px)) scale(var(--s, 1)) !important;
  box-shadow: 0 10px 32px rgba(0,0,0,.17) !important;
  cursor: grabbing !important;
  transition: none !important;
}
.ac-empty {
  min-height: 280px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  padding: 0 24px;
}
/* Prev / Next controls */
.ac-btn {
  position: absolute;
  top: 50%; transform: translateY(-60%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.96);
  border: 1.5px solid rgba(0,0,0,.08);
  box-shadow: 0 4px 18px rgba(0,0,0,.14);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; padding: 0; color: #374151;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: background .2s ease, box-shadow .2s ease,
              transform .2s cubic-bezier(.34,1.56,.64,1),
              opacity .2s ease, color .2s ease;
}
.ac-btn:hover {
  background: #F59E0B; color: #fff; border-color: transparent;
  transform: translateY(-60%) scale(1.1);
}
.ac-btn:active { transform: translateY(-60%) scale(.92); }
@media (hover: none) {
  .ac-btn:hover {
    background: rgba(255,255,255,.96); color: #374151;
    border-color: rgba(0,0,0,.08);
    transform: translateY(-60%);
    box-shadow: 0 4px 18px rgba(0,0,0,.14);
  }
}
.ac-btn.ac-btn-pressed {
  background: #F59E0B !important; color: #fff !important;
  border-color: transparent !important;
  transform: translateY(-60%) scale(.92) !important;
}
.ac-btn-prev { left: 14px; }
.ac-btn-next { right: 14px; }
.ac-btn.ac-hidden { opacity: 0; pointer-events: none; transform: translateY(-60%) scale(.8); }
.ac-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ac-counter { display: none; }

/* About info below the gallery */
.about-info { padding: 60px 48px 80px; border-top: 1px solid var(--border); }
.about-info-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
.about-info-lead { display: flex; flex-direction: column; }
.about-eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; display: block; }
.about-heading { font-size: 1.9rem; font-weight: 700; color: #111827; line-height: 1.18; letter-spacing: -0.03em; margin-bottom: 0; }
.about-cta { margin-top: 28px; }
.about-cta-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border: 1.5px solid var(--orange); color: var(--orange); border-radius: 8px; font-size: 0.85rem; font-weight: 500; font-family: 'Poppins', sans-serif; transition: background 0.2s ease; }
.about-cta-btn:hover { background: var(--orange-lt); }
.about-cta-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.about-info-body { display: flex; flex-direction: column; }
.about-desc { font-size: 0.88rem; color: #4b5563; line-height: 1.72; margin-bottom: 12px; }
.about-stats { display: flex; gap: 0; margin-top: 24px; border-top: 1px solid var(--border); padding-top: 24px; }
.about-stat { flex: 1; padding-right: 24px; border-right: 1px solid var(--border); }
.about-stat:last-child { border-right: none; padding-right: 0; padding-left: 24px; }
.about-stat:not(:first-child):not(:last-child) { padding-left: 24px; }
.about-stat-num { font-size: 1.4rem; font-weight: 700; color: var(--orange); line-height: 1; letter-spacing: -0.02em; }
.about-stat-label { font-size: 0.72rem; color: var(--muted); margin-top: 4px; font-weight: 500; }

/* Video section — hidden by default; index.html only reveals it once the
   admin has actually set a Clinic Video URL in Clinic Settings. */
#video-section { background: #f9fafb; padding: 80px 48px; border-top: 1px solid var(--border); text-align: center; }
.video-inner { max-width: 840px; margin: 0 auto; }
.video-inner .about-eyebrow { text-align: center; }
.video-inner .about-heading { text-align: center; }
.video-embed-wrap {
  /* No overflow:hidden here — it would also clip the speed menu popover,
     which needs to render outside the video's own bounds. Rounded-corner
     clipping lives on .video-clip instead. */
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px;
  margin-top: 28px; background: #050505;
  border: 1px solid rgba(232,137,28,0.18);
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.35), 0 8px 24px -6px rgba(232,137,28,0.10), 0 1px 0 rgba(255,255,255,0.03) inset;
}
.video-clip {
  position: absolute; inset: 0; overflow: hidden; border-radius: 16px;
  /* iOS Safari has a long-standing bug where a <video> element ignores an
     ancestor's overflow:hidden + border-radius clip — its sharp corners
     poke outside the rounded container. Forcing this layer onto its own
     GPU compositing layer (translateZ/backface-visibility) plus a mask
     makes Safari actually respect the clip; harmless everywhere else. */
  transform: translateZ(0); -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  -webkit-mask-image: -webkit-radial-gradient(circle, #fff 100%, #000 100%);
}
.video-clip video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border: 0; cursor: pointer; border-radius: 16px;
}

/* Center play button — shown only before the video has ever started playing
   (classic "poster + play" affordance). Once playback has begun, all
   further play/pause feedback goes through the ghost-icon flash instead. */
.vid-center-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--orange); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 16px 34px -8px rgba(0,0,0,0.5), 0 4px 18px rgba(232,137,28,0.4), 0 0 0 5px rgba(255,255,255,0.08);
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), background-color 0.15s ease, box-shadow 0.2s ease;
  z-index: 3;
}
.vid-center-btn::before {
  content: ''; position: absolute; inset: -12px; border-radius: 50%;
  border: 2px solid rgba(232,137,28,0.4); pointer-events: none;
  animation: vidPulseRing 2.6s ease-out infinite;
}
@keyframes vidPulseRing {
  0%   { transform: scale(0.92); opacity: 0.65; }
  70%  { transform: scale(1.32); opacity: 0; }
  100% { opacity: 0; }
}
.vid-center-btn svg { width: 30px; height: 30px; }
/* The play triangle's bounding box is now geometrically centered in its
   viewBox, but a hard flat edge on the left vs. a fading point on the
   right still reads as "left-heavy" to the eye — the standard optical
   fix is a small rightward nudge. Expressed as a % of the icon's own
   size (not a fixed px) so it scales consistently across every size
   this triangle is used at. */
.vid-center-btn svg, .ic-play, .ic-g-play { transform: translateX(6%); }
.vid-center-btn:hover { background: var(--orange-dk); transform: translate(-50%, -50%) scale(1.08); }
.vid-center-btn:active { transform: translate(-50%, -50%) scale(0.94); }
.vid-center-btn:focus-visible { outline: 3px solid rgba(232,137,28,0.55); outline-offset: 4px; }

/* Ghost play/pause flash — pops in centered then fades, exactly like
   YouTube's own click/space-bar feedback. */
.vid-ghost {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.7);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(10,10,12,0.6); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; z-index: 3;
}
.vid-ghost svg { width: 30px; height: 30px; }
.vid-ghost.show { animation: vidGhostPop 0.65s ease forwards; }
@keyframes vidGhostPop {
  0%   { opacity: 0;   transform: translate(-50%, -50%) scale(0.7); }
  18%  { opacity: 1;   transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(1.15); }
}

/* Skip-feedback bubble ("+10s" / "−10s") — brief, spring-eased pop */
.vid-flash {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.85);
  background: rgba(10,10,12,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.01em;
  padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.1);
  opacity: 0; pointer-events: none; z-index: 4; white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(.34,1.56,.64,1);
}
.vid-flash.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Bottom chrome — classic YouTube layout: thin progress bar flush above a
   minimal, icon-only control row (no button chrome at rest), full width. */
.vid-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: column; gap: 2px; padding: 6px 10px 8px;
  background: rgba(8,8,10,0.62);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 0 0 16px 16px; /* was relying on the parent's overflow:hidden clip before */
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.vid-bar-hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }

/* flex-wrap + flex-shrink:0 on the buttons is a safety net for narrow
   phones: previously, if the row's content didn't fit, buttons could
   shrink/squish (making them harder to accurately tap) instead of wrapping
   to a second line — this guarantees every control stays full-size and
   reachable regardless of viewport width. */
.vid-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; row-gap: 4px; }
.vid-row-left, .vid-row-right { display: flex; align-items: center; gap: 2px; min-width: 0; flex-shrink: 0; }

.vid-btn {
  appearance: none; border: none; background: transparent; color: #fff;
  width: 32px; height: 32px; border-radius: 6px; flex-shrink: 0; position: relative;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0.9; transition: opacity 0.15s ease, transform 0.1s ease;
}
.vid-btn svg { width: 18px; height: 18px; }
.vid-btn:hover { opacity: 1; }
.vid-btn:active { transform: scale(0.9); }
.vid-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; opacity: 1; }
.vid-skip-n {
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  font-size: 8px; font-weight: 700; color: #fff; pointer-events: none; text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

.vid-vol-group { display: flex; align-items: center; }

/* Volume slider — same div-based two-tone fill technique as the seek bar
   (colored fill for the current level, no gradient function involved),
   collapsed to 0 width until the group is hovered/focused. */
.vid-vol-wrap {
  position: relative; width: 0; height: 13px; display: flex; align-items: center;
  margin-left: 0; overflow: visible;
  transition: width 0.18s ease, margin-left 0.18s ease;
}
.vid-vol-group:hover .vid-vol-wrap,
.vid-vol-group:focus-within .vid-vol-wrap { width: 56px; margin-left: 6px; }
.vid-vol-track, .vid-vol-fill {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 3px; border-radius: 2px; pointer-events: none;
}
.vid-vol-track { width: 100%; background: rgba(255,255,255,0.3); }
.vid-vol-fill  { width: 100%; background: var(--orange); }
.vid-vol-slider {
  position: absolute; inset: 0; width: 100%; margin: 0; appearance: none;
  background: transparent; cursor: pointer; opacity: 0;
  transition: opacity 0.18s ease;
}
.vid-vol-group:hover .vid-vol-slider,
.vid-vol-group:focus-within .vid-vol-slider { opacity: 1; }
.vid-vol-slider::-webkit-slider-runnable-track { background: transparent; height: 13px; }
.vid-vol-slider::-moz-range-track { background: transparent; height: 13px; border: none; }
.vid-vol-slider::-webkit-slider-thumb {
  /* Chrome for Android doesn't auto-center a custom (appearance:none) thumb
     within the runnable track the way desktop Chrome does — it pins it to
     the track's top edge, which reads as the white dot floating above the
     orange fill line. Explicit margin-top centers it: (track 13px − thumb
     11px) / 2 = 1px. */
  appearance: none; width: 11px; height: 11px; border-radius: 50%; margin-top: 1px;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.vid-vol-slider::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: #fff; border: none; box-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.vid-vol-slider:focus-visible { outline: none; }

/* Playback speed menu */
.vid-speed-wrap { position: relative; }
.vid-speed-menu {
  position: absolute; bottom: calc(100% + 10px); right: -6px;
  background: rgba(18,18,20,0.95); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 6px; min-width: 96px;
  box-shadow: 0 16px 34px -8px rgba(0,0,0,0.55);
  display: flex; flex-direction: column; gap: 1px;
  opacity: 0; transform: translateY(6px) scale(0.96); pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s cubic-bezier(.34,1.56,.64,1);
  z-index: 5;
}
.vid-speed-menu.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.vid-speed-opt {
  appearance: none; border: none; background: transparent; color: #fff;
  font-size: 0.78rem; text-align: left; padding: 7px 10px; border-radius: 6px; cursor: pointer;
  transition: background-color 0.12s ease;
}
.vid-speed-opt:hover { background: rgba(255,255,255,0.1); }
.vid-speed-opt:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.vid-speed-opt.active { color: var(--orange); font-weight: 700; }

.vid-time {
  color: #fff; font-size: 0.72rem; opacity: 0.85; white-space: nowrap;
  margin-left: 6px; user-select: none; font-variant-numeric: tabular-nums;
}

.vid-seek-wrap { position: relative; width: 100%; height: 13px; display: flex; align-items: center; cursor: pointer; }
.vid-seek-track, .vid-seek-buffered, .vid-seek-fill {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 3px; border-radius: 2px; pointer-events: none; transition: height 0.12s ease;
}
.vid-seek-track    { width: 100%; background: rgba(255,255,255,0.28); }
.vid-seek-buffered { width: 0%;   background: rgba(255,255,255,0.46); }
.vid-seek-fill     { width: 0%;   background: var(--orange); }
.vid-seek-wrap:hover .vid-seek-track,
.vid-seek-wrap:hover .vid-seek-buffered,
.vid-seek-wrap:hover .vid-seek-fill { height: 5px; }
.vid-seek {
  position: absolute; inset: 0; width: 100%; margin: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent; cursor: pointer;
}
.vid-seek::-webkit-slider-runnable-track { background: transparent; height: 13px; }
.vid-seek::-moz-range-track { background: transparent; height: 13px; border: none; }
.vid-seek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 0; height: 0; border-radius: 50%;
  background: var(--orange); box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  transition: width 0.12s ease, height 0.12s ease, margin-top 0.12s ease;
}
.vid-seek::-moz-range-thumb { width: 0; height: 0; border-radius: 50%; background: var(--orange); border: none; }
.vid-seek-wrap:hover .vid-seek::-webkit-slider-thumb,
.vid-seek:focus-visible::-webkit-slider-thumb { width: 13px; height: 13px; margin-top: 0; }
.vid-seek-wrap:hover .vid-seek::-moz-range-thumb,
.vid-seek:focus-visible::-moz-range-thumb { width: 13px; height: 13px; }
.vid-seek:focus-visible { outline: none; }

@media (max-width: 640px) {
  #video-section { padding: 48px 20px; }
  .vid-center-btn { width: 58px; height: 58px; }
  .vid-center-btn svg { width: 24px; height: 24px; }
  .vid-ghost { width: 54px; height: 54px; }
  .vid-ghost svg { width: 24px; height: 24px; }
  .vid-bar { padding: 5px 6px 7px; }
  .vid-row { gap: 2px; }
  .vid-time { display: none; }

  /* Bigger, thumb-friendly tap targets — 32px is under the ~40px+ touch
     target size that's comfortable on a phone. */
  .vid-btn { width: 38px; height: 38px; }
  .vid-btn svg { width: 19px; height: 19px; }
  .vid-skip-n { font-size: 7.5px; }

  /* Touch devices have no :hover, so a slider that only reveals itself on
     hover can never be reached — keep volume always reachable and the
     seek thumb always visible instead of hover-gated. */
  .vid-vol-group:hover .vid-vol-wrap, .vid-vol-group:focus-within .vid-vol-wrap,
  .vid-vol-wrap { width: 38px; margin-left: 4px; }
  .vid-vol-slider { opacity: 1; }

  .vid-seek-wrap { height: 22px; }
  .vid-seek::-webkit-slider-runnable-track { height: 22px; }
  .vid-seek::-moz-range-track { height: 22px; }
  /* Webkit range thumbs need manual vertical centering via margin-top —
     unlike Firefox, which centers automatically. (track height − thumb
     height) / 2 = (22 − 12) / 2 = 5px; margin-top:0 pinned it to the top. */
  .vid-seek::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: 5px; }
  .vid-seek::-moz-range-thumb { width: 12px; height: 12px; }
  /* The desktop rules above (.vid-seek-wrap:hover / :focus-visible) size the
     thumb for the 13px desktop track and re-center it with margin-top:0.
     On mobile the track is 22px tall, so once the input gains focus (which
     happens the instant you touch/drag it on iOS and Android) those desktop
     values took over and popped the thumb up off the visible line. Re-assert
     the mobile-correct size/centering for the focused (i.e. actively
     dragging) state so the thumb always matches vid-seek-track. */
  .vid-seek:focus-visible::-webkit-slider-thumb,
  .vid-seek-wrap:hover .vid-seek::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: 5px; }
  .vid-seek:focus-visible::-moz-range-thumb,
  .vid-seek-wrap:hover .vid-seek::-moz-range-thumb { width: 12px; height: 12px; }

  .vid-flash { font-size: 0.82rem; padding: 8px 16px; }
  .vid-speed-menu { right: -34px; min-width: 88px; }
}

@media (max-width: 380px) {
  .vid-btn { width: 34px; height: 34px; }
  .vid-btn svg { width: 17px; height: 17px; }
  .vid-vol-group:hover .vid-vol-wrap, .vid-vol-group:focus-within .vid-vol-wrap,
  .vid-vol-wrap { width: 30px; }
  .vid-bar { padding: 4px 4px 6px; }
}

/* Doctors section (unused on current landing page markup, kept for reuse) */
#doctors-section { background: #f9fafb; padding: 80px 48px; border-top: 1px solid var(--border); }
.landing-doctors-wrap { max-width: 1200px; margin: 0 auto; }
.landing-doctors-heading { font-size: 1.4rem; font-weight: 700; color: #111827; letter-spacing: -0.02em; text-align: center; margin-bottom: 8px; }
.landing-doctors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 32px; }
.landing-doctors-loading { grid-column: 1/-1; text-align: center; color: #9ca3af; font-size: .85rem; padding: 32px 0; }
.ld-card { background: #fff; border-radius: 12px; padding: 20px 14px; text-align: center; border: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,0.05); transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease; }
.ld-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.09); border-color: rgba(232,137,28,0.2); }
.ld-photo { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 12px; border: 2.5px solid var(--orange); box-shadow: 0 0 0 4px var(--orange-lt); overflow: hidden; position: relative; }
.ld-name  { font-size: 0.82rem; font-weight: 700; color: #111827; margin-bottom: 3px; line-height: 1.3; }
.ld-role  { font-size: 0.72rem; color: var(--orange); font-weight: 600; margin-bottom: 10px; }
.ld-sched { display: inline-flex; align-items: center; gap: 5px; font-size: 0.68rem; color: #374151; background: var(--light); border-radius: 999px; padding: 4px 10px; font-weight: 500; border: 1px solid var(--border); white-space: nowrap; }

@media (max-width: 991.98px) {
  .nav-inner { padding: 0 24px; }
  .about-gallery-strip { padding: 36px 0; }
  .about-info { padding: 40px 32px 56px; }
  .about-info-inner { grid-template-columns: 1fr; gap: 28px; }
  .about-heading { font-size: 1.6rem; }
}

@media (max-width: 768px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .nav-inner { padding: 0 20px; }
  .about-gallery-strip { padding: 32px 0; }
  .ac-fan-card { height: 240px; }
  .about-info { padding: 32px 20px 48px; }
  .about-heading { font-size: 1.4rem; }
  .about-stat-num { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .nav-logo img { height: 28px; width: 28px; }
  .hero-inner { padding: 0 18px; }
  .hero-sub { margin-bottom: 24px; }
  .btn-solid, .btn-outline { width: 100%; justify-content: center; }
  .about-gallery-strip { padding: 20px 0; }
  .ac-fan-card { height: 260px; border-width: 3px; }
  .ac-track { gap: 12px; padding: 16px 0 16px; }
  .ac-btn { width: 36px; height: 36px; }
  .ac-btn-prev { left: 8px; }
  .ac-btn-next { right: 8px; }
  .about-info { padding: 28px 18px 40px; }
  .about-heading { font-size: 1.25rem; }
  .about-stats { flex-direction: row; gap: 0; }
  .about-stat { flex: 1; }
  .about-stat,
  .about-stat:last-child,
  .about-stat:not(:first-child):not(:last-child) { padding-left: 12px !important; padding-right: 12px !important; border-right: 1px solid var(--border) !important; }
  .about-stat:first-child { padding-left: 0 !important; }
  .about-stat:last-child { border-right: none !important; padding-right: 0 !important; }
  .about-stat-num { font-size: 1.1rem; }
  .about-stat-label { font-size: 0.68rem; }
  .about-cta-btn { width: 100%; justify-content: center; }
}
