/* ==========================================================================
   ABRAR & ALVEERA — ROYAL ISLAMIC NIKAH INVITATION STYLESHEET
   Aesthetic: Royal Burgundy + Ivory + Antique Gold + Floral Garland
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES & COLOR SYSTEM
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --wine: #4b0710;
  --deep-wine: #300409;
  --burgundy: #68101a;
  --red: #a31e2e;
  --ruby: #8c1424;
  --crimson: #b32032;
  --ivory: #f8efdf;
  --cream: #f0dfc5;
  --soft-beige: #e8d3b5;
  --gold: #c9a35b;
  --antique-gold: #a47c38;
  --light-gold: #dfc285;
  --dark-text: #3c1919;
  --muted-text: #8b6b5d;

  /* Typography */
  /* --font-heading: 'Italiana', 'Cormorant Garamond', serif; */
  --font-heading: 'Cormorant Garamond', serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Allura', 'Italianno', cursive;
  --font-label: 'Montserrat', sans-serif;

  /* Shadows & Highlights */
  --shadow-soft: 0 10px 30px rgba(75, 7, 16, 0.08);
  --shadow-card: 0 14px 40px rgba(48, 4, 9, 0.12);
  --shadow-gold: 0 0 20px rgba(201, 163, 91, 0.25);
  --gold-gradient: linear-gradient(135deg, #dfc285 0%, #c9a35b 50%, #a47c38 100%);
  --wine-gradient: linear-gradient(180deg, #300409 0%, #4b0710 50%, #300409 100%);
  --ivory-gradient: linear-gradient(180deg, #fdfbf7 0%, #f8efdf 50%, #f4e7d3 100%);

  /* Transitions */
  --transition-smooth: 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE SETUP
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--deep-wine);
  color: var(--dark-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-serif);
  background-color: var(--deep-wine);
  overflow-x: hidden;
  line-height: 1.6;
}

body.intro-active {
  height: 100svh;
  overflow: hidden;
  touch-action: none;
}

body.intro-active .invitation-body-wrapper {
  opacity: 0;
  visibility: hidden;
}

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: end center;
  padding-bottom: clamp(3rem, 9vh, 6.5rem);
  overflow: hidden;
  background: #160205;
  opacity: 1;
  visibility: visible;
  transition: opacity .9s ease, visibility .9s ease;
}

.site-intro.is-exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #160205;
}

.site-intro-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 1, 5, .12), rgba(19, 1, 5, .08) 52%, rgba(19, 1, 5, .58));
  pointer-events: none;
  transition: opacity .5s ease;
}

.intro-open-button {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: .65rem;
  min-width: 150px;
  padding: .5rem 1rem;
  border: 0;
  background: transparent;
  color: var(--ivory);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .8);
  cursor: pointer;
  transition: opacity .45s ease, transform .45s ease;
}

.intro-open-button:hover {
  transform: translateY(-4px);
}

.intro-open-button.is-playing {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.intro-open-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(223, 194, 133, .9);
  border-radius: 50%;
  color: var(--light-gold);
  background: rgba(48, 4, 9, .68);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, .38),
    inset 0 0 0 6px rgba(223, 194, 133, .08),
    0 0 25px rgba(201, 163, 91, .18);
  font-size: 1.65rem;
  backdrop-filter: blur(7px);
  animation: introSealPulse 2.2s ease-in-out infinite;
}

.intro-open-icon::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(223, 194, 133, .35);
  border-radius: 50%;
}

.intro-open-button strong {
  font-family: var(--font-label);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .28em;
  padding-left: .28em;
  text-transform: uppercase;
}

.intro-open-button small {
  color: var(--light-gold);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-style: italic;
  letter-spacing: .06em;
  line-height: 1;
}

