/* =========================================================
   ROBERTO & KARINA WEDDING — style.css  v3
   ========================================================= */

/* ══════════════════════════════
   1. RESET + BASE + TOKENS
══════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ivory:       #FAF7F0;
  --cream:       #F0E8DA;
  --gold:        #C4963A;
  --olive:       #6B7A3A;
  --olive-light: #8E9E58;
  --dark:        #2C2422;
  --medium:      #5C4A47;
  --muted:       #9E8E8B;
  --white:       #fff;
}

html { scroll-behavior: smooth; scroll-padding-top: 59px; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--ivory);
  color: var(--dark);
  overflow-x: hidden;
  padding-bottom: 70px;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ══════════════════════════════
   2. SHARED SECTION COMPONENTS
══════════════════════════════ */
.sec-header {
  text-align: center;
  padding: 64px 2rem 40px;
}

.sec-pre {
  font-size: 0.69rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
  color: var(--dark);
}

/* Great Vibes override for section headings */
.gv-heading {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.1;
}

.gv-sub {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.56rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 300;
  margin-top: 6px;
}

.animate-gradient-text {
  background: linear-gradient(90deg, #2C2422 0%, #C4963A 28%, #6B7A3A 50%, #C4963A 72%, #2C2422 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientShift 10s linear infinite;
  padding: 0.1em 0.05em;
  display: inline-block;
}
@keyframes gradientShift {
  0%   { background-position: 0% center; }
  100% { background-position: 300% center; }
}

.sec-rule {
  width: 40px;
  height: 1.5px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, var(--gold), var(--olive));
}

.sec-desc {
  font-size: 0.86rem;
  color: var(--medium);
  line-height: 1.75;
  max-width: 420px;
  margin: 20px auto 0;
}

/* ══════════════════════════════
   3. NAVBAR
══════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(44,36,34,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(196,150,58,0.12);
}

.nav-topbar {
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--olive), var(--gold));
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--ivory);
  letter-spacing: 4px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav-logo span {
  font-family: 'Dancing Script', cursive;
  font-size: 1.4rem;
  color: var(--gold);
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(250,247,240,0.7);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-btn {
  background: none;
  border: 1px solid rgba(196,150,58,0.3);
  color: rgba(250,247,240,0.6);
  font-family: 'Lato', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 2px;
  padding: 10px 10px;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn.active,
.lang-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.rsvp-pill {
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: all 0.2s;
}
.rsvp-pill:hover {
  background: var(--gold);
  color: var(--dark);
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

/* ══════════════════════════════
   4. HERO — FULL SCREEN DARK
══════════════════════════════ */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Full-bleed background photo */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.42) saturate(0.75);
}

/* Dark + gold/olive gradient overlay on top of photo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(196,150,58,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(107,122,58,0.08) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(44,36,34,0.35) 0%, rgba(44,36,34,0.15) 50%, rgba(44,36,34,0.55) 100%);
  pointer-events: none;
}

/* Botanical SVG columns */
.deco-left,
.deco-right {
  position: absolute;
  top: 0;
  width: 160px;
  height: 100%;
  opacity: 0.28;
  pointer-events: none;
  z-index: 2;
}
.deco-left  { left: 0; }
.deco-right { right: 0; transform: scaleX(-1); }
.deco-left svg,
.deco-right svg { width: 100%; height: 100%; }

/* Hero content stack */
.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 120px 2rem 80px;
  gap: 0;
}

.hero-eyebrow {
  font-size: 0.69rem;
  letter-spacing: 7px;
  text-transform: uppercase;
  color: rgba(196,150,58,0.8);
  margin-bottom: 32px;
}

/* Names */
.hero-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 400;
  color: #fff;
  text-shadow: 0 2px 32px rgba(0,0,0,0.5), 0 0 60px rgba(196,150,58,0.2);
  line-height: 1;
  margin-bottom: 24px;
}
.hero-amp {
  font-family: 'Dancing Script', cursive;
  color: var(--gold);
  font-size: 0.75em;
}

