/* ==========================================================================
   Sachin & Deepthy Engagement Invitation Website Stylesheet
   Pixel-Perfect Reconstruction matching reference design (1024x1536 master)
   ========================================================================== */

:root {
  /* Burgundy Color Palette */
  --deep-burgundy: #4A0715;
  --dark-burgundy: #30040D;
  --navbar-burgundy: #35040F;
  --mid-burgundy: #700F27;
  --card-burgundy: #380512;

  /* Gold Palette */
  --champagne-gold: #D7AD62;
  --gold-highlight: #F1D9A4;
  --gold-border: rgba(215, 173, 98, 0.45);
  --gold-subtle: rgba(215, 173, 98, 0.25);

  /* Paper & Neutral Palette */
  --warm-ivory: #FDF6EE;
  --card-ivory: #FFFDF9;
  --cream-muhurtham: #F5E6D6;
  --text-ink: #2C1720;
  --text-muted: #6E535A;
  --text-light-muted: #8F747B;

  /* Typography */
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  color: var(--text-ink);
  background-color: var(--warm-ivory);
  font-family: var(--font-serif);
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Master Page Container for 1024px desktop reference fidelity */
.site-wrapper {
  max-width: 1024px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  background-color: var(--warm-ivory);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.15);
}

@media (min-width: 992px) {
  .site-wrapper {
    height: 1536px;
    min-height: 1536px;
    max-height: 1536px;
    overflow: hidden;
  }
}

/* ==========================================================================
   1. NAVIGATION BAR (Height: 45px, y=0 to 45)
   ========================================================================== */
.site-navbar {
  background-color: var(--navbar-burgundy);
  height: 45px;
  min-height: 45px;
  padding: 0 40px;
  z-index: 1050;
  border-bottom: 1px solid rgba(215, 173, 98, 0.2);
}

.site-navbar .container-fluid {
  padding: 0;
  height: 100%;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

.brand-icon {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.navbar-nav {
  gap: 12px;
}

.navbar-nav .nav-link {
  color: #FFF6EC !important;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 8px !important;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--gold-highlight) !important;
}

.btn-nav-rsvp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--champagne-gold);
  border-radius: 999px;
  padding: 3px 14px !important;
  color: var(--gold-highlight) !important;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  background-color: transparent;
  transition: all 0.25s ease;
}

.btn-nav-rsvp:hover {
  background-color: var(--champagne-gold);
  color: var(--dark-burgundy) !important;
}

/* ==========================================================================
   2. HERO SECTION (Height: 345px, y=45 to 390)
   ========================================================================== */
.hero-section {
  position: relative;
  height: 345px;
  min-height: 345px;
  background-color: var(--deep-burgundy);
  overflow: hidden;
}

/* Photographic Couple Background */
.hero-photo-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 595px;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-photo {
  position: absolute;
  top: -155px;
  left: 0;
  width: 595px;
  height: 793px;
  object-fit: cover;
}

/* Layered Burgundy Gradient Overlay */
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      #4A0715 0%,
      #4A0715 36%,
      rgba(74, 7, 21, 0.95) 44%,
      rgba(74, 7, 21, 0.50) 52%,
      rgba(74, 7, 21, 0.12) 60%,
      rgba(74, 7, 21, 0) 67%);
  pointer-events: none;
  z-index: 2;
}

/* Top-Left Rose Garland Ornament */
.corner-floral-tl {
  position: absolute;
  top: 0;
  left: 0;
  width: 110px;
  height: 135px;
  pointer-events: none;
  z-index: 3;
}

/* Hero Content (Centered in the left 512px column) */
.hero-content {
  position: relative;
  z-index: 4;
  width: 512px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px 14px;
  color: #FFFFFF;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-highlight);
  margin-bottom: 2px;
}

.hero-script-title {
  font-family: var(--font-script);
  font-size: 2.1rem;
  color: var(--gold-highlight);
  line-height: 1.1;
  margin-bottom: 2px;
}

.hero-names {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2.3rem;
  line-height: 1.05;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: 0.02em;
}

.hero-names .hero-amp {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--champagne-gold);
  line-height: 1.05;
  margin: 0;
}

.hero-rings-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 6px;
}

.hero-rings-img {
  width: 130px;
  height: auto;
}

.hero-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #FFF8EE;
  margin-bottom: 12px;
}

.hero-date i {
  color: var(--champagne-gold);
  font-size: 1rem;
}

