/* ============================================================
   HERO — photographic navy hero + enquiry card, dark stats band
   ============================================================ */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: var(--space-4xl) var(--space-3xl);
  color: var(--text-primary);
  overflow: hidden;
  background: var(--gradient-hero);
}

/*
 * The photograph is a right-hand accent, not a full-bleed background.
 *
 * A flat scrim over the whole image doesn't work here: the photo is bright
 * (beige wall, white coats) and lifts the left half enough to wash out the
 * headline. So instead the image is masked to the right, darkened, and the
 * left half stays solid navy — headline contrast is then guaranteed rather
 * than a matter of luck with whatever photo gets swapped in later.
 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../images/hero-students.jpg') no-repeat center right / cover;
  filter: brightness(0.42) saturate(0.55) contrast(1.05);
  -webkit-mask-image: linear-gradient(to right, transparent 34%, rgba(0, 0, 0, 0.55) 62%, #000 100%);
  mask-image: linear-gradient(to right, transparent 34%, rgba(0, 0, 0, 0.55) 62%, #000 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 82% 12%, rgba(212, 160, 23, 0.20) 0%, transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 58px 58px, 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse at 25% 30%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse at 25% 30%, #000 0%, transparent 78%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero h1 {
  color: #fff;
  margin-bottom: var(--space-md);
  text-wrap: balance;
}
.hero h1 .accent {
  display: block;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lede {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: var(--space-xl);
}
.hero-lede strong { color: #fff; font-weight: 600; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

/* trust row under the CTAs */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}
.hero-trust-item svg { width: 17px; height: 17px; color: var(--gold-light); flex-shrink: 0; }

/* ---------- Enquiry card ---------- */
.hero-form {
  position: relative;
  background: rgba(9, 22, 46, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px) saturate(1.1);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-2xl);
}
/* gold hairline across the top, like a premium card edge */
.hero-form::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--gradient-gold);
}

.hero-form-head { margin-bottom: var(--space-lg); }
.hero-form-head h3 { color: #fff; font-size: var(--text-xl); }
.hero-form-head p { color: var(--text-secondary); font-size: var(--text-sm); margin-top: 5px; }

.hero-form .field { margin-bottom: var(--space-md); }
.hero-form .field > label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.hero-form input,
.hero-form select,
.hero-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color var(--duration-fast) var(--ease-smooth),
              background var(--duration-fast) var(--ease-smooth);
}
.hero-form input::placeholder { color: var(--text-tertiary); }
.hero-form input:focus,
.hero-form select:focus,
.hero-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.13);
}
.hero-form select option { background: var(--bg-dark-alt); color: #fff; }
.hero-form .form-consent {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--text-tertiary);
  line-height: 1.5;
}
.hero-form .form-consent strong { color: var(--text-secondary); font-weight: 600; }
.hero-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.hero-form-note { margin-top: var(--space-md); font-size: var(--text-xs); color: var(--text-tertiary); text-align: center; }

/* ---------- Dark stats band ---------- */
.stats-band {
  background: var(--bg-dark-alt);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.stats-band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stats-band-item {
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.stats-band-item:first-child { border-left: none; }
.stats-band-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
}
.stats-band-label {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: 5px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--gradient-hero);
  color: var(--text-primary);
  padding-block: var(--space-3xl);
  text-align: center;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 0%, rgba(212, 160, 23, 0.17) 0%, transparent 60%);
}
.page-hero h1 { color: #fff; margin-bottom: var(--space-sm); }
.page-hero p { color: var(--text-secondary); max-width: 62ch; margin-inline: auto; }
.page-hero-meta { font-size: var(--text-xs); color: var(--text-tertiary); margin-top: var(--space-md); }

@media (max-width: 1024px) {
  .hero { padding-block: var(--section-y-md); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .hero::before { background-position: center, center; }
  .stats-band-item { padding: var(--space-lg) var(--space-sm); }
}
@media (max-width: 480px) {
  .hero-form { padding: var(--space-lg); }
  .hero-form-row { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .stats-band-grid { grid-template-columns: 1fr; }
  .stats-band-item { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .stats-band-item:first-child { border-top: none; }
}
