/* ── Reset & Variables ────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ivory:   #faf7f2;
  --cream:   #f3ede2;
  --warm:    #ede4d4;
  --gold:    #b8922a;
  --gold-lt: #d4ac50;
  --rose:    #c9897a;
  --blush:   #e8c5bc;
  --deep:    #4a2e27;
  --brown:   #6b4c42;
  --text:    #2e1f1b;
  --text-lt: #7a6460;
  --dark:    #1e1410;

  --serif:   'Cormorant Garamond', Georgia, serif;
  --script:  'Great Vibes', cursive;
  --sans:    'Montserrat', system-ui, sans-serif;

  --pad: 96px 24px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--ivory);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ───────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--deep);
  line-height: 1.15;
}
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

/* ── Utility ──────────────────────────────────── */
.container        { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 680px;  margin: 0 auto; padding: 0 24px; }
.text-center      { text-align: center; }
.hidden           { display: none !important; }

.section-tag {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.section-tag.light { color: rgba(200,169,110,0.9); }

.section-header { margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 1rem; }

/* ── Language Toggle ─────────────────────────── */
.lang-toggle {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(30,20,16,0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(184,146,42,0.3);
  padding: 5px 12px;
  border-radius: 20px;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.45);
  padding: 2px 4px;
  transition: color 0.2s;
}
.lang-btn.active { color: var(--gold-lt); font-weight: 600; }
.lang-btn:hover  { color: rgba(255,255,255,0.8); }
.lang-sep { color: rgba(255,255,255,0.2); font-size: 0.65rem; }

/* ── Ornament Divider ─────────────────────────── */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 1rem auto;
}
.orn-line {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.orn-flower {
  color: var(--gold);
  font-size: 0.85rem;
}
.ornament-divider.light .orn-line {
  background: linear-gradient(90deg, transparent, rgba(200,169,110,0.7), transparent);
}
.ornament-divider.light .orn-flower { color: rgba(200,169,110,0.7); }

/* ── Floral Corner SVG-like (pure CSS) ────────── */
.floral-corner {
  position: absolute;
  width: 200px;
  height: 200px;
  pointer-events: none;
}

/* Uses a unicode rose-like pattern via ::before/::after */
[class*="op-floral"],
[class*="hero-floral"],
[class*="closing-floral"] {
  position: absolute;
  width: 260px;
  height: 260px;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23b8922a' stroke-width='0.8'%3E%3Ccircle cx='100' cy='100' r='8'/%3E%3Ccircle cx='100' cy='100' r='20'/%3E%3Ccircle cx='100' cy='100' r='35'/%3E%3Cpath d='M100 65 Q115 80 100 95 Q85 80 100 65Z'/%3E%3Cpath d='M135 100 Q120 115 105 100 Q120 85 135 100Z'/%3E%3Cpath d='M100 135 Q85 120 100 105 Q115 120 100 135Z'/%3E%3Cpath d='M65 100 Q80 85 95 100 Q80 115 65 100Z'/%3E%3Cpath d='M121 79 Q126 97 111 100 Q108 85 121 79Z'/%3E%3Cpath d='M121 121 Q103 126 100 111 Q115 108 121 121Z'/%3E%3Cpath d='M79 121 Q74 103 89 100 Q92 115 79 121Z'/%3E%3Cpath d='M79 79 Q97 74 100 89 Q85 92 79 79Z'/%3E%3Cline x1='100' y1='30' x2='100' y2='10'/%3E%3Cline x1='100' y1='170' x2='100' y2='190'/%3E%3Cline x1='30' y1='100' x2='10' y2='100'/%3E%3Cline x1='170' y1='100' x2='190' y2='100'/%3E%3Cline x1='58' y1='58' x2='44' y2='44'/%3E%3Cline x1='142' y1='58' x2='156' y2='44'/%3E%3Cline x1='58' y1='142' x2='44' y2='156'/%3E%3Cline x1='142' y1='142' x2='156' y2='156'/%3E%3Ccircle cx='100' cy='10' r='3'/%3E%3Ccircle cx='100' cy='190' r='3'/%3E%3Ccircle cx='10' cy='100' r='3'/%3E%3Ccircle cx='190' cy='100' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.op-floral--tl,
.hero-floral--tl,
.closing-floral--tl { top: -40px; left: -40px; transform: rotate(0deg); }

.op-floral--br,
.hero-floral--br,
.closing-floral--br { bottom: -40px; right: -40px; transform: rotate(180deg); }

.hero-floral--tr { top: -40px; right: -40px; transform: rotate(90deg); }
.hero-floral--bl { bottom: -40px; left: -40px; transform: rotate(270deg); }


/* ══ OPENING SCREEN ════════════════════════════ */
#opening-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}

#opening-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(184,146,42,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(201,137,122,0.1) 0%, transparent 60%);
}

#opening-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.op-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 32px;
  animation: fadeUpIn 1.4s var(--ease) both;
}