@keyframes introSealPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 16px 40px rgba(0, 0, 0, .38), inset 0 0 0 6px rgba(223, 194, 133, .08), 0 0 20px rgba(201, 163, 91, .14); }
  50% { transform: scale(1.045); box-shadow: 0 18px 44px rgba(0, 0, 0, .4), inset 0 0 0 6px rgba(223, 194, 133, .12), 0 0 34px rgba(201, 163, 91, .3); }
}

.wedding-music-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(223, 194, 133, .72);
  border-radius: 50%;
  background: rgba(48, 4, 9, .9);
  color: var(--light-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  font-size: 1.05rem;
  cursor: pointer;
}

.wedding-music-toggle[hidden] { display: none; }
.wedding-music-toggle.is-muted { color: rgba(248, 239, 223, .75); }

@media (max-width: 640px) {
  .site-intro-video { object-position: center; }
  .site-intro { padding-bottom: clamp(2.5rem, 8vh, 4.5rem); }
  .intro-open-button { min-width: 145px; }
  .wedding-music-toggle { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

/* Desktop Presentation Wrapper:
   On large screens, body has deep velvet backdrop and invitation sits centered
   like a physical royal card */
.invitation-body-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  background-color: var(--deep-wine);
}

@media (min-width: 992px) {
  
  .invitation-body-wrapper {
    max-width: 560px;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.65), 0 0 30px rgba(201, 163, 91, 0.15);
  }
}

@media screen and (max-width: 768px) {
  .hero-content {
    padding: 1.5rem 3.75rem 1rem !important;
  }
}

/* --------------------------------------------------------------------------
   3. INVITATION SHELL & LAYOUT
   -------------------------------------------------------------------------- */
.invitation-shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 2;
}

.nikah-section {
  position: relative;
  width: 100%;
  padding: 4.5rem 0;
}

.nikah-section.compact-padding {
  padding: 3.5rem 0;
}

/* Section Background Variants */
.bg-ivory {
  background: var(--ivory-gradient);
  color: var(--dark-text);
}

.bg-burgundy {
  background: var(--wine-gradient);
  color: var(--ivory);
}

/* --------------------------------------------------------------------------
   4. FLORAL GARLAND DIVIDER SYSTEM
   -------------------------------------------------------------------------- */
.section-floral-divider {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  /* position: relative; */
  position: absolute;
  z-index: 5;
  padding: 0.5rem 0;
}

.section-floral-divider.overlap-top {
  margin-top: -28px;
  margin-bottom: 1.5rem;
}

.section-floral-divider.overlap-bottom {
  margin-top: 1.5rem;
  margin-bottom: -28px;
}

.floral-divider {
  width: min(90%, 460px);
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(48, 4, 9, 0.18));
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   5. TYPOGRAPHY
   -------------------------------------------------------------------------- */
