/* ═══════════════════════════════════════════════
   Harry & Eleanor — Wedding Website
   Style: Vintage Editorial — Enhanced Edition
   ═══════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ivory: #F5F0E8;
  --cream: #EDE7DB;
  --warm-white: #FAF8F4;
  --charcoal: #2C2C2C;
  --soft-black: #1A1A1A;
  --dusty-sage: #8B9E7E;
  --sage-light: #C2CEBC;
  --champagne: #C9A96E;
  --champagne-light: #E3D5B8;
  --champagne-dark: #A38A4E;
  --taupe: #A89B8C;
  --rose-dust: #C4A99A;
  --linen: #F0EBE3;

  /* NEW — high-contrast label color for small uppercase text on light backgrounds */
  --label: #6B5B4A;
  --label-light: #8A7968;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Crimson Pro', Georgia, serif;
  background: var(--ivory);
  color: var(--charcoal);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}


/* ═══ LOADING SCREEN ═══ */
.loading-screen {
  position: fixed; inset: 0;
  background: var(--ivory);
  z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-monogram { opacity: 0; animation: loadFadeIn 1.2s ease 0.2s forwards; }
.loading-monogram img { height: 120px; width: auto; }
.loading-line {
  width: 0; height: 1px;
  background: var(--champagne-dark);
  margin-top: 2rem;
  animation: loadLine 1.2s ease 0.8s forwards;
}
.loading-date {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400; font-size: 0.7rem;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--label); margin-top: 1.5rem;
  opacity: 0; animation: loadFadeIn 0.8s ease 1.4s forwards;
}

@keyframes loadFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes loadLine { from { width: 0; } to { width: 80px; } }


/* ═══ NAVIGATION ═══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(44, 44, 44, 0.08);
  transition: all 0.4s ease;
}
nav.scrolled { background: rgba(245, 240, 232, 0.97); box-shadow: 0 2px 40px rgba(0,0,0,0.06); }

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  padding: 0 2rem; height: 72px; position: relative;
}
.nav-monogram { position: absolute; left: 2rem; display: flex; align-items: center; text-decoration: none; }
.nav-monogram img { height: 40px; width: auto; }

.nav-links { display: flex; gap: 0.2rem; list-style: none; }
.nav-links li a {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--charcoal); text-decoration: none;
  padding: 0.5rem 1rem; position: relative;
  cursor: pointer; transition: color 0.3s; opacity: 0.65;
}
.nav-links li a:hover, .nav-links li a.active { opacity: 1; }
.nav-links li a::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 0; height: 1px;
  background: var(--champagne-dark); transition: width 0.3s ease;
}
.nav-links li a.active::after, .nav-links li a:hover::after { width: 60%; }

.hamburger {
  display: none; flex-direction: column; gap: 6px;
  cursor: pointer; position: absolute; right: 2rem;
  z-index: 1002; background: none; border: none; padding: 10px;
}
.hamburger span {
  width: 24px; height: 1.5px; background: var(--charcoal);
  transition: all 0.3s ease; display: block;
}


/* ═══ SECTIONS ═══ */
section { position: relative; z-index: 1; }
section { animation: fadeIn 0.6s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes menuSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes menuItemFade {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ═══ SCROLL REVEAL ═══ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translateX(0); }


/* ═══ HERO ═══ */
.hero {
  height: 100vh; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-image { position: absolute; inset: 0; z-index: 0; }
.hero-image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.85) contrast(1.05) sepia(0.1);
  animation: kenBurns 25s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}
.hero-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(26,26,26,0.2) 0%, rgba(0,0,0,0.3) 40%,
    rgba(0,0,0,0.35) 70%, rgba(245,240,232,0.7) 100%);
}

.hero-content {
  position: relative; z-index: 2; text-align: center;
  color: var(--warm-white); padding: 2rem;
}
.hero-monogram { margin-bottom: 2rem; opacity: 0; animation: slideUp 1s ease 0.2s forwards; }
.hero-monogram img {
  height: 120px; width: auto;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4));
}

.hero-pretext {
  font-family: 'Josefin Sans', sans-serif; font-weight: 400;
  font-size: 0.85rem; letter-spacing: 0.4em; text-transform: uppercase;
  margin-bottom: 1.5rem; opacity: 0; animation: slideUp 1s ease 0.5s forwards;
  text-shadow: 0 2px 20px rgba(0,0,0,0.7), 0 0 40px rgba(0,0,0,0.4);
}
.hero-names {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(3rem, 8vw, 6.5rem); letter-spacing: 0.05em;
  line-height: 1.1; margin-bottom: 1.5rem;
  opacity: 0; animation: slideUp 1s ease 0.7s forwards;
  text-shadow: 0 3px 25px rgba(0,0,0,0.4);
}
.hero-names .ampersand { font-style: italic; font-weight: 300; opacity: 0.8; margin: 0 0.15em; }

