/* ═══ Williams Family home hero ═══
   Layout per Mike's spec (2026-07-12):
   - full-photo hero (1995 Vladivostok family portrait)
   - large "Major Eras" oval in front of the family group, top at waist
     level, centered on the group (group center ≈ 39% from left)
   - stack of four rounded cards in the open harbor view at right
   Desktop anchors are % of the hero box, tuned for the 3:2 photo at
   16:9–16:10 viewports; below 900px everything reflows into a column. */

/* ── Hero section ── */
.home-hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("/images/hero-1995-vladivostok.jpg") center 32% / cover no-repeat;
  filter: brightness(1.06) saturate(1.04);
  z-index: 0;
}

@media (max-width: 720px) {
  .home-hero::before {
    background-image: url("/images/hero-1995-vladivostok-mobile.jpg");
  }
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
  z-index: 1;
}

.home-hero__photo-date {
  position: absolute;
  bottom: 10px;
  right: 14px;
  z-index: 2;
  margin: 0;
  font-family: var(--font-body, Lora, serif);
  font-size: 17px;
  font-style: italic;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.home-hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
}

/* ── Masthead ── */
.masthead {
  position: absolute;
  top: 4.5%;
  left: 50%;
  transform: translateX(-50%);
  width: min(94vw, 1100px);
  text-align: center;
}

.masthead__rule {
  height: 2px;
  width: 92px;
  background: var(--color-teal-300);
  margin: 10px auto;
}

.masthead__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 700;
  color: var(--color-ice-100);
  letter-spacing: 0.5px;
  margin: 0;
  text-shadow: 0 2px 16px rgba(10, 18, 26, 0.7);
}

.masthead__tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px);
  color: rgba(242, 246, 248, 0.92);
  letter-spacing: 1px;
  margin: 0;
  text-shadow: 0 1px 10px rgba(10, 18, 26, 0.65);
}

/* ── Major Eras oval — in front of the family group ── */
.oval-eras {
  position: absolute;
  z-index: 3;
  left: 39%;
  top: 57%;
  transform: translateX(-50%);
  width: clamp(420px, 46vw, 760px);
  padding: 30px 34px 34px;
  border-radius: 50%;
  background: rgba(244, 249, 251, 0.68);
  border: 2px solid rgba(47, 141, 146, 0.8);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  text-align: center;
  text-decoration: none;
  display: block;
  box-shadow: var(--shadow-lg);
  transition: background var(--transition-med), border-color var(--transition-med),
    transform 0.22s, box-shadow var(--transition-med);
}

.oval-eras:hover {
  background: rgba(244, 249, 251, 0.82);
  border-color: var(--accent-primary);
  transform: translateX(-50%) scale(1.03);
  box-shadow: var(--shadow-heavy);
}

.oval-eras__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  color: var(--color-harbor-900);
  margin: 0 0 10px;
}

.oval-eras__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  margin: 0;
  padding: 0 9%;
}

.oval-eras__list li {
  font-family: var(--font-body);
  font-size: clamp(24px, 2.5vw, 30px);
  color: var(--color-harbor-700);
  white-space: nowrap;
}

.oval-eras__list li:not(:last-child)::after {
  content: "\00b7";
  margin: 0 11px;
  color: var(--accent-primary);
}

.oval-eras__cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--color-teal-700);
}

/* ── Right-side stack — in the open harbor view ── */
.side-stack {
  position: absolute;
  z-index: 3;
  right: 2.5%;
  top: 13.5%;
  width: clamp(240px, 26vw, 420px);
  height: 72%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.side-stack .oval-card--sm {
  flex: 1;
  max-height: 130px;
  border-radius: 999px;
  background: var(--overlay-card);
  border: 1.5px solid rgba(47, 141, 146, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  padding: 14px 22px;
  box-shadow: var(--shadow-md);
  transition: background var(--transition-med), border-color var(--transition-med),
    transform 0.22s, box-shadow var(--transition-med);
}

.side-stack .oval-card--sm:hover {
  background: var(--overlay-card-hover);
  border-color: var(--accent-primary);
  transform: scale(1.04);
  box-shadow: var(--shadow-heavy);
}

.side-stack .oval-card__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.55vw, 33px);
  font-weight: 600;
  color: var(--color-harbor-900);
  margin: 0 0 3px;
  line-height: 1.25;
}

.side-stack .oval-card__cta {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--color-teal-700);
}

/* ── Reflow: tablets & phones — column layout, photo as banner ── */
@media (max-width: 900px) {
  .home-hero {
    min-height: 0;
  }

  .home-hero::before,
  .home-hero__overlay {
    height: 46vh;
    inset: 0 0 auto 0;
  }

  .home-hero__content {
    padding-top: 46vh;
  }

  .masthead {
    position: static;
    transform: none;
    width: auto;
    margin: -38vh auto 0;
    margin-bottom: 24vh;
  }

  .oval-eras,
  .side-stack {
    position: static;
    transform: none;
    width: min(92vw, 560px);
    height: auto;
    margin: 0 auto 18px;
  }

  .oval-eras {
    border-radius: 32px;
  }

  .oval-eras:hover {
    transform: scale(1.02);
  }

  .side-stack .oval-card--sm {
    max-height: none;
    padding: 16px 22px;
  }

  /* On the dark column background, translucent cards read muddy — go solid */
  .oval-eras,
  .side-stack .oval-card--sm {
    background: var(--color-ice-100);
    border-color: rgba(47, 141, 146, 0.5);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .oval-eras:hover,
  .side-stack .oval-card--sm:hover {
    background: #ffffff;
  }

  .home-hero {
    background: var(--surface-dark);
    padding-bottom: 28px;
  }

  .home-hero__photo-date {
    bottom: auto;
    top: calc(46vh - 30px);
  }
}

/* What's New strip: styled by whats-new.css (ported as-is; palette via tokens). */