.btn-view-invitation {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #FFF9F2;
  color: var(--deep-burgundy);
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid var(--champagne-gold);
  border-radius: 999px;
  padding: 5px 22px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.btn-view-invitation:hover {
  background-color: var(--gold-highlight);
  color: var(--dark-burgundy);
  transform: translateY(-1px);
}

/* Scalloped Arch Separating Hero from Invitation */
.hero-wave-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 35px;
  z-index: 5;
  pointer-events: none;
}

.hero-wave-bottom svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   3. INVITATION & DETAILS SECTION (Height: 293px, y=390 to 686)
   ========================================================================== */
.invitation-section {
  position: relative;
  height: 293px;
  background-color: var(--warm-ivory);
  padding: 0 40px 15px;
  text-align: center;
  overflow: hidden;
}

/* Golden Foliage Branches on Edges */
.foliage-decor-left {
  position: absolute;
  top: 10px;
  left: 0;
  width: 110px;
  height: auto;
  pointer-events: none;
}

.foliage-decor-right {
  position: absolute;
  top: 10px;
  right: 0;
  width: 110px;
  height: auto;
  pointer-events: none;
}

.invitation-kicker {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-ink);
  margin-bottom: 0;
}

.invitation-script-heading {
  font-family: var(--font-script);
  font-size: 3.2rem;
  color: var(--mid-burgundy);
  line-height: 1.05;
  margin: 0;
}

.gold-floral-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2px 0 6px;
}

.gold-floral-divider img {
  width: 95px;
  height: auto;
}

.invitation-body-copy {
  max-width: 580px;
  margin: 0 auto 12px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.32;
  color: var(--text-ink);
}

/* Three Event Details Cards */
.event-details-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  max-width: 820px;
  height: 115px;
  margin: 0 auto;
}

.detail-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 16px;
}

.detail-col-border-left {
  border-left: 1px solid rgba(180, 140, 100, 0.4);
}

.detail-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--mid-burgundy);
  margin-bottom: 2px;
}

.detail-title-wrap i {
  font-size: 1.1rem;
}

.detail-text {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--text-ink);
}

/* Muhurtham Center Highlight Box */
.muhurtham-box {
  background-color: var(--cream-muhurtham);
  border-radius: 16px;
  padding: 8px 20px;
  width: 100%;
  max-width: 240px;
  box-shadow: inset 0 0 0 1px rgba(215, 173, 98, 0.3);
}

.muhurtham-rings-icon {
  width: 26px;
  height: auto;
  margin-bottom: 1px;
}

.muhurtham-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--deep-burgundy);
  margin-bottom: 1px;
}

.btn-view-map {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--mid-burgundy);
  color: #FFFFFF !important;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 3px 14px;
  margin-top: 4px;
  transition: all 0.25s ease;
}

.btn-view-map:hover {
  background-color: var(--deep-burgundy);
  transform: translateY(-1px);
}

/* ==========================================================================
   4. COUNTDOWN BANNER SECTION (Height: 114px, y=686 to 800)
   ========================================================================== */
.countdown-banner {
  position: relative;
  height: 114px;
  background-color: var(--deep-burgundy);
  padding: 14px 20px 16px;
  color: #FFFFFF;
  text-align: center;
  overflow: hidden;
}

.countdown-wave-top,
.countdown-wave-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 10px;
  pointer-events: none;
}

.countdown-wave-top {
  top: 0;
}

.countdown-wave-bottom {
  bottom: 0;
}

.countdown-wave-top svg,
.countdown-wave-bottom svg {
  display: block;
  width: 100%;
  height: 100%;
}

.cd-foliage-left {
  position: absolute;
  top: 15px;
  left: 10px;
  width: 80px;
  height: auto;
  pointer-events: none;
}

.cd-foliage-right {
  position: absolute;
  top: 15px;
  right: 10px;
  width: 80px;
  height: auto;
  pointer-events: none;
}

.countdown-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: #FFF6EE;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.countdown-boxes-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.countdown-box {
  width: 98px;
  height: 54px;
  border: 1px solid var(--champagne-gold);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(48, 4, 13, 0.45);
}

.cd-number {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1;
  color: var(--gold-highlight);
}

.cd-label {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  color: var(--champagne-gold);
  margin-top: 1px;
}

/* ==========================================================================
   5. FAMILIES SECTION (Height: 188px, y=800 to 988)
   ========================================================================== */
