/* ==========================================================================
   Screens — layout specific to individual pages. Component styling lives in
   components.css; this file only arranges things.
   ========================================================================== */

/* Hero (home + inner-page banners) ------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  background-size: cover;
  background-position: center;
  padding: var(--space-7) 0;
  text-align: center;
  min-height: 94vh;
  display: flex;
  align-items: center;
}

/* Slow Ken Burns zoom on the home hero's background layer. Only present
   in markup on the home page — inner-page banners keep a static
   background-image directly on .hero. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  animation: hero-kenburns 24s ease-in-out infinite alternate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(63, 74, 73, 0.35), rgba(63, 74, 73, 0.55));
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 46rem;
  margin: 0 auto;
  width: 100%;
}

.hero h1,
.hero p {
  color: var(--color-white);
}

.hero:not(.hero--compact) h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
}

.hero:not(.hero--compact) p {
  font-size: 1.15rem;
}

.hero--compact {
  padding: var(--space-6) 0;
}

/* Only give the taller treatment when there's an actual photo (.hero
   present). Plain text banners (.hero--compact alone, on a
   .section--ink with no image, e.g. About Us / Blog) should stay
   content-height, not artificially tall. */
.hero.hero--compact {
  min-height: 50vh;
}

/* Webinars' banner photo reads fine shorter than the default compact
   height. Positioned toward the top so the crowd's heads stay in
   frame instead of being cropped by the shorter box. */
.hero.hero--webinars {
  min-height: 38vh;
  background-position: center 15%;
}

@keyframes hero-kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg {
    animation: none;
  }
}

/* Scroll cue: only on the full-height home hero, points at the section
   right after it. */
.hero__scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: var(--space-4);
  transform: translateX(-50%);
  color: var(--color-white);
  opacity: 0.8;
  line-height: 0;
  animation: hero-scroll-bounce 2.2s ease-in-out infinite;
}

.hero__scroll-cue:hover,
.hero__scroll-cue:focus-visible {
  opacity: 1;
}

.hero__scroll-cue svg {
  width: 28px;
  height: 28px;
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-cue {
    animation: none;
  }
}

/* Home: intro copy under hero -------------------------------------------------- */

.intro {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

/* What is Grief Coaching?: audience list --------------------------------------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.audience-card {
  text-align: center;
  padding: var(--space-4) var(--space-3);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.2s ease, box-shadow 0.2s ease;
}

.audience-card:hover,
.audience-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 14px 28px rgba(63, 74, 73, 0.14);
}

.audience-card__icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.audience-card__icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--color-accent);
}

.audience-card h3 {
  margin-bottom: 0.3em;
}

.audience-card p {
  margin-bottom: 0;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .audience-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .audience-card:hover,
  .audience-card:focus-within {
    transform: none;
  }
}
