/* ============================================================
   COMPONENTS
   ============================================================ */

/* ---- Nav ---- */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(253, 250, 245, 0.88);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid rgba(230, 216, 196, 0.4);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.site-header.scrolled {
  background: rgba(253, 250, 245, 0.95);
  border-bottom-color: var(--linen-3);
  box-shadow: 0 2px 20px rgba(60, 40, 20, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin-inline: auto;
  padding: 1rem 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  width: 36px;
  height: 36px;
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-register {
  font-family: 'Lora', serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--bold-terracotta);
  padding: 0.5rem 1.3rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav-register:hover {
  background: var(--bold-terracotta-dk);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(180, 80, 60, 0.2);
}

.nav-register[aria-current="page"] {
  background: var(--bold-terracotta-dk);
}

.nav-link {
  font-family: 'Lora', serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bold-olive);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 100px;
  border: 1px solid rgba(140, 120, 40, 0.3);
  letter-spacing: 0.02em;
  transition: all 0.25s;
}

.nav-link:hover {
  background: rgba(140, 120, 40, 0.08);
  border-color: var(--bold-olive);
  color: var(--bold-olive-dk);
}

.nav-link[aria-current="page"] {
  background: rgba(140, 120, 40, 0.1);
  border-color: var(--bold-olive);
  color: var(--bold-olive-dk);
}

/* ---- Dark hero nav variant (homepage) ---- */

body.dark-hero .site-header {
  background: rgba(60, 30, 40, 0.15);
  border-bottom-color: rgba(253, 250, 245, 0.06);
}

body.dark-hero .site-header.scrolled {
  background: rgba(253, 250, 245, 0.95);
  border-bottom-color: var(--linen-3);
}

body.dark-hero .nav-link {
  color: rgba(253, 250, 245, 0.8);
  border-color: rgba(253, 250, 245, 0.2);
}

body.dark-hero .nav-link:hover {
  background: rgba(253, 250, 245, 0.12);
  border-color: rgba(253, 250, 245, 0.4);
  color: #fff;
}

body.dark-hero .site-header.scrolled .nav-link {
  color: var(--bold-olive);
  border-color: rgba(140, 120, 40, 0.3);
}

body.dark-hero .site-header.scrolled .nav-link:hover {
  background: rgba(140, 120, 40, 0.08);
  border-color: var(--bold-olive);
  color: var(--bold-olive-dk);
}

@media (max-width: 440px) {
  .nav-link--recap { display: none; }
}

/* ---- Hero ---- */

.hero {
  min-height: 100svh;
  padding-top: 60px;
  position: relative;
  background: linear-gradient(150deg, #783C50 0%, #5c2e3e 30%, #46283a 55%, #3C2814 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Gradient overlay — readable text on left, tree visible on right */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(55, 25, 35, 0.82) 0%,
    rgba(55, 25, 35, 0.55) 30%,
    rgba(55, 25, 35, 0.15) 55%,
    transparent 75%);
  z-index: 1;
  pointer-events: none;
}

.hero-tree {
  position: absolute;
  top: -8%;
  right: -10%;
  bottom: -8%;
  width: 80%;
  z-index: 0;
  pointer-events: none;
}

.hero-tree img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center right;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 4rem 2rem 4rem 6%;
  max-width: 680px;
  width: 100%;
  min-height: calc(100svh - 60px);
  justify-content: center;
}

.hero-title {
  font-family: 'BioRhyme', serif;
  font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.92;
  color: var(--linen-0);
  display: flex;
  flex-direction: column;
  margin-bottom: 0.6rem;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.15);
}

.hero-year {
  font-family: 'BioRhyme', serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  color: var(--soft-honey-light);
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
}

