/* ==========================================================================
   Ever After — Responsive Wedding Invitation Theme
   Faithful to EverAfter_eCard_Responsive_Template with Full System Integration
   ========================================================================== */

:root {
  /* Default Color Palette */
  --ea-paper: #f7f3eb;
  --ea-paper-soft: #eee8dc;
  --ea-ink: #26352a;
  --ea-muted: #6f7068;
  --ea-green: #3f5b47;
  --ea-green-dark: #263c2d;
  --ea-white: #ffffff;
  --ea-gold: #a2865c;
  --ea-gold-light: #dfcfb5;
  --ea-line: rgba(38, 53, 42, 0.15);
  --ea-shadow: 0 14px 40px rgba(32, 47, 36, 0.12);
  --ea-shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.18);

  /* Template Signature Fonts (LOCKED - Never changed by user custom font) */
  --ea-template-serif: "Cormorant Garamond", Georgia, serif;
  --ea-template-sans: "Montserrat", "Prompt", Arial, sans-serif;
  --ea-template-script: "Allura", "Alex Brush", "Segoe Script", cursive;

  /* User Customizable Fonts (Defaults to Template fonts) */
  --ea-user-header-font: var(--ea-template-serif);
  --ea-user-body-font: var(--ea-template-sans);

  /* User Customizable Colors (Defaults to Template colors) */
  --ea-primary-color: #3f5b47;
  --ea-secondary-color: #26352a;

  /* Sizing Tokens */
  --ea-body-size: 16px;
  --ea-header-size: 36px;
}

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

html {
  scroll-behavior: smooth;
}

body.ever-after-body {
  margin: 0;
  color: var(--ea-ink);
  background-color: var(--ea-paper);
  font-family: var(--ea-sans);
  font-size: var(--ea-body-size);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Global Elements */
img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

/* Container Shell */
.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* Typography Utilities */
.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ea-green);
}

.script {
  font-family: var(--ea-script);
  font-weight: 400;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-head h2,
.section-title {
  margin: 0;
  font-family: var(--ea-user-header-font);
  font-weight: 500;
  font-size: var(--ea-header-size, 36px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--ea-secondary-color);
}

.section-head .script {
  margin: 0.35em 0 0;
  color: var(--ea-gold);
  font-size: 2.2rem;
  line-height: 1.2;
}

/* Buttons */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  color: var(--ea-white) !important;
  background: var(--ea-green);
  font-family: var(--ea-template-sans) !important;
  font-size: 0.75rem;
  font-weight: 600;
  /*letter-spacing: 0.14em;
  text-transform: uppercase;*/
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 8px 20px rgba(38, 60, 45, 0.2);
  text-decoration: none;
}

.pill:hover {
  transform: translateY(-2px);
  background: var(--ea-green-dark);
  color: var(--ea-white);
  box-shadow: 0 12px 28px rgba(38, 60, 45, 0.3);
}

.pill-outline {
  background: transparent;
  color: var(--ea-green);
  border: 1px solid var(--ea-green);
  box-shadow: none;
}

.pill-outline:hover {
  background: var(--ea-green);
  color: var(--ea-white);
}

.pill-gold {
  background: var(--ea-gold);
  color: var(--ea-white);
}

.pill-gold:hover {
  background: #8b714c;
}

/* ==========================================================================
   Navigation Bar (Desktop Floating Pill)
   ========================================================================== */