/* Three-part divider */
.hero-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 220px;
  margin-bottom: 20px;
}
.hdiv-line {
  flex: 1;
  height: 1px;
}
.hdiv-gold  { background: linear-gradient(90deg, transparent, var(--gold)); }
.hdiv-olive { background: linear-gradient(90deg, var(--olive), transparent); }
.hdiv-diamond {
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.hero-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  letter-spacing: 4px;
  color: rgba(250,247,240,0.75);
  margin-bottom: 8px;
}
.hero-city {
  font-size: 0.69rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--olive-light);
  margin-bottom: 36px;
}

/* CTAs */
.hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.hero-cta-p {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: all 0.25s;
}
.hero-cta-p:hover { background: var(--gold); color: var(--dark); }
.hero-cta-s {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(250,247,240,0.5);
  transition: color 0.2s;
}
.hero-cta-s:hover { color: var(--ivory); }

/* Scroll indicator */
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-label {
  font-size: 0.5rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(250,247,240,0.3);
}
.scroll-dot {
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%       { transform: translateY(10px); opacity: 0.2; }
}

@media (max-width: 480px) {
  .deco-left, .deco-right { display: none; }
  .hero-photo-frame { width: 170px; height: 220px; }
  /* .hero centers its content via flexbox, so trimming padding alone only
     moves text up by half the change (the centering eats the rest) —
     anchor to the top instead so padding-top controls position directly. */
  .hero { align-items: flex-start; }
  .hero-content { padding-top: 85px; }
}

/* ══════════════════════════════
   5. COUNTDOWN — dark + photo
══════════════════════════════ */
.countdown-section {
  position: relative;
  background: var(--dark);
  padding: 80px 2rem;
  text-align: center;
  overflow: hidden;
}

.countdown-bg {
  position: absolute;
  inset: 0;
}
.countdown-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.25) saturate(0.5);
}

.countdown-inner {
  position: relative;
  z-index: 2;
}

.cd-eyebrow {
  font-size: 0.69rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(196,150,58,0.7);
  margin-bottom: 40px;
}

.cd-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cd-unit { text-align: center; }

.cd-cards {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
}

.cd-card {
  width: 52px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30,23,20,0.85);
  perspective: 400px;
}
.cd-card.g { border: 1px solid rgba(196,150,58,0.3); }
.cd-card.o { border: 1px solid rgba(107,122,58,0.3); }

.cd-digit {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--ivory);
  display: inline-block;
  transform-origin: center;
}

.cd-label {
  font-size: 0.69rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
}

.cd-sep {
  font-size: 1.6rem;
  color: rgba(196,150,58,0.3);
  margin-top: 18px;
  align-self: flex-start;
}

/* ══════════════════════════════
   6. ADD TO CALENDAR STRIP
══════════════════════════════ */
.add-cal-strip {
  background: var(--ivory);
  padding: 48px 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(196,150,58,0.1);
}

.cal-eyebrow {
  font-size: 0.58rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.cal-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid rgba(196,150,58,0.3);
  color: var(--medium);
  font-size: 0.72rem;
  letter-spacing: 1px;
  transition: all 0.2s;
}
.cal-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ══════════════════════════════
   7. DETAILS
══════════════════════════════ */
.details-section {
  background-color: var(--cream);
  background-image: linear-gradient(rgba(240,232,218,0.82),rgba(240,232,218,0.82)), url('../images/texture_cream.jpg');
  background-size: cover;
  background-position: center top;
  padding-bottom: 64px;
}

.details-inner { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .details-grid { grid-template-columns: 1fr 1fr; }
}

.venue-card {
  background: var(--ivory);
  border: 1px solid rgba(196,150,58,0.15);
}
.venue-top {
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--olive-light));
}
.venue-top.rev {
  background: linear-gradient(90deg, var(--olive), var(--gold));
}
.venue-body { padding: 28px 24px; }

