:root {
  --ivory: #FAF7F0;
  --ivory-dark: #F0EBE0;
  --espresso: #1E1008;
  --wine: #5C2D1E;
  --gold: #ffb500;
  --gold-light: #D4A843;
  --gold-pale: #E8D5A3;
  --blush: #D4A090;
  --blush-pale: #F5E8E4;
  --sage: #8A9B7A;
  --text: #3A2016;
  --text-muted: #7A5A48;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--ivory);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ivory-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 3px; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.2rem 2rem;
  display: flex; justify-content: center; gap: 2.5rem;
  background: rgba(250,247,240,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,134,11,0.15);
  flex-wrap: wrap;
}
nav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
nav a:hover { color: var(--gold); }

/* ─── SECTION WRAPPER ─── */
section { position: relative; }
.container { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── FADE IN ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── DIVIDER ─── */
.divider {
  display: flex; align-items: center; gap: 1.2rem;
  margin: 2.5rem auto; max-width: 400px;
}
.divider::before, .divider::after {
  content: ''; flex: 1;
  height: 1px; background: linear-gradient(to right, transparent, var(--gold-pale));
}
.divider::after { background: linear-gradient(to left, transparent, var(--gold-pale)); }
.divider-icon { color: var(--gold); font-size: 1.1rem; }

/* ─── SECTION LABEL ─── */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--espresso);
  display: block;
  margin-bottom: 1rem;
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 0 1.5rem 0;
}

/* crossfade bg layers */
.hero-slide {
  position: absolute; inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 50%;
  transition: opacity 1.8s cubic-bezier(0.4,0,0.2,1);
}
.hero-slide.fade-out { opacity: 0; }

.hero-slide-vignette {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10, 4, 2, 0.35) 0%,
    rgba(10, 4, 2, 0.25) 40%,
    rgba(10, 4, 2, 0.55) 100%
  );
  pointer-events: none;
}

/* ─── HERO CONTENT LAYOUT ─── */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 7rem 1.5rem 4rem;
  text-align: center;
}

.hero-top, .hero-bottom { width: 100%; }

.hero-seal { flex: 0 0 auto; }

.hero-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}

.hero-monogram {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(5rem, 15vw, 11rem);
  font-weight: 300;
  color: rgba(255,255,255,0.04);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  letter-spacing: 0.05em;
  user-select: none;
}

.hero-date-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 2rem;
  animation: fadeUp 1s 0.2s both;
}

.hero-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--ivory);
  letter-spacing: -0.01em;
  animation: fadeUp 1s 0.4s both;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 0;
}
.hero-names em {
  font-style: italic;
  color: var(--gold-pale);
}
.hero-names em:first-child{
  position: relative;
  right: 20px;
}
@media (min-width: 992px){
  .hero-names em:first-child{ right: 50px; }
}
.hero-amp {
  display: inline-block;
  font-size: 1.5em;
  color: var(--ivory);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin: 0;
  font-family: Cormorant Garamond, serif;
  font-style: italic;
  position: absolute;
}

.hero-tagline {
  margin: auto auto 50px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(250,247,240,0.85);
  max-width: 560px;
  line-height: 1.2;
  animation: fadeUp 1s 0.6s both;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

.hero-seal {
  margin-top: 3rem;
  animation: fadeUp 1s 0.8s both;
}
.hero-seal svg { width: 90px; height: 90px; }

.scroll-hint {
  position: absolute !important; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  animation: fadeUp 1s 1.2s both;
  color: var(--gold-light);
  margin-left: -24.5px;
  z-index: 10;
}
.scroll-hint span {
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── COUNTDOWN ─── */
#countdown {
  padding: 6rem 1.5rem;
  background: var(--espresso);
  text-align: center;
  overflow: hidden;
  position: relative;
}
#countdown:before{
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image: url(img/bg-2.webp);
  mix-blend-mode: overlay;
  background-size: cover;
}
#countdown .section-label { color: var(--gold-light); }
#countdown h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--ivory);
  margin-bottom: 3rem;
}

