/* ══════════════════════════════════════════════
   INDEX PAGE — BOLD RICH STYLES
══════════════════════════════════════════════ */

/* ── HERO ── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
  background: var(--bg); padding: 7rem 1.5rem 4rem;
}
.hero-arch-frame {
  width: 100%; max-width: 500px; height: 55vh; min-height: 400px;
  padding: 8px; border: 1px solid rgba(30,21,16,.15);
  background: var(--bg);
  border-radius: 200px 200px 0 0;
  margin-bottom: 2rem; position: relative; z-index: 1;
}
.hero-arch-wrap {
  width: 100%; height: 100%; position: relative; overflow: hidden;
  border-radius: 192px 192px 0 0;
}
.hero-arch-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: var(--bg); opacity: 0.25;
  pointer-events: none; mix-blend-mode: lighten;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero.jpg');
  background-size: cover; background-position: center 20%;
  transform: scale(1.06);
  transition: transform 10s ease;
  will-change: transform;
}
.hero-bg.loaded { transform: scale(1); }

/* Centered content column */
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 clamp(1.5rem, 6vw, 5rem);
  width: 100%;
}

/* Decorative top eyebrow */
.hero-eyebrow {
  margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp .7s var(--ease) .3s forwards;
}
.hero-eyebrow-text {
  font-size: .6rem; font-weight: 400; letter-spacing: .4em;
  text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}

/* Single line name block */
.hero-name-block { margin-bottom: 3rem; width: 100%; }
.hero-name-single {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin: 0; clip-path: inset(0 100% 0 0); animation: slideReveal 1s var(--ease) forwards;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .hero-name-single {
    flex-direction: column;
    gap: 0;
  }
  .hero-name-part {
    font-size: clamp(3.5rem, 15vw, 5rem);
    line-height: 1;
  }
  .hero-amp {
    line-height: 1;
    margin: 0.2rem 0;
  }
}
.hero-name-part {
  font-family: var(--f-head); font-weight: 400;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1.1; color: var(--charcoal);
  letter-spacing: .02em; text-transform: uppercase;
}
.hero-name:nth-child(1) { animation-delay: .5s; }
.hero-name:nth-child(3) { animation-delay: 1s; }

/* Oversized decorative ampersand */
.hero-amp {
  font-family: var(--f-script); font-weight: 400;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  color: var(--rose-dark); margin: 0; line-height: 0.8;
}

@keyframes slideReveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* Decorative horizontal rule */
.hero-rule {
  display: none;
}

/* Date */
.hero-date {
  font-size: .65rem; font-weight: 400; letter-spacing: .3em;
  text-transform: uppercase; color: var(--muted);
  opacity: 0; animation: fadeUp .7s var(--ease) 1.4s forwards;
  margin: 1.5rem 0 2.5rem;
}

/* CTA buttons */
.hero-cta-group {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  opacity: 0; animation: fadeUp .7s var(--ease) 1.6s forwards;
}

/* Left/Right vertical decorative lines */
.hero-vline {
  display: none;
}

/* Corner ornaments */
.hero-corner {
  position: absolute; width: 40px; height: 40px; z-index: 2;
  opacity: 0; animation: fadeUp .6s var(--ease) 1s forwards;
}
.hero-corner-tl { top: clamp(5rem,10vh,8rem); left: clamp(1rem,4vw,4rem); border-top: 1px solid rgba(30,21,16,.2); border-left: 1px solid rgba(30,21,16,.2); }
.hero-corner-tr { top: clamp(5rem,10vh,8rem); right: clamp(1rem,4vw,4rem); border-top: 1px solid rgba(30,21,16,.2); border-right: 1px solid rgba(30,21,16,.2); }
.hero-corner-bl { bottom: clamp(2rem,6vh,5rem); left: clamp(1rem,4vw,4rem); border-bottom: 1px solid rgba(30,21,16,.2); border-left: 1px solid rgba(30,21,16,.2); }
.hero-corner-br { bottom: clamp(2rem,6vh,5rem); right: clamp(1rem,4vw,4rem); border-bottom: 1px solid rgba(30,21,16,.2); border-right: 1px solid rgba(30,21,16,.2); }