.venue-type-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.venue-icon {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(196,150,58,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.venue-type {
  font-size: 0.58rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
}
.venue-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 6px;
}
.venue-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: 6px;
}
.venue-addr {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 16px;
  min-height: 44px;
  border: 1px solid rgba(107,122,58,0.3);
  color: var(--olive);
  transition: all 0.2s;
}
.maps-btn.gold { border-color: rgba(196,150,58,0.3); color: var(--gold); }
.maps-btn:hover { background: rgba(107,122,58,0.06); }
.maps-btn.gold:hover { background: rgba(196,150,58,0.06); }

.det-adults-note {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--medium);
  font-weight: 400;
  margin-top: 36px;
  margin-left: auto;
  margin-right: auto;
  padding: 13px 24px;
  max-width: 340px;
  border: 1px solid rgba(196,150,58,0.3);
  border-radius: 2px;
  background: rgba(196,150,58,0.04);
}

/* ══════════════════════════════
   8. TIMELINE
══════════════════════════════ */
.schedule-section {
  background-color: var(--ivory);
  background-image: linear-gradient(rgba(250,247,240,0.82),rgba(250,247,240,0.82)), url('../images/texture_ivory.jpg');
  background-size: cover;
  background-position: center top;
  padding-bottom: 64px;
}

.schedule-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.timeline-list {
  display: flex;
  flex-direction: column;
}

/* ── Each row: 3-flex columns ── */
.tl-item {
  display: flex;
  align-items: flex-start;
}

/* Time column (right-aligned on odd, left-aligned on even) */
.tl-time-col {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  padding-top: 18px;
}
.tl-time-card { padding-right: 24px; text-align: right; }

.tl-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  display: block;
}

/* Icon column — fixed width, centered */
.tl-icon-col {
  flex-shrink: 0;
  width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tl-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15), 0 4px 10px rgba(0,0,0,0.08);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.tl-gold  { background: var(--gold); }
.tl-olive { background: var(--olive); }

.tl-vline {
  width: 1.5px;
  min-height: 48px;
  flex: 1;
  background: linear-gradient(to bottom, rgba(196,150,58,0.35) 0%, rgba(107,122,58,0.12) 100%);
  margin: 6px 0;
}
.tl-last .tl-vline { display: none; }

/* Content column */
.tl-content-col {
  flex: 1;
  padding-left: 24px;
  padding-top: 14px;
  padding-bottom: 36px;
  text-align: left;
}

.tl-time-mobile {
  display: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--gold);
  font-weight: 300;
  margin-bottom: 4px;
}

.tl-event {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.3;
}
.tl-desc {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Alternating layout (desktop) ── */
@media (min-width: 640px) {
  .tl-even .tl-time-col {
    order: 3;
    justify-content: flex-start;
  }
  .tl-even .tl-time-card {
    text-align: left;
    padding-left: 24px;
    padding-right: 0;
  }
  .tl-even .tl-icon-col { order: 2; }
  .tl-even .tl-content-col {
    order: 1;
    text-align: right;
    padding-left: 0;
    padding-right: 24px;
  }
}

/* ── Mobile: icon left, content right, time hidden ── */
@media (max-width: 639px) {
  .tl-time-col { display: none; }
  .tl-time-mobile { display: block; }
  .tl-icon-col { width: 64px; }
  .tl-icon-circle { width: 56px; height: 56px; }
  .tl-item.tl-even .tl-time-col,
  .tl-item.tl-even .tl-icon-col,
  .tl-item.tl-even .tl-content-col {
    order: unset;
    text-align: left;
    padding-left: 16px;
    padding-right: 0;
  }
  .tl-content-col { padding-left: 16px; }
}

/* ══════════════════════════════
   9. DRESS CODE
══════════════════════════════ */
.dress-section {
  background-color: var(--cream);
  background-image: linear-gradient(rgba(240,232,218,0.82),rgba(240,232,218,0.82)), url('../images/texture_cream.jpg');
  background-size: cover;
  background-position: center top;
  padding-bottom: 0;
}

.dress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(196,150,58,0.08);
}

@media (max-width: 640px) {
  .dress-grid { grid-template-columns: 1fr; }
}