.countdown-grid {
  display: flex; justify-content: center; gap: 1.5rem;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex; flex-direction: column; align-items: center;
  min-width: 80px;
}
.countdown-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  min-width: 1.8ch; text-align: center;
}
.countdown-label {
  font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(250,247,240,0.45);
  margin-top: 0.5rem;
}
.countdown-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem; color: var(--gold);
  opacity: 0.4; line-height: 1;
  align-self: flex-start; padding-top: 0.3rem;
}

/* ─── VERSE ─── */
#verse {
  padding: 7rem 1.5rem;
  text-align: center;
  overflow: hidden;
  background: var(--blush-pale);
  position: relative;
}
#verse::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(to right, transparent, var(--blush), transparent);
}

.verse-intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2vw, 2.5rem);
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.verse-lines {
  max-width: 600px; margin: 0 auto;
}
.verse-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: var(--wine);
  line-height: 1.3;
  display: block;
}
.verse-ref {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--espresso);
  font-family: 'DM Sans', sans-serif;
}

/* verse content z-index so it sits above polaroids */
.verse-content { position: relative; z-index: 1; }

/* ─── POLAROIDS ─── */
.verse-polaroids {
  position: absolute;
  top: 0; bottom: 0;
  width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  pointer-events: none;
}
.verse-polaroids--left  { left: max(1rem, calc(50% - 560px)); align-items: flex-start; }
.verse-polaroids--right { right: max(1rem, calc(50% - 560px)); align-items: flex-end; }

.polaroid {
  background: #fff;
  padding: 10px 10px 32px;
  box-shadow: 0 4px 18px rgba(30,10,8,0.13), 0 1px 4px rgba(30,10,8,0.08);
  will-change: transform;
  transition: box-shadow 0.3s;
}
.polaroid img {
  display: block;
  width: 160px;
  height: 212px;
  object-fit: cover;
  filter: sepia(0.08) contrast(1.04);
}

/* individual rotations */
.polaroid--1 { transform: rotate(-4deg)   translateY(0px); }
.polaroid--2 { transform: rotate( 3.5deg) translateY(0px); }
.polaroid--3 { transform: rotate( 4deg)   translateY(0px); }
.polaroid--4 { transform: rotate(-3deg)   translateY(0px); }

/* mobile: polaroids arriba y abajo del texto */
@media (max-width: 900px) {
  #verse {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .verse-polaroids {
    position: static;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem 1rem 0;
  }
  .verse-polaroids--left  { order: -1; }
  .verse-polaroids--right { order:  1; }
  .verse-content          { order:  0; }
  .polaroid img {
    width: 120px;
    height: 158px;
  }
  /* reducir rotaciones para que quepan mejor */
  .polaroid--1 { transform: rotate(-3deg); }
  .polaroid--2 { transform: rotate( 2.5deg); }
  .polaroid--3 { transform: rotate( 3deg); }
  .polaroid--4 { transform: rotate(-2deg); }
}

/* ─── SCHEDULE ─── */
#schedule {
  padding: 7rem 1.5rem;
  background: var(--ivory);
}
#schedule h2, #dresscode h2, #rsvp h2, #gift h2, #messages h2, #story h2, #contact h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 300;
  color: var(--espresso);
  margin-bottom: 1rem;
  text-align: center;
}

.schedule-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.schedule-card {
  background: white;
  border: 1px solid var(--gold-pale);
  border-radius: 2px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.schedule-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--blush), var(--gold-light));
}
.schedule-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.schedule-unit {
  font-size: 0.65rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-muted);
}
.schedule-event {
  margin-top: 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--wine);
}