.topbar {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 40px));
  min-height: 66px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(247, 243, 235, 0.88);
  box-shadow: var(--ea-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.brand {
  font-family: var(--ea-template-script) !important;
  font-size: 1.5rem;
  color: var(--ea-primary-color);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.desktop-nav a {
  font-family: var(--ea-template-serif) !important;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ea-ink);
}

.desktop-nav a:hover {
  color: var(--ea-gold);
}

.desktop-nav .pill {
  font-family: var(--ea-template-sans) !important;
  font-size: 0.72rem;
  min-height: 42px;
  padding: 0 20px;
  margin-left: 4px;
}

/* Topbar Actions (Audio + Hamburger) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 14px;
}

@media (min-width: 861px) {
  .nav-actions:not(:has(.audio-toggle-btn)) {
    display: none;
  }
}

.audio-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(38, 53, 42, 0.15);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ea-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.audio-toggle-btn:hover {
  background: var(--ea-green);
  color: var(--ea-white);
  transform: scale(1.05);
}

.audio-toggle-btn.playing {
  color: var(--ea-green);
  border-color: var(--ea-green);
  animation: audioPulse 2s infinite ease-in-out;
}

@keyframes audioPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(63, 91, 71, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(63, 91, 71, 0);
  }
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ea-ink);
  font-size: 1.6rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 130px 0 70px;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(23, 35, 26, 0.76) 0%,
      rgba(23, 35, 26, 0.3) 52%,
      rgba(23, 35, 26, 0.12) 100%
    ),
    linear-gradient(0deg, rgba(15, 24, 18, 0.54) 0%, transparent 50%);
}

.hero-card {
  width: min(580px, 100%);
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--ea-white);
  background: rgb(82 85 83 / 38%);
  box-shadow: var(--ea-shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: heroCardFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroCardFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card .eyebrow {
  color: #dfcfb5;
  letter-spacing: 0.28em;
}

.hero h1 {
  margin: 0;
  font-family: var(--ea-serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 7.5vw, 6.2rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--ea-white);
}

.hero h1 span.amp {
  display: block;
  margin: 0.12em 0 0.06em 0.35em;
  color: #eee2cf;
  font-family: var(--ea-script);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.7;
  letter-spacing: 0;
}

.hero-date {
  margin: 26px 0 16px;
  font-family: var(--ea-serif);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f7f3eb;
}

.hero-venue {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Live Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 26px 0;
}

.time-box {
  padding: 14px 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

.time-box strong {
  display: block;
  font-family: var(--ea-template-serif) !important;
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ea-white);
}

.time-box small {
  display: block;
  margin-top: 6px;
  font-family: var(--ea-template-sans) !important;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* General Section Padding */
section {
  padding: 108px 0;
  position: relative;
}

/* ==========================================================================
   Our Story & Couple Details Section
   ========================================================================== */
.story-section {
  background: var(--ea-paper);
}

.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 7vw, 94px);
  align-items: center;
}

.story-image {
  min-height: 560px;
  overflow: hidden;
  border-radius: 220px 220px 18px 18px;
  box-shadow: 0 34px 70px rgba(31, 49, 36, 0.16);
  position: relative;
  background: #e3ded5;
}

.story-image img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.02);
  transition: transform 0.6s ease;
}

.story-image:hover img {
  transform: scale(1.06);
}

.story-copy h2 {
  margin: 0 0 22px;
  font-family: var(--ea-user-header-font);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 0.94;
  color: var(--ea-secondary-color);
}

.story-copy p {
  max-width: 580px;
  color: var(--ea-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.quote {
  margin-top: 30px;
  padding: 22px 0 0 28px;
  border-left: 2px solid var(--ea-gold);
  color: var(--ea-green);
  font-family: var(--ea-script);
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1.15;
}

/* Couple Cards (Groom & Bride) */
.couple-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
  align-items: stretch;
}

.couple-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease;
}

.couple-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* Groom Card: Content on Left, Photo on Right */
.couple-card-groom {
  justify-content: space-between;
}

.couple-card-groom .couple-card-content {
  flex: 1 1 54%;
  padding: 28px 20px 24px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  z-index: 2;
}

/* Bride Card: Photo on Left, Content on Right */
.couple-card-bride {
  justify-content: space-between;
}

.couple-card-bride .couple-card-content {
  flex: 1 1 54%;
  padding: 28px 30px 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  text-align: right;
  z-index: 2;
}

