/* ═══════════════════════════════════════════════════════════
   THELIFE/STYLE.CSS — Page-specific styles for The Life
   Shared styles (reset, vars, cursor, nav, reveal, keyframes,
   invitation, footer, grain, responsive nav/footer) are in
   ../common.css
   ═══════════════════════════════════════════════════════════ */

/* ─── 1. HERO ─── */
@keyframes heroKenBurns {
  0%   { transform: scale(1.0); }
  100% { transform: scale(1.12); }
}
.hero {
  height: 100vh; min-height: 680px; position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
}
.hero-image {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('../assets/Cam_DJI_0418Final.webp');
  background-size: cover; background-position: center;
  animation: heroKenBurns 25s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(4,9,15,0.2) 0%, rgba(4,9,15,0.0) 25%,
    rgba(4,9,15,0.45) 65%, rgba(4,9,15,0.97) 100%);
}
.hero-multiply {
  position: absolute; inset: 0; background: #01152e;
  opacity: 0.20; mix-blend-mode: multiply; z-index: 1;
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding-bottom: 9vh;
}
.hero-eyebrow {
  font-family: var(--font-sans); font-weight: 400;
  font-size: 0.78rem; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.8rem; opacity: 0;
  animation: fadeUp 1s ease 0.7s forwards;
}
.hero-headline {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(2rem, 3.8vw, 4rem); line-height: 1.02;
  color: #ffffff; letter-spacing: -0.01em;
  opacity: 0; animation: fadeUp 1.2s ease 1s forwards;
}
.hero-headline em { font-style: italic; color: #ffffff; display: block; }
.hero-body {
  font-family: var(--font-sans); font-weight: 300;
  font-size: 0.78rem; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55); line-height: 1.9;
  margin-top: 1.8rem; opacity: 0;
  animation: fadeUp 1s ease 1.5s forwards;
  max-width: 420px; margin-left: auto; margin-right: auto;
}
.hero-line {
  width: 1px; height: 0;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  margin: 1.8rem auto 0;
  animation: growLine 1s ease 2.2s forwards;
}

/* ─── 2. ICON GRID (The Amenities) ─── */
.amenities-grid {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--navy);
}
.amenities-grid-bg {
  position: absolute; inset: 0;
  background-image: url('../assets/auditorium.webp');
  background-size: cover; background-position: center;
  opacity: 0.07; filter: saturate(0.15) brightness(0.4);
}
.amenities-grid-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(4,9,15,0.2) 0%, rgba(4,9,15,0.96) 75%);
}
.amenities-grid-rule {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(200,164,90,0.2), transparent);
}
.amenities-grid-content {
  position: relative; z-index: 2; text-align: center;
  padding: 6rem 3rem; max-width: 1100px; width: 100%;
}
.amenities-grid-eyebrow {
  font-family: var(--font-sans); font-weight: 400;
  font-size: 0.78rem; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--gold-dim);
  margin-bottom: 4.5rem;
}
.amenities-list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0 2rem; margin-bottom: 4.5rem; width: 100%;
}
.amenity-col {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 0.8rem;
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.4,0,0.2,1),
              transform 0.85s cubic-bezier(0.4,0,0.2,1);
}
.amenity-col.col-visible { opacity: 1; transform: translateY(0); }
.amenity-col:nth-child(1) { transition-delay: 0s; }
.amenity-col:nth-child(2) { transition-delay: 0.15s; }
.amenity-col:nth-child(3) { transition-delay: 0.3s; }
.amenity-col:nth-child(4) { transition-delay: 0.45s; }
.amenity-col + .amenity-col { border-left: 1px solid rgba(200,164,90,0.1); }
.amenity-icon { width: 36px; height: 36px; margin-bottom: 1.8rem; opacity: 0.75; }
.amenity-icon svg { width: 100%; height: 100%; stroke: var(--gold); }
.amenity-category {
  font-family: var(--font-sans); font-weight: 400;
  font-size: 0.62rem; letter-spacing: 0.38em;
  text-transform: uppercase; color: var(--gold-dim);
  margin-bottom: 1rem;
}
.amenity-descriptor {
  font-family: var(--font-serif); font-weight: 300;
  font-style: italic; font-size: 22px;
  color: var(--gold-light); line-height: 1.15;
}

