/* ==========================================================
   CNK Wedding — styles.css
   Terracotta · Rustic · Timeless
   Carl & Kaye — April 17, 2026
   ========================================================== */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--beige); color: var(--black); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* === TOKENS === */
:root {
  --beige:       #F3ECE3;
  --white:       #FFFFFF;
  --rosy:        #C8A19C;
  --brown:       #91766E;
  --black:       #000000;
  --font-script: 'Corinthia', cursive;
  --font-sans:   'Montserrat', sans-serif;
  --nav-h:       68px;
  --max-w:       1100px;
}

/* === UTILITIES === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rosy);
  margin-bottom: 14px;
}

.script-heading {
  font-family: var(--font-script);
  font-size: clamp(38px, 5.5vw, 58px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--black);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.in-view { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* === NAVIGATION === */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  transition: background 0.3s, box-shadow 0.3s;
}
#site-nav.scrolled {
  background: var(--beige);
  box-shadow: 0 1px 0 rgba(145,118,110,0.18);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-script);
  font-size: 26px;
  color: var(--white);
  transition: color 0.3s;
  z-index: 201;
  position: relative;
}
#site-nav.scrolled .nav-logo { color: var(--black); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--rosy); }
#site-nav.scrolled .nav-links a { color: var(--brown); }
#site-nav.scrolled .nav-links a:hover { color: var(--rosy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 201;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}
#site-nav.scrolled .nav-toggle span { background: var(--black); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* === HERO === */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #2e1f18 0%, #3e2b22 45%, #1b1210 100%); /* fallback */
  isolation: isolate;
  overflow: hidden;
}
/* Photo slides — JS creates these and crossfades between them */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  z-index: 0;
}
.hero-slide.active { opacity: 1; }
/* Grain overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  z-index: 2;
  pointer-events: none;
}
/* Dark gradient overlay — sits above slides, always visible, never fades */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  animation: fadeUp 1.3s ease forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rosy);
  display: block;
  margin-bottom: 26px;
  text-shadow: 0 0 28px rgba(0,0,0,0.28);
}
.hero-names {
  font-family: var(--font-script);
  font-size: clamp(72px, 16vw, 128px);
  color: var(--white);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 24px;
  text-shadow: 0 0 40px rgba(0,0,0,0.28), 0 0 100px rgba(0,0,0,0.16);
}
.hero-rule {
  width: 52px;
  height: 1px;
  background: var(--rosy);
  margin: 0 auto 22px;
  opacity: 0.75;
}
.hero-date {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  text-shadow: 0 0 24px rgba(0,0,0,0.32);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 1s ease 1.3s forwards;
}
.hero-scroll-label {
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-shadow: 0 0 16px rgba(0,0,0,0.3);
}
.hero-scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(200,161,156,0.6), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* === MARQUEE === */
.marquee-wrap {
  background: var(--black);
  overflow: hidden;
  padding: 15px 0;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-set {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rosy);
  padding-right: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* === COUNTDOWN === */
#countdown {
  background: var(--white);
  padding: 92px 24px;
  text-align: center;
}
.countdown-head { margin-bottom: 52px; }
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid rgba(0,0,0,0.07);
}
.countdown-unit {
  padding: 36px 16px;
  border-right: 1px solid rgba(0,0,0,0.07);
}
.countdown-unit:last-child { border-right: none; }
.countdown-num {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 600;
  color: var(--black);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.countdown-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown);
}

/* === STORY === */
#story {
  padding: 104px 0;
  background: var(--beige);
}
.story-head {
  text-align: center;
  margin-bottom: 72px;
}
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 88px;
}
.story-block:last-child { margin-bottom: 0; }
.story-block.flip { direction: rtl; }
.story-block.flip > * { direction: ltr; }

.story-text p {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.95;
  color: #474747;
  margin-bottom: 18px;
}
.story-text p:last-child { margin-bottom: 0; }
.story-pull {
  border-left: 2px solid var(--rosy);
  padding: 2px 0 2px 20px;
  margin: 28px 0;
}
.story-pull p {
  font-size: 15px !important;
  font-weight: 400 !important;
  color: var(--brown) !important;
  font-style: italic;
  line-height: 1.75 !important;
}