.op-greeting {
  margin-bottom: 1.2rem;
  animation: fadeUpIn 1.4s var(--ease) both;
}
.op-greeting-hi {
  font-family: var(--script);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.op-greeting-msg {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto 0.5rem;
}

.op-sub {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(184,146,42,0.8);
  margin-bottom: 1.2rem;
}

.op-title {
  font-family: var(--script);
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 1rem;
}

.op-title span {
  color: var(--gold-lt);
  font-style: normal;
  font-family: var(--serif);
  font-size: 0.55em;
  vertical-align: middle;
}

.op-date {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
}

.op-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 1.5rem auto;
}
.op-divider::before,
.op-divider::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: rgba(184,146,42,0.5);
}
.op-divider span { color: var(--gold-lt); font-size: 0.75rem; }

.op-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.op-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border: 1px solid rgba(184,146,42,0.6);
  background: transparent;
  color: var(--gold-lt);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.op-btn:hover { background: rgba(184,146,42,0.15); }


/* ══ HERO ══════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory);
  overflow: hidden;
  padding: 80px 24px;
}

/* Large decorative floral background */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23b8922a' stroke-width='0.6' opacity='0.08'%3E%3Ccircle cx='300' cy='300' r='120'/%3E%3Ccircle cx='300' cy='300' r='200'/%3E%3Ccircle cx='300' cy='300' r='280'/%3E%3Cpath d='M300 180 Q340 240 300 285 Q260 240 300 180Z'/%3E%3Cpath d='M420 300 Q360 340 315 300 Q360 260 420 300Z'/%3E%3Cpath d='M300 420 Q260 360 300 315 Q340 360 300 420Z'/%3E%3Cpath d='M180 300 Q240 260 285 300 Q240 340 180 300Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 80vmin;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  width: 100%;
  animation: fadeUpIn 1.2s var(--ease) 0.3s both;
}

.bismillah {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0.85;
  letter-spacing: 0.05em;
}

.hero-pre {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-lt);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.hero-names {
  font-family: var(--script);
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 400;
  color: var(--deep);
  line-height: 0.9;
  margin-bottom: 1rem;
}
.hero-names em {
  font-family: var(--serif);
  font-size: 0.45em;
  color: var(--gold);
  font-style: normal;
  vertical-align: middle;
  display: inline-block;
  margin: 0 0.1em;
}

.hero-family {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-lt);
  line-height: 1.9;
  margin: 1.5rem 0;
}
.hero-and { color: var(--gold); font-style: normal; }

/* Hero couple photo */
.hero-photo-frame {
  position: relative;
  width: min(320px, 70vw);
  margin: 1.8rem auto;
  display: inline-block;
}
.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(184,146,42,0.35);
  pointer-events: none;
  z-index: 1;
}
.hero-photo-frame::after {
  content: '';
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(184,146,42,0.15);
  pointer-events: none;
}
.hero-photo {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-date-lg {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  color: var(--deep);
  letter-spacing: 0.05em;
  margin: 1.5rem 0 0.4rem;
}

.hero-venue-sm {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-lt);
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 13px 40px;
  border: 1px solid var(--deep);
  color: var(--deep);
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  margin-top: 0.5rem;
}
.btn-primary:hover { background: var(--deep); color: #fff; }


/* ══ QUOTE SECTION ═════════════════════════════ */
#quote-section {
  position: relative;
  background: var(--deep);
  padding: 70px 24px;
  text-align: center;
  overflow: hidden;
}

#quote-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(184,146,42,0.08) 0%, transparent 70%);
}