.hero-dates {
  font-family: 'BioRhyme', serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  color: var(--soft-honey-light);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.date-label {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.5em;
  color: var(--soft-honey-mid);
  vertical-align: middle;
  letter-spacing: 0.04em;
}

.date-sep {
  font-weight: 400;
  color: rgba(253, 250, 245, 0.35);
  font-size: 0.7em;
}

.hero-location {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: rgba(253, 250, 245, 0.55);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.hero-email-link {
  font-family: 'Lora', serif;
  font-size: 0.875rem;
  color: var(--soft-honey-mid);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 217, 168, 0.3);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.hero-email-link:hover {
  color: var(--soft-honey-light);
  border-color: var(--soft-honey-light);
}

@media (max-width: 680px) {
  .hero {
    justify-content: center;
  }
  .hero::before {
    background: radial-gradient(
      ellipse at center 40%,
      rgba(55, 25, 35, 0.82) 0%,
      rgba(55, 25, 35, 0.5) 50%,
      rgba(55, 25, 35, 0.25) 100%);
  }
  .hero-tree {
    width: 130%;
    right: -15%;
    top: -5%;
    bottom: -5%;
  }
  .hero-tree img {
    opacity: 0.3;
    object-position: center;
  }
  .hero-content {
    text-align: center;
    align-items: center;
    padding: 3rem 1.5rem;
  }
  .hero-actions {
    align-items: center;
  }
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  border-radius: 100px;
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--bold-terracotta);
  color: #fff;
  border-color: var(--bold-terracotta);
}

.btn-primary:hover {
  background: var(--bold-terracotta-dk);
  border-color: var(--bold-terracotta-dk);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(180, 80, 60, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--bold-brown);
  border-color: rgba(60, 40, 20, 0.2);
}

.btn-ghost:hover {
  border-color: var(--bold-brown);
  color: var(--bold-brown);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--bold-terracotta);
  outline-offset: 3px;
}

/* ---- Details section ---- */

.section-details {
  padding: 5rem 2rem;
  background:
    linear-gradient(160deg,
      rgba(140, 120, 40, 0.08) 0%,
      rgba(180, 80, 60, 0.06) 50%,
      rgba(120, 60, 80, 0.05) 100%),
    var(--linen-1);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin-inline: auto;
  align-items: start;
  margin-bottom: 1.5rem;
}

@media (max-width: 680px) {
  .details-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

/* Glass cards — macOS-inspired */
.glass-card {
  position: relative;
  background: rgba(253, 250, 245, 0.55);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 32px rgba(60, 40, 20, 0.1),
    0 2px 4px rgba(60, 40, 20, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 16px 48px rgba(60, 40, 20, 0.14),
    0 4px 8px rgba(60, 40, 20, 0.07);
}

.glass-card--featured {
  background: rgba(120, 60, 80, 0.07);
  border-color: rgba(120, 60, 80, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 8px 32px rgba(120, 60, 80, 0.12),
    0 2px 4px rgba(60, 40, 20, 0.05);
}

.glass-card--featured:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 16px 48px rgba(120, 60, 80, 0.16),
    0 4px 8px rgba(60, 40, 20, 0.07);
}

.card-heading {
  font-family: 'BioRhyme', serif;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bold-burgundy);
  margin-bottom: 1.5rem;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.5rem;
}

/* Event list */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.event-list li {
  display: flex;
  flex-direction: column;
  gap: 0.07rem;
}

.event-day {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--bold-olive);
  letter-spacing: 0.05em;
}

.event-name {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--bold-brown);
}

.event-venue {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--bold-terracotta);
  text-decoration: none;
  transition: color 0.15s;
}

.event-venue:hover { color: var(--bold-terracotta-dk); text-decoration: underline; }

.event-meal {
  font-family: 'Lora', serif;
  font-size: 0.72rem;
  color: var(--reunion-text-muted);
  font-style: italic;
}

.card-note {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.72rem;
  color: var(--reunion-text-muted);
}

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.75rem;
}