.families-section {
  position: relative;
  height: 200px;
  background-color: var(--warm-ivory);
  padding: 8px 40px 6px;
  text-align: center;
}

.families-main-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--deep-burgundy);
  margin-bottom: 0;
}

.families-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 680px;
  margin: 4px auto 0;
}

.family-col {
  flex: 1;
  padding: 0 20px;
  text-align: center;
}

.family-col-border {
  border-left: 1px solid rgba(180, 140, 100, 0.45);
}

.family-role-heading {
  font-family: var(--font-script);
  font-size: 1.95rem;
  color: var(--mid-burgundy);
  line-height: 1.05;
  margin-bottom: 2px;
}

.family-parents {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-ink);
  margin-bottom: 2px;
}

.family-parents .family-amp {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--mid-burgundy);
  margin: 0;
}

.family-address {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.2;
  color: var(--text-ink);
}

.family-phone {
  margin-top: 1px;
  font-weight: 500;
}

/* ==========================================================================
   6. COMPLIMENTS CAPSULE SECTION (Height: 129px, y=989 to 1118)
   ========================================================================== */
.compliments-section {
  /* height: 129px; */
  padding: 6px 40px 8px;
  background-color: var(--warm-ivory);
  margin-top: 3rem;
}

.compliments-capsule {
  position: relative;
  max-width: 824px;
  /* height: 114px; */
  margin: 0 auto;
  background-color: var(--card-burgundy);
  border: 1px solid rgba(215, 173, 98, 0.35);
  border-radius: 36px;
  padding: 8px 30px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(74, 7, 21, 0.12);
  overflow: hidden;
}

.comp-foliage-left {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  width: 55px;
  height: auto;
  pointer-events: none;
}

.comp-foliage-right {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 55px;
  height: auto;
  pointer-events: none;
}

.compliments-lead {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #FFF6EC;
  margin-bottom: 1px;
}

.compliments-firm {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: 0.02em;
}

.compliments-subtitle {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--gold-highlight);
  margin-bottom: 2px;
}

.compliments-names {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #FFF6EC;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-style:italic;
}

.compliments-names .divider-bar {
  color: var(--champagne-gold);
}

/* ==========================================================================
   BOTTOM FLOWER & BOKEH WRAPPER (Height: 418px, y=1118 to 1536)
   ========================================================================== */
.bottom-floral-wrapper {
  position: relative;
  height: 418px;
  background-image: url('../images/bottom-bg.jpg');
  background-size: 1024px auto;
  background-position: center bottom;
  background-repeat: no-repeat;
}

/* 7. YOUR BLESSINGS SECTION (Height: 346px, y=1118 to 1464) */
.blessings-section {
  position: relative;
  height: 346px;
  background: transparent;
  padding: 4px 40px 0;
}

.blessings-card {
  max-width: 860px;
  margin: 0 auto;
  background-color: var(--card-ivory);
  border: 1px solid rgba(215, 173, 98, 0.38);
  border-radius: 22px;
  padding: 14px 26px 14px;
  box-shadow: 0 8px 24px rgba(74, 7, 21, 0.06);
}

.blessings-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.95rem;
  font-weight: 600;
  color: var(--deep-burgundy);
  margin-bottom: 1px;
  text-align: center;
}

.blessings-title i {
  color: var(--mid-burgundy);
  font-size: 1.65rem;
}

.blessings-subtitle {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.25;
  margin-bottom: 10px;
}

.blessings-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* Left: Wishes Form */
.blessings-form-col {
  flex: 0 0 45%;
}

.input-with-icon {
  position: relative;
  margin-bottom: 8px;
}

.input-with-icon i {
  position: absolute;
  top: 9px;
  left: 14px;
  color: var(--mid-burgundy);
  font-size: 1rem;
  pointer-events: none;
}

.form-field {
  width: 100%;
  background-color: #FFFCF8;
  border: 1px solid rgba(180, 140, 110, 0.4);
  border-radius: 10px;
  padding: 6px 14px 6px 38px;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--text-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field:focus {
  outline: none;
  border-color: var(--champagne-gold);
  box-shadow: 0 0 0 3px rgba(215, 173, 98, 0.2);
}

textarea.form-field {
  resize: none;
  height: 64px;
  min-height: 64px;
}

.btn-send-wishes {
  width: 100%;
  background-color: var(--deep-burgundy);
  color: #FFFFFF;
  border: 1px solid var(--champagne-gold);
  border-radius: 999px;
  padding: 7px 18px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(74, 7, 21, 0.15);
}

.btn-send-wishes:hover {
  background-color: var(--mid-burgundy);
  color: var(--gold-highlight);
  transform: translateY(-1px);
}

.form-demo-note {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--text-light-muted);
  text-align: center;
  margin-top: 4px;
  margin-bottom: 0;
}

