/* ==========================================================================
   Pages — Editorial Luxury
   ========================================================================== */

/* ---- Hero — Full bleed, cinematic, typographic ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  overflow: hidden;
}

.hero h1,
.hero h2,
.hero p {
  color: #F0E6D3;
}

.hero h1 {
  font-size: var(--text-7xl);
  font-weight: 300;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  margin-bottom: var(--space-md);
}

.hero p {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  opacity: 0.7;
  color: #D9CCBA;
}

.hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* Dark overlay so text is always readable over any hero photo */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, rgba(69,18,34,0.5) 0%, rgba(26,24,21,0.6) 100%);
  z-index: -1;
}

/* Fallback — rich burgundy gradient when no image */
.hero:not(:has(.hero__bg)) {
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(107, 29, 53, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(46, 11, 22, 0.5) 0%, transparent 60%),
    linear-gradient(170deg, #5C1629 0%, #4D1223 25%, #3D0E1B 50%, #2E0B16 75%, #1F0710 100%);
}

.hero:not(:has(.hero__bg))::after {
  display: none;
}

/* No pseudo-element bars on hero */
.hero::before {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-xl);
}

.hero__names {
  font-family: var(--font-script);
  font-size: var(--text-7xl);
  color: #F0E6D3;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero__date {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  opacity: 0.75;
}

.hero__cta {
  margin-top: var(--space-2xl);
}

/* Hero CTA — ghost button, thin */
.hero__cta.btn {
  border-color: rgba(240, 230, 211, 0.3);
  color: #F0E6D3;
  background: transparent;
  padding: 0.875rem 3rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
}

.hero__cta.btn:hover {
  background-color: rgba(240, 230, 211, 0.1);
  border-color: rgba(240, 230, 211, 0.6);
}

.hero__cta .btn {
  border-color: rgba(240, 230, 211, 0.3);
  color: #F0E6D3;
  background: transparent;
}

.hero__cta .btn:hover {
  background-color: rgba(240, 230, 211, 0.1);
  border-color: rgba(240, 230, 211, 0.6);
}

/* ---- Countdown — Clean, light, spaced ---- */
.countdown {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  margin: var(--space-2xl) 0;
}

.countdown__unit {
  text-align: center;
}

.countdown__value,
.countdown__number {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 400;
  color: #F0E6D3;
  display: block;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.countdown__label {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  letter-spacing: var(--tracking-ultra);
  text-transform: uppercase;
  color: rgba(217, 204, 186, 0.5);
}

.countdown__message,
.countdown__complete {
  font-family: var(--font-script);
  font-size: var(--text-3xl);
  color: #F0E6D3;
}

/* ---- Music Toggle ---- */
.music-toggle {
  position: fixed;
  bottom: var(--space-xl);
  left: var(--space-xl);
  width: 36px;
  height: 36px;
  background-color: var(--black);
  color: var(--cream);
  border: none;
  cursor: pointer;
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  transition: background-color var(--transition-fast);
}

.music-toggle:hover {
  background-color: var(--burgundy);
}

/* ---- Timeline — Thin line, burgundy dots, olive dates ---- */
.timeline {
  position: relative;
  padding: var(--space-3xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--olive-light), var(--olive-light), transparent);
  transform: translateX(-50%);
}

.timeline__item {
  position: relative;
  width: 45%;
  padding: var(--space-xl);
}

.timeline__item:nth-child(odd) { margin-left: 0; text-align: right; }
.timeline__item:nth-child(even) { margin-left: 55%; }

.timeline__dot {
  position: absolute;
  top: var(--space-xl);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--burgundy);
  border: 2px solid var(--cream);
}

.timeline__item:nth-child(odd) .timeline__dot { right: -5px; transform: translateX(50%); }
.timeline__item:nth-child(even) .timeline__dot { left: -5px; transform: translateX(-50%); }

.timeline__date {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  color: var(--olive);
  letter-spacing: var(--tracking-ultra);
  text-transform: uppercase;
}

.timeline__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--burgundy);
  margin: var(--space-xs) 0;
}

@media (max-width: 768px) {
  .timeline::before { left: 20px; }
  .timeline__item,
  .timeline__item:nth-child(even) {
    width: calc(100% - 50px);
    margin-left: 50px;
    text-align: left;
  }
  .timeline__dot,
  .timeline__item:nth-child(odd) .timeline__dot,
  .timeline__item:nth-child(even) .timeline__dot {
    left: -35px;
    right: auto;
    transform: none;
  }
}

/* ---- Photo Gallery ---- */
.gallery { columns: 3; column-gap: var(--space-md); }
.gallery__item {
  position: relative;
  break-inside: avoid;
  margin-bottom: var(--space-md);
  overflow: hidden;
}
.gallery__item img {
  width: 100%;
  display: block;
  transition: transform var(--transition-slow);
}
.gallery__item:hover img { transform: scale(1.02); }
.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg) var(--space-md);
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.gallery__item:hover .gallery__caption { opacity: 1; }
@media (max-width: 768px) { .gallery { columns: 2; } }
@media (max-width: 480px) { .gallery { columns: 1; } }

/* ---- RSVP ---- */
.rsvp-section {
  background-color: var(--warm-white);
  padding: var(--space-5xl) 0;
}

.rsvp-form {
  max-width: 560px;
  margin: 0 auto;
}

