/* ==========================================================
   Stella Fyti Heights — hero.css
   Full-width looping video hero
   ========================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h));       /* fallback */
  min-height: calc(100svh - var(--header-h));      /* stable on mobile browsers (no jump when the URL bar hides) */
  overflow: hidden;
  background: #2b2622;     /* shown for a split second before the poster paints */
  color: #fff;
  text-align: center;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Darkens the video so white text stays readable over bright sky and white walls */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 15, 12, 0.45) 0%, rgba(20, 15, 12, 0.3) 45%, rgba(20, 15, 12, 0.6) 100%);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  width: 100%;
  max-width: 62rem;
  padding: 6rem var(--gutter) 5rem;
}

/* H1 tag, displayed at body-text size (SEO keeps the H1; the tagline carries the visual weight) */
.hero__name {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* <p> tag, displayed at heading size */
.hero__tagline {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7.2vw, 5.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero .btn {
  margin-top: 0.75rem;
}

/* Pause / play control (WCAG 2.2.2 — moving content must be pausable) */
.hero__toggle {
  position: absolute;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: #fff;
  background: rgba(20, 15, 12, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.hero__toggle[hidden] {
  display: none;
}

.hero__toggle:hover {
  background: rgba(20, 15, 12, 0.7);
}

.hero__toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.hero__toggle svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
}

.hero__toggle .icon-play {
  display: none;
}

.hero__toggle[aria-pressed="true"] .icon-pause {
  display: none;
}

.hero__toggle[aria-pressed="true"] .icon-play {
  display: block;
}

@media (max-width: 767px) {
  .hero__content {
    gap: 1.5rem;
    padding-top: 5rem;
  }

  .hero__name {
    font-size: 0.9375rem;
    letter-spacing: 0.28em;
  }
}