.arch-photo {
  width: 100%;
  max-width: 290px;
  aspect-ratio: 3/4;
  border-radius: 50% 50% 0 0 / 37.5% 37.5% 0 0;
  overflow: hidden;
  margin: 0 auto;
  background: linear-gradient(155deg, #c8b0a6 0%, #a08076 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.arch-photo .ph-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
/* When real photo is ready: add class="has-photo" and include <img> inside */
.arch-photo.has-photo { background: none; }
.arch-photo.has-photo img { width: 100%; height: 100%; object-fit: cover; }

/* === WEDDING DETAILS (Venue Split Panels) === */
#details { position: relative; }

.venue-panels {
  display: flex;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

.venue-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
}

/* Photo background */
.venue-bg {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
.venue-panel.is-expanded .venue-bg { transform: scale(1.04); }

/* Dark gradient for legibility */
.venue-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.78) 0%,
    rgba(0,0,0,0.22) 45%,
    rgba(0,0,0,0.08) 100%
  );
  transition: opacity 0.5s ease;
}
.venue-panel.is-expanded .venue-overlay { opacity: 0.9; }

/* Content anchored to bottom */
.venue-content {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 0 32px 52px;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}
.venue-content a { pointer-events: auto; }

.venue-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rosy);
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.venue-name {
  font-family: var(--font-script);
  font-size: clamp(28px, 3.5vw, 54px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 0;
  text-shadow: 0 0 32px rgba(0,0,0,0.3), 0 0 80px rgba(0,0,0,0.18);
}

/* Revealed on expand — fade + rise */
.venue-time,
.venue-note,
.venue-map-link {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.venue-panel.is-expanded .venue-time {
  opacity: 1;
  transform: none;
  transition-delay: 0.08s;
  margin-top: 12px;
}
.venue-panel.is-expanded .venue-note {
  opacity: 1;
  transform: none;
  transition-delay: 0.14s;
  margin-top: 6px;
}
.venue-panel.is-expanded .venue-map-link {
  opacity: 1;
  transform: none;
  transition-delay: 0.2s;
  pointer-events: auto;
  margin-top: 22px;
}

.venue-time {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  text-shadow: 0 0 16px rgba(0,0,0,0.4);
}
.venue-note {
  display: block;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.48);
  text-shadow: 0 0 16px rgba(0,0,0,0.4);
}
.venue-map-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s, opacity 0.35s ease, transform 0.35s ease;
}
.venue-map-link:hover { color: var(--rosy); border-color: var(--rosy); }

/* Panel size states (set by JS) */
.venue-panels.left-active  #venue-ceremony  { flex: 3; }
.venue-panels.left-active  #venue-reception { flex: 1; }
.venue-panels.right-active #venue-reception { flex: 3; }
.venue-panels.right-active #venue-ceremony  { flex: 1; }

/* Thin divider seam between panels */
#venue-reception::before {
  content: '';
  position: absolute;
  left: 0; top: 10%; bottom: 10%;
  width: 1px;
  background: rgba(255,255,255,0.15);
  z-index: 4;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.venue-panels.left-active  #venue-reception::before,
.venue-panels.right-active #venue-reception::before { opacity: 0; }

/* Hover hint in center when idle */
.venue-hint {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.35s ease;
  white-space: nowrap;
}
.venue-panels.left-active  .venue-hint,
.venue-panels.right-active .venue-hint { opacity: 0; }
.venue-hint-line {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.18);
  margin: 0 auto 12px;
}
.venue-hint-text {
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  display: block;
}

/* CTA strip below panels */
.venue-cta {
  background: var(--beige);
  padding: 40px 24px;
  text-align: center;
}

.btn-map {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
  border-bottom: 1px solid rgba(145,118,110,0.4);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
  display: inline-block;
}
.btn-map:hover { color: var(--rosy); border-color: var(--rosy); }

.btn-outline {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  border: 1px solid rgba(0,0,0,0.22);
  padding: 14px 30px;
  transition: background 0.22s, color 0.22s;
}
.btn-outline:hover { background: var(--black); color: var(--white); }