.dress-card {
  background: var(--cream);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  position: relative;
}
.dress-card::before {
  content: '';
  position: absolute;
  top: 18px; left: 18px;
  width: 24px; height: 24px;
  border-top: 1.5px solid rgba(196,150,58,0.3);
  border-left: 1.5px solid rgba(196,150,58,0.3);
}
.dress-card::after {
  content: '';
  position: absolute;
  bottom: 18px; right: 18px;
  width: 24px; height: 24px;
  border-bottom: 1.5px solid rgba(107,122,58,0.3);
  border-right: 1.5px solid rgba(107,122,58,0.3);
}
.dress-card-women { background: var(--cream); }
.dress-card-women::before { border-color: rgba(107,122,58,0.3); }
.dress-card-women::after  { border-color: rgba(196,150,58,0.3); }

.dress-gender {
  font-size: 0.52rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dress-gender::before, .dress-gender::after {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
}
.gold-gender { color: var(--gold); }
.gold-gender::before, .gold-gender::after { background: rgba(196,150,58,0.4); }
.olive-gender { color: var(--olive); }
.olive-gender::before, .olive-gender::after { background: rgba(107,122,58,0.4); }

.dress-sketch {
  max-width: 180px;
  filter: sepia(0.15) contrast(0.9) brightness(1.02);
}

.dress-name {
  font-family: 'Great Vibes', cursive;
  font-size: 2.6rem;
  color: var(--dark);
  line-height: 1;
}

.dress-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  border-radius: 2px;
}
.gold-badge {
  border: 1px solid rgba(196,150,58,0.3);
  background: rgba(196,150,58,0.04);
}
.olive-badge {
  border: 1px solid rgba(107,122,58,0.3);
  background: rgba(107,122,58,0.04);
}
.dress-badge span {
  font-size: 0.56rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.gold-badge span  { color: var(--gold); }
.olive-badge span { color: var(--olive); }

.dress-desc-text {
  font-size: 0.82rem;
  color: var(--medium);
  line-height: 1.75;
  max-width: 260px;
}

.dress-restriction {
  border-top: 1px solid rgba(196,150,58,0.12);
  padding-top: 16px;
  width: 100%;
  text-align: center;
}
.restriction-label {
  font-size: 0.5rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.chips-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px 5px 8px;
  border-radius: 2px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(176,112,112,0.2);
}
.chip-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.chip-swatch::after {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, transparent 42%, rgba(160,60,60,0.65) 42%, rgba(160,60,60,0.65) 58%, transparent 58%);
  border-radius: 50%;
}
.chip-text {
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--medium);
}
.restriction-note {
  font-size: 0.7rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 10px;
  line-height: 1.5;
}

.dress-note {
  background: var(--dark);
  padding: 28px 2rem;
  text-align: center;
}
.dress-note p {
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: rgba(250,247,240,0.5);
  margin-bottom: 6px;
}
.dress-note strong {
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: rgba(196,150,58,0.7);
  font-weight: 300;
}

/* ══════════════════════════════
   10. GALLERY
══════════════════════════════ */
.gallery-section { background-color: var(--ivory); background-image: linear-gradient(rgba(250,247,240,0.82),rgba(250,247,240,0.82)), url('../images/texture_ivory.jpg'); background-size: cover; background-position: center top; padding-bottom: 64px; }

.gallery-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

.gallery-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery-carousel { display: block; overflow: hidden; }
.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}
.carousel-slide { min-width: 100%; }
.carousel-slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-item { aspect-ratio: 3 / 2; overflow: hidden; }

@media (min-width: 769px) {
  .gallery-grid    { display: grid; }
  .gallery-carousel { display: none; }
}

/* Video embed — the couple's YouTube video, played inline */
.video-embed-wrap { margin-bottom: 28px; text-align: center; }
.video-embed-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.video-embed-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 18px;
}
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(44,36,34,0.18);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .video-embed-title { font-size: 1.1rem; }
}