/* Scroll cue */
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .5rem;
  opacity: 0; animation: fadeUp .6s var(--ease) 2s forwards;
}
.hero-scroll span { font-size: .55rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, rgba(30,21,16,.3), transparent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:.5;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.1)} }

/* ── COUNTDOWN ── */
.countdown-bar {
  background: var(--champagne);
  padding: 3.5rem clamp(1.5rem,5vw,4rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  border-top: 1px solid rgba(30,21,16,.08);
  border-bottom: 1px solid rgba(30,21,16,.08);
}
.countdown-left {
  font-family: var(--f-script); font-size: clamp(2.5rem,5vw,3.5rem); color: var(--rose-dark);
  line-height: 1.1; margin: 0; padding-right: 2rem;
}
.countdown-left em { font-family: var(--f-head); font-style: italic; font-size: clamp(1.2rem,3vw,1.6rem); color: var(--charcoal); display: block; }
.countdown-units { display: flex; gap: 2rem; flex-wrap: wrap; }
.countdown-unit { text-align: center; }
.countdown-num {
  font-family: var(--f-head); font-size: clamp(2.8rem,6vw,4rem);
  font-weight: 400; line-height: 1; color: var(--charcoal);
}
.countdown-label { font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: .5rem; }

/* ── MARQUEE ── */
.marquee-wrap {
  background: var(--champagne); overflow: hidden; padding: 1.2rem 0;
  border-bottom: 1px solid rgba(30,21,16,.08); border-top: 1px solid rgba(30,21,16,.08);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  display: inline-flex; align-items: center; gap: 1.5rem;
  padding: 0 2rem; font-size: .68rem; font-weight: 400;
  letter-spacing: .25em; text-transform: uppercase; color: var(--charcoal);
  white-space: nowrap;
}
.marquee-sep { opacity: .5; font-size: .8rem; }

/* ── STORY — LIGHT SECTION ── */
.story-section {
  background: var(--bg);
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 90vh;
}
@media (max-width: 768px) { .story-section { grid-template-columns: 1fr; } }

.story-img-side {
  position: relative; overflow: hidden; min-height: 500px;
}
.story-img-side img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05); transition: transform 8s ease;
  filter: sepia(0.1);
}
.story-img-side:hover img { transform: scale(1); }
.story-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30,21,16,.05) 0%, transparent 60%);
}

.story-text-side {
  padding: clamp(3rem,8vw,7rem) clamp(2rem,5vw,5rem);
  display: flex; flex-direction: column; justify-content: center;
}
.story-big-quote {
  font-family: var(--f-head); font-style: italic;
  font-size: clamp(1.8rem,4vw,3rem); font-weight: 400;
  color: var(--charcoal); line-height: 1.35; margin: 1.5rem 0 2rem;
  position: relative;
}
.story-big-quote::before {
  content: '\201C';
  font-size: 8rem; color: var(--charcoal); opacity: .05;
  font-family: var(--f-head);
  position: absolute; top: -2rem; left: -1.5rem;
  line-height: 1; pointer-events: none;
}
.story-body { font-size: .93rem; line-height: 2; color: var(--muted); margin-bottom: 1.5rem; }
.story-sig { font-family: var(--f-script); font-size: 3rem; color: var(--rose-dark); margin-top: 2rem; line-height: 1.1; }

/* ── PHOTO CAROUSEL ── */
.carousel-section {
  background: var(--champagne); padding: clamp(4rem,8vw,7rem) 0;
  overflow: hidden; border-top: 1px solid rgba(30,21,16,.08); border-bottom: 1px solid rgba(30,21,16,.08);
}
.carousel-header { text-align: center; padding: 0 2rem; margin-bottom: 3rem; }
.carousel-track-wrap { position: relative; overflow: hidden; }
.carousel-track {
  display: flex; gap: 1.5rem;
  padding: 0 clamp(1.5rem,5vw,4rem);
  transition: transform .7s var(--ease);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 clamp(280px, 42vw, 520px);
  background: var(--cream); border: 1px solid rgba(30,21,16,.1);
  overflow: hidden; padding: 6px;
  position: relative;
  transition: transform .4s var(--ease);
}
.carousel-slide img {
  width: 100%; height: 420px; object-fit: cover;
  display: block; filter: sepia(0.05);
  transition: transform .6s var(--ease);
}
.carousel-slide:hover { transform: translateY(-6px); }
.carousel-slide:hover img { transform: scale(1.02); }
.carousel-slide-cap {
  padding: 1.5rem 1rem;
  background: var(--cream);
  font-family: var(--f-body); font-weight: 400;
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--charcoal); text-align: center;
}
.carousel-nav {
  display: flex; justify-content: center; align-items: center;
  gap: 1rem; margin-top: 2.5rem;
}
.carousel-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid rgba(194,145,154,.5);
  background: transparent; color: var(--rose); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s var(--ease);
}
.carousel-btn:hover { background: var(--rose); color: var(--cream); border-color: var(--rose); transform: scale(1.1); }
.carousel-dots { display: flex; gap: .6rem; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(194,145,154,.3); cursor: pointer;
  transition: all .3s var(--ease);
}
.carousel-dot.active { background: var(--rose); transform: scale(1.3); }