.floral-top, .floral-bottom {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.floral-top  { top: 0; }
.floral-bottom { bottom: 0; }
.floral-top::before, .floral-top::after,
.floral-bottom::before, .floral-bottom::after {
  content: '✿';
  color: rgba(184,146,42,0.3);
  font-size: 0.8rem;
}

.quote-wrap {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 0 auto;
}

.quote-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.quote-text::before { content: '\201C'; }
.quote-text::after  { content: '\201D'; }

.quote-source {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-lt);
}


/* ══ COUPLE SECTION ════════════════════════════ */
#couple {
  padding: var(--pad);
  background: var(--ivory);
}

.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  margin-top: 1rem;
}

.couple-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.photo-frame {
  width: 200px;
  height: 240px;
  border: 1px solid var(--warm);
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.photo-frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(184,146,42,0.25);
  pointer-events: none;
  z-index: 1;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--cream), var(--warm));
}

.photo-initial {
  font-family: var(--script);
  font-size: 5rem;
  color: rgba(184,146,42,0.4);
}

.bride-frame { border-color: var(--blush); }
.bride-frame::before { border-color: rgba(201,137,122,0.25); }

.couple-role {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0;
}

.couple-name {
  font-family: var(--script);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--deep);
  line-height: 1;
  margin: 4px 0;
}

.couple-desc {
  font-size: 0.82rem;
  color: var(--text-lt);
  font-family: var(--serif);
  font-style: italic;
  line-height: 1.5;
  margin: 0;
}

.couple-social a {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  border-bottom: 1px solid rgba(184,146,42,0.3);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.couple-social a:hover { color: var(--deep); }

.couple-heart {
  display: flex;
  align-items: center;
  justify-content: center;
}
.heart-wrap {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(184,146,42,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.heart-symbol {
  font-size: 1.5rem;
  color: var(--rose);
}


/* ══ COUNTDOWN ═════════════════════════════════ */
#countdown {
  position: relative;
  padding: 80px 24px;
  background: var(--deep);
  text-align: center;
  overflow: hidden;
}

.countdown-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(184,146,42,0.03) 0px,
    rgba(184,146,42,0.03) 1px,
    transparent 1px,
    transparent 40px
  );
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  min-width: 80px;
}

.cd-num {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 300;
  color: var(--gold-lt);
  line-height: 1;
  min-width: 2ch;
  display: block;
  transition: transform 0.2s var(--ease);
}
.cd-num.pulse { transform: scale(1.05); }

.cd-label {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 8px;
}

.cd-sep {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  color: rgba(184,146,42,0.35);
  line-height: 1;
  align-self: flex-start;
  padding-top: 4px;
  font-weight: 300;
}


/* ══ STORY ═════════════════════════════════════ */
#story {
  padding: var(--pad);
  background: var(--cream);
}

.timeline {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(184,146,42,0.4) 10%, rgba(184,146,42,0.4) 90%, transparent);
  transform: translateX(-50%);
}

.tl-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  position: relative;
}

.tl-item:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 30px);
  text-align: right;
}
.tl-item:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 30px);
  text-align: left;
}

.tl-icon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--gold);
  z-index: 1;
  flex-shrink: 0;
}

.tl-card {
  padding: 20px 24px;
  background: #fff;
  border: 1px solid rgba(184,146,42,0.15);
  width: 100%;
}

.tl-card.highlight {
  border-color: rgba(201,137,122,0.3);
  background: #fff9f6;
}

.tl-year {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.tl-card h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--deep);
}

.tl-card p {
  font-size: 0.85rem;
  color: var(--text-lt);
  line-height: 1.65;
  margin: 0;
}


/* ══ EVENTS ════════════════════════════════════ */
#events {
  position: relative;
  padding: var(--pad);
  background: var(--deep);
  overflow: hidden;
}

.events-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(184,146,42,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 50%, rgba(201,137,122,0.07) 0%, transparent 50%);
}

#events .section-header { position: relative; z-index: 1; }
#events .section-header h2 { color: #fff; }

.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.event-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,146,42,0.2);
  padding: 40px 32px;
  text-align: center;
  transition: background 0.3s;
}
.event-card:hover { background: rgba(255,255,255,0.07); }

