/* ==========================================================================
   THANU & JATHU — WATERCOLOR BLUE & BOTANICAL RECEPTION INVITATION STYLES
   Inspired by & upgraded from webgency.tilda.ws/jathuandthanu
   ========================================================================== */

:root {
  --bg-white: #ffffff;
  --bg-ice: #f4f9fc;
  --bg-sky-soft: #eaf4fa;
  --blue-ocean: #1287b4;
  --blue-deep: #0c5f80;
  --blue-pastel: #8cc5de;
  --blue-soft: rgba(18, 135, 180, 0.12);
  --text-dark: #263238;
  --text-body: #455a64;
  --text-muted: #78909c;
  --border-blue: rgba(18, 135, 180, 0.25);
  --shadow-soft: 0 14px 40px rgba(18, 135, 180, 0.08);
  --shadow-card: 0 22px 55px rgba(12, 95, 128, 0.14);
  --font-serif: 'Rufina', 'Cormorant Garamond', '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-dark);
  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-blue);
  color: var(--blue-deep);
  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(18, 135, 180, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

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

/* ==========================================================================
   SECTION 0: ORNATE FLORAL FRAME POPUP OVERLAY (REC 1875002831)
   ========================================================================== */
#popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 28, 36, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9600;
  padding: 18px;
  transition: opacity 0.6s ease, visibility 0s 0.6s;
}

#popup-overlay.closed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.popup-frame-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1.22;
  background: url('assets/popup_frame.png') no-repeat center center;
  background-size: contain;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 36px 65px;
  animation: popScaleIn 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes popScaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.popup-title {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 6vw, 2.8rem);
  font-weight: 400;
  color: #313131;
  line-height: 1.1;
  margin-bottom: 6px;
}

.popup-subtitle {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: #313131;
  line-height: 1.45;
  margin-bottom: 16px;
  max-width: 240px;
}

.popup-enter-btn {
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  background: var(--blue-ocean);
  color: #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(18, 135, 180, 0.38);
  transition: transform 0.2s ease, background 0.2s ease;
}

.popup-enter-btn:hover {
  background: var(--blue-deep);
  transform: scale(1.04);
}

/* ==========================================================================
   SECTION 1: HERO WATERCOLOR RECEPTION SECTION (REC 1875002761)
   ========================================================================== */
.hero-section {
  position: relative;
  max-width: 660px;
  margin: 0 auto;
  padding: 55px 20px 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-ice) 0%, #ffffff 100%);
}

.hero-invite-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-ocean);
  background: var(--blue-soft);
  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(--blue-deep);
  line-height: 1.05;
  margin-bottom: 8px;
}

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

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

.hero-couple-img {
  width: 100%;
  border-radius: 24px;
  filter: drop-shadow(0 16px 36px rgba(18, 135, 180, 0.14));
}

.hero-vector-swirl {
  width: 190px;
  margin: -12px auto 18px;
}

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

.dp-card {
  background: #ffffff;
  border: 1.5px solid var(--border-blue);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

.dp-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue-ocean);
  margin-bottom: 4px;
}

.dp-value {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
}

.replay-popup-link {
  margin-top: 18px;
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--blue-ocean);
  text-decoration: underline;
  cursor: pointer;
}

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

.welcome-card {
  background: var(--bg-ice);
  border: 1.5px solid var(--border-blue);
  border-radius: 28px;
  padding: 44px 30px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.welcome-floral-img {
  width: 170px;
  margin: 0 auto 18px;
}

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

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

/* ==========================================================================
   SECTION 3: EVENT TIMELINE (REC 1960320961)
   ========================================================================== */
.timeline-section {
  padding: 65px 20px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.section-script-hdr {
  font-family: var(--font-script);
  font-size: clamp(2.7rem, 6.5vw, 3.6rem);
  color: var(--blue-deep);
  line-height: 1.1;
  margin-bottom: 8px;
}

.tl-art-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 14px 0 28px;
}

.tl-art-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.timeline-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tl-card {
  background: #ffffff;
  border: 1px solid var(--border-blue);
  border-radius: 18px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease;
}

.tl-card:hover {
  transform: translateX(4px);
}

.tl-time-pill {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--blue-ocean);
  padding: 7px 16px;
  border-radius: 99px;
  min-width: 96px;
}