/* ─── SCROLL ICON (page-specific position) ─── */
.scroll-icon--grid {
  position: absolute; bottom: 3.2rem; left: 50%;
  margin-left: -25.5px; z-index: 3;
}

/* ─── 3–6. AMENITY SECTIONS (split layout) ─── */
.amenity-section {
  min-height: 100vh; display: grid;
  grid-template-columns: 55fr 45fr;
  position: relative; overflow: hidden; background: var(--navy);
}
.amenity-section::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(200,164,90,0.15), transparent);
}
.amenity-section--reverse { grid-template-columns: 45fr 55fr; }
.amenity-section--reverse .amenity-section-image { order: 2; }
.amenity-section--reverse .amenity-section-text { order: 1; }
.amenity-section--reverse .amenity-section-image-overlay {
  background: linear-gradient(to left, rgba(4,9,15,0.0) 20%, rgba(4,9,15,0.3) 60%, rgba(4,9,15,0.7) 100%);
}

.amenity-section-image {
  position: relative; overflow: hidden; min-height: 600px;
}
.amenity-section-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(0.85) saturate(0.9);
  transform-origin: center center;
  animation: kenBurns 22s ease-in-out infinite alternate;
}
.amenity-section-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(4,9,15,0.0) 20%, rgba(4,9,15,0.3) 60%, rgba(4,9,15,0.7) 100%);
}

.amenity-section-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 5rem; position: relative; z-index: 2;
}
.amenity-section-eyebrow {
  font-family: var(--font-sans); font-weight: 400;
  font-size: 0.78rem; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.6rem;
}
.amenity-section-title {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(2rem, 3vw, 3.2rem); line-height: 1.08;
  color: #ffffff; margin-bottom: 0.8rem;
}
.amenity-section-title em { font-style: italic; color: var(--gold-light); }
.amenity-section-subtitle {
  font-family: var(--font-serif); font-weight: 300;
  font-style: italic; font-size: 1.1rem;
  color: rgba(255,255,255,0.8); line-height: 1.6;
  margin-bottom: 2.4rem; max-width: 380px;
}
.amenity-section-rule {
  width: 28px; height: 1px;
  background: var(--gold-dim); margin-bottom: 2.2rem; opacity: 0.6;
}
.amenity-bullets {
  list-style: none; padding: 0; margin: 0 0 0.8rem 0;
}
.amenity-bullets li {
  font-family: var(--font-sans); font-weight: 300;
  font-size: 14px; line-height: 2.4;
  color: rgba(255,255,255,0.62);
  padding-left: 1.2rem; position: relative;
}
.amenity-bullets li::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold-dim); transform: translateY(-50%);
}
.amenity-bullets .more {
  color: var(--gold-dim); font-style: italic;
  font-family: var(--font-serif); font-size: 15px;
}
.amenity-bullets .more::before { display: none; }

/* ─── STATEMENT (between Sanctuary and Invitation) ─── */
.statement {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 7rem 2rem;
  background: var(--navy);
  overflow: hidden;
}
.statement-bg {
  position: absolute; inset: 0;
  background-image: url('../assets/Cam_DJI_0680Final_clouds.webp');
  background-size: cover; background-position: center;
  opacity: 0.06; filter: saturate(0.15) brightness(0.4);
}
.statement-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(4,9,15,0.35) 0%, rgba(4,9,15,0.96) 75%);
}
.statement-rule-top,
.statement-rule-bottom {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(200,164,90,0.2), transparent);
}
.statement-rule-top    { top: 0; }
.statement-rule-bottom { bottom: 0; }
.statement-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 920px; width: 100%;
}
.statement-eyebrow {
  font-family: var(--font-sans); font-weight: 400;
  font-size: 0.78rem; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 2rem;
}
.statement-quote {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(1.6rem, 3.2vw, 3rem);
  line-height: 1.2; color: #ffffff;
  letter-spacing: -0.005em;
}
.statement-quote em {
  font-style: italic; color: #ffffff; display: block;
}