/* Add to Calendar button */
.countdown-actions {
  margin-top: 36px;
}
.btn-calendar {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown);
  background: transparent;
  border: 1px solid rgba(145,118,110,0.35);
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
}
.btn-calendar:hover {
  background: var(--brown);
  color: var(--white);
  border-color: var(--brown);
}
.btn-calendar:focus-visible {
  outline: 2px solid var(--rosy);
  outline-offset: 3px;
}
.btn-calendar-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: color 0.22s;
}

/* === RSVP === */
#rsvp {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 480px;
  padding: 120px 24px;
}
.rsvp-bg {
  position: absolute;
  inset: -6%;
  background-image: url('images/hero/hero-2.webp');
  background-size: cover;
  background-position: center;
  filter: brightness(0.8) saturate(1.1);
  transform: scale(1);
  transition: transform 12s ease;
}
#rsvp:hover .rsvp-bg {
  transform: scale(1.04);
}
.rsvp-overlay {
  position: absolute;
  inset: 0;
  /* fade in from right, clear on the left so photo shows */
  background: linear-gradient(
    to left,
    rgba(20,10,8,0.88) 0%,
    rgba(20,10,8,0.74) 38%,
    rgba(20,10,8,0.24) 68%,
    rgba(20,10,8,0.0) 100%
  );
}
#rsvp .eyebrow { color: rgba(255,255,255,0.65); }
#rsvp .script-heading { color: var(--white); margin-bottom: 32px; text-shadow: 0 0 40px rgba(0,0,0,0.4); }

.rsvp-body {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin: 0;
  text-align: right;
  padding-right: clamp(24px, 6vw, 96px);
}
.rsvp-body p {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.9;
  color: rgba(255,255,255,0.78);
  margin-bottom: 10px;
}
.rsvp-body strong {
  color: #fff;
  font-weight: 600;
}
.rsvp-tag {
  display: inline-block;
  margin-top: 32px;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rosy);
  border: 1px solid rgba(200,161,156,0.35);
  padding: 12px 24px;
}
@media (max-width: 600px) {
  #rsvp {
    justify-content: center;
    min-height: 520px;
    padding: 80px 24px;
  }
  .rsvp-overlay {
    background: rgba(20,10,8,0.65);
  }
  .rsvp-body {
    padding-right: 0;
    max-width: 100%;
    text-align: center;
  }
}

/* === ENTOURAGE === */
#entourage {
  background: var(--beige);
  padding: 104px 24px;
  text-align: center;
}
.entourage-head { margin-bottom: 72px; }

.role-tag {
  display: block;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rosy);
  margin-bottom: 12px;
  position: relative;
}
.role-tag::before, .role-tag::after { content: '—'; margin: 0 8px; opacity: 0.35; }

/* Officiant */
.ent-officiant { margin-bottom: 64px; }
.ent-script-name {
  font-family: var(--font-script);
  font-size: 26px;
  color: var(--black);
  font-weight: 400;
}

/* Parents */
.ent-parents {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  max-width: 620px;
  margin: 0 auto 64px;
}
.ent-parents-divider { background: rgba(0,0,0,0.1); margin: 0 48px; }
.parent-name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--black);
  line-height: 2.3;
}

/* Honors */
.ent-honors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 520px;
  margin: 0 auto 64px;
}

/* Sponsors */
.ent-sponsors { max-width: 680px; margin: 0 auto 64px; }
.sponsor-row {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--black);
  line-height: 1;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.sponsor-row:first-of-type { border-top: 1px solid rgba(0,0,0,0.07); }
.amp { color: var(--rosy); font-style: italic; margin: 0 5px; }

/* Secondary sponsors */
.ent-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 680px;
  margin: 0 auto 64px;
}

/* Wedding party */
.ent-party {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 600px;
  margin: 0 auto 64px;
}

/* Bearers */
.ent-bearers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  max-width: 560px;
  margin: 0 auto;
}

.name-list {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--black);
  line-height: 2.4;
}