.hero-divider {
  width: 60px; height: 1px; background: var(--champagne-light);
  margin: 1.5rem auto; opacity: 0; animation: slideUp 1s ease 0.85s forwards;
}
.hero-date {
  font-family: 'Josefin Sans', sans-serif; font-weight: 400;
  font-size: 0.95rem; letter-spacing: 0.35em; text-transform: uppercase;
  opacity: 0; animation: slideUp 1s ease 1s forwards;
  text-shadow: 0 2px 20px rgba(0,0,0,0.7), 0 0 40px rgba(0,0,0,0.4);
}
.hero-venue {
  font-family: 'Crimson Pro', serif; font-weight: 400; font-style: italic;
  font-size: 1.2rem; opacity: 0; animation: slideUp 1s ease 1.2s forwards;
  text-shadow: 0 2px 20px rgba(0,0,0,0.7), 0 0 40px rgba(0,0,0,0.4);
}

.hero-scroll {
  position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%);
  z-index: 2; opacity: 0; animation: slideUp 1s ease 1.6s forwards;
}
.hero-scroll span {
  font-family: 'Josefin Sans', sans-serif; font-weight: 400; font-size: 0.65rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--warm-white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.hero-scroll::after {
  content: ''; display: block; width: 1px; height: 40px;
  background: var(--champagne-light); margin: 0.75rem auto 0;
  animation: scrollLine 2s ease infinite;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLine {
  0%    { transform: scaleY(0); transform-origin: top; }
  50%   { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100%  { transform: scaleY(0); transform-origin: bottom; }
}


/* ═══ COUNTDOWN ═══ */
.countdown-section {
  background: var(--warm-white); padding: 5rem 2rem;
  text-align: center; border-top: 1px solid rgba(44,44,44,0.06);
}
.countdown-label {
  font-family: 'Josefin Sans', sans-serif; font-weight: 400;
  font-size: 0.75rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--label); margin-bottom: 2rem;
}
.countdown-grid { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.countdown-item { text-align: center; }
.countdown-number {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: 3.5rem; color: var(--charcoal); line-height: 1;
}
.countdown-unit {
  font-family: 'Josefin Sans', sans-serif; font-weight: 400;
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--label-light); margin-top: 0.5rem;
}


/* ═══ PHOTO STRIPS ═══ */
.photo-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  height: 35vh; min-height: 280px; overflow: hidden;
}
.photo-strip img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(0.08) contrast(1.02); transition: filter 0.6s ease;
}
.photo-strip img:hover { filter: sepia(0) contrast(1.05); }
.photo-strip-2 { grid-template-columns: 1fr 1fr; height: 45vh; }


/* ═══ SECTION HELPERS ═══ */
.section-container { max-width: 900px; margin: 0 auto; padding: 8rem 2rem; }

.section-eyebrow {
  font-family: 'Josefin Sans', sans-serif; font-weight: 400;
  font-size: 0.75rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--label); text-align: center; margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.5rem); text-align: center;
  color: var(--charcoal); margin-bottom: 1rem; letter-spacing: 0.02em;
}

.section-divider { text-align: center; margin: 2rem auto 3rem; line-height: 0; }
.section-divider svg { height: 28px; width: auto; opacity: 0.7; }

.section-body {
  font-family: 'Crimson Pro', serif; font-weight: 300;
  font-size: 1.15rem; line-height: 1.9; color: var(--charcoal);
  text-align: center; max-width: 620px; margin: 0 auto;
}


/* ═══ OUR STORY ═══ */
.story-timeline { margin-top: 4rem; }
.story-item {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; margin-bottom: 6rem;
}
.story-item:nth-child(even) { direction: rtl; }
.story-item:nth-child(even) > * { direction: ltr; }

.story-image { width: 100%; aspect-ratio: 4/5; overflow: hidden; position: relative; }
.story-image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(0.08) contrast(1.02); transition: transform 0.8s ease;
}
.story-image:hover img { transform: scale(1.03); }
.story-image::after {
  content: ''; position: absolute; inset: 8px;
  border: 1px solid rgba(201,169,110,0.25); pointer-events: none;
}

.story-text h3 {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: 1.6rem; color: var(--charcoal); margin-bottom: 0.5rem;
}
.story-text .story-date {
  font-family: 'Josefin Sans', sans-serif; font-weight: 400;
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--label); margin-bottom: 1.2rem;
}
.story-text p {
  font-family: 'Crimson Pro', serif; font-weight: 300;
  font-size: 1.05rem; line-height: 1.85; color: var(--charcoal); opacity: 0.85;
}


/* ═══ WEDDING DETAILS ═══ */
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; }
.detail-card {
  background: var(--warm-white); padding: 3rem; text-align: center;
  border: 1px solid rgba(44,44,44,0.05); position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.detail-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.04); }
