/* Phone-first refinements layered over the desktop design. */
html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; }

@media (max-width: 700px) {
  body { font-size: 16px; line-height: 1.58; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .site-header { height: 78px !important; padding: 8px 16px !important; gap: 12px; }
  .brand { min-width: 0; flex: 1 1 auto; }
  .brand img { width: 132px !important; max-height: 60px; object-fit: contain; object-position: left center; }
  .site-header nav { flex: 0 0 auto; }
  .site-header .nav-cta { min-height: 44px; padding: 9px 12px !important; font-size: .74rem !important; white-space: nowrap; }

  .hero { height: auto; min-height: 100svh; align-items: flex-end; }
  .hero-image { object-position: 50% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(3,18,37,.48) 0%, rgba(3,18,37,.74) 34%, rgba(3,18,37,.97) 72%) !important; }
  .hero-content { width: auto; margin: 0; padding: 112px 20px 42px; }
  .hero h1 { max-width: 100%; font-size: clamp(2.55rem, 12vw, 3.6rem); line-height: 1.02; overflow-wrap: anywhere; }
  .hero-copy { margin-bottom: 25px; font-size: 1rem; line-height: 1.5; }
  .event-strip { width: 100%; margin-bottom: 22px; }
  .event-strip strong { font-size: .94rem; line-height: 1.35; }
  .hero-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 13px; }
  .hero-actions .button, .hero-actions .text-link { width: 100%; text-align: center; }
  .offer-line { max-width: none; margin-top: 17px; }

  .section, .exclusive-offer, .open-day-gallery, .curriculum, .life-gallery { padding: 68px 20px !important; }
  .section h2, .why h2, .exclusive-offer h2, .open-day-gallery-heading h2,
  .curriculum-heading h2, .gallery-heading h2, .visit-copy h2, .final-cta h2 {
    font-size: clamp(2.15rem, 10vw, 3rem) !important;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }
  .section-heading, .curriculum-heading, .gallery-heading { margin-bottom: 34px; }

  .intro { gap: 24px; }
  .intro-mark { font-size: 5.2rem; }
  .intro-mark span { font-size: 2.5rem; }
  .intro-stats { gap: 12px; }
  .intro-stats strong { font-size: 1.9rem; }

  .experience-grid { display: block; }
  .experience-card, .feature-card { display: block; border-radius: 0; margin-bottom: 18px; }
  .experience-card > div { padding: 23px 20px; }
  .experience-card h3, .principles h3 { font-size: 1.45rem; }
  .feature-card img, .experience-card img { height: 220px; }
  .quote-card { min-height: 0; padding: 30px 22px; }
  .quote-card p { font-size: 1.55rem; }

  .open-day-gallery-heading { margin-bottom: 30px; }
  .open-day-photo-grid, .gallery-grid { display: block; }
  .open-day-photo-grid figure, .gallery-grid figure { margin-bottom: 12px; }
  .open-day-photo-grid figure, .gallery-grid figure { height: 220px; }
  .open-day-photo-grid figure:first-child, .gallery-grid figure:first-child { height: 275px; }
  .open-day-photo-grid figcaption, .gallery-grid figcaption { font-size: .7rem; }
  .open-day-gallery-note { align-items: flex-start; }

  .curriculum-grid { gap: 16px; }
  .curriculum-card { padding: 23px 20px; }
  .curriculum-card h3 { font-size: 1.65rem; }
  .programme-label { margin-bottom: 18px; }

  .exclusive-offer { gap: 30px; }
  .exclusive-offer p { font-size: 1rem; }
  .offer-badge { padding: 24px 18px; }
  .offer-badge strong { font-size: 1.7rem; }

  .why-image img { width: 100%; height: 310px; min-height: 0; object-position: center; }
  .why-content { padding: 68px 20px; }
  .principles { margin-top: 30px; }
  .principles article { grid-template-columns: 30px minmax(0, 1fr); padding: 19px 0; }

  .visit { gap: 36px; }
  .visit-photo::before { left: -8px; bottom: -8px; }
  .visit-details { margin: 27px 0 22px; }
  .visit-details strong { display: block; overflow-wrap: anywhere; }
  .visit-copy .button { width: 100%; text-align: center; }

  .final-cta { padding: 72px 20px 82px; background-position: center; }
  .final-cta p:not(.eyebrow) { font-size: 1rem; }
  .final-cta .button { width: 100%; }

  footer { padding: 42px 20px 30px; grid-template-columns: 1fr; gap: 16px; text-align: center; }
  footer img { margin: 0 auto; width: 132px; }
  footer a { overflow-wrap: anywhere; }

  .button { min-height: 52px; padding: 12px 18px; }
  .mobile-cta {
    left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom));
    min-height: 54px; padding: 10px 16px; text-align: center;
    transition: transform .22s ease, opacity .22s ease;
  }
  .mobile-cta.is-hidden { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
}

@media (max-width: 380px) {
  .site-header { padding-inline: 12px !important; }
  .brand img { width: 116px !important; }
  .site-header .nav-cta { padding-inline: 9px !important; font-size: .69rem !important; }
  .hero-content { padding-inline: 16px; }
  .hero h1 { font-size: 2.45rem; }
  .section, .exclusive-offer, .open-day-gallery, .curriculum, .life-gallery,
  .why-content, .final-cta { padding-left: 16px !important; padding-right: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