.section-label {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.bg-ivory .section-label {
  color: var(--antique-gold);
}

.bg-burgundy .section-label {
  color: var(--gold);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.section-heading {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 2.75rem);
  line-height: 1.22;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.bg-ivory .section-heading {
  color: var(--wine);
}

.bg-burgundy .section-heading {
  color: var(--ivory);
}

.script-accent {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.8vw, 3.4rem);
  line-height: 1.1;
  display: block;
}

.bg-ivory .script-accent {
  color: var(--burgundy);
}

.bg-burgundy .script-accent {
  color: var(--cream);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.body-text {
  font-family: var(--font-serif);
  font-size: clamp(1.06rem, 2.5vw, 1.2rem);
  font-weight: 500;
  line-height: 1.75;
  max-width: 440px;
  margin: 0 auto;
}

.bg-ivory .body-text {
  color: var(--dark-text);
}

.bg-burgundy .body-text {
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   6. CUSTOM WEDDING BUTTONS
   -------------------------------------------------------------------------- */
.invite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 40px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Button in Ivory Sections */
.invite-btn-primary {
  color: var(--wine);
  background-color: transparent;
  border: 1px solid var(--gold);
  box-shadow: 0 4px 15px rgba(201, 163, 91, 0.15);
}

.invite-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--wine);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.invite-btn-primary:hover {
  color: var(--ivory);
  border-color: var(--wine);
  box-shadow: 0 6px 20px rgba(75, 7, 16, 0.25);
  transform: translateY(-2px);
}

.invite-btn-primary:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Button in Burgundy Sections / Gold Emphasis */
.invite-btn-gold {
  color: var(--deep-wine);
  background: var(--gold-gradient);
  border: 1px solid var(--gold);
  box-shadow: 0 4px 18px rgba(201, 163, 91, 0.35);
}

.invite-btn-gold:hover {
  color: var(--ivory);
  background: var(--wine);
  border-color: var(--light-gold);
  box-shadow: 0 6px 22px rgba(223, 194, 133, 0.4);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   7. SECTION 01 — GRAND HERO / NIKAH INTRODUCTION
   -------------------------------------------------------------------------- */
#hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 3rem 0 2rem;
  background-image: url('../media/hero_bg.png');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--ivory);
  text-align: center;
}

/* Soft dark overlay to ensure maximum text readability */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(48, 4, 9, 0.45) 0%, rgba(31, 2, 5, 0.78) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 2.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Bismillah Gold Calligraphy */
.hero-bismillah {
  width: min(82%, 220px);
  height: auto;
  margin-top: 5rem;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 2px 12px rgba(201, 163, 91, 0.5));
}

.hero-honor-text {
  font-family: var(--font-label);
  font-size: clamp(0.68rem, 2vw, 0.76rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft-beige);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Couple Names & Family Blocks */
.hero-person-block {
  margin-bottom: 0.75rem;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 7.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: var(--ivory);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.2rem;
}

.hero-kinship-label {
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.15rem;
}

.hero-parents {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--cream);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-ampersand {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  color: var(--light-gold);
  line-height: 1;
  margin: 0.25rem 0 0.5rem;
  text-shadow: 0 0 15px rgba(201, 163, 91, 0.45);
}

.hero-faith-text {
  font-family: var(--font-label);
  font-size: clamp(0.66rem, 1.8vw, 0.74rem);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--soft-beige);
  margin-top: 1.75rem;
  line-height: 1.7;
}

/* Animated Scroll Indicator */
.hero-scroll-indicator {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  text-decoration: none;
}

.hero-scroll-label {
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--light-gold);
  opacity: 0.85;
}

.hero-scroll-line {
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
  animation: pulseLine 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseLine {
  0% { transform: scaleY(0.2); transform-origin: top; opacity: 0.2; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.2); transform-origin: bottom; opacity: 0.2; }
}

/* --------------------------------------------------------------------------
   8. SECTION 02 — A BLESSED BEGINNING
   -------------------------------------------------------------------------- */
#blessed-beginning {
  text-align: center;
}

.blessed-quote-mark {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: -0.5rem;
  display: block;
}

/* --------------------------------------------------------------------------
   9. ORNATE FRAME COMPONENT (SECTIONS 03 & 04)
   -------------------------------------------------------------------------- */
.ornate-frame-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 1.5rem auto 0;
  /* Aspect ratio matches scratch_bg.png (1536x1024 = 1.5) */
  aspect-ratio: 1536 / 1024;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ornate-frame-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 8px 24px rgba(48, 4, 9, 0.2));
}

/* Central window within the frame opening */
.ornate-frame-window {
  position: absolute;
  top: 26%;
  bottom: 22%;
  left: 17%;
  right: 17%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at center, #ffffff 0%, #fdfbf7 70%, #f7ecd9 100%);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  overflow: hidden;
  box-shadow: inset 0 0 18px rgba(201, 163, 91, 0.25);
}

.ornate-frame-window::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201, 163, 91, 0.4);
  pointer-events: none;
}

/* Scratch Canvas */
.scratch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  cursor: crosshair;
  touch-action: none;
  border-radius: 4px;
  transition: opacity 0.5s ease;
}