.event-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.event-card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.event-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  text-align: left;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}
.event-icon-sm { flex-shrink: 0; font-size: 0.85rem; margin-top: 2px; }

.event-actions { margin-top: 1.5rem; }

.btn-event {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid rgba(184,146,42,0.4);
  color: var(--gold-lt);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.3s;
}
.btn-event:hover { background: rgba(184,146,42,0.15); }

.calendar-cta {
  margin-top: 2.5rem;
  position: relative;
  z-index: 1;
}

.btn-calendar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 32px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: border-color 0.3s, color 0.3s;
}
.btn-calendar:hover { border-color: var(--gold-lt); color: var(--gold-lt); }


/* ══ GALLERY ═══════════════════════════════════ */
#gallery {
  padding: var(--pad);
  background: var(--ivory);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 220px 180px;
  gap: 6px;
  margin: 0 auto 2rem;
  max-width: 960px;
}

.g-item {
  background: var(--warm);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 0.3s;
}
.g-item:hover { filter: brightness(0.93); }
.g-item:nth-child(odd) { background: var(--blush); }
.g-item:nth-child(even) { background: var(--cream); }

.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

.g-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}
.g-item:hover .g-img { transform: scale(1.04); }

.g-label {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(74,46,39,0.4);
  font-size: 1rem;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.gallery-hashtag {
  font-family: var(--script);
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 0.03em;
  margin-top: 1.5rem;
}


/* ══ RSVP ══════════════════════════════════════ */
#rsvp {
  position: relative;
  padding: var(--pad);
  background: var(--deep);
  overflow: hidden;
}

.rsvp-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 10 Q35 20 30 28 Q25 20 30 10Z' fill='none' stroke='rgba(184,146,42,0.06)' stroke-width='0.8'/%3E%3Cpath d='M50 30 Q40 35 32 30 Q40 25 50 30Z' fill='none' stroke='rgba(184,146,42,0.06)' stroke-width='0.8'/%3E%3Cpath d='M30 50 Q25 40 30 32 Q35 40 30 50Z' fill='none' stroke='rgba(184,146,42,0.06)' stroke-width='0.8'/%3E%3Cpath d='M10 30 Q20 25 28 30 Q20 35 10 30Z' fill='none' stroke='rgba(184,146,42,0.06)' stroke-width='0.8'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

#rsvp .section-header { position: relative; z-index: 1; }
#rsvp .section-header h2 { color: #fff; }

.rsvp-deadline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.5rem;
}
.rsvp-deadline strong { color: var(--gold-lt); font-style: normal; }

#rsvp-form {
  position: relative;
  z-index: 1;
  text-align: left;
  margin-top: 2rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}
.form-group label span { text-transform: none; letter-spacing: 0; font-style: italic; opacity: 0.6; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.25s;
  border-radius: 0;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(184,146,42,0.6);
  background: rgba(255,255,255,0.07);
}

/* Wishes textarea — light bg so typed text is clearly visible */
#wishes {
  background: rgba(255,255,255,0.92) !important;
  color: #2e1f1b !important;
  border-color: rgba(184,146,42,0.3) !important;
}
#wishes::placeholder { color: rgba(46,31,27,0.4) !important; }
.form-group textarea { resize: vertical; }

/* Attendance radio */
.attend-row { display: flex; gap: 12px; flex-wrap: wrap; }
.attend-option {
  flex: 1;
  min-width: 140px;
  position: relative;
  cursor: pointer;
}
.attend-option input { position: absolute; opacity: 0; pointer-events: none; }
.attend-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  transition: all 0.25s;
  text-align: center;
}
.attend-option input:checked + span {
  border-color: var(--gold-lt);
  color: var(--gold-lt);
  background: rgba(184,146,42,0.08);
}

/* Event row — wraps to 3 columns */
.event-row { flex-wrap: wrap; }
.event-row .attend-option { min-width: 120px; }

.lbl-opt {
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
  opacity: 0.6;
  margin-left: 4px;
}

/* Guest counter */
.guest-counter {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.12);
  width: fit-content;
}
.guest-counter button {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.05);
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1;
}
.guest-counter button:hover { background: rgba(184,146,42,0.15); color: var(--gold-lt); }
#guest-display {
  min-width: 52px;
  text-align: center;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: transparent;
  border: 1px solid rgba(184,146,42,0.5);
  color: var(--gold-lt);
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  margin-top: 0.5rem;
}
.btn-submit:hover { background: rgba(184,146,42,0.15); }

