/* Shared homepage film and clinic-tour controls. */
[hidden] { display: none !important; }
.hero-bg > img, .hero-bg > video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  min-width: 0; min-height: 0; object-fit: cover;
  object-position: 60% center; transform: none;
}
.hero-bg > video { opacity: 0; transition: opacity .5s ease; }
.hero-bg > video.is-playing { opacity: 1; }
.hero-overlay {
  background: linear-gradient(90deg, rgba(14,28,40,.83), rgba(14,28,40,.57) 45%, rgba(14,28,40,.16));
}
.hero-preview { display: none; }
.hero-preview, .hero-video-control, .tour-launch, .video-close { font: inherit; cursor: pointer; }
.hero-video-control {
  position: absolute; right: 104px; bottom: 32px; z-index: 3;
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 12px 18px; border: 1px solid rgba(255,255,255,.5);
  border-radius: 28px; color: white; background: rgba(14,28,40,.65);
  backdrop-filter: blur(8px); font-size: 14px;
}
.hero-video-control:hover { background: rgba(14,28,40,.9); }
.about-img-main { position: relative; }
.tour-launch {
  display: flex; align-items: center; gap: 12px; text-align: left;
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  max-width: calc(100% - 48px); min-height: 60px; padding: 12px 20px 12px 12px;
  border: 1px solid rgba(255,255,255,.6); border-radius: 40px;
  color: white; background: rgba(14,28,40,.87); box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: background .2s, transform .2s;
}
.tour-launch:hover { background: var(--primary); transform: translateY(-2px); }
.tour-play {
  display: grid; place-items: center; width: 40px; height: 40px;
  flex-shrink: 0; border-radius: 50%; background: var(--accent-light); color: var(--primary);
}
.tour-launch strong { display: block; font-size: 15px; font-weight: 600; }
.tour-launch small { display: block; font-size: 13px; opacity: .8; margin-top: 4px; }
.facility-overlay { pointer-events: none; }
.facility-showcase .tour-launch { left: auto; right: 32px; bottom: 32px; }
.facility-tour-cta { text-align: center; margin-bottom: 48px; }
.video-dialog {
  width: min(1100px, calc(100% - 48px)); max-height: calc(100dvh - 48px);
  margin: auto; padding: 0; overflow: auto; border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px; background: #0e1c28; color: white;
  box-shadow: 0 24px 100px rgba(0,0,0,.4);
}
.video-dialog::backdrop { background: rgba(7,16,23,.86); backdrop-filter: blur(8px); }
.video-dialog-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px;
}
.video-dialog h2 { font-family: 'Playfair Display', serif; font-size: 25px; font-weight: 500; }
.video-close {
  border: 1px solid rgba(255,255,255,.3); background: transparent; color: white;
  width: 44px; height: 44px; border-radius: 50%; font-size: 28px; flex-shrink: 0;
}
.video-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 65dvh; object-fit: contain; background: black; }
.video-dialog-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; }
.video-dialog-footer p { font-size: 15px; color: rgba(255,255,255,.75); }
.video-dialog-footer .btn-primary { padding: 14px 24px; white-space: nowrap; }
.video-error { padding: 16px 24px; font-size: 16px; }
.hero-video-control:focus-visible, .tour-launch:focus-visible, .video-close:focus-visible, .hero-preview:focus-visible {
  outline: 3px solid var(--accent-light); outline-offset: 5px;
}
@media (max-width: 768px) {
  .hero { min-height: 90svh; }
  .hero-bg > img { object-position: 67% center; }
  .hero-preview { display: inline-flex; }
  .hero-overlay { background: linear-gradient(90deg, rgba(14,28,40,.86), rgba(14,28,40,.52)); }
  .hero-buttons { margin-bottom: 40px; }
  .hero-preview { border: 1px solid rgba(255,255,255,.65); background: rgba(14,28,40,.35); }
  .tour-launch { left: 16px; bottom: 20px; max-width: calc(100% - 32px); }
  .facility-showcase .tour-launch { right: auto; left: 20px; bottom: 20px; }
  .facility-showcase .facility-overlay { padding-bottom: 105px; }
  .facility-showcase img { height: 420px; }
  .video-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 14px; }
  .video-dialog-header { padding: 12px 16px; }
  .video-dialog h2 { font-size: 21px; }
  .video-dialog-footer { flex-direction: column; align-items: stretch; padding: 16px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg > video { transition: none; }
  .about-img-float { animation: none; }
  .about-img-main:hover, .tour-launch:hover, .facility-showcase:hover img { transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