/* ─── RESPONSIVE (page-specific) ─── */

/* TABLET LANDSCAPE — keep 4-col grid but tighter */
@media (max-width: 1024px) {
  .amenities-grid-content { padding: 5rem 2rem; }
  .amenities-list         { gap: 0 1.4rem; }
  .amenity-descriptor     { font-size: 18px; }
  .amenity-section-text   { padding: 5rem 3rem; }
  .statement              { padding: 5rem 2rem; }
}

/* TABLET PORTRAIT */
@media (max-width: 900px) {
  /* Hero */
  .hero { min-height: unset; height: 100svh; }
  .hero-content { padding-bottom: 7vh; }
  .hero-headline { font-size: clamp(1.9rem, 7.5vw, 3rem); }

  /* Amenities icon grid: 4 cols → 2 cols */
  .amenities-grid { min-height: 90vh; min-height: 90svh; }
  .amenities-grid-content { padding: 4.5rem 1.5rem; }
  .amenities-list { grid-template-columns: repeat(2, 1fr); gap: 3rem 0; margin-bottom: 3rem; }
  .amenity-col + .amenity-col { border-left: none; }
  .amenity-col:nth-child(3),
  .amenity-col:nth-child(4) {
    border-top: 1px solid rgba(200,164,90,0.1);
    padding-top: 3rem;
  }
  .amenity-icon { width: 32px; height: 32px; margin-bottom: 1.4rem; }
  .amenity-descriptor { font-size: 18px; }
  .scroll-icon--grid { bottom: 2rem; }

  /* Amenity sections — image always on top, text below */
  .amenity-section,
  .amenity-section--reverse { grid-template-columns: 1fr; }
  .amenity-section-image { height: 58vw; min-height: 260px; order: 0 !important; }
  .amenity-section-text  { padding: 2.8rem 1.6rem 4.5rem; order: 1 !important; }
  .amenity-section-image-overlay {
    background: linear-gradient(to bottom, transparent 40%, var(--navy) 100%) !important;
  }
  .amenity-section-title    { font-size: clamp(1.7rem, 6.5vw, 2.4rem); }
  .amenity-section-subtitle { font-size: 0.95rem; max-width: 100%; }
  .amenity-bullets li       { font-size: 13.5px; line-height: 2.2; }

  /* Statement */
  .statement { padding: 4.5rem 1.5rem; }
  .statement-eyebrow { margin-bottom: 1.6rem; font-size: 0.7rem; letter-spacing: 0.36em; }
  .statement-quote { font-size: clamp(1.4rem, 6vw, 2.2rem); }
}

/* SMALL PHONE */
@media (max-width: 540px) {
  .hero-content { padding-bottom: 5vh; }
  .amenities-grid-content { padding: 3.6rem 1rem; }
  .amenities-list { grid-template-columns: 1fr; gap: 2.4rem 0; }
  .amenity-col + .amenity-col {
    border-left: none;
    border-top: 1px solid rgba(200,164,90,0.1);
    padding-top: 2.4rem;
  }
  .amenities-grid-eyebrow { margin-bottom: 3rem; font-size: 0.7rem; }
  .amenity-section-text   { padding: 2.2rem 1.2rem 3.8rem; }
  .amenity-bullets li     { font-size: 13px; padding-left: 1rem; }
  .statement              { padding: 3.6rem 1.2rem; }
  .statement-quote        { font-size: clamp(1.3rem, 6vw, 1.9rem); line-height: 1.25; }
}