.detail-card::before {
  content: ''; position: absolute; top: 1.5rem; left: 1.5rem; right: 1.5rem; bottom: 1.5rem;
  border: 1px solid rgba(107,91,74,0.12); pointer-events: none;
}
.detail-card h3 {
  font-family: 'Josefin Sans', sans-serif; font-weight: 400; font-size: 0.7rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--label); margin-bottom: 1.5rem;
}
.detail-card h4 {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: 1.5rem; color: var(--charcoal); margin-bottom: 1rem;
}
.detail-card p {
  font-family: 'Crimson Pro', serif; font-weight: 300;
  font-size: 1rem; line-height: 1.8; color: var(--charcoal); opacity: 0.8;
}
.detail-card .detail-icon { font-size: 1.5rem; margin-bottom: 1rem; color: var(--label-light); }

.details-dress-code {
  margin-top: 3rem; text-align: center; padding: 3rem;
  background: var(--warm-white); border: 1px solid rgba(44,44,44,0.05);
}
.details-dress-code h3 {
  font-family: 'Josefin Sans', sans-serif; font-weight: 400; font-size: 0.7rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--label); margin-bottom: 1rem;
}
.details-dress-code p {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: 1.4rem; color: var(--charcoal);
}

.venue-map {
  margin-top: 3rem; position: relative; overflow: hidden;
  border: 1px solid rgba(44,44,44,0.05);
}
.venue-map iframe {
  width: 100%; height: 350px; border: none;
  filter: sepia(0.15) contrast(0.95) brightness(1.02); transition: filter 0.4s ease;
}
.venue-map:hover iframe { filter: sepia(0) contrast(1) brightness(1); }
.venue-map-label {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  background: var(--ivory); padding: 0.6rem 1.8rem;
  font-family: 'Josefin Sans', sans-serif; font-weight: 400;
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--charcoal); pointer-events: none; box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}


/* ═══ BRIDAL PARTY ═══ */
.party-group-title {
  font-family: 'Josefin Sans', sans-serif; font-weight: 400;
  font-size: 0.8rem; letter-spacing: 0.35em; text-transform: uppercase;
  text-align: center; color: var(--label); margin-bottom: 2.5rem; margin-top: 4rem;
}
.party-group-title:first-of-type { margin-top: 0; }

.party-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-bottom: 4rem; }
.party-card { text-align: center; }
.party-photo {
  width: 100%; aspect-ratio: 3/4; background: var(--cream);
  margin-bottom: 1.5rem; overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s ease;
}
.party-card:hover .party-photo { transform: translateY(-4px); }
.party-photo .placeholder-initial {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: 3rem; color: var(--label-light); opacity: 0.5;
}
.party-card h4 {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: 1.3rem; color: var(--charcoal); margin-bottom: 0.3rem;
}
.party-card .party-role {
  font-family: 'Josefin Sans', sans-serif; font-weight: 400;
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--label);
}
.party-card .party-tagline {
  font-family: 'Crimson Pro', serif; font-weight: 300; font-style: italic;
  font-size: 0.95rem; color: var(--label-light); margin-top: 0.6rem;
}


/* ═══ RSVP ═══ */
.rsvp-note {
  text-align: center; font-family: 'Crimson Pro', serif; font-weight: 300;
  font-style: italic; font-size: 1.1rem; color: var(--label-light); margin-bottom: 3rem;
}

.rsvp-step { max-width: 600px; margin: 0 auto; }
.rsvp-step.hidden { display: none; }

/* Step 1: Search */
.rsvp-search-wrapper { text-align: center; }
.rsvp-search-prompt {
  font-family: 'Crimson Pro', serif; font-weight: 300;
  font-size: 1.15rem; color: var(--charcoal); margin-bottom: 2.5rem;
  line-height: 1.7;
}