.tl-event-info {
  text-align: left;
  flex: 1;
}

.tl-event-name {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-dark);
}

.tl-event-desc {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION 4: COUNTDOWN TIMER (REC 1875002781)
   ========================================================================== */
.countdown-section {
  padding: 60px 20px;
  background: var(--bg-ice);
  text-align: center;
}

.countdown-inner {
  max-width: 580px;
  margin: 0 auto;
}

.cd-decor-img {
  width: 220px;
  margin: 0 auto 16px;
}

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

.cd-box {
  background: #ffffff;
  border: 1.5px solid var(--border-blue);
  border-radius: 16px;
  padding: 18px 8px;
  box-shadow: var(--shadow-soft);
}

.cd-num {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 700;
  color: var(--blue-ocean);
}

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

.btn-ocean {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue-ocean);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 13px 26px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(18, 135, 180, 0.3);
  transition: all 0.25s ease;
}

.btn-ocean:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
}

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

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

/* ==========================================================================
   SECTION 5: DRESS CODE & OUTFIT ILLUSTRATIONS (REC 1875002791)
   ========================================================================== */
.dresscode-section {
  padding: 70px 20px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.dc-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

.dc-cat-card {
  background: var(--bg-ice);
  border: 1px solid var(--border-blue);
  border-radius: 22px;
  padding: 24px 20px;
}

.dc-cat-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--blue-deep);
  margin-bottom: 6px;
}

.dc-outfits-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 14px;
  align-items: end;
  margin: 26px 0;
}

.dc-outfit-item {
  background: #ffffff;
  border: 1px solid var(--border-blue);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease;
}

.dc-outfit-item:hover {
  transform: translateY(-4px);
}

.dc-outfit-item img {
  height: 170px;
  width: 100%;
  object-fit: contain;
}

.dc-all-colors-badge {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 99px;
  border: 1px dashed var(--blue-ocean);
}

/* ==========================================================================
   SECTION 6: RSVP FORM WITH DRINK & DIETARY PREFERENCES (REC 1875002801)
   ========================================================================== */
.rsvp-section {
  padding: 70px 20px;
  background: var(--bg-ice);
}

.rsvp-box {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid var(--border-blue);
  border-radius: 28px;
  padding: 40px 28px;
  box-shadow: var(--shadow-card);
  text-align: left;
  position: relative;
}

.rsvp-top-decor {
  width: 90px;
  margin: 0 auto 12px;
}

.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-dark);
  margin-bottom: 6px;
}

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

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

.radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-ice);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-blue);
  cursor: pointer;
}

.qr-pass-box {
  display: none;
  margin-top: 22px;
  background: var(--bg-ice);
  border: 2px solid var(--blue-ocean);
  border-radius: 18px;
  padding: 18px;
}

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

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

.qr-img {
  width: 104px;
  height: 104px;
  background: #fff;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid var(--border-blue);
}

/* ==========================================================================
   SECTION 7: ORGANIZATIONAL ASPECTS — CONTACTS & GIFTS (REC 1875002811)
   ========================================================================== */
.org-section {
  padding: 70px 20px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.org-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}

.org-card {
  background: var(--bg-ice);
  border: 1.5px solid var(--border-blue);
  border-radius: 24px;
  padding: 30px 22px;
  box-shadow: var(--shadow-soft);
}

.org-card-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto 14px;
}

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

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

.copy-blue-btn:hover {
  background: var(--blue-ocean);
  color: #fff;
}

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

.footer-art-img {
  width: 200px;
  margin: 0 auto 16px;
}

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

.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 28, 36, 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: 2px solid var(--border-blue);
  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-ice);
  font-size: 1.2rem;
}

@media (max-width: 640px) {
  .dc-categories,
  .org-cards-grid {
    grid-template-columns: 1fr;
  }
  .popup-frame-card {
    padding: 28px 42px;
  }
}