/* ══════════════════════════════
   11. HOSPEDAJE
══════════════════════════════ */
.hospedaje-section {
  background-color: var(--dark);
  background-image: linear-gradient(rgba(44,36,34,0.82),rgba(44,36,34,0.82)), url('../images/texture_dark.jpg');
  background-size: cover;
  background-position: center top;
  padding: 72px 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hosp-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(196,150,58,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hosp-inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
}

.hosp-pre {
  color: rgba(196,150,58,0.6) !important;
  margin-bottom: 12px;
}

.hosp-heading {
  color: var(--ivory);
  font-size: clamp(2.6rem, 5vw, 3.5rem);
  margin-bottom: 12px;
}

.hosp-sub {
  font-size: 0.68rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(250,247,240,0.4);
  margin-bottom: 36px;
}

.hosp-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border: 1px solid rgba(196,150,58,0.3);
  transition: all 0.25s;
  text-decoration: none;
}
.hosp-card:hover {
  border-color: rgba(196,150,58,0.6);
  background: rgba(196,150,58,0.04);
}
.hosp-card:hover .hosp-arrow { transform: translateX(4px); }

.hosp-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(196,150,58,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hosp-card-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.hosp-card-eyebrow {
  font-size: 0.52rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(196,150,58,0.6);
  margin-bottom: 3px;
}
.hosp-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--ivory);
}

.hosp-arrow {
  color: var(--gold);
  font-size: 1.1rem;
  transition: transform 0.2s;
  margin-left: 4px;
}

/* ══════════════════════════════
   12. GIFT REGISTRY
══════════════════════════════ */
.gifts-section {
  background-color: var(--ivory);
  background-image: linear-gradient(rgba(250,247,240,0.82),rgba(250,247,240,0.82)), url('../images/texture_ivory.jpg');
  background-size: cover;
  background-position: center top;
  padding-bottom: 64px;
}

.gifts-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  max-width: 640px;
  margin: 0 auto 36px;
  padding: 0 1.5rem;
}

.store-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--white);
  border: 1px solid rgba(196,150,58,0.18);
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
}
.store-card:hover {
  transform: translateY(-2px);
  border-color: rgba(196,150,58,0.35);
}

.store-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(196,150,58,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--dark);
}

.store-link {
  font-size: 0.62rem;
  letter-spacing: 1px;
  color: var(--gold);
}

/* Bank transfer block */
.gifts-bank {
  max-width: 480px;
  margin: 0 auto 28px;
  padding: 24px 28px;
  background: var(--cream);
  border-left: 3px solid;
  border-image: linear-gradient(to bottom, var(--gold), var(--olive)) 1;
  margin-left: auto;
  margin-right: auto;
}
.gifts-bank-label {
  font-size: 0.58rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.gifts-bank-field {
  font-size: 0.82rem;
  color: var(--medium);
  line-height: 1.8;
  font-family: 'Cormorant Garamond', serif;
}

/* Day-of note */
.gifts-day-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  padding: 16px 24px;
  border: 1px dashed rgba(196,150,58,0.3);
  border-radius: 2px;
}
.gifts-day-note span {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
}

/* ══════════════════════════════
   13. RSVP
══════════════════════════════ */
.rsvp-section {
  background-color: var(--cream);
  background-image: linear-gradient(rgba(240,232,218,0.82),rgba(240,232,218,0.82)), url('../images/texture_cream.jpg');
  background-size: cover;
  background-position: center top;
  padding-bottom: 64px;
}

.rsvp-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.rsvp-deadline {
  text-align: center;
  font-size: 0.82rem;
  color: var(--medium);
  margin-bottom: 36px;
  line-height: 1.6;
}

.group-step, .success-state { width: 100%; }

.group-step    { display: none; }
.success-state { display: none; text-align: center; padding: 40px 0; }

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  min-height: 44px;
  border: 1px solid rgba(196,150,58,0.2);
  background: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--gold); }

.search-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

.group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.group-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
}

.members-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 14px;
}

.attending-legend {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.legend-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-family: 'Lato', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s;
}
.legend-btn--all {
  background: rgba(107,122,58,0.1);
  border-color: var(--olive);
  color: var(--olive);
}
.legend-btn--all:hover { background: var(--olive); color: var(--white); }