.rsvp-search-box {
  display: flex; gap: 0; max-width: 400px; margin: 0 auto;
}
.rsvp-search-box input {
  flex: 1; padding: 1.1rem 1.2rem;
  border: 1px solid rgba(44,44,44,0.15); border-right: none;
  background: var(--warm-white); font-family: 'Crimson Pro', serif;
  font-size: 1.05rem; color: var(--charcoal);
  outline: none; border-radius: 0; -webkit-appearance: none;
  transition: border-color 0.3s;
}
.rsvp-search-box input:focus { border-color: var(--champagne-dark); }
.rsvp-search-box button {
  padding: 1.1rem 1.4rem; background: var(--charcoal); border: none;
  color: var(--ivory); cursor: pointer; transition: background 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.rsvp-search-box button:hover { background: var(--soft-black); }

.rsvp-search-error {
  font-family: 'Crimson Pro', serif; font-weight: 300;
  font-size: 0.95rem; color: #B5625A; margin-top: 1.5rem;
  min-height: 1.5em;
}

/* Loading spinner */
.rsvp-loading {
  text-align: center; padding: 3rem 0;
}
.rsvp-loading::after {
  content: ''; display: inline-block; width: 28px; height: 28px;
  border: 1.5px solid var(--cream); border-top-color: var(--champagne-dark);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Step 2: Party Cards */
.rsvp-party-header {
  text-align: center; margin-bottom: 3rem;
  animation: fadeIn 0.6s ease;
}
.rsvp-party-label {
  font-family: 'Josefin Sans', sans-serif; font-weight: 400;
  font-size: 0.7rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--label); margin-bottom: 0.75rem;
}
.rsvp-party-name {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: 2rem; color: var(--charcoal); margin-bottom: 0.75rem;
}
.rsvp-party-sub {
  font-family: 'Crimson Pro', serif; font-weight: 300;
  font-size: 1rem; color: var(--label-light);
}
.rsvp-party-phone-note {
  font-family: 'Crimson Pro', serif; font-weight: 300;
  font-style: italic; font-size: 0.95rem; color: var(--champagne-dark);
  margin-top: 0.75rem;
}

.rsvp-guests {
  display: flex; flex-direction: column; gap: 1.5rem;
  margin-bottom: 3rem;
}

.rsvp-previous-notice {
  text-align: center; padding: 1.2rem 1.5rem;
  background: rgba(139,158,126,0.1);
  border: 1px solid rgba(139,158,126,0.2);
  font-family: 'Crimson Pro', serif; font-weight: 300;
  font-size: 1rem; color: var(--dusty-sage);
  font-style: italic; margin-bottom: 0.5rem;
}

.rsvp-guest-card {
  background: var(--warm-white); border: 1px solid rgba(44,44,44,0.06);
  padding: 2rem 2.5rem; position: relative;
  opacity: 0; transform: translateY(20px);
  animation: cardReveal 0.5s ease forwards;
}
.rsvp-guest-card:nth-child(1) { animation-delay: 0.1s; }
.rsvp-guest-card:nth-child(2) { animation-delay: 0.25s; }
.rsvp-guest-card:nth-child(3) { animation-delay: 0.4s; }
.rsvp-guest-card:nth-child(4) { animation-delay: 0.55s; }
.rsvp-guest-card:nth-child(5) { animation-delay: 0.7s; }

@keyframes cardReveal {
  to { opacity: 1; transform: translateY(0); }
}

.rsvp-guest-name {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: 1.4rem; color: var(--charcoal); margin-bottom: 1.5rem;
}

.rsvp-guest-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}

/* Attend toggle buttons */
.rsvp-attend-group {
  display: flex; flex-direction: column;
}
.rsvp-attend-group .rsvp-field-label {
  font-family: 'Josefin Sans', sans-serif; font-weight: 400;
  font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--label); margin-bottom: 0.6rem;
}
.rsvp-attend-toggle {
  display: flex; gap: 0;
}
.rsvp-attend-toggle button {
  flex: 1; padding: 0.7rem 0.5rem; border: 1px solid rgba(44,44,44,0.12);
  background: transparent; font-family: 'Crimson Pro', serif;
  font-size: 0.9rem; color: var(--label-light); cursor: pointer;
  transition: all 0.3s ease;
}
.rsvp-attend-toggle button:first-child { border-right: none; }
.rsvp-attend-toggle button.selected-accept {
  background: var(--dusty-sage); color: #fff;
  border-color: var(--dusty-sage);
}
.rsvp-attend-toggle button.selected-decline {
  background: var(--rose-dust); color: #fff;
  border-color: var(--rose-dust);
}

/* Meal select inside card */
.rsvp-meal-group { display: flex; flex-direction: column; }
.rsvp-meal-group .rsvp-field-label {
  font-family: 'Josefin Sans', sans-serif; font-weight: 400;
  font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--label); margin-bottom: 0.6rem;
}
.rsvp-meal-group select {
  padding: 0.7rem 0.8rem; border: 1px solid rgba(44,44,44,0.12);
  background: transparent; font-family: 'Crimson Pro', serif;
  font-size: 0.95rem; color: var(--charcoal);
  outline: none; -webkit-appearance: none; border-radius: 0;
  transition: border-color 0.3s;
}
.rsvp-meal-group select:focus { border-color: var(--champagne-dark); }

/* Dietary field (appears under the two-column grid) */
.rsvp-dietary {
  margin-top: 1rem;
}
.rsvp-dietary .rsvp-field-label {
  font-family: 'Josefin Sans', sans-serif; font-weight: 400;
  font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--label); margin-bottom: 0.6rem;
}
.rsvp-dietary input {
  width: 100%; padding: 0.7rem 0.8rem; border: 1px solid rgba(44,44,44,0.12);
  background: transparent; font-family: 'Crimson Pro', serif;
  font-size: 0.95rem; color: var(--charcoal);
  outline: none; border-radius: 0; transition: border-color 0.3s;
}
.rsvp-dietary input:focus { border-color: var(--champagne-dark); }