.scratch-hint {
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--antique-gold);
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* Inside Frame Content Elements */
.frame-invite-tag {
  font-family: var(--font-label);
  font-size: clamp(0.6rem, 1.8vw, 0.7rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--antique-gold);
  margin-bottom: 0.2rem;
}

.frame-date-highlight {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3.6vw, 1.85rem);
  font-weight: 500;
  color: var(--wine);
  line-height: 1.15;
  margin-bottom: 0.15rem;
}

.frame-time-highlight {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  color: var(--dark-text);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.frame-venue-highlight {
  font-family: var(--font-label);
  font-size: clamp(0.64rem, 1.8vw, 0.74rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
}

.frame-couple-script {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 3.8vw, 1.9rem);
  color: var(--burgundy);
  line-height: 1;
}

/* Refined Mini Button inside Frame */
.frame-btn-venue {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-label);
  font-size: clamp(0.58rem, 1.6vw, 0.65rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--wine);
  background-color: transparent;
  border: 1px solid var(--gold);
  padding: 5px 14px;
  border-radius: 20px;
  transition: var(--transition-smooth);
}

.frame-btn-venue:hover {
  color: var(--ivory);
  background-color: var(--wine);
  border-color: var(--wine);
}

/* Floating Gold Sparkle Canvas Particles */
.gold-sparkle {
  position: absolute;
  width: 5px;
  height: 5px;
  background: radial-gradient(circle, #fff 10%, #ffd700 60%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 100;
}

/* --------------------------------------------------------------------------
   10. SECTION 05 — COUNTDOWN
   -------------------------------------------------------------------------- */
#countdown {
  position: relative;
  text-align: center;
}

/* Islamic Geometric & Constellation Lines in Background */
.countdown-bg-geometry {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(201, 163, 91, 0.08) 0%, transparent 70%),
    linear-gradient(rgba(201, 163, 91, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 163, 91, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
  pointer-events: none;
  opacity: 0.6;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: 440px;
  margin: 2.25rem auto 0;
}

.countdown-box {
  background: rgba(75, 7, 16, 0.45);
  border: 1px solid rgba(201, 163, 91, 0.35);
  border-radius: 12px;
  padding: 1rem 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(223, 194, 133, 0.2);
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.countdown-box:hover {
  transform: translateY(-3px);
  border-color: var(--light-gold);
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.2vw, 2.85rem);
  font-weight: 500;
  color: var(--ivory);
  line-height: 1;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.countdown-unit {
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   11. SECTION 06 — THE NIKAH DAY (VERTICAL TIMELINE)
   -------------------------------------------------------------------------- */
#nikah-day {
  text-align: center;
}

.nikah-timeline {
  position: relative;
  max-width: 440px;
  margin: 2.5rem auto 0;
  padding: 1rem 0;
}

/* Elegant Center Vertical Gold Line */
.nikah-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--gold) 20%, var(--gold) 80%, transparent 100%);
  transform: translateX(-50%);
}

.timeline-node-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(201, 163, 91, 0.35);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-card);
  z-index: 2;
  margin: 0 auto;
}

.timeline-ornament-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wine-gradient);
  border: 1px solid var(--gold);
  color: var(--light-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -3.5rem auto 1.25rem;
  font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(75, 7, 16, 0.25);
}

.timeline-time-badge {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--antique-gold);
  margin-bottom: 0.4rem;
}

.timeline-event-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--wine);
  margin-bottom: 0.35rem;
}

.timeline-venue-name {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1rem;
}

.timeline-blurb {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--dark-text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   12. SECTION 07 — DRESS CODE
   -------------------------------------------------------------------------- */
#dress-code {
  text-align: center;
}

.dress-code-advice {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--muted-text);
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.swatch-palette-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem 1rem;
  margin-top: 1.75rem;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 72px;
}