.legend-btn--none {
  background: rgba(196,150,58,0.08);
  border-color: rgba(196,150,58,0.4);
  color: var(--medium);
}
.legend-btn--none:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

.member-list { margin-bottom: 24px; }
.member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(196,150,58,0.1);
}
.member-name { font-size: 0.9rem; color: var(--dark); }
.member-toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  border: 1px solid rgba(196,150,58,0.3);
  background: var(--white);
  cursor: pointer;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}
.member-toggle.on { background: var(--olive); border-color: var(--olive); }
.member-toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s, background 0.2s;
}
.member-toggle.on::after { transform: translateX(20px); background: var(--white); }

.extra-fields { padding-top: 8px; }

.submit-wrap { text-align: center; margin-top: 20px; }
.submit-btn {
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 40px;
  border: none;
  background: var(--olive);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s;
}
.submit-btn:hover { background: var(--dark); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Member rows */
.member-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid rgba(196,150,58,0.15);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--white);
  user-select: none;
}
.member-row:hover { border-color: rgba(107,122,58,0.3); }
.member-row.attending { border-color: var(--olive); background: rgba(107,122,58,0.04); }
.member-row.not-attending { opacity: 0.5; }
.member-check {
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(196,150,58,0.35);
  border-radius: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.member-row.attending .member-check { background: var(--olive); border-color: var(--olive); }
.member-name { font-size: 0.9rem; color: var(--dark); flex: 1; }
.member-row.not-attending .member-name { text-decoration: line-through; color: var(--muted); }
.member-badge { font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase; color: var(--olive); }

/* Plus-one name input */
.member-name-input-wrap {
  padding: 10px 14px 12px 46px;
  background: rgba(107,122,58,0.04);
  border-top: 1px dashed rgba(107,122,58,0.2);
  animation: slideDown 0.18s ease-out;
}
.member-name-label {
  font-size: 0.52rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--olive);
  display: block;
  margin-bottom: 5px;
}
.member-name-input {
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-bottom: 1.5px solid rgba(107,122,58,0.3);
  background: transparent;
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  color: var(--dark);
  outline: none;
}
.member-name-input:focus { border-bottom-color: var(--olive); }
.member-name-input::placeholder { color: var(--muted); font-style: italic; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.success-icon { margin-bottom: 20px; }
.success-title {
  font-family: 'Great Vibes', cursive;
  font-size: 2.8rem;
  color: var(--olive);
  margin-bottom: 12px;
}
.success-sub {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ══════════════════════════════
   14. MUSIC BUTTON
══════════════════════════════ */
.music-btn {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(44,36,34,0.88);
  border: 1px solid rgba(196,150,58,0.4);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.music-btn:hover {
  background: rgba(44,36,34,0.98);
  border-color: var(--gold);
  transform: scale(1.06);
}
.music-btn .icon-pause { display: none; }
.music-btn.playing .icon-note  { display: none; }
.music-btn.playing .icon-pause { display: block; }
.music-btn.playing {
  border-color: var(--olive);
  color: var(--olive-light, var(--olive));
  animation: musicBounce 0.7s ease-in-out infinite;
}
@keyframes musicBounce {
  0%, 100% { transform: translateY(0);    box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
  40%       { transform: translateY(-7px); box-shadow: 0 10px 22px rgba(0,0,0,0.2); }
  70%       { transform: translateY(-3px); box-shadow: 0 7px 18px rgba(0,0,0,0.22); }
}
.music-btn:hover { animation: none; }

@media (max-width: 768px) {
  .music-btn { bottom: 80px; }
}

/* ══════════════════════════════
   15. FOOTER
══════════════════════════════ */
footer {
  background-color: var(--dark);
  background-image: linear-gradient(rgba(44,36,34,0.82),rgba(44,36,34,0.82)), url('../images/texture_dark.jpg');
  background-size: cover;
  background-position: center top;
  padding: 48px 2rem 80px;
  text-align: center;
}

.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ivory);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.footer-names span {
  font-family: 'Dancing Script', cursive;
  color: var(--gold);
  font-size: 1.8rem;
}
.footer-date {
  font-size: 0.62rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(250,247,240,0.4);
  margin-bottom: 24px;
}
.footer-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--olive));
  margin: 0 auto;
}