/* === GIFT GUIDE === */
#gifts {
  position: relative;
  overflow: hidden;
  padding: 120px 24px;
  display: flex;
  align-items: center;
  min-height: 480px;
}
.gifts-bg {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: right center;
  filter: brightness(0.82) saturate(1.1);
  transform: scale(1);
  transition: transform 12s ease;
}
#gifts:hover .gifts-bg {
  transform: scale(1.04);
}
.gifts-overlay {
  position: absolute;
  inset: 0;
  /* fade in from left, clear on the right so faces show */
  background: linear-gradient(
    to right,
    rgba(20,10,8,0.88) 0%,
    rgba(20,10,8,0.74) 38%,
    rgba(20,10,8,0.24) 68%,
    rgba(20,10,8,0.0) 100%
  );
}
.gifts-inner {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin: 0;
  text-align: left;
  padding-left: clamp(24px, 6vw, 96px);
}
.gifts-heart {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--rosy);
  text-shadow: 0 0 20px rgba(200,161,156,0.5);
  display: block;
}
#gifts .eyebrow {
  color: rgba(255,255,255,0.65);
}
#gifts .script-heading {
  color: #fff;
  text-shadow: 0 0 40px rgba(0,0,0,0.4);
}
.gifts-inner p {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.9;
  color: rgba(255,255,255,0.78);
}
.gifts-inner strong {
  color: #fff;
  font-weight: 600;
}
@media (max-width: 600px) {
  #gifts {
    min-height: 520px;
    padding: 80px 24px;
  }
  .gifts-overlay {
    background: rgba(20,10,8,0.62);
  }
  .gifts-inner {
    padding-left: 0;
    max-width: 100%;
    text-align: center;
  }
}

/* === FAQ === */
#faq {
  background: var(--beige);
  padding: 104px 24px;
}
.faq-head { text-align: center; margin-bottom: 56px; }
.faq-list {
  max-width: 680px;
  margin: 0 auto;
}
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.1); }
.faq-item:first-child { border-top: 1px solid rgba(0,0,0,0.1); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--black);
  user-select: none;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brown); }
.faq-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-left: 20px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--rosy);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
.faq-icon::before { width: 100%; height: 1.5px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-icon::after  { width: 1.5px; height: 100%; top: 0; left: 50%; transform: translateX(-50%); }
.faq-item[open] .faq-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-answer {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 400;
  color: #555;
  line-height: 1.85;
  padding-bottom: 24px;
  padding-right: 38px;
}

/* === FOOTER === */
footer {
  background: var(--black);
  padding: 88px 24px 60px;
  text-align: center;
}
.footer-rule {
  width: 1px;
  height: 44px;
  background: rgba(200,161,156,0.4);
  margin: 0 auto 32px;
}
.footer-names {
  font-family: var(--font-script);
  font-size: clamp(44px, 9vw, 72px);
  color: var(--white);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 18px;
}
.footer-date {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--rosy);
  margin-bottom: 36px;
}
.footer-divider {
  width: 36px;
  height: 1px;
  background: rgba(145,118,110,0.4);
  margin: 0 auto 28px;
}
.footer-thanks {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 44px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.48);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--rosy); }

/* === DETAILS PAGE === */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 24px 80px;
  background: var(--black);
  text-align: center;
}
.page-hero .eyebrow { color: var(--rosy); }
.page-hero .script-heading { color: var(--white); margin-bottom: 16px; }
.page-hero-sub {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
}

/* Attire */
#attire { background: var(--beige); padding: 104px 24px; text-align: center; }
.attire-head { margin-bottom: 52px; }
.palette-swatches {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 auto 60px;
  max-width: 580px;
}
.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 80px;
}
.swatch-color {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.swatch-name {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
}
.swatch-hex {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 300;
  color: var(--brown);
}
.attire-notes {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}
.attire-item {
  background: var(--white);
  padding: 24px 28px;
  margin-bottom: 10px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.attire-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rosy);
  white-space: nowrap;
  padding-top: 3px;
  min-width: 72px;
}
.attire-text {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: #555;
  line-height: 1.8;
}