/* Phone field */
.rsvp-phone { margin-top: 1rem; }
.rsvp-phone .rsvp-field-label {
  font-family: 'Josefin Sans', sans-serif; font-weight: 400;
  font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--label); margin-bottom: 0.6rem;
}
.rsvp-phone input {
  width: 100%; padding: 0.7rem 0.8rem; border: 1px solid rgba(44,44,44,0.12);
  background: transparent; font-family: 'Crimson Pro', serif;
  font-size: 0.95rem; color: var(--charcoal);
  outline: none; border-radius: 0; transition: border-color 0.3s;
}
.rsvp-phone input:focus { border-color: var(--champagne-dark); }

/* Extras (song, note) */
.rsvp-extras { margin-bottom: 1.5rem; }
.rsvp-extras .form-group { margin-bottom: 1.5rem; }
.rsvp-extras .form-group label {
  display: block; font-family: 'Josefin Sans', sans-serif; font-weight: 400;
  font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--label); margin-bottom: 0.75rem;
}
.rsvp-extras .form-group input,
.rsvp-extras .form-group textarea {
  width: 100%; padding: 1rem; border: 1px solid rgba(44,44,44,0.12);
  background: var(--warm-white); font-family: 'Crimson Pro', serif;
  font-size: 1rem; color: var(--charcoal);
  outline: none; -webkit-appearance: none; border-radius: 0;
  transition: border-color 0.3s;
}
.rsvp-extras .form-group input:focus,
.rsvp-extras .form-group textarea:focus {
  border-color: var(--champagne-dark);
}
.rsvp-extras .form-group input::placeholder,
.rsvp-extras .form-group textarea::placeholder { color: var(--taupe); }
.rsvp-extras .form-group textarea { resize: vertical; min-height: 100px; }

.rsvp-submit {
  display: block; width: 100%; padding: 1.15rem 2rem;
  background: var(--charcoal); color: var(--ivory); border: none;
  font-family: 'Josefin Sans', sans-serif; font-weight: 400;
  font-size: 0.7rem; letter-spacing: 0.35em; text-transform: uppercase;
  cursor: pointer; transition: all 0.4s ease;
}
.rsvp-submit:hover { background: var(--soft-black); letter-spacing: 0.5em; }

.rsvp-wrong-party {
  text-align: center; margin-top: 2rem;
  font-family: 'Crimson Pro', serif; font-weight: 300;
  font-size: 0.95rem; color: var(--label-light);
}
.rsvp-wrong-party a {
  color: var(--champagne-dark); text-decoration: none;
  border-bottom: 1px solid var(--champagne-light);
}
.rsvp-wrong-party a:hover { border-bottom-color: var(--champagne-dark); }

/* Step 3: Success */
.rsvp-success-card {
  text-align: center; padding: 4rem 2rem;
  background: var(--warm-white); border: 1px solid rgba(44,44,44,0.06);
  animation: fadeIn 0.6s ease;
}
.rsvp-success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--dusty-sage); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 2rem;
}
.rsvp-success-card h3 {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: 2.2rem; color: var(--charcoal); margin-bottom: 1rem;
}
.rsvp-success-card p {
  font-family: 'Crimson Pro', serif; font-weight: 300;
  font-size: 1.1rem; color: var(--label-light); line-height: 1.8;
}


/* ═══ REGISTRY ═══ */
.registry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 3rem; }
.registry-card {
  background: var(--warm-white); padding: 3rem 2.5rem; text-align: center;
  border: 1px solid rgba(44,44,44,0.05); cursor: pointer;
  transition: all 0.4s ease; position: relative; overflow: hidden;
}
.registry-card:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(0,0,0,0.06); }
.registry-card h4 {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: 1.5rem; color: var(--charcoal); margin-bottom: 0.75rem;
}
.registry-card p {
  font-family: 'Crimson Pro', serif; font-weight: 300;
  font-size: 0.95rem; color: var(--label-light); margin-bottom: 1.5rem;
}
.registry-link {
  font-family: 'Josefin Sans', sans-serif; font-weight: 400;
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--champagne-dark); text-decoration: none;
  border-bottom: 1px solid var(--champagne); padding-bottom: 2px;
}
.registry-message {
  margin-top: 3rem; text-align: center; padding: 2.5rem;
  background: var(--warm-white); border: 1px solid rgba(44,44,44,0.05);
}
.registry-message p {
  font-family: 'Crimson Pro', serif; font-weight: 300; font-style: italic;
  font-size: 1.1rem; color: var(--label-light); line-height: 1.8;
}