/* ══════════════════════════════
   15. MOBILE BOTTOM NAV
══════════════════════════════ */
.mobile-nav-preview {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(44,36,34,0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(196,150,58,0.12);
}
.mobile-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0 12px;
}
.mob-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
  flex: 1;
  text-align: center;
}
.mob-tab.active { color: var(--olive); }
.mob-rsvp-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  flex: 1;
  text-align: center;
}
.mob-rsvp-pill {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

@media (min-width: 769px) {
  .mobile-nav-preview { display: none; }
  body { padding-bottom: 0; }
}

/* ══════════════════════════════
   16. ANIMATE.CSS WOW HELPERS
══════════════════════════════ */
.wow { visibility: hidden; }

/* ══════════════════════════════
   17. GALLERY CAROUSEL DOTS
══════════════════════════════ */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px 0 4px;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(196,150,58,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.5);
}
@media (min-width: 769px) {
  .carousel-dots { display: none; }
}

/* ══════════════════════════════
   18. REDUCED MOTION
══════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .animate-gradient-text {
    animation: none;
    background: none;
    -webkit-text-fill-color: var(--dark);
    color: var(--dark);
  }
  .music-btn.playing { animation: none; }
  .scroll-dot        { animation: none; }
  .wow               { visibility: visible !important; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ══════════════════════════════
   19. MOBILE SECTION DRAWER
══════════════════════════════ */
.mob-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 98;
  backdrop-filter: blur(2px);
}
.mob-drawer-backdrop.open { display: block; }

.mob-drawer {
  position: fixed;
  bottom: 80px;
  left: 0;
  right: 0;
  background: rgba(36,28,26,0.98);
  border-top: 1px solid rgba(196,150,58,0.25);
  z-index: 99;
  transform: translateY(110%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 72vh;
  overflow-y: auto;
}
.mob-drawer.open { transform: translateY(0); }

.mob-drawer-handle {
  width: 36px;
  height: 4px;
  background: rgba(196,150,58,0.3);
  border-radius: 2px;
  margin: 14px auto 10px;
}

.mob-drawer-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 24px;
  border-bottom: 1px solid rgba(196,150,58,0.07);
  color: rgba(250,247,240,0.82);
  text-decoration: none;
  transition: background 0.15s;
}
.mob-drawer-item:last-child { border-bottom: none; }
.mob-drawer-item:active,
.mob-drawer-item:hover { background: rgba(196,150,58,0.07); }

.mob-drawer-icon {
  width: 22px;
  flex-shrink: 0;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mob-drawer-label {
  flex: 1;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.mob-drawer-arrow {
  color: rgba(196,150,58,0.35);
  font-size: 0.85rem;
  transition: transform 0.15s;
}
.mob-drawer-item:active .mob-drawer-arrow { transform: translateX(3px); }

/* Menu tab button in bottom nav */
.mob-menu-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  flex: 1;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: 'Lato', sans-serif;
  transition: color 0.2s;
}
.mob-menu-tab.open { color: var(--gold); }

@media (min-width: 769px) {
  .mob-drawer, .mob-drawer-backdrop { display: none !important; }
}

/* ══════════════════════════════
   20. RESPONSIVE ADJUSTMENTS
══════════════════════════════ */
@media (min-width: 769px) {
  .sec-header { padding: 80px 2rem 48px; }
  .gifts-bank  { padding: 28px 36px; }
}

@media (max-width: 480px) {
  .hero-photo-frame  { width: 170px; height: 220px; }
  .cd-card           { width: 44px; height: 58px; }
  .cd-digit          { font-size: 2.2rem; }
  .dress-card        { padding: 36px 20px; }
  .hosp-card         { flex-direction: column; text-align: center; }
  .hosp-card-text    { align-items: center; }
  .tl-item           { grid-template-columns: 72px 44px 1fr; }
}

/* ══════════════════════════════
   22. SPLASH OVERLAY
══════════════════════════════ */

#splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(ellipse 65% 45% at 50% 44%, rgba(196,150,58,0.09) 0%, transparent 58%),
    #1e1614;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1);
}
#splash-overlay.visible   { display: flex; opacity: 1; }
#splash-overlay.splash-out { opacity: 0; }