/* ── EVENTS — LIGHT STATIONERY CARDS ── */
.events-section { background: var(--champagne); padding: clamp(4rem,8vw,7rem) clamp(1.5rem,5vw,4rem); }
.events-header { text-align: center; margin-bottom: 4rem; }
.events-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; max-width: 1000px; margin: 0 auto;
}
@media (max-width: 640px) { .events-grid { grid-template-columns: 1fr; } }

.event-card {
  position: relative; overflow: hidden;
  min-height: 480px; display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--cream);
  border: 1px solid rgba(30,21,16,.1);
  padding: 8px;
}
.event-card-bg {
  position: absolute; top: 8px; left: 8px; right: 8px; bottom: 8px; background-size: cover; background-position: center;
  transition: transform .6s var(--ease);
  filter: sepia(0.05);
}
.event-card:hover .event-card-bg { transform: scale(1.03); }
.event-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(250,245,239,1) 0%, rgba(250,245,239,0.95) 50%, rgba(250,245,239,0.7) 100%);
}
.event-card-body {
  position: relative; z-index: 1; padding: 2.5rem 1.5rem; text-align: center;
  transform: translateY(10px); transition: transform .4s var(--ease);
}
.event-card:hover .event-card-body { transform: translateY(0); }
.event-type-tag {
  font-family: var(--f-script); font-size: 1.8rem; line-height: 1;
  color: var(--rose-dark);
  margin-bottom: .4rem; display: block;
}
.event-name {
  font-family: var(--f-head); font-size: clamp(2rem,5vw,3rem);
  font-weight: 400; color: var(--charcoal); line-height: 1.1;
  margin-bottom: 1.5rem; text-transform: uppercase;
}
.event-details { display: flex; flex-direction: column; gap: .7rem; align-items: center; }
.event-row { display: flex; align-items: center; gap: .8rem; font-size: .83rem; color: var(--muted); }
.event-row svg { flex-shrink: 0; color: var(--charcoal); opacity: 0.5; }
.event-row strong { color: var(--charcoal); margin-right: .2rem; }
.event-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.5rem; padding: .8rem 1.5rem;
  border: 1px solid var(--rose);
  font-size: .75rem; font-weight: 500; letter-spacing: .15em;
  text-transform: uppercase; color: var(--cream);
  background: var(--rose); transition: all .3s var(--ease);
}
.event-badge:hover { background: var(--bg); color: var(--rose); }

