/* ═══════════════════════════════════════════════════════════════════════
   HERO-REDESIGN.CSS — Vision Therapy Institute
   A balanced split hero: editorial copy (left) + a softly-blended,
   naturally-scaled clinic photograph (right) on a premium navy stage.
   On-brand blues (#1A6BDA / #5B9AFF / #8FB8FF) over deep navy (#07111F).
   Loaded LAST so it owns the hero — self-contained, no dependency on the
   old .hero / carousel styles. Scoped to .vh-hero.
═══════════════════════════════════════════════════════════════════════ */

.vh-hero {
  --vh-navy:    #07111F;
  --vh-navy-2:  #0B1A30;
  --vh-blue:    #1A6BDA;
  --vh-blue-l:  #5B9AFF;
  --vh-blue-p:  #8FB8FF;
  --vh-teal:    #00BDB8;
  --vh-line:    rgba(143, 184, 255, 0.16);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: -76px;              /* slide up under the sticky navbar */
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(122px, 15vh, 184px) 0 clamp(72px, 9vh, 116px);
  color: #fff;
  background:
    radial-gradient(115% 90% at 82% 8%,  rgba(26, 107, 218, 0.24) 0%, transparent 56%),
    radial-gradient(90% 80% at 8% 96%,   rgba(0, 189, 184, 0.075) 0%, transparent 55%),
    radial-gradient(140% 120% at 50% 0%, rgba(91, 154, 255, 0.10) 0%, transparent 45%),
    linear-gradient(158deg, #0B1A30 0%, #07111F 54%, #050B15 100%);
}

/* ── Inner grid ─────────────────────────────────────────────────────────── */
.vh-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(30px, 5vw, 74px);
}

/* ─────────────────────────────────────────────────────────────────────────
   COPY
───────────────────────────────────────────────────────────────────────── */
.vh-copy { max-width: 620px; }

.vh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 13px;
  border-radius: 9999px;
  background: rgba(9, 20, 36, 0.55);
  border: 1px solid rgba(26, 107, 218, 0.55);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.vh-eyebrow svg { color: var(--vh-blue-l); flex-shrink: 0; }
.vh-eyebrow strong { color: var(--vh-blue-l); font-weight: 700; }

.vh-title {
  margin: 26px 0 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.7vw, 4.15rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}
.vh-title-accent {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding-right: 0.06em;
  background: linear-gradient(96deg, #8FB8FF 0%, #5B9AFF 48%, #2F86FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 22px rgba(91, 154, 255, 0.35));
}

.vh-sub {
  margin: 22px 0 0;
  max-width: 540px;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.15vw, 1.09rem);
  line-height: 1.72;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
}

/* ── CTAs ───────────────────────────────────────────────────────────────── */
.vh-cta {
  margin: 34px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.vh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease, border-color 0.3s ease;
}
.vh-btn svg { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.vh-btn--primary {
  color: #fff;
  border: 1px solid rgba(143, 184, 255, 0.45);
  background: linear-gradient(135deg, #5B9AFF 0%, #1A6BDA 100%);
  box-shadow: 0 8px 26px rgba(26, 107, 218, 0.42), 0 2px 6px rgba(0, 0, 0, 0.22),
              inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.vh-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(26, 107, 218, 0.52), 0 4px 10px rgba(0, 0, 0, 0.26),
              inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.vh-btn--primary:hover svg { transform: translateX(4px); }
.vh-btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.vh-btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(143, 184, 255, 0.6);
}

/* ── Stats row ──────────────────────────────────────────────────────────── */
.vh-stats {
  margin: 40px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 14px clamp(24px, 3.4vw, 44px);
}
.vh-stat { position: relative; }
.vh-stat + .vh-stat::before {
  content: "";
  position: absolute;
  left: clamp(-12px, -1.7vw, -22px);
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.vh-stat dt {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.vh-stat dt span {
  margin-left: 2px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--vh-blue-l);
}
.vh-stat dd {
  margin: 7px 0 0;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.62);
}

/* ─────────────────────────────────────────────────────────────────────────
   MEDIA  — naturally-scaled portrait photo, softly blended into the stage
───────────────────────────────────────────────────────────────────────── */
.vh-media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 480px;
}
.vh-media-frame {
  position: relative;
  z-index: 2;
  aspect-ratio: 5 / 6;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--vh-line);
  background: #0B1A30;
  box-shadow:
    0 34px 80px -26px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 90px -30px rgba(26, 107, 218, 0.55);
}
/* ── Auto-cycling image carousel inside the frame (desktop/tablet) ─────── */
.vh-frame-slides { position: absolute; inset: 0; z-index: 1; }
.vh-fslide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.15s cubic-bezier(0.4, 0, 0.2, 1),
              transform 6.2s ease-out;
}
.vh-fslide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
/* melt the lower edge into the navy stage + subtle blue top tint = "blend" */
.vh-media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(184deg, rgba(11, 26, 48, 0.28) 0%, transparent 24%),
    linear-gradient(3deg, rgba(7, 17, 31, 0.72) 0%, rgba(7, 17, 31, 0.12) 26%, transparent 46%);
}
.vh-media-sheen {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.55;
}

