/* ==========================================================================
   NATHALIE & PATRICK — MIDNIGHT SLATE & BLUSH IVORY WEDDING INVITATION STYLES
   Inspired by & upgraded from template2.tilda.ws/nathaliepatrick
   ========================================================================== */

:root {
  --bg-slate: #292f38;
  --bg-slate-deep: #1e232a;
  --bg-blush: #f8f0ed;
  --bg-white: #ffffff;
  --accent-rose: #d4a38f;
  --accent-gold: #c9a769;
  --text-light: #f8f0ed;
  --text-dark: #292f38;
  --text-muted-light: rgba(248, 240, 237, 0.72);
  --text-muted-dark: #686d75;
  --border-blush: rgba(248, 240, 237, 0.22);
  --border-dark: rgba(41, 47, 56, 0.16);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.18);
  --shadow-card: 0 22px 55px rgba(0, 0, 0, 0.28);
  --font-serif: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
  --font-display: 'Playfair Display', 'Times New Roman', serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

body {
  font-family: var(--font-serif);
  background-color: var(--bg-slate);
  color: var(--text-light);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   TOP FLOATING TOOLBAR (Language Switcher & Custom Guest Link)
   ========================================================================== */
.top-floating-bar {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-btn {
  background: rgba(41, 47, 56, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-blush);
  color: var(--bg-blush);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.pill-btn:hover {
  background: var(--bg-blush);
  color: var(--bg-slate);
  transform: translateY(-1px);
}

/* ==========================================================================
   UPGRADED WELCOME GATE OVERLAY + MUSIC
   ========================================================================== */
.np-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: radial-gradient(circle at center, #323a45 0%, #1c2026 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.7s ease, visibility 0s 0.7s;
}

.np-welcome-overlay.closed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.np-welcome-box {
  max-width: 440px;
  width: 100%;
  background: var(--bg-blush);
  color: var(--text-dark);
  border-radius: 28px;
  padding: 44px 30px;
  text-align: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  border: 2px solid var(--accent-gold);
  position: relative;
}

.np-welcome-box::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(41, 47, 56, 0.22);
  border-radius: 20px;
  pointer-events: none;
}

.np-welcome-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  margin-bottom: 10px;
}

.np-welcome-names {
  font-family: var(--font-script);
  font-size: 3.1rem;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 8px;
}

.np-welcome-date {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  color: var(--text-muted-dark);
  margin-bottom: 22px;
}

.btn-slate-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-slate);
  color: var(--bg-blush);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--accent-gold);
  box-shadow: 0 10px 26px rgba(41, 47, 56, 0.3);
  transition: all 0.25s ease;
}

.btn-slate-gold:hover {
  background: var(--accent-gold);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   SECTION 1: HERO SECTION (REC 884647174)
   ========================================================================== */
.hero-section {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 55px 20px 60px;
  text-align: center;
}

.hero-portrait-wrap {
  max-width: 420px;
  margin: 0 auto 24px;
  position: relative;
}

.hero-portrait-img {
  width: 100%;
  border-radius: 24px;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.38));
}

.hero-couple-title {
  font-family: var(--font-script);
  font-size: clamp(3.3rem, 8vw, 4.6rem);
  font-weight: 400;
  color: var(--bg-blush);
  line-height: 1.08;
  margin-bottom: 8px;
}

.hero-date-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.24em;
  color: var(--accent-gold);
  border-top: 1px solid var(--border-blush);
  border-bottom: 1px solid var(--border-blush);
  padding: 6px 24px;
  margin-bottom: 16px;
}

.scroll-down-txt {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted-light);
}

/* ==========================================================================
   SECTION 2: WELCOME LETTER ON BLUSH CARD (REC 884656852)
   ========================================================================== */
.welcome-section {
  padding: 20px 16px 60px;
  max-width: 640px;
  margin: 0 auto;
}

.blush-card {
  background: var(--bg-blush);
  color: var(--text-dark);
  border-radius: 28px;
  padding: 44px 30px;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
}

.welcome-couple-photo {
  width: 240px;
  margin: 0 auto 22px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(41, 47, 56, 0.16);
}

.guest-greeting-title {
  font-family: var(--font-script);
  font-size: clamp(2.3rem, 5.5vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 14px;
}

.welcome-paragraphs p {
  font-size: 1.12rem;
  color: var(--text-dark);
  margin-bottom: 14px;
  max-width: 500px;
  margin-inline: auto;
}

/* ==========================================================================
   SECTION 3: COUNTDOWN TIMER (REC 884647180)
   ========================================================================== */
.countdown-section {
  padding: 50px 20px 65px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.section-script-light {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 6vw, 3.5rem);
  font-weight: 400;
  color: var(--bg-blush);
  line-height: 1.15;
  margin-bottom: 8px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 26px 0;
}

.cd-card {
  background: rgba(248, 240, 237, 0.08);
  border: 1px solid var(--border-blush);
  border-radius: 16px;
  padding: 18px 8px;
}

.cd-num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 600;
  color: var(--accent-gold);
}