.location-block {
  margin-top: 3rem;
  text-align: center;
  padding: 2.5rem 2rem;
  border: 1px solid var(--gold-pale);
  border-radius: 2px;
  background: white;
}
.location-block svg { width: 28px; height: 28px; margin-bottom: 1rem; }
.location-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--espresso);
}
.location-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ─── DRESS CODE ─── */
#dresscode {
  padding: 7rem 1.5rem;
  background: var(--espresso);
  text-align: center;
}
#dresscode h2 { color: var(--ivory); }
#dresscode .section-label { color: var(--gold-light); }

.dress-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; margin-top: 3rem; max-width: 500px; margin-left: auto; margin-right: auto;
}
/* section bg layer */
.dresscode-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.dresscode-bg__img {
  position: absolute; inset: 0;
  background-size: contain;
  background-position: center top;
  opacity: 0;
  transform: rotate(4deg) scale(1.12);
  transform-origin: center center;
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.dresscode-bg__img.active {
  opacity: 0.55;
  transform: rotate(0deg) scale(1.05);
}

.dresscode-bg__vignette {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,4,2,0.68) 0%,
    rgba(10,4,2,0.45) 50%,
    rgba(10,4,2,0.68) 100%);
}

.dress-card {
  border: 1px solid rgba(184,134,11,0.3);
  border-radius: 2px;
  overflow: hidden;
  cursor: default;
  transition: border-color 0.4s, transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.dress-card:hover {
  border-color: rgba(212,168,67,0.7);
  transform: translateY(-4px);
}

.dress-card__content {
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.dress-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.dress-label {
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 0.5rem;
}
.dress-type {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--ivory);
  font-style: italic;
}

/* ─── RSVP ─── */
#rsvp {
  padding: 7rem 1.5rem;
  background: var(--blush-pale);
  text-align: center;
}

.rsvp-deadline {
  font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-style: italic;
}
.rsvp-deadline strong { color: var(--wine); }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: #25D366;
  color: white;
  padding: 1.1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.45);
}
.btn-whatsapp svg { width: 22px; height: 22px; }

/* ─── GIFT PLANE ─── */
.gift-flight-wrap {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  height: 140px;
  position: relative;
}
#gift-plane-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  pointer-events: none;
}
#gift-plane-icon {
  filter: drop-shadow(0 1px 4px rgba(184,134,11,0.45));
}

/* ─── GIFT ─── */
#gift {
  padding: 7rem 1.5rem;
  background: url(img/bg-gift.webp) no-repeat center center;
  background-size: cover;
  text-align: center;
  position: relative;
}
#gift:after{
  content: '';
  position: absolute; inset: 0;
  background: rgba(250,247,240,0.5);
  pointer-events: none;
}
#gift .container{
  position: relative; z-index: 1;
}
.gift-message {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic;
  color: var(--text-muted);
  max-width: 640px; margin: 0 auto;
  line-height: 1.9;
}

.bank-card {
  background: white;
  border: 1px solid var(--gold-pale);
  border-radius: 2px;
  padding: 2.5rem 2rem;
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  margin-bottom: 2rem;
}
.bank-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--gold-light), var(--blush));
}

.bank-title {
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.5rem;
}
.bank-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--ivory-dark);
  font-size: 0.9rem;
}
.bank-row:last-of-type { border-bottom: none; }
.bank-row-label { color: var(--text-muted); font-size: 0.75rem; }
.bank-row-value { color: var(--espresso); font-weight: 500; text-align: right; }

.btn-copy {
  margin-top: 1.5rem;
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem;
  border: 1px solid var(--gold-pale);
  background: transparent;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s;
  font-family: 'DM Sans', sans-serif;
}
.btn-copy:hover { background: var(--gold-pale); color: var(--espresso); }
.btn-copy.copied { background: var(--sage); color: white; border-color: var(--sage); }

/* ─── MESSAGES ─── */
#messages {
  padding: 7rem 1.5rem;
  background: var(--blush-pale);
}
#messages h2 { text-align: center; margin-bottom: 4rem; }