/* ═══ FAQ ═══ */
.faq-list { margin-top: 3rem; }
.faq-item { border-bottom: 1px solid rgba(44,44,44,0.1); padding: 2rem 0; cursor: pointer; }
.faq-item:first-child { border-top: 1px solid rgba(44,44,44,0.1); }
.faq-question { display: flex; justify-content: space-between; align-items: center; }
.faq-question h4 {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: 1.25rem; color: var(--charcoal);
}
.faq-toggle {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: 1.5rem; color: var(--champagne-dark); transition: transform 0.3s;
  width: 24px; text-align: center; flex-shrink: 0;
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.open .faq-answer { max-height: 300px; padding-top: 1.2rem; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer p {
  font-family: 'Crimson Pro', serif; font-weight: 300;
  font-size: 1.05rem; line-height: 1.8; color: var(--charcoal); opacity: 0.8;
}


/* ═══ GALLERY ═══ */
.gallery-grid { column-count: 3; column-gap: 1rem; margin-top: 3rem; }
.gallery-item {
  break-inside: avoid; margin-bottom: 1rem; overflow: hidden;
  position: relative; cursor: pointer;
}
.gallery-item img {
  width: 100%; display: block; filter: sepia(0.05); transition: all 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.04); filter: sepia(0); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(26,26,26,0); transition: background 0.4s ease; pointer-events: none;
}
.gallery-item:hover::after { background: rgba(26,26,26,0.05); }


/* ═══ FOOTER ═══ */
footer {
  background: var(--soft-black); color: var(--cream);
  text-align: center; padding: 5rem 2rem; position: relative; z-index: 1;
}
footer .footer-monogram { margin-bottom: 2rem; }
footer .footer-monogram svg, footer .footer-monogram img { height: 55px; width: auto; opacity: 0.6; }
footer .footer-names {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: 2.5rem; letter-spacing: 0.05em; margin-bottom: 0.75rem;
}
footer .footer-date {
  font-family: 'Josefin Sans', sans-serif; font-weight: 300;
  font-size: 0.75rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--champagne-light);
}
footer .footer-divider { width: 40px; height: 1px; background: var(--champagne); margin: 2rem auto; opacity: 0.5; }
footer .footer-tagline {
  font-family: 'Crimson Pro', serif; font-weight: 300; font-style: italic;
  font-size: 1rem; color: var(--champagne-light);
}


/* ═══ LIGHTBOX ═══ */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(26,26,26,0.96); z-index: 2000;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; animation: lbFadeIn 0.3s ease; }
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox img { max-width: 85vw; max-height: 85vh; object-fit: contain; transition: opacity 0.3s ease; }
.lightbox-close {
  position: absolute; top: 2rem; right: 2rem;
  font-family: 'Cormorant Garamond', serif; font-size: 2rem;
  color: var(--cream); cursor: pointer; opacity: 0.6; transition: opacity 0.3s;
  background: none; border: none; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--cream);
  font-size: 2.5rem; cursor: pointer; opacity: 0.4; transition: opacity 0.3s;
  padding: 1rem; font-family: 'Cormorant Garamond', serif; line-height: 1;
}
.lightbox-nav:hover { opacity: 0.9; }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-counter {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-family: 'Josefin Sans', sans-serif; font-weight: 400;
  font-size: 0.7rem; letter-spacing: 0.3em; color: var(--cream); opacity: 0.5;
}


/* ═══ RESPONSIVE ═══ */

/* ── Large desktops (1400px+) — breathe more ── */
@media (min-width: 1400px) {
  .section-container { max-width: 1000px; padding: 10rem 2rem; }
  .story-item { gap: 5rem; margin-bottom: 8rem; }
  .details-grid { gap: 3.5rem; }
  .countdown-number { font-size: 4.5rem; }
  footer { padding: 6rem 2rem; }
  footer .footer-names { font-size: 3rem; }
}

/* ── Tablet (769px – 1024px) ── */
@media (max-width: 1024px) {
  .nav-links li a { padding: 0.5rem 0.6rem; font-size: 0.6rem; letter-spacing: 0.15em; }
  .section-container { padding: 6rem 2rem; }
  .story-item { gap: 3rem; margin-bottom: 5rem; }
  .details-grid { gap: 2rem; }
  .detail-card { padding: 2.5rem; }
  .detail-card::before { top: 1rem; left: 1rem; right: 1rem; bottom: 1rem; }
  .party-grid { gap: 2rem; }
  .registry-card { padding: 2.5rem 2rem; }
  .countdown-number { font-size: 3rem; }
}