/* Right: Recent Wishes List */
.blessings-list-col {
  flex: 0 0 55%;
}

.recent-wishes-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--deep-burgundy);
  margin-bottom: 6px;
}

.recent-wishes-heading i {
  color: var(--mid-burgundy);
}

.wishes-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 165px;
  overflow-y: auto;
  padding-right: 4px;
}

.wishes-container::-webkit-scrollbar {
  width: 4px;
}

.wishes-container::-webkit-scrollbar-thumb {
  background: rgba(215, 173, 98, 0.4);
  border-radius: 4px;
}

.wish-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background-color: #FFF9F3;
  border: 1px solid rgba(215, 173, 98, 0.3);
  border-radius: 10px;
  padding: 6px 10px;
}

.wish-avatar {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #F2D5D7;
  color: var(--mid-burgundy);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wish-content {
  flex: 1;
}

.wish-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1px;
}

.wish-author {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--deep-burgundy);
}

.wish-time {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--text-light-muted);
}

.wish-text {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  line-height: 1.22;
  color: var(--text-ink);
  margin: 0;
}

/* ==========================================================================
   8. BOTTOM ACTION & FOOTER (Height: 72px, y=1464 to 1536)
   ========================================================================== */
.site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 72px;
  padding: 24px 0 16px;
  text-align: center;
  background: transparent;
}

.footer-rsvp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--deep-burgundy);
  color: #FFF6EC !important;
  border: 1.5px solid var(--champagne-gold);
  border-radius: 999px;
  width: 248px;
  height: 32px;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(74, 7, 21, 0.25);
  transition: all 0.25s ease;
}

.footer-rsvp-btn:hover {
  background-color: var(--mid-burgundy);
  color: var(--gold-highlight) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   9. RESPONSIVE BREAKPOINTS (Mobile & Tablet Fidelity)
   ========================================================================== */
@media (max-width: 991.98px) {
  .site-navbar {
    height: auto;
    min-height: 50px;
    padding: 6px 20px;
  }

  .navbar-collapse {
    background-color: var(--navbar-burgundy);
    padding: 14px 0;
    border-top: 1px solid rgba(215, 173, 98, 0.2);
  }

  .navbar-nav {
    align-items: center;
    gap: 10px;
  }

  .btn-nav-rsvp {
    margin-top: 6px;
  }
}

@media (max-width: 767.98px) {
  .site-wrapper {
    height: auto !important;
    max-height: none !important;
  }

  .hero-section {
    min-height: 540px;
    height: auto;
    padding-bottom: 230px;
    position: relative;
  }

  .hero-photo-wrap {
    width: 100%;
    height: 285px;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
  }

  .hero-photo {
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 380px;
    max-width: none;
    height: auto;
  }

  .hero-gradient-overlay {
    background: linear-gradient(180deg,
        #4A0715 0%,
        #4A0715 52%,
        rgba(74, 7, 21, 0.35) 70%,
        rgba(74, 7, 21, 0) 90%);
  }

  .hero-content {
    width: 100%;
    padding: 24px 16px 16px;
  }

  .hero-names {
    font-size: 2rem;
  }

  .invitation-section {
    height: auto;
    padding: 10px 20px 20px;
  }

  .foliage-decor-left,
  .foliage-decor-right,
  .cd-foliage-left,
  .cd-foliage-right,
  .comp-foliage-left,
  .comp-foliage-right {
    display: none;
  }

  .event-details-grid {
    flex-direction: column;
    height: auto;
    gap: 16px;
  }

  .detail-col-border-left {
    border-left: none;
    border-top: 1px solid rgba(180, 140, 100, 0.35);
    padding-top: 14px;
  }

  .countdown-banner {
    height: auto;
    padding: 20px 16px;
  }

  .countdown-boxes-wrap {
    flex-wrap: wrap;
    gap: 8px;
  }

  .countdown-box {
    width: calc(50% - 10px);
    max-width: 130px;
  }

  .families-section {
    height: auto;
    padding: 20px 20px 14px;
  }

  .families-grid {
    flex-direction: column;
    gap: 18px;
    display: grid;
  }

  .family-col-border {
    border-left: none;
    border-top: 1px solid rgba(180, 140, 100, 0.35);
    padding-top: 16px;
  }

  .compliments-section {
    height: auto;
    padding: 8px 16px 16px;
    margin-bottom: 1.4 rem;
  }

  .compliments-capsule {
    padding: 16px 20px;
    border-radius: 24px;
    height: auto;
  }

  .compliments-firm {
    font-size: 1.3rem;
  }

  .bottom-floral-wrapper {
    height: auto;
  }

  .blessings-section {
    height: auto;
    padding: 10px 16px 20px;
  }

  .blessings-card {
    padding: 20px 16px;
  }

  .blessings-row {
    flex-direction: column;
    gap: 24px;
  }

  .blessings-form-col,
  .blessings-list-col {
    flex: 0 0 100%;
    width: 100%;
  }

  .site-footer {
    position: relative;
    height: auto;
    padding: 24px 20px;
  }
}

/* ==========================================================================
   ENVELOPE INVITATION OPENING SCREEN & MUSIC CONTROLLER STYLES
   ========================================================================== */

/* Lock body scrolling while initial envelope is displayed */
body.envelope-active {
  overflow: hidden !important;
  height: 100vh;
}

/* Fullscreen Envelope Overlay */
.envelope-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-burgundy);
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.85s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.85s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.85s ease;
  will-change: opacity, transform, filter;
  overflow: hidden;
}

