/* =============================================================
   HOME PAGE — Alex & Graeme Wedding
   ============================================================= */

/* =============================================
   HERO
   ============================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000000;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-height) + 2rem) 2rem 5rem;
}


/* Warm cream overlay + corner flourishes — sits above carousel, below content */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(62,0,8,0.08) 0%, transparent 35%),
    radial-gradient(circle at bottom right, rgba(62,0,8,0.08) 0%, transparent 35%),
    linear-gradient(rgba(247, 242, 231, 0.62), rgba(247, 242, 231, 0.62));
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-monogram {
  width: 120px;
  height: auto;
  margin-bottom: 0.75rem;
  opacity: 0.82;
}

.couple-names {
  font-family: var(--font-script);
  font-size: clamp(3.75rem, 9vw, 7.5rem);
  font-weight: normal;
  color: var(--charcoal);
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0.02em;
}

.wedding-date {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.wedding-venue {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--wine);
  margin-bottom: 3rem;
}

/* =============================================
   COUNTDOWN
   ============================================= */

.countdown {
  display: flex;
  align-items: flex-start;
  border: 1px solid rgba(62, 0, 8, 0.14);
  background: rgba(255, 252, 245, 0.6);
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem;
}

.countdown-item + .countdown-item {
  border-left: 1px solid rgba(62, 0, 8, 0.14);
}

.countdown-number {
  font-family: var(--font-body);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--burgundy);
  line-height: 1;
  letter-spacing: -0.02em;
  min-width: 2.25ch;
  text-align: center;
}

.countdown-label {
  font-family: var(--font-sc);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.55;
  margin-top: 0.5rem;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--burgundy);
  opacity: 0.4;
  transition: opacity 0.25s;
  animation: hero-bounce 2.5s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  z-index: 2;
}

.hero-scroll:hover {
  opacity: 0.8;
}

.scroll-label {
  font-family: var(--font-sc);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.5;
}

@keyframes hero-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* =============================================
   PHOTO BANNER
   ============================================= */

.photo-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 72%;
  overflow: hidden;
  z-index: 0;
}

.photo-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to bottom, transparent, #000000);
  pointer-events: none;
}

.banner-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: banner-scroll 40s linear infinite;
  will-change: transform;
}

@keyframes banner-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.banner-track img {
  height: 100%;
  width: auto;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  margin-right: 8px;
  display: block;
}

/* =============================================
   VENUE IMAGE
   ============================================= */

.venue-image {
  text-align: center;
  padding: 2.5rem 0 0.75rem;
}

.venue-image img {
  width: 30%;
  min-width: 240px;
  height: auto;
  display: inline-block;
}

/* =============================================
   STAY IN TOUCH CTA
   ============================================= */

.sit-cta {
  padding: calc(var(--section-pad) * 1.1) 0;
  background-color: var(--warm-cream);
  text-align: center;
  position: relative;
}

.sit-cta::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(62, 0, 8, 0.08);
  pointer-events: none;
}

.sit-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: normal;
  color: var(--charcoal);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0;
  line-height: 1.15;
}

.sit-cta p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
  opacity: 0.7;
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.85;
}

/* =============================================
   OUR STORY TEASER
   ============================================= */

.story-teaser {
  padding: var(--section-pad) 0;
  background-color: var(--ivory);
}

.story-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.story-intro {
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--charcoal);
  font-style: italic;
  margin-bottom: 2.75rem;
}

.story-intro em {
  font-style: normal;
  color: var(--burgundy);
}

/* =============================================
   SCHEDULE PREVIEW
   ============================================= */

.schedule-preview {
  padding: var(--section-pad) 0;
  background-color: var(--warm-cream);
  text-align: center;
  position: relative;
}

.schedule-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 840px;
  margin: 0 auto 3.5rem;
}

.schedule-card {
  background-color: var(--ivory);
  padding: 3rem 2rem 2.75rem;
  text-align: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  position: relative;
}

.schedule-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.07);
  z-index: 1;
}

.schedule-card-icon {
  font-size: 0.85rem;
  color: var(--burgundy);
  opacity: 0.45;
  margin-bottom: 1.5rem;
  letter-spacing: 0.35em;
}

.schedule-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.schedule-card-time {
  font-family: var(--font-sc);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1rem;
  display: block;
}

.schedule-card p {
  font-size: 0.95rem;
  color: var(--charcoal);
  opacity: 0.65;
  line-height: 1.65;
  font-style: italic;
}

/* =============================================
   RSVP CTA
   ============================================= */

.rsvp-cta {
  padding: calc(var(--section-pad) * 1.2) 0;
  background-color: var(--burgundy);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rsvp-cta::before {
  content: '';
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 252, 245, 0.12);
  pointer-events: none;
}

.rsvp-monogram {
  width: 72px;
  margin: 0 auto 2rem;
  filter: brightness(0) invert(1);
  opacity: 0.18;
}

.rsvp-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: normal;
  color: var(--ivory);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.rsvp-cta p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dusty-rose);
  max-width: 460px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.rsvp-deadline {
  font-family: var(--font-sc);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 252, 245, 0.45);
  margin-top: 1.5rem;
  display: block;
}

/* =============================================
   RESPONSIVE — HOME
   ============================================= */

@media (max-width: 768px) {
  /* photo-banner fills the hero section — no fixed height needed */

  .hero-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 960px) {
  .schedule-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 2px;
  }

  .countdown-item {
    padding: 1.25rem 1.5rem;
  }

  /* Mobile nav dropdown has a dark background regardless of scroll state,
     so links must stay light even before .site-nav gets the .scrolled class. */
  .nav-menu li:not(.nav-rsvp) a {
    color: var(--ivory);
  }

  .nav-menu li:not(.nav-rsvp) a:hover,
  .nav-menu li:not(.nav-rsvp) a.active {
    color: var(--dusty-rose);
  }
}

@media (max-width: 600px) {
  .hero-monogram {
    width: 90px;
    margin-bottom: 1.5rem;
  }

  .countdown-item {
    padding: 1rem 0.875rem;
  }

  .story-intro {
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .countdown-item {
    padding: 0.875rem 0.625rem;
  }
}