/* ── Mobile (max 768px) ── */
@media (max-width: 768px) {
  /* Nav */
  .nav-inner { height: 56px; padding: 0 1.25rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: var(--ivory);
    z-index: 1001;
    padding: 1.5rem 0 2rem;
    border-bottom: 1px solid rgba(201,169,110,0.2);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    align-items: center;
    gap: 0;
    animation: menuSlideDown 0.35s ease;
  }
  .nav-links.open li {
    width: 100%; text-align: center;
    opacity: 0; animation: menuItemFade 0.3s ease forwards;
  }
  .nav-links.open li:nth-child(1) { animation-delay: 0.03s; }
  .nav-links.open li:nth-child(2) { animation-delay: 0.06s; }
  .nav-links.open li:nth-child(3) { animation-delay: 0.09s; }
  .nav-links.open li:nth-child(4) { animation-delay: 0.12s; }
  .nav-links.open li:nth-child(5) { animation-delay: 0.15s; }
  .nav-links.open li:nth-child(6) { animation-delay: 0.18s; }
  .nav-links.open li:nth-child(7) { animation-delay: 0.21s; }
  .nav-links.open li:nth-child(8) { animation-delay: 0.24s; }
  .nav-links.open li a {
    font-size: 0.75rem; letter-spacing: 0.3em;
    padding: 0.85rem 2rem; opacity: 0.7;
    display: block; text-align: center;
    transition: opacity 0.2s, color 0.2s;
  }
  .nav-links.open li a:hover { opacity: 1; }
  .nav-links.open li a.active {
    opacity: 1; color: var(--champagne-dark);
  }
  .nav-links.open li a.active::after { display: none; }
  .hamburger { display: flex; }
  .nav-monogram { left: 1.25rem; }
  .nav-monogram img { display: none; }
  .nav-monogram::after {
    content: 'Harry & Eleanor';
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--charcoal);
    text-decoration: none;
  }

  /* Hamburger → X when menu is open */
  .nav-links.open ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-links.open ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .nav-links.open ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero */
  .hero { height: 100svh; }
  .hero-content { padding: 1.5rem; }
  .hero-monogram img { height: 80px; }
  .hero-pretext { font-size: 0.65rem; letter-spacing: 0.3em; margin-bottom: 1rem; }
  .hero-names { margin-bottom: 1rem; }
  .hero-date { font-size: 0.75rem; letter-spacing: 0.25em; }
  .hero-venue { font-size: 1rem; }
  .hero-divider { margin: 1rem auto; }
  .hero-scroll { display: none; }

  /* Countdown */
  .countdown-section { padding: 3.5rem 1.5rem; }
  .countdown-grid { gap: 1.5rem; }
  .countdown-number { font-size: 2.5rem; }
  .countdown-unit { font-size: 0.55rem; }

  /* Sections */
  .section-container { padding: 5.5rem 1.25rem 4rem; }
  .section-eyebrow { font-size: 0.65rem; letter-spacing: 0.3em; }
  .section-title { margin-bottom: 0.75rem; }
  .section-divider { margin: 1.5rem auto 2rem; }
  .section-divider svg { height: 20px; }
  .section-body { font-size: 1.05rem; line-height: 1.8; }

  /* Story */
  .story-timeline { margin-top: 3rem; }
  .story-item, .story-item:nth-child(even) {
    grid-template-columns: 1fr; gap: 1.5rem; direction: ltr; margin-bottom: 4rem;
  }
  .story-image { aspect-ratio: 3/4; }
  .story-image::after { inset: 6px; }
  .story-text h3 { font-size: 1.4rem; }
  .story-text p { font-size: 1rem; }

  /* Wedding details */
  .details-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .detail-card { padding: 2rem 1.5rem; }
  .detail-card::before { top: 0.75rem; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; }
  .detail-card h4 { font-size: 1.3rem; }
  .details-dress-code { padding: 2rem; margin-top: 1.5rem; }
  .venue-map { margin-top: 1.5rem; }
  .venue-map iframe { height: 220px; }
  .venue-map-label { font-size: 0.55rem; padding: 0.5rem 1.2rem; bottom: 1rem; }

  /* Bridal party */
  .party-group-title { margin-top: 3rem; margin-bottom: 2rem; font-size: 0.7rem; }
  .party-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
  .party-card h4 { font-size: 1.15rem; }
  .party-card .party-tagline { font-size: 0.85rem; }
  .party-photo .placeholder-initial { font-size: 2.5rem; }

  /* RSVP */
  .rsvp-note { font-size: 1rem; margin-bottom: 2rem; }
  .rsvp-search-prompt { font-size: 1rem; margin-bottom: 2rem; }
  .rsvp-search-box { flex-direction: column; max-width: 100%; gap: 0.75rem; }
  .rsvp-search-box input {
    border: 1px solid rgba(44,44,44,0.15);
    padding: 1rem 1.25rem;
  }
  .rsvp-search-box button { padding: 1rem; border-radius: 0; }
  .rsvp-guest-card { padding: 1.5rem; }
  .rsvp-guest-name { font-size: 1.2rem; margin-bottom: 1.2rem; }
  .rsvp-guest-fields { grid-template-columns: 1fr; gap: 1rem; }
  .rsvp-attend-toggle button { padding: 0.8rem 0.5rem; font-size: 0.8rem; }
  .rsvp-party-name { font-size: 1.6rem; }
  .rsvp-party-header { margin-bottom: 2rem; }
  .rsvp-success-card { padding: 3rem 1.5rem; }
  .rsvp-success-card h3 { font-size: 1.8rem; }
  .form-row { grid-template-columns: 1fr; }

  /* Registry */
  .registry-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .registry-card { padding: 2rem 1.5rem; }
  .registry-card h4 { font-size: 1.3rem; }
  .registry-message { padding: 2rem 1.5rem; margin-top: 1.5rem; }
  .registry-message p { font-size: 1rem; }

  /* FAQ */
  .faq-item { padding: 1.5rem 0; }
  .faq-question h4 { font-size: 1.1rem; padding-right: 1rem; }
  .faq-answer p { font-size: 0.95rem; }

  /* Gallery */
  .gallery-grid { column-count: 2; column-gap: 0.75rem; }

  /* Photo strips */
  .photo-strip { grid-template-columns: 1fr 1fr; height: auto; min-height: auto; }
  .photo-strip img { height: 200px; }
  .photo-strip img:nth-child(3) { display: none; } /* hide 3rd on mobile, show 2 */
  .photo-strip-2 { grid-template-columns: 1fr 1fr; height: auto; }
  .photo-strip-2 img { height: 200px; }

  /* Footer */
  footer { padding: 3.5rem 1.5rem; }
  footer .footer-monogram img, footer .footer-monogram svg { height: 40px; }
  footer .footer-names { font-size: 2rem; }
  footer .footer-date { font-size: 0.6rem; letter-spacing: 0.25em; }
  footer .footer-tagline { font-size: 0.9rem; }
  footer .footer-divider { margin: 1.5rem auto; }

  /* Lightbox */
  .lightbox img { max-width: 95vw; max-height: 80vh; }
  .lightbox-close { top: 1rem; right: 1rem; font-size: 1.6rem; width: 44px; height: 44px; }
  .lightbox-nav { font-size: 1.8rem; padding: 0.75rem; }
  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }
  .lightbox-counter { bottom: 1.5rem; font-size: 0.6rem; }

  /* Loading screen */
  .loading-monogram img { height: 90px; }
  .loading-date { font-size: 0.6rem; }
}