.rsvp-success {
  margin-top: 1.5rem;
  padding: 24px;
  border: 1px solid rgba(184,146,42,0.3);
  text-align: center;
  background: rgba(184,146,42,0.06);
}
.success-icon {
  display: block;
  font-size: 1.2rem;
  color: var(--gold-lt);
  margin-bottom: 10px;
}
.rsvp-success p { color: rgba(255,255,255,0.8); font-family: var(--serif); font-style: italic; font-size: 1.1rem; margin: 0 0 4px; }
.success-sub { font-size: 0.85rem !important; color: rgba(255,255,255,0.45) !important; }


/* ══ WISHES ════════════════════════════════════ */
#wishes {
  padding: var(--pad);
  background: var(--cream);
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 1rem;
}

.wishes-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  color: rgba(107,76,66,0.5);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
}
.wishes-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(184,146,42,0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
.wishes-empty {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: rgba(107,76,66,0.5);
  padding: 24px 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.wish-card {
  background: #fff;
  border: 1px solid rgba(184,146,42,0.12);
  padding: 24px 28px;
  text-align: left;
  position: relative;
}
.wish-card::before {
  content: '"';
  position: absolute;
  top: 12px;
  left: 20px;
  font-family: var(--serif);
  font-size: 3rem;
  color: rgba(184,146,42,0.15);
  line-height: 1;
}

.wish-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: #2e1f1b !important;
  line-height: 1.7;
  margin-bottom: 0.75rem;
  padding-left: 8px;
}
.wish-text::before { content: ''; }
.wish-text::after  { content: ''; }

.wish-author {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b8922a !important;
  margin: 0;
}


/* ══ CLOSING ═══════════════════════════════════ */
#closing {
  position: relative;
  padding: 100px 24px;
  background: var(--ivory);
  overflow: hidden;
}

.closing-inner { position: relative; z-index: 1; }

.closing-pre {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-lt);
  margin-bottom: 0.5rem;
}

.closing-names {
  font-family: var(--script);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 400;
  color: var(--deep);
  margin-bottom: 1rem;
}

.closing-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-lt);
  margin: 1.5rem 0;
}

.hashtag {
  font-family: var(--script);
  font-size: 1.6rem;
  color: var(--gold);
  margin-top: 1rem;
}


/* ══ FOOTER ════════════════════════════════════ */
footer {
  background: var(--dark);
  padding: 32px 24px;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}
footer p { margin-bottom: 4px; }
.footer-credit { font-style: italic; opacity: 0.6; }

.footer-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto 1.2rem;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.footer-logo:hover { opacity: 1; }

.closing-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto 1rem;
}


/* ══ MUSIC BUTTON ══════════════════════════════ */
.music-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--deep);
  border: 1px solid rgba(184,146,42,0.4);
  color: var(--gold-lt);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 100;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.music-btn:hover { background: var(--brown); }


/* ══ ANIMATIONS ════════════════════════════════ */
@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ══ RESPONSIVE ════════════════════════════════ */
@media (max-width: 768px) {
  :root { --pad: 70px 20px; }

  .couple-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .couple-card { padding: 16px 0; }
  .couple-heart { padding: 8px 0; }
  .photo-frame { width: 160px; height: 200px; }

  .timeline::before { left: 15px; transform: none; }
  .tl-item,
  .tl-item:nth-child(odd),
  .tl-item:nth-child(even) {
    flex-direction: row !important;
    padding: 0 0 0 50px !important;
    text-align: left !important;
  }
  .tl-icon { left: 0; transform: none; }

  .events-grid { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .g-tall, .g-wide { grid-column: auto; grid-row: auto; }
  .g-item { min-height: 130px; }

  .cd-sep { display: none; }
  .countdown-item { padding: 0 12px; }

  .attend-row { flex-direction: column; }
  .attend-option { min-width: unset; }
}

@media (max-width: 480px) {
  .hero-names { font-size: clamp(3.5rem, 18vw, 5rem); }
  .op-title   { font-size: clamp(3rem, 16vw, 5rem); }
}