/* Timeline strip */
.timeline-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin: 3rem auto 0; max-width: 600px;
  border: 1px solid rgba(30,21,16,.1);
  border-radius: 0; overflow: hidden;
}
.t-node { flex: 1; padding: 1.2rem 1rem; text-align: center; border-right: 1px solid rgba(30,21,16,.08); }
.t-node:last-child { border-right: none; }
.t-label { font-size: .55rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.t-time { font-family: var(--f-head); font-size: 1.6rem; color: var(--charcoal); margin-top: .2rem; }

/* ── RSVP ── */
.rsvp-section {
  background: var(--bg);
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}
@media (max-width: 768px) { .rsvp-section { grid-template-columns: 1fr; } }

.rsvp-img-side {
  position: relative; overflow: hidden; min-height: 400px; padding: 2rem 0 2rem 2rem;
}
@media (max-width: 768px) { .rsvp-img-side { padding: 2rem 2rem 0 2rem; } }
.rsvp-img-side img { width: 100%; height: 100%; object-fit: cover; border: 1px solid rgba(30,21,16,.1); padding: 6px; background: var(--cream); filter: sepia(0.05); }

.rsvp-form-side {
  padding: clamp(3rem,8vw,7rem) clamp(2rem,5vw,5rem);
  display: flex; flex-direction: column; justify-content: center;
}
.rsvp-title {
  font-family: var(--f-head); font-size: clamp(2.5rem,6vw,4.5rem);
  font-weight: 400; line-height: 1.05; color: var(--charcoal);
  margin: 1rem 0 .5rem; text-align: center;
}
.rsvp-sub { font-size: .85rem; color: var(--muted); line-height: 1.8; margin-bottom: 2.5rem; text-align: center; }

/* Form fields */
.field-group { margin-bottom: 1.5rem; position: relative; }
.field-label {
  display: block; font-size: .65rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .65rem;
}
.field-input {
  width: 100%; padding: 1rem 1.2rem;
  background: transparent; border: none; border-bottom: 1.5px solid rgba(30,21,16,.2);
  font-family: var(--f-body); font-size: .95rem; color: var(--charcoal);
  transition: border-color .2s;
  min-height: 54px; border-radius: 0;
  -webkit-appearance: none;
}
.field-input:focus {
  outline: none; border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(194,145,154,.1);
}
.field-input::placeholder { color: rgba(122,111,105,.5); font-style: italic; }
.field-input.err { border-color: #c0392b; animation: shake .4s ease; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
.field-error { font-size: .72rem; color: #c0392b; margin-top: .4rem; display: none; }
.field-error.show { display: block; }

/* Attendance toggle */
.toggle-group { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid rgba(30,21,16,.2); border-radius: 0; overflow: hidden; }
.toggle-opt { position: relative; }
.toggle-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-opt label {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1.1rem; font-size: .65rem; font-weight: 400;
  letter-spacing: .15em; text-transform: uppercase; color: var(--muted);
  cursor: pointer; transition: all .3s var(--ease);
}
.toggle-opt label svg { opacity: .4; transition: transform .3s, opacity .3s; }
.toggle-opt input:checked + label {
  background: var(--charcoal); color: var(--cream);
}
.toggle-opt input:checked + label svg { opacity: 1; color: var(--cream); transform: scale(1.1); }
.toggle-opt:first-child { border-right: 1px solid rgba(30,21,16,.2); }

/* Submit btn */
#btn-submit { width: 100%; justify-content: center; margin-top: .5rem; }
.spinner {
  display: none; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Success state */
.rsvp-success {
  position: absolute; inset: 0; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 2rem; opacity: 0; pointer-events: none; transition: opacity .6s var(--ease);
  z-index: 10;
}
.rsvp-success.show { opacity: 1; pointer-events: auto; }
.success-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(30,21,16,.05); color: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2rem;
  animation: scalePop .6s var(--ease) forwards;
}
@keyframes scalePop { 0%{transform:scale(0)} 70%{transform:scale(1.1)} 100%{transform:scale(1)} }
.rsvp-success h3 {
  font-family: var(--f-head); font-size: 2.8rem; font-weight: 400;
  color: var(--charcoal); margin-bottom: 1rem;
}
.rsvp-success p { font-size: .95rem; color: var(--muted); line-height: 1.8; }

/* ── GALLERY TEASER ── */
.gallery-teaser {
  position: relative; overflow: hidden;
  background: var(--champagne);
  padding: clamp(4rem,8vw,7rem) clamp(1.5rem,5vw,4rem);
  border-top: 1px solid rgba(30,21,16,.08);
}
.gallery-teaser-inner {
  position: relative; z-index: 1;
  text-align: center; max-width: 700px; margin: 0 auto;
}
.gallery-teaser-title {
  font-family: var(--f-head);
  font-size: clamp(2.5rem,7vw,5rem);
  font-weight: 400; color: var(--charcoal); line-height: 1.1;
  margin: 1rem 0 1.5rem;
}
.gallery-teaser-sub { font-size: .9rem; color: var(--muted); line-height: 1.9; margin-bottom: 2.5rem; }