/* Program */
#program { background: var(--white); padding: 104px 24px; text-align: center; }
.program-head { margin-bottom: 56px; }
.timeline {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
  text-align: left;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 86px;
  top: 8px; bottom: 8px;
  width: 1px;
  background: rgba(0,0,0,0.07);
}
.tl-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  padding-bottom: 40px;
  position: relative;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-time {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--rosy);
  text-align: right;
  padding-right: 24px;
  padding-top: 3px;
}
.tl-dot {
  position: absolute;
  left: 82px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rosy);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--rosy);
}
.tl-body { padding-left: 16px; }
.tl-event {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}
.tl-desc {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--brown);
  line-height: 1.65;
}

/* Reminders */
#reminders { background: var(--beige); padding: 104px 24px; text-align: center; }
.reminders-head { margin-bottom: 52px; }
.reminders-list {
  max-width: 560px;
  margin: 0 auto;
  list-style: none;
  text-align: left;
}
.reminder-item {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  align-items: flex-start;
}
.reminder-item:first-child { border-top: 1px solid rgba(0,0,0,0.08); }
.reminder-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rosy);
  flex-shrink: 0;
  margin-top: 7px;
}
.reminder-text {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 400;
  color: #444;
  line-height: 1.78;
}
.reminder-text strong { font-weight: 600; color: var(--black); }

/* Directions */
#directions { background: var(--white); padding: 104px 24px; text-align: center; }
.directions-head { margin-bottom: 52px; }
.direction-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.dir-card { background: var(--beige); padding: 44px 36px; }
.dir-card .card-type {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rosy);
  display: block;
  margin-bottom: 14px;
}
.dir-card h3 {
  font-family: var(--font-script);
  font-size: 28px;
  color: var(--black);
  margin-bottom: 14px;
}
.dir-card p {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--brown);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
  transition: color 0.2s;
}
.back-link:hover { color: var(--rosy); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .container { padding: 0 20px; }

  /* Nav mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    inset: var(--nav-h) 0 0 0;
    background: var(--beige);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 199;
  }
  .nav-links.open { display: flex; }
  .nav-links.open a { color: var(--brown); font-size: 12px; }
  .nav-toggle { display: flex; }

  /* Story */
  .story-block { grid-template-columns: 1fr; gap: 40px; }
  .story-block.flip { direction: ltr; }
  .arch-photo { max-width: 230px; }

  /* Venue panels — stack vertically on mobile */
  .venue-panels {
    flex-direction: column;
    height: auto;
  }
  .venue-panel {
    flex: none !important;
    height: 56vmax;
    min-height: 320px;
    max-height: 480px;
  }
  /* Always show revealed content on mobile */
  .venue-time,
  .venue-note,
  .venue-map-link {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    margin-top: 0;
  }
  .venue-time  { margin-top: 12px; }
  .venue-note  { margin-top: 6px; }
  .venue-map-link { margin-top: 20px; }
  #venue-reception::before { display: none; }
  .venue-hint { display: none; }

  /* Entourage */
  .ent-parents { grid-template-columns: 1fr; gap: 40px; }
  .ent-parents-divider { display: none; }
  .ent-honors { grid-template-columns: 1fr; }
  .ent-secondary { grid-template-columns: 1fr; }
  .ent-party { grid-template-columns: 1fr; }
  .ent-bearers { gap: 32px; }

  /* Directions */
  .direction-cards { grid-template-columns: 1fr; max-width: 380px; }

  /* Timeline */
  .timeline::before { left: 70px; }
  .tl-item { grid-template-columns: 70px 1fr; }
  .tl-dot { left: 66px; }
}

@media (max-width: 480px) {
  .countdown-grid {
    grid-template-columns: 1fr 1fr;
  }
  .countdown-unit:nth-child(1) { border-right: 1px solid rgba(0,0,0,0.07); }
  .countdown-unit:nth-child(2) { border-right: none; }
  .countdown-unit:nth-child(3) { border-top: 1px solid rgba(0,0,0,0.07); border-right: 1px solid rgba(0,0,0,0.07); }
  .countdown-unit:nth-child(4) { border-top: 1px solid rgba(0,0,0,0.07); border-right: none; }

  .palette-swatches { gap: 12px; }
  .swatch { min-width: 60px; }
  .swatch-color { width: 58px; height: 58px; }
}