.envelope-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.06);
  filter: blur(6px);
}

/* Background image with couple hands photo + warm romantic vignette */
.envelope-bg {
  position: absolute;
  inset: -20px;
  background-image: 
    radial-gradient(circle at center, rgba(35, 4, 14, 0.45) 0%, rgba(20, 2, 8, 0.82) 100%),
    linear-gradient(180deg, rgba(48, 4, 13, 0.6) 0%, rgba(74, 7, 21, 0.4) 50%, rgba(20, 2, 8, 0.8) 100%),
    url('../images/envelope-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.9) contrast(1.06);
  animation: envelopeBgSlowZoom 24s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes envelopeBgSlowZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

/* Content wrapper */
.envelope-screen-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 580px;
  padding: 24px 20px;
  box-sizing: border-box;
  text-align: center;
  user-select: none;
}

/* Header Text Above Envelope */
.envelope-header {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: envelopeFadeDown 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.envelope-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-highlight);
  font-weight: 600;
  opacity: 0.95;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.envelope-couple-names {
  font-family: var(--font-script);
  font-size: clamp(2.3rem, 7vw, 3.8rem);
  line-height: 1.15;
  color: #FFFDF9;
  margin: 0;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.75), 0 0 25px rgba(215, 173, 98, 0.35);
}

.envelope-amp {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-highlight);
  font-size: 0.85em;
  padding: 0 6px;
}

.envelope-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  background: rgba(48, 4, 13, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(215, 173, 98, 0.45);
  border-radius: 999px;
  padding: 5px 18px;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  letter-spacing: 0.05em;
  color: var(--gold-highlight);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.envelope-date-pill i {
  color: var(--champagne-gold);
}

/* 3D Envelope Stage & Container */
.envelope-stage {
  perspective: 1200px;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
  animation: envelopeFadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}

.envelope-wrapper {
  position: relative;
  width: 380px;
  height: 250px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
}

.envelope-wrapper:hover {
  transform: translateY(-5px) scale(1.02);
}

.envelope-wrapper:focus-visible {
  outline: 2px solid var(--gold-highlight);
  outline-offset: 8px;
  border-radius: 16px;
}

/* Golden Ambient Backlight Glow */
.envelope-glow {
  position: absolute;
  inset: -15px;
  border-radius: 24px;
  background: radial-gradient(circle, rgba(215, 173, 98, 0.35) 0%, rgba(215, 173, 98, 0.05) 55%, transparent 75%);
  filter: blur(14px);
  opacity: 0.75;
  pointer-events: none;
  transition: opacity 0.4s ease;
  animation: glowPulse 3s ease-in-out infinite alternate;
}

.envelope-wrapper:hover .envelope-glow {
  opacity: 1;
}

@keyframes glowPulse {
  0% {
    opacity: 0.6;
    transform: scale(0.98);
  }
  100% {
    opacity: 0.95;
    transform: scale(1.03);
  }
}

/* The Envelope Box */
.envelope {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 0, 0, 0.5);
}