.cd-lbl {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted-light);
  margin-top: 6px;
}

.btn-blush-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--bg-blush);
  border: 1.5px solid var(--border-blush);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.btn-blush-outline:hover {
  background: var(--bg-blush);
  color: var(--bg-slate);
}

/* ==========================================================================
   SECTION 4: TWO-DAY EVENT TIMELINE & VENUES (REC 884647183)
   ========================================================================== */
.timeline-section {
  padding: 30px 16px 65px;
  max-width: 680px;
  margin: 0 auto;
}

.tl-couple-banner {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  margin-bottom: 28px;
  border: 3px solid var(--bg-blush);
  box-shadow: var(--shadow-card);
}

.tl-couple-banner img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.day-schedule-card {
  background: var(--bg-blush);
  color: var(--text-dark);
  border-radius: 26px;
  padding: 34px 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.day-badge {
  display: inline-block;
  background: var(--bg-slate);
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 6px 20px;
  border-radius: 99px;
  margin-bottom: 18px;
}

.event-stop {
  text-align: left;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border-dark);
}

.event-stop:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.event-stop-time {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
}

.event-stop-venue {
  font-size: 1.05rem;
  color: var(--text-muted-dark);
  margin-top: 4px;
}

/* ==========================================================================
   SECTION 5: DRESS CODE — 5 VIBRANT SWATCHES & 7 PHOTOS (REC 884647186)
   ========================================================================== */
.dresscode-section {
  padding: 50px 20px 70px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.dc-rule-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0;
}

.dc-rule-box {
  background: rgba(248, 240, 237, 0.08);
  border: 1px solid var(--border-blush);
  border-radius: 22px;
  padding: 24px 20px;
}

.dc-rule-box h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.vibrant-swatches {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 22px 0 30px;
}

.v-swatch {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid var(--bg-blush);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.v-swatch:hover {
  transform: scale(1.12);
}

.dc-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.dc-photo-item {
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--border-blush);
  background: var(--bg-blush);
  aspect-ratio: 3 / 4;
}

.dc-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   SECTION 6: ORGANISATION, CONTACTS & GIFTS (REC 884819689)
   ========================================================================== */
.org-section {
  padding: 30px 16px 65px;
  max-width: 680px;
  margin: 0 auto;
}

.org-photos-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.org-photos-pair img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid var(--bg-blush);
}

.copy-row-slate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px dashed var(--bg-slate);
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
}

.copy-slate-btn {
  background: var(--bg-slate);
  color: var(--bg-blush);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
}

/* ==========================================================================
   SECTION 7: CONFIRMATION (RSVP) & QR PASS (REC 884647189)
   ========================================================================== */
.rsvp-section {
  padding: 20px 16px 70px;
  max-width: 680px;
  margin: 0 auto;
}

.rsvp-grid-card {
  background: var(--bg-blush);
  color: var(--text-dark);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  box-shadow: var(--shadow-card);
}

.rsvp-photo-col img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.rsvp-form-col {
  padding: 34px 26px;
  text-align: left;
}

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

.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-dark);
  background: #ffffff;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-dark);
}

.radio-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-blush {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-dark);
  cursor: pointer;
}

.qr-np-pass {
  display: none;
  margin-top: 20px;
  background: #ffffff;
  border: 2px solid var(--bg-slate);
  border-radius: 16px;
  padding: 16px;
}

.qr-np-pass.active {
  display: block;
}

.qr-np-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.qr-np-img {
  width: 98px;
  height: 98px;
  padding: 4px;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
}

/* ==========================================================================
   SECTION 8: FOOTER & FLOATING AUDIO (REC 884647198)
   ========================================================================== */
.footer-section {
  padding: 50px 20px 90px;
  text-align: center;
  border-top: 1px solid var(--border-blush);
}

.footer-monogram-img {
  width: 160px;
  margin: 0 auto 16px;
}

.floating-audio-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9400;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
  border: 2px solid var(--bg-blush);
}

.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 21, 26, 0.72);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.custom-modal-backdrop.open {
  display: flex;
}

.custom-modal-box {
  background: var(--bg-blush);
  color: var(--text-dark);
  border: 2px solid var(--accent-gold);
  border-radius: 22px;
  max-width: 460px;
  width: 100%;
  padding: 30px 24px;
  position: relative;
  text-align: left;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  font-size: 1.2rem;
}

@media (max-width: 680px) {
  .dc-rule-cards,
  .rsvp-grid-card,
  .org-photos-pair {
    grid-template-columns: 1fr;
  }
}