.pricing-table td {
  font-family: 'Lora', serif;
  padding: 0.7rem 0;
  font-size: 1rem;
  border-bottom: 1px solid rgba(60, 40, 20, 0.07);
  color: var(--bold-brown);
}

.pricing-table td:last-child {
  text-align: right;
  font-family: 'BioRhyme', serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--bold-burgundy);
}

.pricing-table tr:last-child td { border-bottom: none; }

.card-contact {
  margin-top: 1.25rem;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--reunion-text-muted);
  line-height: 1.7;
}

.card-contact a { color: var(--bold-olive); }
.card-contact a:hover { color: var(--bold-olive-dk); }

/* ---- Hotel strip ---- */

.hotel-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  max-width: 900px;
  margin-inline: auto;
  background: rgba(253, 250, 245, 0.45);
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 1.1rem 1.75rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 4px 16px rgba(60, 40, 20, 0.08);
}

.hotel-strip-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
}

.hotel-strip-name {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--bold-brown);
}

.hotel-strip-detail {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--reunion-text-muted);
}

/* ---- 2025 Section ---- */

.section-2025 {
  padding: 5rem 0;
  background: var(--linen-0);
}

.reunion-2025-header {
  padding-inline: 2rem;
  margin-bottom: 2.5rem;
  max-width: 1080px;
  margin-inline: auto;
}

.section-label {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.78rem;
  color: var(--bold-olive);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-2025 h2 {
  font-family: 'BioRhyme', serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--bold-burgundy);
  margin-bottom: 0.75rem;
}

.reunion-2025-note {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--reunion-text-muted);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.committee-names {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.875rem;
  color: var(--bold-brown);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* Carousel */
.carousel {
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 2rem;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 calc(33.333% - 0.667rem);
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--linen-2);
  box-shadow: 0 4px 16px rgba(60, 40, 20, 0.1);
  transition: transform 0.3s ease;
}

.carousel-slide:hover {
  transform: scale(1.02);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 700px) { .carousel-slide { flex: 0 0 80%; } }
@media (max-width: 480px) { .carousel-slide { flex: 0 0 90%; } }

.carousel-controls {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--linen-3);
  background: rgba(253, 250, 245, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 1rem;
  color: var(--bold-brown);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.carousel-btn:hover {
  background: var(--bold-burgundy);
  border-color: var(--bold-burgundy);
  color: #fff;
  transform: scale(1.05);
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--bold-terracotta);
  outline-offset: 3px;
}

.gallery-link-note {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 2rem;
  margin-top: 2rem;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.875rem;
}

.gallery-link-note a {
  color: var(--bold-olive);
  border-bottom: 1px solid rgba(140, 120, 40, 0.35);
  padding-bottom: 1px;
}

.gallery-link-note a:hover {
  color: var(--bold-olive-dk);
  border-color: var(--bold-olive);
}

/* ---- Footer ---- */

.site-footer {
  background: var(--bold-brown);
  color: rgba(245, 237, 207, 0.6);
  padding: 3.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}

.footer-logo {
  font-family: 'BioRhyme', serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--soft-honey-light);
  letter-spacing: 0.04em;
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  font-family: 'Lora', serif;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(245, 237, 207, 0.55);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav a:hover { color: #fff; }

.footer-email a {
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--soft-peach-mid);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-email a:hover { color: #fff; }

.footer-secondary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: center;
}

.footer-secondary-nav a {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(245, 237, 207, 0.45);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-secondary-nav a:hover { color: #fff; }

.footer-copy {
  font-family: 'Lora', serif;
  font-size: 0.72rem;
  opacity: 0.45;
  letter-spacing: 0.04em;
}

/* ---- Stub pages ---- */

.stub-message {
  min-height: calc(100svh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(60px + 4rem) 2rem 4rem;
}

.stub-message h1 {
  font-family: 'BioRhyme', serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--bold-burgundy);
  margin-bottom: 1rem;
}

.stub-message p {
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: var(--reunion-text-muted);
  max-width: 360px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