/* ── Carousel dot indicators (shared) ───────────────────────────────────── */
.vh-dots { display: flex; align-items: center; gap: 9px; }
.vh-dot {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease;
}
.vh-dot:hover { background: rgba(255, 255, 255, 0.6); }
.vh-dot.is-active {
  width: 26px;
  background: linear-gradient(90deg, #8FB8FF, #5B9AFF);
  box-shadow: 0 0 12px rgba(91, 154, 255, 0.5);
}
.vh-dots--frame {
  position: absolute;
  left: 0; right: 0;
  bottom: -30px;
  z-index: 5;
  justify-content: center;
}
.vh-dots--mobile { display: none; }

/* mobile-only full-bleed backgrounds + legibility scrim (hidden on desktop) */
.vh-bgs { display: none; }
.vh-scrim { display: none; }

/* ── Floating credential chips ──────────────────────────────────────────── */
.vh-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(9, 19, 34, 0.72);
  border: 1px solid rgba(143, 184, 255, 0.22);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.vh-chip-body { display: flex; flex-direction: column; line-height: 1.2; }
.vh-chip-body strong {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.005em;
}
.vh-chip-body > span {
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
}
.vh-chip-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--vh-blue-l);
  background: linear-gradient(145deg, rgba(26, 107, 218, 0.28), rgba(26, 107, 218, 0.08));
  border: 1px solid rgba(91, 154, 255, 0.28);
}
.vh-chip--faculty {
  left: clamp(-14px, -2vw, -30px);
  bottom: 30px;
  animation: vhFloatA 6.5s ease-in-out infinite;
}
.vh-chip--batch {
  right: clamp(-10px, -1.6vw, -24px);
  top: 34px;
  animation: vhFloatB 7.5s ease-in-out infinite;
}
.vh-chip-pulse {
  width: 9px; height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--vh-blue-l);
  box-shadow: 0 0 0 0 rgba(91, 154, 255, 0.6);
  animation: vhPulse 2.4s ease-out infinite;
}

/* ─────────────────────────────────────────────────────────────────────────
   AMBIENT DECOR
───────────────────────────────────────────────────────────────────────── */
.vh-decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.vh-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.vh-glow--a {
  width: 620px; height: 620px;
  top: -220px; right: -140px;
  background: radial-gradient(circle, rgba(26, 107, 218, 0.34) 0%, transparent 66%);
  animation: vhDrift 20s ease-in-out infinite;
}
.vh-glow--b {
  width: 460px; height: 460px;
  bottom: -200px; left: -120px;
  background: radial-gradient(circle, rgba(0, 189, 184, 0.14) 0%, transparent 68%);
  animation: vhDrift 26s ease-in-out infinite reverse;
}
.vh-dots-grid {
  position: absolute;
  width: 132px; height: 132px;
  background-image: radial-gradient(rgba(143, 184, 255, 0.5) 1.4px, transparent 1.6px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
          mask-image: radial-gradient(closest-side, #000 55%, transparent);
  opacity: 0.5;
}
.vh-dots-grid--tl { top: 16%; left: 3%; }
.vh-dots-grid--br { right: 4%; bottom: 12%; opacity: 0.35; }
.vh-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(143, 184, 255, 0.16);
}
.vh-ring--1 { width: 340px; height: 340px; top: -90px; right: 20%; }
.vh-ring--2 { width: 200px; height: 200px; bottom: -60px; right: 42%; border-color: rgba(0, 189, 184, 0.14); }
.vh-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 0%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 0%, transparent 80%);
  opacity: 0.6;
}