/* Back interior of the envelope */
.envelope-back {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #30040D 0%, #1A0207 100%);
  border: 1px solid rgba(215, 173, 98, 0.3);
  box-shadow: inset 0 8px 25px rgba(0, 0, 0, 0.7);
}

/* Inner Letter Card */
.envelope-card {
  position: absolute;
  width: 92%;
  height: 90%;
  left: 4%;
  bottom: 4%;
  border-radius: 8px;
  background: linear-gradient(145deg, #FFFDF9 0%, #FAF2E6 100%);
  border: 1px solid rgba(215, 173, 98, 0.5);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  z-index: 2;
  transform: translateY(0);
  transition: transform 0.9s cubic-bezier(0.2, 0.85, 0.25, 1) 0.35s,
              z-index 0.01s 0.45s,
              box-shadow 0.8s ease 0.35s;
  will-change: transform;
}

/* Card inner ornate gold border */
.card-inner-frame {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(215, 173, 98, 0.55);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  position: relative;
  background: rgba(255, 255, 255, 0.5);
}

.card-inner-frame::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 0.5px solid rgba(215, 173, 98, 0.3);
  border-radius: 4px;
  pointer-events: none;
}

.card-brand-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  margin-bottom: 2px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.card-kicker {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.2;
}

.card-heading {
  font-family: var(--font-script);
  font-size: 1.55rem;
  color: var(--mid-burgundy);
  margin: -2px 0 0;
  line-height: 1.2;
}

.card-names {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--deep-burgundy);
  margin-top: 1px;
}

.card-ornament {
  margin: 2px 0 3px;
  line-height: 1;
}

.card-rings-img {
  width: 32px;
  height: auto;
  opacity: 0.9;
}

.card-location {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mid-burgundy);
  margin: 0;
}

/* When envelope opens, card rises gracefully */
.envelope-wrapper.is-open .envelope-card {
  transform: translateY(-112px) scale(1.03);
  z-index: 25;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Envelope Pocket (Front Folds) */
.envelope-pocket {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  border-radius: 12px;
  overflow: hidden;
}

.pocket-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Top Flap (Flips open upwards) */
.envelope-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  transform-origin: top center;
  transform-style: preserve-3d;
  z-index: 20;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              z-index 0.01s 0.3s;
  will-change: transform;
}

.top-flap-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* When envelope opens, flap rotates backwards 180deg */
.envelope-wrapper.is-open .envelope-top {
  transform: rotateX(180deg);
  z-index: 1;
}

/* Golden Wax Seal */
.wax-seal {
  position: absolute;
  top: 125px;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  width: 62px;
  height: 62px;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease;
  will-change: transform, opacity;
}

.wax-seal-ripple {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(241, 217, 164, 0.65);
  animation: sealRipple 2.2s infinite ease-out;
  pointer-events: none;
}

@keyframes sealRipple {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.wax-seal-body {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF2CC 0%, #D7AD62 42%, #9E7428 85%, #634510 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55),
              inset 0 2px 4px rgba(255, 255, 255, 0.65),
              inset 0 -3px 6px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 1px solid rgba(255, 235, 175, 0.6);
  transition: transform 0.25s ease;
}

.wax-seal:hover .wax-seal-body {
  transform: scale(1.06);
}

.seal-inner-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px dashed rgba(99, 69, 16, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

.seal-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: #381E05;
  letter-spacing: 0.05em;
  line-height: 1;
}

.seal-heart {
  font-size: 0.52rem;
  color: #7A0D23;
  margin-top: 1px;
}

/* Wax Seal dissolves when envelope opens */
.envelope-wrapper.is-open .wax-seal {
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
}

/* Prompt Hint Below Envelope */
.envelope-prompt {
  animation: envelopeFadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}

.prompt-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(48, 4, 13, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(215, 173, 98, 0.4);
  border-radius: 999px;
  padding: 8px 22px;
  color: var(--gold-highlight);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  animation: promptFloat 2.6s infinite ease-in-out;
}

@keyframes promptFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.prompt-icon {
  font-size: 1.05rem;
  color: var(--champagne-gold);
  animation: tapPulse 1.4s infinite ease-in-out;
}

@keyframes tapPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.prompt-text {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #FFFDF9;
}

.prompt-music-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--gold-highlight);
  background: rgba(215, 173, 98, 0.2);
  padding: 2px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Keyframe animations for envelope entrance */
