/* HOME — lead with the heart. */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh; /* fills the fold on mobile without the URL bar cropping it */
  min-height: 460px;
  overflow: hidden;
  margin-top: -1px;
}
.heroImg {
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
  filter: contrast(1.03) saturate(1.05);
}
/* A gentle overlay filter — a little darkening + vignette for mood, and a
   stronger bottom fade so the dates and scroll cue stay legible. */
.heroScrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(125% 95% at 50% 38%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(180deg, rgba(10, 6, 8, 0.34) 0%, rgba(10, 6, 8, 0.12) 26%, rgba(10, 6, 8, 0.1) 56%, rgba(10, 6, 8, 0.64) 100%);
}

/* Small life–death dates, low and centered over the image. */
.heroDates {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(84px, 15vh, 148px);
  z-index: 2;
  text-align: center;
  white-space: nowrap;
  padding: 0 1rem;
  color: rgba(253, 243, 230, 0.94);
  font-family: var(--serif-stack);
  font-size: clamp(11px, 2.6vw, 16px);
  letter-spacing: 0.16em;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65);
}

/* Scroll indicator — signals this is a living page, not a still image. */
.heroScroll {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 5vh, 46px);
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: rgba(253, 243, 230, 0.86);
  transition: color 0.2s ease, opacity 0.2s ease;
}
.heroScroll:hover {
  color: #fff;
}
.heroScrollText {
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  padding-left: 0.36em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
.heroScrollChevron {
  width: 13px;
  height: 13px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}
@media (prefers-reduced-motion: no-preference) {
  .heroScrollChevron {
    animation: heroBounce 1.9s ease-in-out infinite;
  }
}
@keyframes heroBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(3px, 3px); }
}
.heroInner {
  position: relative;
  z-index: 2;
  padding: 0 6vw clamp(40px, 8vh, 90px);
  max-width: 900px;
}
/* Her name over the image — understated, matching .heroDates but a touch larger.
   Sits just above the dates; never translated. */
.heroName {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(112px, 19.5vh, 188px);
  z-index: 2;
  margin: 0;
  text-align: center;
  padding: 0 1rem;
  font-weight: 400;
  color: rgba(253, 243, 230, 0.96);
  font-family: var(--serif-stack);
  font-size: clamp(19px, 4.4vw, 31px);
  line-height: 1.1;
  letter-spacing: 0.11em;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.7);
}
.heroNick {
  font-style: italic;
  font-size: clamp(20px, 3.4vw, 38px);
  color: #f6dcc0;
  margin-top: 0.4rem;
  text-shadow: 0 1px 10px rgba(16, 5, 7, 0.7);
}
.heroYears {
  letter-spacing: 0.36em;
  font-size: clamp(14px, 2vw, 22px);
  color: #e8cfa6;
  margin-top: 1.4rem;
  text-shadow: 0 1px 10px rgba(16, 5, 7, 0.7);
}
.heroTagline {
  font-style: italic;
  font-size: clamp(19px, 3vw, 34px);
  color: #f3ddc3;
  margin-top: 1rem;
  text-shadow: 0 1px 12px rgba(16, 5, 7, 0.8);
}
.heroCtas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2.2rem;
}

.intro {
  text-align: center;
}

/* memorial section — cards to each page */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-top: 2.4rem;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 16px;
  background: rgba(255, 250, 238, 0.7);
  border: 1px solid rgba(199, 154, 85, 0.4);
  box-shadow: 0 6px 22px rgba(120, 80, 45, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  background: rgba(255, 250, 238, 0.95);
  box-shadow: 0 12px 30px rgba(120, 80, 45, 0.18);
}
.cardTitle { font-size: clamp(22px, 2.6vw, 30px); color: var(--garnet); }
.cardDesc { color: #6b4a3a; font-size: 0.98rem; line-height: 1.5; }
.cardArrow { color: var(--gold); font-size: 1.4rem; margin-top: 0.2rem; }

.candleSection {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 760px) {
  .candleSection { grid-template-columns: 1fr; text-align: center; }
}
.nica {
  text-align: center;
  font-style: italic;
  color: var(--garnet-bright);
  font-size: clamp(18px, 2.4vw, 26px);
  margin-top: 1rem;
}
