/* ============================
   Homepage hero (video bg)
   ============================ */

/* Local header height proxy (reads globals from style.css) */
.home-hero{ --header-h: var(--header-h-desktop); }
@media (max-width: 767px){
  .home-hero{ --header-h: var(--header-h-mobile); }
}

/* ---------- Shell ---------- */
.home-hero{
  position: relative;
  overflow: hidden;
  background:#000;
  color: var(--white);
}

/* Ignore global container caps for the hero row only */
.home-hero__inner.container{
  max-width: none;
  width: 100%;
  padding-inline: 0;
}

.home-hero__inner{
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: stretch;
  text-align: center;
  padding: 48px 16px 0;        /* ✅ bottom padding removed */
  z-index: 2;
  min-height: calc(100svh - var(--header-h));
}


/* keep the content centred within its available row */
.home-hero__content{
  align-self: center;
}

@supports not (height: 100svh){
  .home-hero__inner{ min-height: calc(100vh - var(--header-h)); }
}

.home-hero__content{
  width: 100%;
  margin: 0;
  padding-inline: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ---------- Background video cover ---------- */
.home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

/* Replace iframe rules with video rules */
.home-hero__video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* makes sure it fills and crops nicely */
  pointer-events: none; /* keeps video non-interactive like iframe */
  border: 0;
}


/* Readability overlay */
.home-hero__scrim{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.32) 0%, rgba(0,0,0,.38) 50%, rgba(0,0,0,.42) 100%),
    color-mix(in oklab, var(--primary-red) 18%, transparent);
}

/* ---------- Content pieces ---------- */
.home-hero__welcome{
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 4px;
  padding: 0;
}

.home-hero__welcome-img{
  display: block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  max-width: none;
  height: auto;
  width: 260px; /* base; overridden below */
}

.home-hero__strapline{
  margin: 0 0 20px;
  color: var(--white);
  font-weight: 600;
  line-height: 1.35;
  font-size: 18px;   /* base; overridden below */
  text-shadow: 0 1px 2px rgba(0,0,0,.15);
}

/* CTA */
.home-hero__cta{ margin-top: 16px; }

/* Ofsted badge pinned to bottom edge */
.home-hero__badge-bottom{
  position: static;
  transform: none;
  z-index: 3;
  justify-self: center;
  align-self: end;
  padding-bottom: env(safe-area-inset-bottom, 0px); /* ✅ doesn’t add “gap” on desktop */
}


.home-hero__badge-img{
  display: block;
  width: 80px;
  height: auto;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.18));
}

/* Small phones: tidy spacing */
@media (max-width: 480px){
  .home-hero__inner{ padding: 36px 14px 0; }
}

/* ============================
   Fixed-size breakpoints
   ============================ */
@media (min-width:320px){
  .home-hero__welcome-img{ width: 520px; }
  .home-hero__strapline{ font-size: 16px; }
}
@media (min-width:390px){
  .home-hero__welcome-img{ width: 540px; }
  .home-hero__strapline{ font-size: 18px; }
}
@media (min-width:430px){
  .home-hero__welcome-img{ width: 560px; }
  .home-hero__strapline{ font-size: 20px; }
}
@media (min-width:768px){
  .home-hero__welcome-img{ width: 840px; }
  .home-hero__strapline{ font-size: 20px; }
}
@media (min-width:1024px){
  .home-hero__welcome-img{ width: 840px; }
  .home-hero__strapline{ font-size: 24px; }
}
@media (min-width:1280px){
  .home-hero__welcome-img{ width: 900px; }
  .home-hero__strapline{ font-size: 30px; }
}
@media (min-width:1440px){
  .home-hero__welcome-img{ width: 940px; }
  .home-hero__strapline{ font-size: 32px; }
}
@media (min-width:1920px){
  .home-hero__welcome-img{ width: 1100px; }
  .home-hero__strapline{ font-size: 34px; }
}
@media (min-width:2560px){
  .home-hero__welcome-img{ width: 1300px; }
  .home-hero__strapline{ font-size: 36px; }
}
