/* ==========================================================================
   Bazl — EoR Partner Landing Page (Phase 1)
   Premium, minimal, responsive. Video is the centrepiece.
   Brand: navy #062c89, green #00bf63.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------ */
:root {
  --navy:        #062c89;
  --navy-deep:   #041f61;
  --green:       #00bf63;
  --green-dark:  #00a856;   /* hover / active */
  --ink:         #0c1222;   /* near-black body text */
  --muted:       #5b6478;   /* secondary text */
  --line:        #e6e9f0;   /* hairline borders */
  --bg:          #ffffff;
  --bg-soft:     #f6f8fc;   /* subtle section tint */
  --white:       #ffffff;

  --radius:      14px;
  --radius-sm:   10px;
  --shadow:      0 24px 60px -24px rgba(6, 44, 137, 0.35);
  --maxw:        1080px;

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Helvetica Neue", sans-serif;
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); }

/* Visible, consistent focus for keyboard users */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---- Header ------------------------------------------------------------- */
.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 24px 8px;
}
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 35px; width: auto; }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 24px 72px;
}
.hero__inner { max-width: 820px; margin: 0 auto; text-align: center; }

.hero__title {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 12px auto 0;
  max-width: 26ch;             /* ~2 balanced lines on desktop; wraps safely on mobile */
  font-weight: 700;
  text-wrap: balance;          /* even, natural line breaks on desktop + mobile */
}
.hero__lede {
  font-size: clamp(1.02rem, 0.96rem + 0.5vw, 1.2rem);
  color: var(--muted);
  max-width: 640px;
  margin: 18px auto 34px;
}
.hero__skip { margin: 22px 0 0; }

.link-inline {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(0, 191, 99, 0.35);
  padding-bottom: 1px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.link-inline:hover { color: var(--green-dark); border-bottom-color: var(--green); }

/* ==========================================================================
   VIDEO PLAYER
   ========================================================================== */
.player {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

/* Responsive 16:9 frame */
.player__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}
/* Fallback for very old browsers without aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  .player__frame { height: 0; padding-top: 56.25%; }
  .player__video { position: absolute; inset: 0; }
}

.player__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

.player__fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; padding: 24px; text-align: center;
  color: var(--white); background: var(--navy);
}
.player__fallback a { color: #bfe9d2; }

/* ---- Central play button (over the opening frame) ----------------------
   Tasteful, centred affordance shown over the poster and whenever paused.
   It fades out during playback so the film is unobstructed; play/pause
   stays reachable via Space/K, the controls bar, and tap-on-video. */
.player__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border: none; border-radius: 50%;
  background: rgba(6, 44, 137, 0.82);
  color: var(--white);
  cursor: pointer;
  display: grid; place-items: center;
  transition: opacity .3s var(--ease), visibility .3s var(--ease),
              transform .2s var(--ease), background .2s var(--ease);
  z-index: 3;
  backdrop-filter: blur(2px);
  box-shadow: 0 10px 34px -8px rgba(0, 0, 0, 0.55);
}
.player__play:hover { background: var(--navy); transform: translate(-50%, -50%) scale(1.06); }
/* Optical-centre the triangle within the circle */
.player__play-icon { width: 34px; height: 34px; fill: currentColor; margin-left: 3px; }

/* Hide while playing: fades out and leaves the tab order (no focusable,
   invisible button). Returns on pause / end. */
.player.is-playing .player__play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---- Timed CTA overlay -------------------------------------------------- */
.player__cta {
  position: absolute;
  left: 0; right: 0;
  bottom: 14%;                 /* safe zone: clear of logo/controls */
  display: flex;
  justify-content: center;
  padding: 0 16px;
  z-index: 4;                  /* above controls + play button */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  pointer-events: none;        /* non-interactive until shown */
}
.player__cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  transition: background .2s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease);
}
.btn--cta {
  background: var(--green);
  color: #04371f;              /* high-contrast dark-green text on green */
  padding: 16px 30px;
  font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.1rem);
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px -8px rgba(0, 191, 99, 0.6);
}
.btn--cta:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn--cta:active { transform: translateY(0); }
.btn--cta:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

/* ---- Controls bar ------------------------------------------------------- */
.player__controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0));
  z-index: 2;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.player:hover .player__controls,
.player:focus-within .player__controls,
.player.is-paused .player__controls { opacity: 1; }

.ctrl {
  background: transparent;
  border: none;
  color: var(--white);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s var(--ease);
}
.ctrl:hover { background: rgba(255,255,255,0.14); }

/* Toggle labels inside play/mute buttons */
.ctrl__label-pause,
.ctrl__label-unmute { display: none; }
.player.is-playing #ctrlPlay .ctrl__label-play  { display: none; }
.player.is-playing #ctrlPlay .ctrl__label-pause { display: inline; }
.player.is-muted   #ctrlMute .ctrl__label-mute   { display: none; }
.player.is-muted   #ctrlMute .ctrl__label-unmute { display: inline; }

.ctrl__progress { flex: 1; display: flex; align-items: center; }
.ctrl__time { color: var(--white); font-size: 0.8rem; font-variant-numeric: tabular-nums; opacity: 0.9; }

/* Range / seek bar */
.seek {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
}
.seek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--green); border: 2px solid #fff; cursor: pointer;
}
.seek::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--green); border: 2px solid #fff; cursor: pointer;
}
.seek:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }

/* ==========================================================================
   PARTNERSHIP SECTION (placeholder)
   ========================================================================== */
.partnership {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: clamp(56px, 8vw, 112px) 24px;
  scroll-margin-top: 24px;    /* breathing room when scrolled into view */
}
.partnership:focus { outline: none; }  /* programmatic focus, not a visible ring */
.partnership__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0 0 14px;
}
/* Keep exact casing (e.g. "EoR") inside an otherwise uppercased eyebrow */
.eyebrow__exact { text-transform: none; }
.partnership__title {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 700;
}
.partnership__subtitle {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: var(--ink);
  max-width: 620px;
  margin: 0 auto 28px;
}
.partnership__body { color: var(--muted); max-width: 600px; margin: 0 auto; }
.partnership__note {
  margin-top: 18px;
  font-weight: 600;
  color: var(--navy);
}

/* ---- Benefits (three scannable cards) ----------------------------------- */
.benefits {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  text-align: left;
}
.benefit {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);   /* green brand accent */
  border-radius: var(--radius-sm);
  padding: 32px 28px;
  box-shadow: 0 16px 38px -24px rgba(6, 44, 137, 0.32);
}
.benefit__icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: var(--navy);
  background: rgba(6, 44, 137, 0.07);   /* restrained navy-tint chip */
}
.benefit__icon svg { width: 24px; height: 24px; }
.benefit__title {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.22;
}
.benefit__desc {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* ---- Credibility (small, tasteful) -------------------------------------- */
.credibility {
  background: var(--bg);
  padding: clamp(40px, 6vw, 72px) 24px;
  text-align: center;
}
.credibility__inner { max-width: 640px; margin: 0 auto; }
.credibility__title {
  margin: 0 0 10px;
  color: var(--navy);
  font-weight: 700;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem);
  letter-spacing: -0.01em;
}
.credibility__text {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ==========================================================================
   BOOKING (navy conversion section) — the primary CTA on the page
   ========================================================================== */
.book {
  background: var(--navy);
  color: #eaf0ff;
  padding: clamp(56px, 8vw, 104px) 24px;
  scroll-margin-top: 24px;
  text-align: center;
}
.book:focus { outline: none; }  /* programmatic focus target */
.book__inner { max-width: 720px; margin: 0 auto; }
.book__headline {
  margin: 0 0 26px;
  color: #fff;
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  text-wrap: balance;
}
.book__lead {
  margin: 0 0 18px;
  color: #c6d4f5;
  font-weight: 600;
  font-size: 1.05rem;
}
.book__list {
  list-style: none;
  margin: 0 auto 36px;
  padding: 0;
  max-width: 560px;
  text-align: left;
  display: grid;
  gap: 14px;
}
.book__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
  color: #eaf0ff;
}
.book__check {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin-top: 2px;
  color: var(--green);
}

/* Prominent green CTA — the most visually dominant action on the page */
.btn--book {
  background: var(--green);
  color: #04371f;
  padding: 18px 36px;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.18rem);
  box-shadow: 0 14px 36px -10px rgba(0, 191, 99, 0.6);
}
.btn--book:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn--book:active { transform: translateY(0); }
.btn--book:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.book__meta {
  margin: 16px 0 0;
  color: #c6d4f5;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Collapsible calendar region */
.book__calendar {
  margin: 34px auto 0;
  max-width: 820px;
  text-align: left;
}
.book__calendar[hidden] { display: none; }
.book__calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.book__calendar-title { color: #eaf0ff; font-weight: 600; }
.book__close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.book__close:hover { background: rgba(255, 255, 255, 0.2); }
.book__close svg { width: 16px; height: 16px; }
.book__close:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.book__alt { margin: 22px 0 0; color: #c6d4f5; font-size: 0.95rem; }
.book__alt-link { color: #fff; border-bottom-color: rgba(0, 191, 99, 0.55); }
.book__alt-link:hover { color: #fff; border-bottom-color: var(--green); }

/* Calendar embed wrapper — opaque white, bounded width, no overflow */
.booking__embed {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.booking__embed iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  background: #fff;   /* stays opaque while Google loads */
}

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  padding: 32px 24px;
  text-align: center;
}
.site-footer__copy { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
/* Stack the benefit cards once three columns no longer fit comfortably */
@media (max-width: 760px) {
  .benefits { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 640px) {
  .site-header { padding: 20px 18px 4px; }
  .hero { padding: 16px 18px 52px; }
  /* Slightly smaller central play button on mobile */
  .player__play { width: 64px; height: 64px; }
  .player__play-icon { width: 28px; height: 28px; }

  /* Keep the CTA clear of the controls on small screens */
  .player__cta { bottom: 18%; }
  .btn--cta { padding: 13px 20px; }

  /* Hide the numeric time on very small screens to protect the seek bar */
  .ctrl__time { display: none; }
  .ctrl { padding: 8px 7px; font-size: 0.8rem; }

  /* Google's scheduler needs more vertical room on narrow viewports */
  .booking__embed iframe { height: 760px; }

  /* Booking section: full-width CTA + stacked close control */
  .btn--book { display: block; width: 100%; padding: 16px 20px; }
  .book__calendar-head { flex-wrap: wrap; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* CTA still appears, just without the slide/fade motion */
  .player__cta { transition: none; transform: none; }
}
