/* ==========================================================================
   KELVIN & JASMINE — EDITORIAL SKETCH & LOVE STORY WEDDING INVITATION STYLES
   Inspired by & upgraded from webgency.tilda.ws/kelvinjasmine
   ========================================================================== */

:root {
  --bg-white: #ffffff;
  --bg-parchment: #f5f3ed;
  --bg-beige-soft: #f3eae2;
  --accent-gold: #c8a962;
  --accent-champagne: #f0e2a3;
  --accent-blue: #d4ddf4;
  --text-black: #0e0e18;
  --text-body: #42424a;
  --text-muted: #737373;
  --border-subtle: rgba(14, 14, 24, 0.14);
  --shadow-soft: 0 14px 40px rgba(14, 14, 24, 0.06);
  --shadow-card: 0 22px 55px rgba(14, 14, 24, 0.12);
  --font-serif: 'Cormorant Garamond', 'Playfair Display', 'Georgia', serif;
  --font-display: 'Playfair Display', 'Georgia', 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-white);
  color: var(--text-black);
  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(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  color: var(--text-black);
  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.08);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.pill-btn:hover {
  background: var(--text-black);
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================================
   EDITORIAL WELCOME OVERLAY + MUSIC
   ========================================================================== */
.kj-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(14, 14, 24, 0.86);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.65s ease, visibility 0s 0.65s;
}

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

.kj-welcome-card {
  max-width: 440px;
  width: 100%;
  background: var(--bg-parchment);
  color: var(--text-black);
  border-radius: 26px;
  padding: 42px 28px;
  text-align: center;
  border: 1.5px solid var(--border-subtle);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.35);
}

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

.kj-welcome-names {
  font-family: var(--font-script);
  font-size: 3.2rem;
  color: var(--text-black);
  line-height: 1.1;
  margin-bottom: 6px;
}

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

.btn-black-tie {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--text-black);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(14, 14, 24, 0.22);
  transition: all 0.25s ease;
}

.btn-black-tie:hover {
  background: #2b2b3d;
  transform: translateY(-2px);
}

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

.btn-black-outline:hover {
  background: var(--text-black);
  color: #fff;
}

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

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-parchment);
  padding: 6px 18px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.hero-couple-names {
  font-family: var(--font-script);
  font-size: clamp(3.4rem, 8vw, 4.8rem);
  font-weight: 400;
  color: var(--text-black);
  line-height: 1.05;
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: 1.18rem;
  color: var(--text-body);
  margin-bottom: 24px;
}

.hero-sketch-wrap {
  max-width: 410px;
  margin: 0 auto 24px;
}

.hero-sketch-img {
  width: 100%;
  border-radius: 22px;
}

.hero-swirl-img {
  width: 180px;
  margin: -10px auto 18px;
}

.hero-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 420px;
  margin: 0 auto;
}

.meta-tile {
  background: var(--bg-parchment);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 18px 14px;
}

.meta-lbl {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.meta-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-black);
}

/* ==========================================================================
   SECTION 2: WELCOME LETTER (REC 1191757436)
   ========================================================================== */
