/* =========================================================
   PHASE 12: MOBILE HOMEPAGE HERO FIX
   Desktop/laptop hero remains untouched. These rules affect
   only mobile/tablet widths where the hero image was cropped
   too aggressively and the text covered the school visual.
   ========================================================= */

@media (max-width: 680px) {
  .hp-hero {
    min-height: min(760px, calc(100svh - var(--nav-h) - 18px));
    height: min(760px, calc(100svh - var(--nav-h) - 18px));
    max-height: none;
    background:
      radial-gradient(circle at 50% 24%, rgba(227,194,111,.14), transparent 30%),
      linear-gradient(180deg, #070a10 0%, #05070d 58%, #020408 100%);
  }

  /* Give the actual campus image a clean visual zone instead of letting
     a narrow phone crop into one huge logo/building detail. */
  .hp-hero__media {
    inset: 0 0 auto 0;
    height: 58%;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(5,8,15,.02), rgba(5,8,15,.18)),
      url('../campus-main.webp') center center / cover no-repeat;
  }

  .hp-hero__media::after {
    content: '';
    position: absolute;
    inset: auto 0 -1px 0;
    height: 46%;
    background: linear-gradient(180deg, rgba(5,8,15,0) 0%, rgba(5,8,15,.78) 74%, #05070d 100%);
    pointer-events: none;
    z-index: 3;
  }

  .hp-hero__media img,
  .hp-hero__media video,
  .heroSlideMedia {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    background: transparent;
    transform: none !important;
  }

  .hp-hero__shade {
    inset: 0;
    background:
      linear-gradient(180deg, rgba(3,5,10,.03) 0%, rgba(3,5,10,.10) 35%, rgba(3,5,10,.74) 59%, rgba(3,5,10,.98) 100%),
      linear-gradient(90deg, rgba(3,5,10,.20), rgba(3,5,10,.04));
  }

  .heroGoldOrb { display: none; }

  .hp-hero__content {
    left: 14px;
    right: 14px;
    bottom: 74px;
    max-width: none;
    padding: 15px 14px 14px;
    border-radius: 20px;
    border: 1px solid rgba(227,194,111,.20);
    background: linear-gradient(135deg, rgba(7,10,18,.82), rgba(7,10,18,.58));
    box-shadow: 0 20px 44px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .hp-hero__kicker {
    margin-bottom: 8px;
    font-size: 9px;
    letter-spacing: .14em;
  }

  .hp-hero__title {
    max-width: 10ch;
    margin-bottom: 9px;
    font-size: clamp(31px, 9vw, 42px);
    line-height: .96;
  }

  .hp-hero__sub {
    display: block;
    max-width: 35ch;
    margin-bottom: 13px;
    font-size: 12.5px;
    line-height: 1.48;
    color: rgba(250,239,214,.78);
  }

  .hp-hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .hp-btn-gold,
  .hp-btn-ghost {
    min-height: 42px;
    padding-inline: 10px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.15;
  }

  .hp-hero__ticker {
    bottom: 12px;
    width: calc(100vw - 22px);
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(5,8,15,.80);
  }
}

@media (max-width: 430px) {
  .hp-hero {
    min-height: 620px;
    height: min(720px, calc(100svh - var(--nav-h) - 12px));
  }

  .hp-hero__media { height: 55%; }
  .hp-hero__content { bottom: 68px; padding: 13px 12px; }
  .hp-hero__title { font-size: clamp(29px, 8.8vw, 38px); }
  .hp-hero__sub { font-size: 12px; }
  .hp-hero__actions { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .hp-hero { min-height: 640px; }
  .hp-hero__media { height: 52%; }
  .hp-hero__title { max-width: 11ch; }
}

@media (max-height: 650px) and (max-width: 680px) {
  .hp-hero {
    height: 660px;
    min-height: 660px;
  }
  .hp-hero__media { height: 52%; }
}