.swatch-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(201, 163, 91, 0.45);
  box-shadow: 0 4px 12px rgba(48, 4, 9, 0.12), inset 0 2px 4px rgba(255, 255, 255, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.swatch-item:hover .swatch-circle {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(48, 4, 9, 0.22), 0 0 10px rgba(201, 163, 91, 0.4);
}

.swatch-label {
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-text);
  line-height: 1.25;
  text-align: center;
}

/* Swatch Color Assignments */
.swatch-wine { background-color: var(--wine); }
.swatch-ruby { background-color: var(--ruby); }
.swatch-crimson { background-color: var(--crimson); }
.swatch-gold { background: var(--gold-gradient); }
.swatch-ivory { background-color: var(--ivory); border-color: rgba(201, 163, 91, 0.6); }

/* --------------------------------------------------------------------------
   13. SECTION 08 — THE FESTIVITIES
   -------------------------------------------------------------------------- */
#festivities {
  text-align: center;
}

.festivities-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.event-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(201, 163, 91, 0.4);
  border-radius: 18px;
  padding: 2.25rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201, 163, 91, 0.22);
  border-radius: 14px;
  pointer-events: none;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(48, 4, 9, 0.16), 0 0 20px rgba(201, 163, 91, 0.2);
}

.event-card-category {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--antique-gold);
  margin-bottom: 0.35rem;
}

.event-card-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--wine);
  margin-bottom: 0.5rem;
}

.event-card-datetime {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 0.25rem;
}

.event-card-venue {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   14. SECTION 09 — EMOTIONAL MESSAGE
   -------------------------------------------------------------------------- */
#emotional-message {
  text-align: center;
  position: relative;
}

.emotional-ornament {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(201, 163, 91, 0.4));
}

.emotional-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 3.2vw, 1.45rem);
  line-height: 1.8;
  color: var(--cream);
  max-width: 440px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   15. SECTION 10 — FINAL INVITATION / CLOSING
   -------------------------------------------------------------------------- */
#final-invitation {
  text-align: center;
  padding-bottom: 5.5rem;
}

.final-card-frame {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--gold);
  outline: 1px solid rgba(201, 163, 91, 0.35);
  outline-offset: 7px;
  border-radius: 24px;
  padding: 3.5rem 1.75rem 3rem;
  margin: 1.5rem auto 0;
  box-shadow: var(--shadow-card);
  max-width: 460px;
}

.final-arch-accent {
  width: 56px;
  height: 2px;
  background: var(--gold-gradient);
  margin: 0 auto 1.5rem;
  position: relative;
}

.final-arch-accent::after {
  content: '✦';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -55%);
  background: #ffffff;
  padding: 0 8px;
  color: var(--gold);
  font-size: 0.85rem;
}

.final-names {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 6.5vw, 3.6rem);
  color: var(--burgundy);
  line-height: 1.1;
  margin: 0.75rem 0 1.25rem;
}

.final-date-venue {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--antique-gold);
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

.final-closing-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted-text);
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   16. REUSABLE ANIMATION UTILITIES
   -------------------------------------------------------------------------- */
.reveal-up {
  opacity: 0;
  transform: translateY(35px);
  will-change: transform, opacity;
}

.reveal-fade {
  opacity: 0;
  will-change: opacity;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  will-change: transform, opacity;
}

/* --------------------------------------------------------------------------
   17. ACCESSIBILITY & REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-up,
  .reveal-fade,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   18. RESPONSIVE REFINEMENTS
   -------------------------------------------------------------------------- */
@media (max-width: 400px) {
  .hero-content {
    padding: 1.5rem 2.75rem 1rem;
  }

  .countdown-grid {
    gap: 0.45rem;
  }

  .countdown-box {
    padding: 0.75rem 0.2rem;
  }

  .countdown-number {
    font-size: 1.75rem;
  }

  .swatch-item {
    width: 62px;
  }

  .swatch-circle {
    width: 42px;
    height: 42px;
  }

  .ornate-frame-window {
    top: 24%;
    bottom: 20%;
    left: 14%;
    right: 14%;
  }
}