.couple-card-role {
  font-family: var(--ea-user-body-font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ea-gold, #b08b59);
  margin-bottom: 2px;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.couple-card-name {
  font-family:
    "Great Vibes", "Allura", "Alex Brush", var(--ea-template-script), cursive;
  font-size: 3.4rem;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.15;
  margin: 2px 0 14px;
  letter-spacing: 0.01em;
}

.couple-card-fullname {
  font-family: var(--ea-user-body-font);
  font-size: 0.88rem;
  color: #666666;
  margin-top: -8px;
  margin-bottom: 12px;
}

.couple-card-bio {
  font-family: var(--ea-user-body-font);
  font-size: 0.92rem;
  line-height: 1.68;
  color: #333333;
  margin: 0;
  word-break: break-word;
}

.couple-card-parents {
  font-family: var(--ea-user-body-font);
  font-size: 0.82rem;
  color: #777777;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  width: 100%;
}

.couple-card-bride .couple-card-parents {
  text-align: right;
}

.couple-card-photo {
  flex: 1 1 46%;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
}

.couple-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Groom Photo Fade: Fades to white on the LEFT edge and BOTTOM edge */
.couple-card-groom .couple-card-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      #ffffff 0%,
      #ffffff 8%,
      rgba(255, 255, 255, 0.95) 20%,
      rgba(255, 255, 255, 0.75) 35%,
      rgba(255, 255, 255, 0.35) 55%,
      rgba(255, 255, 255, 0.08) 72%,
      transparent 88%
    ),
    linear-gradient(
      to top,
      #ffffff 0%,
      rgba(255, 255, 255, 0.9) 8%,
      rgba(255, 255, 255, 0.4) 20%,
      transparent 38%
    );
}

/* Bride Photo Fade: Fades to white on the RIGHT edge and BOTTOM edge */
.couple-card-bride .couple-card-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to left,
      #ffffff 0%,
      #ffffff 8%,
      rgba(255, 255, 255, 0.95) 20%,
      rgba(255, 255, 255, 0.75) 35%,
      rgba(255, 255, 255, 0.35) 55%,
      rgba(255, 255, 255, 0.08) 72%,
      transparent 88%
    ),
    linear-gradient(
      to top,
      #ffffff 0%,
      rgba(255, 255, 255, 0.9) 8%,
      rgba(255, 255, 255, 0.4) 20%,
      transparent 38%
    );
}

/* Legacy avatar fallback if needed */
.couple-avatar {
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(38, 53, 42, 0.15);
  border: 4px solid var(--ea-white);
}

.couple-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Love Story Timeline */
/* ==========================================================================
   Love Story Timeline Section (Alternating Cards with White Gradient Fade)
   ========================================================================== */
.story-timeline-wrap {
  max-width: 960px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  padding-left: 0;
}

/* Subtle connecting vertical guide */
.story-timeline-wrap::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--ea-gold-light, rgba(205, 175, 133, 0.35)) 12%,
    var(--ea-gold, #b08b59) 50%,
    var(--ea-gold-light, rgba(205, 175, 133, 0.35)) 88%,
    transparent 100%
  );
  z-index: 0;
  pointer-events: none;
}

.story-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease;
  min-height: 240px;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.1);
}

/* Odd Card: Content on Left, Photo on Right */
.story-card-odd {
  justify-content: space-between;
}

.story-card-odd .story-card-content {
  flex: 1 1 54%;
  padding: 32px 26px 28px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  z-index: 2;
}

/* Even Card: Photo on Left, Content on Right */
.story-card-even {
  justify-content: space-between;
}

.story-card-even .story-card-content {
  flex: 1 1 54%;
  padding: 32px 36px 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  z-index: 2;
}

/* Card without Image */
.story-card-no-img .story-card-content {
  flex: 1 1 100%;
  padding: 38px 48px;
  align-items: center;
  text-align: center;
}

/* Story Meta (Step + Date) */
.story-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.story-card-odd .story-card-meta {
  justify-content: flex-start;
}

.story-card-even .story-card-meta {
  justify-content: flex-end;
}

.story-card-step {
  font-family: var(--ea-user-body-font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ea-gold, #b08b59);
}

.story-card-dot-sep {
  color: var(--ea-gold-light, #d4b896);
  font-size: 0.85rem;
  line-height: 1;
}

.story-card-date {
  font-family: var(--ea-user-body-font);
  font-size: 0.84rem;
  color: #777777;
  letter-spacing: 0.04em;
}

/* Story Title */
.story-card-title {
  font-family: var(--ea-user-header-font);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ea-primary-color, #26352a);
  margin: 4px 0 12px;
}

/* Story Description */
.story-card-desc {
  font-family: var(--ea-user-body-font);
  font-size: 0.94rem;
  line-height: 1.7;
  color: #444444;
  margin: 0;
  word-break: break-word;
}

/* Story Photo Container */
.story-card-photo {
  flex: 1 1 10%;
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
}

.story-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Odd Photo Fade (Photo is on the RIGHT): Fades to white on LEFT edge and BOTTOM edge */
.story-card-odd .story-card-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      #ffffff 0%,
      #ffffff 8%,
      rgba(255, 255, 255, 0.95) 20%,
      rgba(255, 255, 255, 0.75) 35%,
      rgba(255, 255, 255, 0.35) 55%,
      rgba(255, 255, 255, 0.08) 72%,
      transparent 88%
    ),
    linear-gradient(
      to top,
      #ffffff 0%,
      rgba(255, 255, 255, 0.9) 8%,
      rgba(255, 255, 255, 0.4) 20%,
      transparent 38%
    );
}