.message-card {
  background: white;
  border: 1px solid var(--gold-pale);
  border-radius: 2px;
  padding: 3rem 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.message-card::before {
  content: '\201C';
  position: absolute; top: -0.5rem; left: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 8rem; color: rgba(184,134,11,0.07);
  line-height: 1; pointer-events: none;
}
.message-author {
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.5rem;
}
.message-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-style: italic;
  color: var(--wine);
  line-height: 1.95;
}

.message-placeholder {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px dashed var(--gold-pale);
  border-radius: 2px;
}
.message-placeholder p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-muted);
}

/* ─── STORY ─── */
.story-polaroid {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 200;
  background: #fff;
  padding: 10px 10px 34px;
  box-shadow: 0 8px 32px rgba(30,10,8,0.18), 0 2px 6px rgba(30,10,8,0.1);
  opacity: 0;
  transform: rotate(-6deg) scale(0.82) translate(-50%, -50%);
  transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1),
              transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  will-change: transform, opacity;
}
.story-polaroid.visible {
  opacity: 1;
  transform: rotate(-3deg) scale(1) translate(-50%, -50%);
}
.story-polaroid img {
  display: block;
  width: 180px;
  height: 220px;
  object-fit: cover;
  filter: sepia(0.06) contrast(1.03);
}

.timeline-item[data-img] { cursor: default; }
.timeline-item[data-img]:hover .timeline-event { color: var(--gold); }

#story {
  padding: 7rem 1.5rem;
  background: var(--ivory);
}
#story h2 { text-align: center; margin-bottom: 4rem; }

.timeline {
  position: relative;
  max-width: 560px; margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-pale) 10%, var(--gold-pale) 90%, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex; gap: 2rem; align-items: flex-start;
  margin-bottom: 3.5rem;
  position: relative;
}
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-dot {
  position: absolute; left: 50%; top: 0.3rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold-light);
  border: 2px solid white;
  transform: translateX(-50%);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(184,134,11,0.15);
}

.timeline-content {
  width: calc(50% - 2rem);
  padding: 0 1rem;
}
.timeline-item:nth-child(odd) .timeline-content { text-align: right; margin-left: auto; padding-right: 2.5rem; }
.timeline-item:nth-child(even) .timeline-content { text-align: left; margin-right: auto; padding-left: 2.5rem; }

.timeline-date {
  font-size: 0.65rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.35rem;
}
.timeline-event {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--wine);
}

/* ─── PLAYLIST ─── */
#playlist {
  padding: 7rem 1.5rem;
  background: var(--espresso);
  text-align: center;
}
#playlist h2 { color: var(--ivory); }
#playlist .section-label { color: var(--gold-light); }

.playlist-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic;
  color: rgba(250,247,240,0.5);
  margin-bottom: 2.5rem;
}

.playlist-frame-wrap {
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  border-radius: 12px;
  overflow: hidden;
}

/* ─── GALLERY ─── */
#gallery {
  padding: 7rem 1.5rem;
  background: var(--ivory);
  text-align: center;
}
#gallery h2 { color: var(--espresso); }

.gallery-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.gallery-upload-wrap {
  margin-bottom: 3rem;
}
.btn-upload {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--espresso);
  color: var(--ivory);
  border: none;
  padding: 1rem 2.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.25s, transform 0.2s;
}
.btn-upload:hover { background: var(--wine); transform: translateY(-2px); }
.gallery-upload-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--ivory-dark);
  aspect-ratio: 1;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), filter 0.4s;
  filter: sepia(0.05) contrast(1.03);
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: sepia(0) contrast(1.06);
}
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,10,8,0.45), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-empty {
  grid-column: 1 / -1;
  padding: 4rem 2rem;
  border: 1px dashed var(--gold-pale);
  border-radius: 2px;
}
.gallery-empty p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-muted);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(10,4,2,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain;
  border: 8px solid white;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: none;
  color: var(--ivory); font-size: 2.5rem;
  cursor: pointer; line-height: 1;
  opacity: 0.7; transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: var(--ivory); font-size: 2rem;
  cursor: pointer; padding: 1rem;
  opacity: 0.6; transition: opacity 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* Date-based visibility */
.post-wedding-section { display: none; }

/* ─── CONTACT ─── */
#contact {
  padding: 7rem 1.5rem;
  background: var(--espresso);
  text-align: center;
}
#contact h2 { color: var(--ivory); }
#contact .section-label { color: var(--gold-light); }