.rsvp-form fieldset {
  border: none;
  margin-bottom: var(--space-xl);
}

.address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.rsvp-form legend {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--burgundy);
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-md);
}

.rsvp-form__response label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-right: var(--space-xl);
  cursor: pointer;
}

.rsvp-confirmation {
  text-align: center;
  padding: var(--space-4xl);
}

.rsvp-confirmation__icon {
  font-size: var(--text-4xl);
  color: var(--olive);
  margin-bottom: var(--space-lg);
}

/* ---- FAQ ---- */
.faq-category {
  margin-bottom: var(--space-3xl);
}

.faq-category__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 300;
  color: var(--burgundy);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--linen);
}

/* ---- Explore ---- */
.explore-category {
  margin-bottom: var(--space-3xl);
}

.explore-category__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 300;
  color: var(--burgundy);
  margin-bottom: var(--space-lg);
}

.explore-item {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--linen);
}

.explore-item:last-child {
  border-bottom: none;
}

.explore-item__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--text);
  letter-spacing: var(--tracking-wide);
}

.explore-item__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
  line-height: var(--leading-normal);
}

/* ---- Registry ---- */
.registry-card {
  text-align: center;
  padding: var(--space-3xl) var(--space-2xl);
}

.registry-card__icon {
  display: none; /* Removed — no emoji icons */
}

/* ---- Story Carousel ---- */
.story-carousel {
  position: relative;
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  margin-bottom: var(--space-2xl);
  border-radius: 2px;
  background-color: var(--linen);
}

.story-carousel__track {
  display: flex;
  transition: transform 0.6s ease;
  width: 100%;
}

.story-carousel__slide {
  min-width: 100%;
  flex-shrink: 0;
}

.story-carousel__slide--active {
  /* no special positioning needed for slide mode */
}

.story-carousel__slide img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.story-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(253, 251, 247, 0.85);
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-carousel__btn:hover {
  background: var(--burgundy);
  color: var(--cream);
}

.story-carousel__btn--prev { left: var(--space-md); }
.story-carousel__btn--next { right: var(--space-md); }

.story-carousel__dots {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: 2;
}

.story-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(253, 251, 247, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast);
}

.story-carousel__dot--active {
  background: var(--cream);
}

/* ---- Page Header + Olive Ribbon ---- */
.page-header {
  background-color: var(--cream);
  color: var(--text);
  text-align: center;
  padding: calc(var(--nav-height) + var(--space-4xl)) var(--space-xl) var(--space-3xl);
  position: relative;
}

.page-header::before,
.page-header::after {
  display: none;
}

.page-header__title {
  font-family: var(--font-heading);
  font-size: var(--text-6xl);
  font-weight: 300;
  color: var(--burgundy);
  margin-bottom: var(--space-sm);
  letter-spacing: var(--tracking-tight);
}

.page-header__subtitle {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}


/* ==========================================================================
   Travel Planner — Interactive arrival recommender
   ========================================================================== */

.tp {
  margin-bottom: var(--space-4xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid var(--linen);
}

.tp__intro {
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
}

.tp-step {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-2xl) 0;
}

.tp-step__label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-ultra);
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  display: block;
}

/* ---- Role Cards ---- */
.tp-roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.tp-role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background-color: var(--white);
  border: 1px solid var(--linen);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tp-role-card:hover {
  border-color: var(--stone);
  background-color: var(--warm-white);
}

.tp-role-card--active,
.tp-role-card--active:hover {
  border-color: var(--burgundy);
  background-color: var(--burgundy-faint);
}

.tp-role-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.tp-role-card:has(input:focus-visible) {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
}

.tp-role-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--burgundy);
  margin-bottom: var(--space-xs);
}

.tp-role-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ---- Event Cards ---- */
.tp-events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.tp-event-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background-color: var(--white);
  border: 1px solid var(--linen);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.tp-event-card:hover {
  border-color: var(--stone);
  background-color: var(--warm-white);
}

.tp-event-card--active,
.tp-event-card--active:hover {
  border-color: var(--olive);
  background-color: var(--olive-faint);
}

.tp-event-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.tp-event-card:has(input:focus-visible) {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}

.tp-event-card__day {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-ultra);
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: var(--space-sm);
}

.tp-event-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.tp-event-card__badge {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--warm-gray);
}

/* ---- Result Panel ---- */
.tp-result {
  background-color: var(--warm-white);
  padding: var(--space-2xl);
  margin-top: var(--space-xl);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.5s ease, padding 0.4s ease, margin 0.4s ease;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
}

.tp-result--visible {
  opacity: 1;
  max-height: 600px;
  padding: var(--space-2xl);
  margin-top: var(--space-xl);
}

.tp-result__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.tp-result__icon {
  font-size: var(--text-2xl);
}

.tp-result__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--burgundy);
}

.tp-result__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.tp-result__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-lg);
  background-color: var(--white);
  border-left: 2px solid var(--olive);
}

.tp-result__card-label {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  letter-spacing: var(--tracking-ultra);
  text-transform: uppercase;
  color: var(--olive);
}

.tp-result__arrive-day,
.tp-result__depart-day {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--text);
}

.tp-result__arrive-note,
.tp-result__depart-note {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.tp-result__summary {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--linen);
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .tp-roles,
  .tp-events {
    grid-template-columns: 1fr;
  }
  .tp-result__grid {
    grid-template-columns: 1fr;
  }
}