/* Even Photo Fade (Photo is on the LEFT): Fades to white on RIGHT edge and BOTTOM edge */
.story-card-even .story-card-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to left,
      #ffffff 0%,
      #ffffff 8%,
      rgba(255, 255, 255, 0.95) 20%,
      rgba(255, 255, 255, 0.75) 35%,
      rgba(255, 255, 255, 0.35) 55%,
      rgba(255, 255, 255, 0.08) 72%,
      transparent 88%
    ),
    linear-gradient(
      to top,
      #ffffff 0%,
      rgba(255, 255, 255, 0.9) 8%,
      rgba(255, 255, 255, 0.4) 20%,
      transparent 38%
    );
}

/* Mobile Media Query for Story Timeline */
@media (max-width: 768px) {
  .story-timeline-wrap::before {
    display: none;
  }

  .story-timeline-wrap {
    gap: 20px;
    margin-top: 36px;
  }

  .story-card {
    min-height: 190px;
  }

  .story-card-odd .story-card-content {
    padding: 22px 14px 20px 20px;
    flex: 1 1 58%;
  }

  .story-card-even .story-card-content {
    padding: 22px 20px 20px 14px;
    flex: 1 1 58%;
  }

  .story-card-photo {
    flex: 1 1 42%;
    min-height: 180px;
  }

  .story-card-title {
    font-size: 1.35rem;
    margin: 2px 0 8px;
  }

  .story-card-desc {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .story-card-step {
    font-size: 0.72rem;
  }

  .story-card-date {
    font-size: 0.76rem;
  }
}

/* ==========================================================================
   Schedule Section (Wedding Day — Deep Forest Green)
   ========================================================================== */
.details {
  background: var(--ea-green-dark);
  color: var(--ea-white);
}

.details .eyebrow {
  color: var(--ea-gold-light);
}

.details .section-head h2 {
  color: var(--ea-white);
}

.details .section-head .script {
  color: #d8c5a3;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.detail-card {
  min-height: 280px;
  padding: 34px 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background-color: var(--ea-primary-color) !important;
  color: var(--ea-white) !important;
  font-family: var(--ea-user-body-font) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    filter 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-4px);
  background-color: var(--ea-primary-color) !important;
  filter: brightness(1.08);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
  border-color: rgba(255, 255, 255, 0.38);
}

.detail-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.detail-card .num {
  color: rgba(255, 255, 255, 0.85) !important;
  font-family: var(--ea-template-script) !important;
  font-size: 2.6rem;
  line-height: 1;
}

.schedule-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff !important;
  font-size: 1.15rem;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.detail-card:hover .schedule-icon {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.28);
}

.detail-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffffff !important;
  font-family: var(--ea-user-body-font) !important;
}

.detail-card h3 {
  margin: 10px 0 10px;
  font-family: var(--ea-user-body-font) !important;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.35;
  color: #ffffff !important;
}

.detail-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92) !important;
  font-family: var(--ea-user-body-font) !important;
  font-size: 0.95rem;
  line-height: 1.65;
}

.schedule-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85) !important;
  font-family: var(--ea-user-body-font) !important;
}

.schedule-actions {
  margin-top: 48px;
  text-align: center;
}

/* ==========================================================================
   Dress Code Section
   ========================================================================== */
.dress-code-section {
  background: var(--ea-paper-soft);
  text-align: center;
  padding: 80px 0;
}

.dress-code-palette {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 16px;
}

.color-swatch-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.color-swatch {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border: 3px solid var(--ea-white);
  transition: transform 0.25s ease;
}

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

.color-hex {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--ea-muted);
}

/* ==========================================================================
   Venue & Map Section
   ========================================================================== */
.venue-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 540px;
  overflow: hidden;
  background: var(--ea-white);
  box-shadow: var(--ea-shadow);
  border: 1px solid var(--ea-line);
}

