/* ============================================================
   HERO — flat graphite hero + blueprint grid, 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);
}

/*
 * There is deliberately NO photograph here.
 *
 * This layout was adapted from a medical-admissions site whose hero used a
 * stock photo of doctors in white coats — actively misleading on an
 * engineering site — and no honest substitute was to hand. A generic "students
 * at laptops" stock shot would say nothing true about these colleges, so the
 * hero is flat graphite plus the blueprint grid below, which suits the brand
 * and guarantees headline contrast instead of leaving it to luck.
 *
 * If the client supplies a real photo (their team, their office, or a campus
 * they have permission to depict), reinstate it here with a right-side mask so
 * the left half stays solid and the headline stays readable regardless.
 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: none;   /* no bloom: flat graphite is the whole point */
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Blueprint grid only — flat, even, no glow and no radial mask. */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
  opacity: 0.9;
}

.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;
  color: var(--gold);   /* flat, not a clipped gradient */
}

.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);
}

.hero-cta-note {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  max-width: 56ch;
  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: var(--bg-dark-alt);
  border: 1px solid rgba(255, 255, 255, 0.12);
  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;
}
/* Flat graphite + the same blueprint grid as the home hero. No bloom. */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
}
.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; }
}