.welcome-section {
  padding: 40px 20px 60px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.welcome-card {
  background: var(--bg-parchment);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 44px 28px;
  box-shadow: var(--shadow-soft);
}

.welcome-art-img {
  width: 165px;
  margin: 0 auto 18px;
}

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

.welcome-card p {
  font-size: 1.1rem;
  color: var(--text-body);
  margin-bottom: 12px;
}

/* ==========================================================================
   SECTION 3: OUR LOVE STORY TEASER & PARCHMENT MODAL (REC 1196087886 & 8416)
   ========================================================================== */
.story-section {
  padding: 50px 20px 65px;
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.section-script-title {
  font-family: var(--font-script);
  font-size: clamp(2.7rem, 6.5vw, 3.6rem);
  font-weight: 400;
  color: var(--text-black);
  line-height: 1.1;
  margin-bottom: 10px;
}

.story-teaser-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: 26px;
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
  text-align: left;
  margin-top: 22px;
}

.story-photo-wrap {
  position: relative;
}

.story-photo-wrap img {
  width: 100%;
  border-radius: 16px;
}

.story-kicker {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.story-excerpt {
  font-size: 1.08rem;
  color: var(--text-body);
  margin-bottom: 16px;
}

/* Full Love Story Parchment Modal (#zeropopup) */
.story-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 24, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9800;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.story-modal-box {
  background: var(--bg-parchment);
  border: 2px solid var(--border-subtle);
  border-radius: 26px;
  max-width: 620px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 40px 30px;
  position: relative;
  text-align: left;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

.story-modal-box p {
  font-size: 1.1rem;
  color: var(--text-body);
  margin-bottom: 14px;
}

.story-papers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.story-papers-grid img {
  border-radius: 12px;
  width: 100%;
}

/* ==========================================================================
   SECTION 4: EVENT TIMELINE & COUNTDOWN (REC 1195962091 & 1196033396)
   ========================================================================== */
.timeline-section {
  padding: 60px 20px;
  background: var(--bg-parchment);
  text-align: center;
}

.timeline-inner {
  max-width: 620px;
  margin: 0 auto;
}

.tl-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 28px 0 36px;
}

.tl-step-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.tl-step-num {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.tl-step-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-black);
}

.mid-couple-img {
  max-width: 340px;
  margin: 18px auto 28px;
  border-radius: 20px;
}

.countdown-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 500px;
  margin: 22px auto;
}

.cd-tile {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px 8px;
}

.cd-val {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  font-weight: 700;
}

.cd-lbl {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION 5: DRESS CODE — BLACK TIE & GOWN (REC 1191757456)
   ========================================================================== */
.dresscode-section {
  padding: 65px 20px;
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

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

.dc-swatch {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.14);
}

.dc-pair-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 480px;
  margin: 20px auto 30px;
}

.dc-role-box {
  background: var(--bg-parchment);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
}

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

.dc-gallery-item {
  background: var(--bg-parchment);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 3 / 4;
}

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

/* ==========================================================================
   SECTION 6: LOCATION & GOOGLE MAP (REC 1191757461 - 1191757471)
   ========================================================================== */
.location-section {
  padding: 60px 20px;
  background: var(--bg-parchment);
  text-align: center;
}

.location-inner {
  max-width: 640px;
  margin: 0 auto;
}

.pin-icon-img {
  width: 48px;
  margin: 0 auto 10px;
}

.map-embed-frame {
  margin: 24px auto;
  border-radius: 22px;
  overflow: hidden;
  border: 4px solid #ffffff;
  box-shadow: var(--shadow-card);
  height: 290px;
}

.map-embed-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   SECTION 7: ORGANIZATIONAL ASPECTS & RSVP (REC 1191757476 & 1191757481)
   ========================================================================== */
.org-rsvp-section {
  padding: 65px 20px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.org-box {
  background: var(--bg-parchment);
  border: 1px solid var(--border-subtle);
  border-radius: 26px;
  padding: 36px 24px;
  margin-bottom: 44px;
}

.org-couple-img {
  width: 220px;
  margin: 0 auto 18px;
  border-radius: 16px;
}

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

.copy-kj-btn {
  background: var(--text-black);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
}

.rsvp-card {
  background: #ffffff;
  border: 2px solid var(--border-subtle);
  border-radius: 28px;
  padding: 40px 28px;
  box-shadow: var(--shadow-card);
  text-align: left;
}

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

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

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-parchment);
  font-family: var(--font-serif);
  font-size: 1rem;
}

.drinks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.choice-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-parchment);
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  font-size: 0.96rem;
}

.qr-kj-pass {
  display: none;
  margin-top: 22px;
  background: var(--bg-parchment);
  border: 2px solid var(--text-black);
  border-radius: 18px;
  padding: 18px;
}

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

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

.qr-kj-img {
  width: 102px;
  height: 102px;
  background: #fff;
  padding: 5px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

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

.footer-floral-img {
  width: 185px;
  margin: 0 auto 16px;
}

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

.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 24, 0.65);
  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: #ffffff;
  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: var(--bg-parchment);
  font-size: 1.2rem;
}

@media (max-width: 640px) {
  .story-teaser-card,
  .drinks-grid {
    grid-template-columns: 1fr;
  }
}