.venue-photo {
  position: relative;
  overflow: hidden;
  background: #ddd4c7;
}

.venue-photo img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.venue-photo:hover img {
  transform: scale(1.04);
}

.venue-copy {
  padding: clamp(38px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.venue-copy h2,
.venue-copy h3,
.venue-name {
  margin: 0 0 14px;
  font-family: var(--ea-user-body-font) !important;
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.15;
  color: var(--ea-primary-color);
}

.venue-copy .address {
  margin: 22px 0 28px;
  padding-top: 22px;
  border-top: 1px solid var(--ea-line);
  color: var(--ea-muted);
  line-height: 1.7;
}

.venue-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.venue-embed-wrap {
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid var(--ea-line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.venue-embed-wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

/* ==========================================================================
   Gallery Section (Mosaic Strip + LightGallery)
   ========================================================================== */
.gallery-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-template-rows: 270px 270px;
  gap: 14px;
  overflow: hidden;
}

.gallery-strip figure {
  margin: 0;
  overflow: hidden;
  background: #ddd4c7;
  position: relative;
  cursor: pointer;
}

.gallery-strip figure:first-child {
  grid-row: 1 / 3;
}

.gallery-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-strip figure:hover img {
  transform: scale(1.05);
}

.gallery-expand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.gallery-expand-grid figure {
  margin: 0;
  height: 240px;
  overflow: hidden;
  cursor: pointer;
  background: #ddd4c7;
}

.gallery-expand-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-expand-grid figure:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   Gift Registry / PromptPay QR Section
   ========================================================================== */
.gift-section {
  background: var(--ea-paper);
}

.gift-card {
  max-width: 580px;
  margin: 0 auto;
  background: var(--ea-white);
  padding: 42px 36px;
  box-shadow: var(--ea-shadow);
  border: 1px solid var(--ea-line);
  text-align: center;
}

.gift-qr {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  overflow: hidden;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--ea-line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.gift-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bank-info-box {
  background: var(--ea-paper-soft);
  padding: 16px 20px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bank-details {
  text-align: left;
}

.bank-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ea-green);
  text-transform: uppercase;
}

.bank-number {
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--ea-ink);
}

.copy-btn {
  background: var(--ea-green);
  color: var(--ea-white);
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--ea-template-sans) !important;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.copy-btn:hover {
  background: var(--ea-green-dark);
}

/* ==========================================================================
   RSVP Section (2-Panel Signature Layout)
   ========================================================================== */
.rsvp {
  position: relative;
  background: var(--ea-primary-color);
  background-image: url(../../templates/images/invite_background.png);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.rsvp-panel {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  max-width: 980px;
  margin-inline: auto;
  background: var(--ea-white);
  box-shadow: 0 30px 80px rgba(31, 49, 36, 0.14);
  overflow: hidden;
}

.rsvp-intro {
  padding: 56px 44px;
  color: var(--ea-white);
  background: var(--ea-green);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rsvp-intro .eyebrow {
  color: var(--ea-gold-light);
}

.rsvp-intro h2 {
  margin: 0;
  font-family: var(--ea-user-header-font);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 0.95;
  color: var(--ea-white);
}

.rsvp-intro .script {
  margin-top: 18px;
  color: #dfcfb5;
  font-size: 2.1rem;
}

.rsvp-intro p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  margin-top: 16px;
  line-height: 1.6;
}

.rsvp-form-wrap {
  padding: 48px;
  background: var(--ea-white);
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ea-ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid #cfc8bd;
  border-radius: 0;
  outline: 0;
  color: var(--ea-ink);
  background: transparent;
  transition: border-color 0.25s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--ea-green);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.rsvp-side-options {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.rsvp-side-label {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #cfc8bd;
  border-radius: 999px;
  text-align: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rsvp-side-label input {
  display: none;
}

.rsvp-side-label.active,
.rsvp-side-label:has(input:checked) {
  background: var(--ea-green);
  color: var(--ea-white);
  border-color: var(--ea-green);
}

.success-box {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  color: #23412d;
  background: #e5efe7;
  border-radius: 8px;
  font-size: 0.9rem;
}

.success-box.show {
  display: block;
}

/* ==========================================================================
   Guestbook / Wishes Wall Section
   ========================================================================== */
.guestbook-section {
  background: var(--ea-paper-soft);
}

.guestbook-wall {
  display: none;
}

/* ==========================================================================
   Guestbook Status Card & Infinite Scroll Modal
   ========================================================================== */
.guestbook-status-card {
  margin-top: 36px;
  background: var(--ea-white);
  background-image: url(../../templates/images/guestbook_background.png);
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: cover;
  border: 1px solid var(--ea-line);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(31, 49, 36, 0.05);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.guestbook-status-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--ea-gold),
    var(--ea-primary-color),
    var(--ea-gold)
  );
}

.guestbook-status-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ea-paper-soft);
  color: var(--ea-primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  border: 1px solid var(--ea-line);
}

.guestbook-status-title {
  font-family: var(--ea-user-header-font, var(--ea-serif));
  font-size: 1.35rem;
  margin: 0 0 6px;
  color: var(--ea-primary-color);
  font-weight: 600;
}

.guestbook-status-desc {
  font-family: var(--ea-user-body-font, var(--ea-sans));
  font-size: 0.95rem;
  color: var(--ea-muted);
  margin: 0;
  max-width: 420px;
}

.guestbook-status-meta {
  margin-top: 4px;
}

.guestbook-count-badge {
  display: inline-flex;
  align-items: center;
  background: var(--ea-paper-soft);
  border: 1px solid var(--ea-line);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--ea-ink);
  font-weight: 500;
}

.guestbook-count-badge i {
  color: #e25569;
}

.guestbook-open-btn {
  background: var(--ea-primary-color);
  color: var(--ea-white) !important;
  border: 1px solid var(--ea-primary-color);
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.guestbook-open-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  filter: brightness(1.05);
}

/* Modal Backdrop */
.guestbook-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 18, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.3s ease;
  padding: 16px;
  box-sizing: border-box;
}