/* ─────────────────────────────────────────────────────────────────────────
   ENTRANCE + AMBIENT ANIMATIONS
───────────────────────────────────────────────────────────────────────── */
@keyframes vhRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes vhMedia { from { opacity: 0; transform: translateY(30px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes vhFloatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@keyframes vhFloatB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes vhDrift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(26px, 20px); } }
@keyframes vhPulse {
  0%   { box-shadow: 0 0 0 0 rgba(91, 154, 255, 0.55); }
  70%  { box-shadow: 0 0 0 11px rgba(91, 154, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 154, 255, 0); }
}
.vh-media-sheen { animation: vhSheen 7s ease-in-out 1.2s infinite; }
@keyframes vhSheen {
  0%, 62%, 100% { transform: translateX(-120%); }
  74%           { transform: translateX(120%); }
}

@media (prefers-reduced-motion: no-preference) {
  .vh-eyebrow { animation: vhRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.05s; }
  .vh-title   { animation: vhRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.14s; }
  .vh-sub     { animation: vhRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.26s; }
  .vh-cta     { animation: vhRise 0.75s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.36s; }
  .vh-stats   { animation: vhRise 0.75s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.46s; }
  .vh-media   { animation: vhMedia 0.95s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: 0.3s; }
}

/* ─────────────────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────────────────── */

/* Large tablets / small laptops */
@media (max-width: 1080px) {
  .vh-inner { gap: clamp(24px, 4vw, 48px); }
  .vh-media { max-width: 420px; }
  .vh-chip-body strong { font-size: 0.8rem; }
}

/* ═════════════════════════════════════════════════════════════════════════
   MOBILE / TABLET (≤880px) — immersive full-bleed photo carousel.
   Portrait clinic photos finally fit a portrait screen with no awkward
   crop or zoom; copy sits over a legibility scrim, dots at the bottom.
═════════════════════════════════════════════════════════════════════════ */
@media (max-width: 880px) {
  .vh-hero {
    min-height: 100svh;
    align-items: flex-end;
    padding: 96px 0 64px;
  }

  /* full-bleed crossfading backgrounds */
  .vh-bgs { display: block; position: absolute; inset: 0; z-index: 0; }
  .vh-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.04);
  }
  .vh-bg.is-active { opacity: 1; }

  .vh-scrim {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      radial-gradient(120% 80% at 70% 12%, rgba(26, 107, 218, 0.12) 0%, transparent 55%),
      linear-gradient(180deg,
        rgba(7, 17, 31, 0.62) 0%,
        rgba(7, 17, 31, 0.42) 26%,
        rgba(7, 17, 31, 0.66) 55%,
        rgba(7, 17, 31, 0.9) 82%,
        rgba(7, 17, 31, 0.98) 100%);
  }

  .vh-decor { display: none; }              /* keep it clean over the photo */
  .vh-media { display: none; }              /* hide the desktop framed card  */

  /* guarantee copy legibility over any part of the photo */
  .vh-title, .vh-sub, .vh-stat dt, .vh-stat dd {
    text-shadow: 0 2px 20px rgba(7, 17, 31, 0.55), 0 1px 4px rgba(7, 17, 31, 0.6);
  }

  .vh-inner {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: end;
  }
  .vh-copy { max-width: 640px; padding-bottom: 14px; }

  .vh-dots--mobile {
    display: flex;
    position: absolute;
    left: 0; right: 0;
    bottom: 26px;
    z-index: 3;
    justify-content: center;
  }
}

/* Phones */
@media (max-width: 560px) {
  .vh-hero { padding: 88px 0 60px; }
  .vh-eyebrow { font-size: 0.75rem; }
  .vh-title { margin-top: 20px; font-size: clamp(2.05rem, 8.6vw, 2.95rem); }
  .vh-sub { margin-top: 16px; font-size: 0.96rem; }
  .vh-cta { width: 100%; margin-top: 26px; }
  .vh-btn { flex: 1 1 auto; }
  .vh-stats {
    margin-top: 26px;
    padding-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .vh-stat + .vh-stat::before { left: -8px; top: 4px; bottom: 4px; }
  .vh-stat dt { font-size: 1.5rem; }
  .vh-stat dd { font-size: 0.76rem; }
}

/* Small phones — keep the stat row breathing */
@media (max-width: 400px) {
  .vh-stats { gap: 12px; }
  .vh-stat dt { font-size: 1.35rem; }
  .vh-stat dd { font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .vh-chip--faculty, .vh-chip--batch, .vh-glow, .vh-media-sheen, .vh-chip-pulse,
  .vh-fslide, .vh-bg { animation: none; transition: opacity 0.25s ease; }
  .vh-media-sheen { display: none; }
}