.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem; margin-top: 3rem; max-width: 480px; margin-left: auto; margin-right: auto;
}
.contact-card {
  border: 1px solid rgba(184,134,11,0.25);
  border-radius: 2px;
  padding: 2rem;
}
.contact-role {
  font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 0.5rem;
}
.contact-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ivory);
  margin-bottom: 0.75rem;
}
.contact-phone {
  font-size: 0.9rem; color: rgba(250,247,240,0.6);
  text-decoration: none;
  transition: color 0.25s;
}
.contact-phone:hover { color: var(--gold-light); }

/* ─── FOOTER ─── */
footer {
  padding: 2.5rem 1.5rem;
  background: var(--espresso);
  border-top: 1px solid rgba(184,134,11,0.15);
  text-align: center;
}
footer p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(250,247,240,0.3);
}
.footer-names {
  font-size: 1.1rem;
  color: rgba(212,168,67,0.5);
  margin-top: 0.4rem;
  font-style: normal;
}
.footer-credit {
  margin-top: 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(250,247,240,0.2);
  font-style: normal;
  font-family: 'DM Sans', sans-serif;
}
.footer-credit a {
  color: rgba(212,168,67,0.4);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-credit a:hover { color: rgba(212,168,67,0.8); }

/* ─── BOTANICAL SVGs ─── */
.botanical {
  position: absolute; pointer-events: none;
  opacity: 0.12;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ─── RESPONSIVE ─── */
/* ─── HAMBURGER ─── */
.nav-hamburger {
  display: none;
  position: fixed; top: 1rem; right: 1.2rem; z-index: 200;
  background: rgba(250,247,240,0.95);
  border: 1px solid rgba(184,134,11,0.25);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column; gap: 5px;
  backdrop-filter: blur(8px);
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--gold);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── OVERLAY ─── */
.nav-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 149;
  background: rgba(30,10,8,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.nav-overlay.visible { opacity: 1; pointer-events: auto; }

/* ─── NAV CLOSE BUTTON (inside offcanvas) ─── */
.nav-close { display: none; }

@media (max-width: 640px) {
  .nav-hamburger { display: flex; }
  .nav-overlay   { display: block; pointer-events: none; }

  nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: 72vw; max-width: 300px;
    flex-direction: column; justify-content: flex-start; align-items: flex-start;
    gap: 0; padding: 5rem 2rem 2rem;
    background: var(--ivory);
    border-bottom: none;
    border-left: 1px solid rgba(184,134,11,0.2);
    box-shadow: -6px 0 32px rgba(30,10,8,0.18);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 150;
    overflow-y: auto;
  }
  nav.open { transform: translateX(0); }

  nav a {
    font-size: 0.75rem;
    padding: 0.85rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(184,134,11,0.1);
    color: var(--espresso);
  }
  nav a:last-child { border-bottom: none; }

  .nav-close {
    display: block;
    position: absolute; top: 1.2rem; right: 1.2rem;
    background: none; border: none;
    font-size: 1.3rem; color: var(--text-muted);
    cursor: pointer; line-height: 1;
  }

  .countdown-sep { display: none; }
  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) {
    flex-direction: column; padding-left: 3rem;
  }
  .timeline-dot { left: 20px; }
  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: 100%; text-align: left; padding: 0;
    margin: 0;
  }
  .dress-grid { grid-template-columns: 1fr; }
  .countdown-num { font-size: clamp(2rem, 12vw, 4rem); }
}