.guestbook-modal-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

/* Modal Dialog */
.guestbook-modal-dialog {
  background: var(--ea-paper);
  border: 1px solid var(--ea-line);
  border-radius: 20px;
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: scale(0.94) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.guestbook-modal-backdrop.is-active .guestbook-modal-dialog {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.guestbook-modal-header {
  padding: 20px 24px;
  background: var(--ea-white);
  border-bottom: 1px solid var(--ea-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.guestbook-modal-eyebrow {
  display: block;
  font-family: var(--ea-sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ea-gold);
  font-weight: 600;
  margin-bottom: 2px;
}

.guestbook-modal-header-title h3 {
  margin: 0;
  font-family: var(--ea-user-header-font, var(--ea-serif));
  font-size: 1.35rem;
  color: var(--ea-ink);
  font-weight: 600;
  display: flex;
  align-items: center;
}

.guestbook-modal-count {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--ea-muted);
  margin-top: 3px;
}

.guestbook-modal-close {
  background: var(--ea-paper-soft);
  border: 1px solid var(--ea-line);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ea-ink);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.guestbook-modal-close:hover {
  background: var(--ea-ink);
  color: var(--ea-white);
  transform: rotate(90deg);
}

/* Modal Body */
.guestbook-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Modal List */
.guestbook-modal-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guestbook-modal-list .wish-card {
  border-radius: 12px;
  padding: 18px 20px;
  background: var(--ea-white);
  border: 1px solid var(--ea-line);
  box-shadow: 0 4px 12px rgba(31, 49, 36, 0.04);
  animation: wishFadeIn 0.35s ease forwards;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@keyframes wishFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guestbook-modal-list .wish-msg {
  font-family: var(--ea-user-body-font, var(--ea-sans));
  font-size: 0.95rem;
  color: var(--ea-ink);
  line-height: 1.6;
  margin: 0 0 12px;
  font-style: normal;
  white-space: pre-wrap;
}

.guestbook-modal-list .wish-img-wrap {
  margin: 10px 0;
  max-width: 240px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.guestbook-modal-list .wish-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.guestbook-modal-list .wish-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--ea-line);
  padding-top: 10px;
}

.guestbook-modal-list .wish-name {
  font-family: var(--ea-user-header-font, var(--ea-serif));
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ea-primary-color);
}

.guestbook-modal-list .wish-time {
  font-size: 0.75rem;
  color: var(--ea-muted);
}

/* Loader */
.guestbook-modal-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 0;
  color: var(--ea-muted);
  font-size: 0.85rem;
}

.guestbook-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(197, 168, 128, 0.25);
  border-top-color: var(--ea-primary-color);
  border-radius: 50%;
  animation: gbSpin 0.7s linear infinite;
}