#splash-card {
  background: var(--ivory);
  max-width: 420px;
  width: 100%;
  padding: 52px 44px 44px;
  text-align: center;
  border: 1px solid rgba(196,150,58,0.18);
  box-shadow: 0 36px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.06);
  position: relative;
  animation: splashIn 0.72s cubic-bezier(0.16,1,0.3,1) 0.08s both;
}
@keyframes splashIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

#splash-card::before,
#splash-card::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(196,150,58,0.38);
  border-style: solid;
}
#splash-card::before { top: 13px; left: 13px; border-width: 1px 0 0 1px; }
#splash-card::after  { bottom: 13px; right: 13px; border-width: 0 1px 1px 0; }

.splash-names {
  font-family: 'Great Vibes', cursive;
  font-size: 2.9rem;
  background: linear-gradient(90deg, #2C2422 0%, #C4963A 32%, #6B7A3A 54%, #C4963A 76%, #2C2422 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  padding: 0.15em 0.1em;
  line-height: 1.15;
  margin-bottom: 6px;
}

.splash-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.6rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.splash-rule {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,150,58,0.55), transparent);
  margin: 0 auto 28px;
}

.splash-prompt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--medium);
  line-height: 1.7;
  margin-bottom: 22px;
}

#splash-code-input {
  display: block;
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(44,36,34,0.18);
  background: transparent;
  font-family: 'Lato', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 7px;
  text-align: center;
  text-transform: uppercase;
  color: var(--dark);
  padding: 10px 0 13px;
  margin-bottom: 8px;
  outline: none;
  transition: border-color 0.25s;
  box-sizing: border-box;
}
#splash-code-input:focus       { border-bottom-color: var(--gold); }
#splash-code-input::placeholder {
  letter-spacing: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

#splash-error-msg {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.82rem;
  color: #a85a5a;
  margin-bottom: 14px;
  min-height: 1.2em;
  display: none;
}
#splash-error-msg.visible { display: block; }

#splash-submit-btn,
#splash-continue-btn {
  display: block;
  width: 100%;
  background: var(--dark);
  color: var(--ivory);
  font-family: 'Lato', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 15px 20px;
  border: none;
  cursor: pointer;
  transition: background 0.25s;
  margin-bottom: 20px;
}
#splash-submit-btn:hover,
#splash-continue-btn:hover  { background: var(--gold); }
#splash-submit-btn:disabled { opacity: 0.55; cursor: default; }

#splash-no-code-link {
  font-family: 'Lato', sans-serif;
  font-size: 0.57rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  display: inline-block;
  padding-bottom: 1px;
}
#splash-no-code-link:hover {
  color: var(--medium);
  border-bottom-color: rgba(92,74,71,0.28);
}

@media (max-width: 480px) {
  #splash-card     { padding: 40px 28px 36px; }
  .splash-names    { font-size: 2.3rem; }
  #splash-code-input { letter-spacing: 5px; }
}

/* ══════════════════════════════
   21. CODE ACCESS GATING
══════════════════════════════ */

/* Sections requiring a valid code. Removed by access.js when code is valid. */
.code-gated { display: none !important; }

/* No-code fallback banner. Shown by access.js when no code / invalid code. */
#access-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 540px;
  margin: 0 auto 48px;
  padding: 28px 32px;
  background: rgba(196,150,58,0.05);
  border: 1px solid rgba(196,150,58,0.22);
  text-align: center;
}
#access-fallback.visible { display: flex; }
#access-fallback p {
  font-size: 0.84rem;
  color: var(--medium);
  line-height: 1.65;
}
#access-fallback a {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(196,150,58,0.3);
  padding-bottom: 1px;
}

/* Personalized intro injected by access.js */
.rsvp-personal-intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--medium);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 20px;
  font-style: italic;
}