/* ── Small phones (max 480px) ── */
@media (max-width: 480px) {
  .hero-monogram img { height: 65px; }
  .hero-pretext { font-size: 0.55rem; letter-spacing: 0.2em; }
  .hero-date { font-size: 0.65rem; }
  .hero-venue { font-size: 0.9rem; }

  .section-container { padding: 5rem 1rem 3rem; }
  .section-eyebrow { font-size: 0.6rem; letter-spacing: 0.25em; }

  .countdown-section { padding: 2.5rem 1rem; }
  .countdown-grid { gap: 1rem; }
  .countdown-number { font-size: 2rem; }
  .countdown-unit { font-size: 0.5rem; letter-spacing: 0.2em; }

  .story-item, .story-item:nth-child(even) { margin-bottom: 3rem; gap: 1.2rem; }
  .story-text h3 { font-size: 1.25rem; }
  .story-text .story-date { font-size: 0.6rem; margin-bottom: 0.8rem; }
  .story-text p { font-size: 0.95rem; line-height: 1.75; }

  .party-grid { grid-template-columns: 1fr; gap: 2rem; }
  .party-photo { aspect-ratio: 1/1; }
  .party-group-title { margin-top: 2.5rem; margin-bottom: 1.5rem; }

  .detail-card { padding: 1.5rem; }
  .detail-card h4 { font-size: 1.2rem; }
  .detail-card p { font-size: 0.9rem; }

  .rsvp-attend-toggle { flex-direction: column; }
  .rsvp-attend-toggle button:first-child { border-right: 1px solid rgba(44,44,44,0.12); border-bottom: none; }
  .rsvp-attend-toggle button { padding: 0.75rem; }

  .registry-card h4 { font-size: 1.2rem; }

  .faq-question h4 { font-size: 1rem; }
  .faq-answer p { font-size: 0.9rem; line-height: 1.7; }

  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip img { height: 200px; }
  .photo-strip img:nth-child(2) { display: block; }
  .photo-strip img:nth-child(3) { display: none; }
  .photo-strip-2 { grid-template-columns: 1fr; }

  footer { padding: 3rem 1rem; }
  footer .footer-names { font-size: 1.7rem; }
  footer .footer-monogram img, footer .footer-monogram svg { height: 35px; }

  .loading-monogram img { height: 70px; }
  .loading-line { margin-top: 1.5rem; }
  .loading-date { font-size: 0.55rem; margin-top: 1rem; }
}

/* ── Safe area for notched phones ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  footer { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom)); }
  .lightbox-counter { bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
}

/* ── Touch device: disable hover effects that look stuck ── */
@media (hover: none) {
  .detail-card:hover { transform: none; box-shadow: none; }
  .registry-card:hover { transform: none; box-shadow: none; }
  .party-card:hover .party-photo { transform: none; }
  .gallery-item:hover img { transform: none; filter: sepia(0.05); }
  .gallery-item:hover::after { background: transparent; }
  .story-image:hover img { transform: none; }
}