@keyframes gbSpin {
  to {
    transform: rotate(360deg);
  }
}

/* End / Empty states */
.guestbook-modal-end {
  text-align: center;
  padding: 24px 0 12px;
  color: var(--ea-muted);
  font-size: 0.85rem;
}

.guestbook-end-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.guestbook-end-divider::before,
.guestbook-end-divider::after {
  content: "";
  height: 1px;
  width: 40px;
  background: var(--ea-line);
}

.guestbook-end-divider span {
  color: var(--ea-gold);
}

.guestbook-modal-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--ea-muted);
}

/* Modal Footer */
.guestbook-modal-footer {
  padding: 14px 24px;
  background: var(--ea-white);
  border-top: 1px solid var(--ea-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guestbook-modal-write-btn {
  background: transparent;
  color: var(--ea-primary-color);
  border: 1px solid var(--ea-primary-color);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guestbook-modal-write-btn:hover {
  background: var(--ea-paper-soft);
}

.guestbook-modal-done-btn {
  background: var(--ea-primary-color);
  color: var(--ea-white);
  border: none;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guestbook-modal-done-btn:hover {
  filter: brightness(1.1);
}

/* Prevent body scroll when modal is open */
body.body-modal-open {
  overflow: hidden !important;
  touch-action: none;
}

@media (max-width: 600px) {
  .guestbook-modal-dialog {
    max-height: 90vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
    align-self: flex-end;
  }
  .guestbook-modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  padding: 56px 0 120px;
  text-align: center;
  background: var(--ea-paper);
  border-top: 1px solid var(--ea-line);
}

footer .brand {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 2.6rem;
  color: var(--ea-primary-color);
}

footer small {
  display: block;
  color: var(--ea-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* Floating Audio Player (Fixed Bottom Left or Floating) */
.floating-music-btn {
  position: fixed;
  z-index: 90;
  left: 20px;
  bottom: 84px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ea-white);
  color: var(--ea-green);
  box-shadow: 0 8px 24px rgba(31, 49, 36, 0.2);
  border: 1px solid var(--ea-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.floating-music-btn:hover {
  transform: scale(1.08);
  background: var(--ea-green);
  color: var(--ea-white);
}

/* ==========================================================================
   Mobile Bottom Bar Navigation (Signature Ever After Feature)
   ========================================================================== */
.mobile-nav {
  display: none;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .story-grid,
  .venue-grid {
    grid-template-columns: 1fr;
  }

  .story-image {
    min-height: 460px;
    border-radius: 160px 160px 16px 16px;
  }

  .venue-photo img {
    min-height: 360px;
    height: 360px;
  }

  .rsvp-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  body.ever-after-body {
    padding-bottom: 74px;
  }

  .shell {
    width: min(100% - 28px, 680px);
  }

  /* Topbar on Tablet & Mobile */
  .topbar {
    top: 12px;
    width: calc(100% - 24px);
    min-height: 58px;
    padding: 0 14px 0 18px;
  }

  .topbar .brand {
    font-size: 1.7rem;
  }

  .desktop-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    margin-left: 0;
    padding: 20px;
    border-radius: 20px;
    background: rgba(247, 243, 235, 0.98);
    box-shadow: 0 18px 40px rgba(31, 49, 36, 0.16);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
  }

  .desktop-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .desktop-nav a {
    padding: 12px;
    text-align: center;
  }

  .desktop-nav .pill {
    margin-top: 10px;
  }

  .menu-toggle {
    display: flex;
  }

  /* Hero Section */
  .hero {
    min-height: 900px;
    padding: 100px 14px 28px;
    align-items: end;
  }

  .hero-media img {
    object-position: center 30%;
  }

  .hero::after {
    background: linear-gradient(
      0deg,
      rgba(20, 31, 23, 0.88) 0%,
      rgba(20, 31, 23, 0.3) 60%,
      rgba(20, 31, 23, 0.1) 100%
    );
  }

  .hero-card {
    width: 100%;
    padding: 30px 22px;
    text-align: center;
    background: rgba(140, 140, 140, 0.32);
  }

  .hero h1 {
    font-size: clamp(3.2rem, 16vw, 4.8rem);
  }

  .hero h1 span.amp {
    margin-left: 0;
    font-size: clamp(2.5rem, 12vw, 3.8rem);
  }

  .hero-date {
    font-size: 1.1rem;
  }

  .countdown {
    gap: 6px;
  }

  .time-box strong {
    font-size: 1.45rem;
  }

  /* Sections */
  section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .story-copy,
  .venue-copy {
    text-align: center;
  }

  .story-copy p {
    margin-inline: auto;
  }

  .quote {
    padding-left: 0;
    border-left: 0;
    text-align: center;
  }

  .couple-cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .couple-card {
    min-height: 200px;
  }

  .couple-card-groom .couple-card-content {
    padding: 24px 14px 20px 20px;
    flex: 1 1 58%;
  }

  .couple-card-bride .couple-card-content {
    padding: 24px 20px 20px 14px;
    flex: 1 1 58%;
  }

  .couple-card-photo {
    flex: 1 1 42%;
    min-height: 190px;
  }

  .couple-card-name {
    font-size: 2.7rem;
    margin: 2px 0 10px;
  }

  .couple-card-bio {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .venue-buttons {
    justify-content: center;
  }

  .gallery-strip {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 320px 190px 190px;
  }

  .gallery-strip figure:first-child {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .rsvp-intro {
    padding: 42px 30px;
    text-align: center;
  }

  .rsvp-form-wrap {
    padding: 36px 24px;
  }

  /* Signature Mobile Bottom Navigation Bar */
  .mobile-nav {
    position: fixed;
    z-index: 95;
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: 64px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 12px 36px rgba(31, 49, 36, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
  }

  .mobile-nav a {
    display: grid;
    place-items: center;
    gap: 2px;
    color: #445147;
    font-family: var(--ea-template-sans) !important;
    font-size: 0.65rem;
    font-weight: 500;
    text-align: center;
    padding: 4px 0;
    border-radius: 12px;
    transition:
      color 0.2s ease,
      background 0.2s ease;
  }

  .mobile-nav a span {
    font-family: var(--ea-template-sans) !important;
  }

  .mobile-nav a:hover,
  .mobile-nav a.active {
    color: var(--ea-green);
    background: rgba(63, 91, 71, 0.08);
  }

  .mobile-nav span.nav-icon {
    display: block;
    font-size: 1.15rem;
    line-height: 1;
  }

  footer {
    padding-bottom: 50px;
  }

  .floating-music-btn {
    bottom: 88px;
    left: 14px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 820px;
  }

  .hero-card {
    padding: 24px 16px;
  }

  .time-box {
    padding: 8px 3px 6px;
  }

  .time-box strong {
    font-size: 1.3rem;
  }

  .time-box small {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    margin-top: 2px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .gallery-strip {
    grid-template-rows: 260px 160px 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Video Presentation Section
   ========================================================================== */
.video-section {
  padding: 90px 0;
  /*background: var(--ea-paper-soft);*/
}

.video-wrapper {
  max-width: 880px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--ea-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: var(--ea-white);
  padding: 14px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Strict Template Font Locks (Never overridden by user custom font)
   ========================================================================== */
.brand,
.brand *,
header.topbar .brand,
header.topbar .brand *,
footer .brand,
footer .brand * {
  font-family: var(--ea-template-script) !important;
}

.desktop-nav a:not(.pill),
.desktop-nav a:not(.pill) * {
  font-family: var(--ea-template-serif) !important;
}

.mobile-nav a,
.mobile-nav a *,
.mobile-nav span {
  font-family: var(--ea-template-sans) !important;
}

.pill,
.pill *,
button.pill,
a.pill,
.copy-btn,
.schedule-actions .pill,
.venue-buttons .pill,
#rsvpSubmitBtn,
#gbSubmitBtn,
.audio-toggle-btn,
.floating-music-btn,
.menu-toggle,
button:not(.brand),
.btn {
  font-family: var(--ea-template-sans) !important;
}

.countdown strong,
.time-box strong,
#days,
#hours,
#minutes,
#seconds {
  font-family: var(--ea-template-serif) !important;
}

.countdown small,
.time-box small,
.countdown span:not(strong) {
  font-family: var(--ea-template-sans) !important;
}