@keyframes envelopeFadeDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes envelopeFadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   NAVBAR ENVELOPE BUTTON & FLOATING MUSIC WIDGET
   ========================================================================== */

/* Navbar View Envelope Button */
.btn-nav-envelope {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--champagne-gold);
  border-radius: 50%;
  color: var(--gold-highlight);
  background-color: transparent;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  cursor: pointer;
  padding: 0;
}

.btn-nav-envelope:hover {
  background-color: var(--champagne-gold);
  color: var(--dark-burgundy);
  transform: scale(1.08);
}

/* Floating Music Controller Widget */
.floating-music-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1040;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}

.floating-music-widget.widget-hidden {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
}

.btn-music-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(48, 4, 13, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--champagne-gold);
  border-radius: 999px;
  padding: 7px 18px 7px 10px;
  color: var(--gold-highlight);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(215, 173, 98, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.btn-music-pill:hover {
  background: rgba(74, 7, 21, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(215, 173, 98, 0.35);
}

.btn-music-pill:focus-visible {
  outline: 2px solid var(--gold-highlight);
  outline-offset: 3px;
}

/* Rotating Vinyl Disc Icon */
.music-disc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f0208 0%, #4a0715 100%);
  border: 1px solid var(--champagne-gold);
  color: var(--gold-highlight);
  font-size: 1.05rem;
}

.music-disc i {
  display: block;
}

.btn-music-pill.is-playing .music-disc i {
  animation: spinDisc 3.5s linear infinite;
}

@keyframes spinDisc {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Equalizer Bars */
.music-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.music-bars .bar {
  display: block;
  width: 2.5px;
  height: 4px;
  background-color: var(--gold-highlight);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.btn-music-pill.is-playing .bar-1 {
  animation: jumpBar 1.1s ease-in-out infinite alternate;
}

.btn-music-pill.is-playing .bar-2 {
  animation: jumpBar 0.9s ease-in-out infinite 0.2s alternate;
}

.btn-music-pill.is-playing .bar-3 {
  animation: jumpBar 1.2s ease-in-out infinite 0.4s alternate;
}

@keyframes jumpBar {
  0% {
    height: 3px;
  }
  100% {
    height: 14px;
  }
}

.music-label {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #FFFDF9;
}

.btn-music-pill.is-paused {
  opacity: 0.85;
  border-color: rgba(215, 173, 98, 0.4);
}

.btn-music-pill.is-paused .music-label {
  color: rgba(255, 253, 249, 0.7);
}

/* Mobile Responsiveness for Envelope & Controls */
@media (max-width: 480px) {
  .envelope-wrapper {
    width: 300px;
    height: 205px;
  }

  .envelope-top {
    height: 115px;
  }

  .wax-seal {
    top: 104px;
    width: 54px;
    height: 54px;
  }

  .seal-text {
    font-size: 0.85rem;
  }

  .card-heading {
    font-size: 1.35rem;
  }

  .card-names {
    font-size: 0.85rem;
  }

  .card-rings-img {
    width: 28px;
  }

  .card-location {
    font-size: 0.55rem;
  }

  .envelope-wrapper.is-open .envelope-card {
    transform: translateY(-90px) scale(1.02);
  }

  .prompt-pill {
    padding: 6px 16px;
    gap: 8px;
  }

  .prompt-text {
    font-size: 0.76rem;
  }

  .prompt-music-tag {
    font-size: 0.68rem;
  }

  .floating-music-widget {
    bottom: 16px;
    right: 16px;
  }

  .music-label {
    display: none;
  }

  .btn-music-pill {
    padding: 7px 10px;
    gap: 6px;
  }
}

/* Accessibility: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .envelope-bg {
    animation: none !important;
  }
  .envelope-wrapper,
  .envelope-card,
  .envelope-top,
  .wax-seal,
  .envelope-overlay {
    transition-duration: 0.15s !important;
  }
  .envelope-wrapper.is-open .envelope-top {
    transform: none;
    opacity: 0;
  }
  .music-disc i,
  .bar,
  .prompt-pill,
  .wax-seal-ripple,
  .prompt-icon,
  .envelope-glow {
    animation: none !important;
  }
}