/* =========================================================
   MAIN — Hero, sections, gallery, about
   ========================================================= */

.body-content {
  background: var(--color-bg);
  border-top: none;
}

/* ---------- HERO ---------- */
#hero {
  position: relative;
  min-height: clamp(560px, 90vh, 820px);
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.85)),
    url("../images/stairs-image.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

/* Subtle film-grain shimmer */
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.04), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.03), transparent 50%);
  z-index: 0;
  pointer-events: none;
}

#hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  animation: fadeUp 1.2s var(--ease-out) both;
}

/* Hero typography */
#hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 300;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.01em;
  margin: 0 0 1.25rem;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

#hero h1 .accent {
  font-style: normal;
  font-weight: 500;
  display: inline-block;
}

#hero .eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 1.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

#hero h2 {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--color-text-soft);
  margin: 0 auto 2.5rem;
  max-width: 620px;
  line-height: 1.7;
}

/* Hero CTA */
.hero-button {
  display: inline-block;
  background-color: transparent;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0;
  text-decoration: none;
  transition: background-color var(--transition-base), color var(--transition-base),
    letter-spacing var(--transition-base);
}

.hero-button:hover {
  background-color: #fff;
  color: #000;
  letter-spacing: 0.38em;
}

.hero-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  animation: fadeIn 2s ease-out 1s both;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.5);
  animation: scrollBar 2.4s ease-in-out infinite;
}

@keyframes scrollBar {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- GALLERY SECTION (home) ---------- */
.gallery-section {
  padding: clamp(4rem, 10vw, 8rem) 1rem;
  background: var(--color-bg);
}

.gallery-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

/* ---------- FAMILY GALLERY (intro block on home) ---------- */
.family-gallery {
  max-width: 780px;
  margin: 0 auto 4rem;
  text-align: center;
  color: var(--color-text);
}

.family-gallery .eyebrow,
.about-me .eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.family-gallery h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--color-accent);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-out) 0.2s forwards;
}

.family-gallery h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-text-muted);
  margin: 1.5rem auto 0;
}

.family-gallery p {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: var(--color-text-soft);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-out) forwards;
}

.family-gallery p:nth-of-type(1) { animation-delay: 0.4s; }
.family-gallery p:nth-of-type(2) { animation-delay: 0.7s; }

/* ---------- PHOTO GRID (home featured) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-surface);
  aspect-ratio: 4 / 5;
  cursor: pointer;
  transition: transform var(--transition-slow);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* True black & white treatment to honor the section heading */
  filter: grayscale(100%) contrast(1.05) brightness(0.92);
  transition: transform 1.2s var(--ease-out), filter var(--transition-base);
}

.photo-card:hover img {
  transform: scale(1.06);
  filter: grayscale(100%) contrast(1.08) brightness(1.05);
}

.photo-card:hover::after {
  opacity: 1;
}

/* ---------- ABOUT ME ---------- */
.about-me {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) var(--gutter) 5rem;
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.85;
  text-align: center;
}

.about-me h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  font-style: italic;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-out) 0.2s forwards;
}

.about-me h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--color-text-muted);
  margin: 1.5rem auto 2.5rem;
}

.about-me p {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--color-text-soft);
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-out) forwards;
}

.about-me p:nth-of-type(1) { animation-delay: 0.4s; }
.about-me p:nth-of-type(2) { animation-delay: 0.7s; }
.about-me p:nth-of-type(3) { animation-delay: 1.0s; }
.about-me p:nth-of-type(4) { animation-delay: 1.3s; }

/* Signature line under about */
.signature {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--color-accent);
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.6s forwards;
}
