/* ============================================================
   TOLULOPE & OLAWALE WEDDING WEBSITE
   Fonts: Great Vibes (display), Playfair Display (headings),
          Lora (body serif), Montserrat (UI)
   ============================================================ */

:root {
  --green: #2D6A2E;
  --green-dark: #1E4D1F;
  --green-light: #3D8B3E;
  --olive: #6B8E23;
  --gold: #D4A520;
  --gold-light: #E8C547;
  --pink: #F5B7C5;
  --pink-light: #FDE8EE;
  --sage: #E8F5E9;
  --ivory: #FDF8F0;
  --gold-tan: #B8A472;
  --white: #FFFFFF;
  --text-dark: #2C2C2C;
  --text-med: #555;
  --text-light: #999;

  --font-display: 'Great Vibes', cursive;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-ui: 'Montserrat', sans-serif;

  --radius: 16px;
  --shadow: 0 4px 30px rgba(45,106,46,0.08);
  --shadow-lg: 0 8px 40px rgba(45,106,46,0.12);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--ivory);
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 16px;
}
img {
  max-width:100%; height:auto; display:block;
  -webkit-user-select:none; user-select:none;
  -webkit-touch-callout:none;
  pointer-events:none;
}
a img, button img, .upload-preview img, .lightbox-img-wrap img { pointer-events:auto; }
a { text-decoration:none; color:inherit; }
button { cursor:pointer; border:none; background:none; font-family:inherit; }
.container { max-width:1200px; margin:0 auto; padding:0 20px; }

::selection { background: rgba(45,106,46,0.15); }

/* ---- Section Titles ---- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  color: var(--green);
  text-align: center;
  margin-bottom: 8px;
  font-weight: 400;
}
.section-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--text-med);
  text-align: center;
  font-style: italic;
  margin-bottom: 48px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 14px 32px; border-radius: 50px;
  font-family: var(--font-ui); font-size:0.85rem; font-weight:600;
  letter-spacing:0.5px; transition: all 0.3s ease; text-align:center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--olive));
  color: var(--white); box-shadow: 0 4px 20px rgba(45,106,46,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(45,106,46,0.4); }
.btn-outline { border:2px solid var(--green); color:var(--green); }
.btn-outline:hover { background:var(--green); color:var(--white); }

/* ============================================================
   LOADING SCREEN
   ============================================================ */
#loading-screen {
  position:fixed; inset:0; z-index:10000;
  background:var(--ivory); display:flex; align-items:center; justify-content:center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loading-screen.hidden { opacity:0; visibility:hidden; pointer-events:none; }
.loader-content { text-align:center; position:relative; display:flex; flex-direction:column; align-items:center; }
.loader-logo { width:80px; animation: pulse 1.5s ease-in-out infinite; display:block; }
.loader-rings { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); }
.loader-text {
  margin-top:28px; display:flex; flex-direction:column; align-items:center; gap:6px;
}
.loader-name {
  font-family:var(--font-display); font-size:1.6rem; color:var(--green);
  letter-spacing:0.5px; line-height:1.1;
}
.loader-amp {
  font-family:var(--font-display); font-size:1.2rem; color:var(--gold);
  font-style:italic; line-height:1;
  position:relative; padding:0 18px;
}
.loader-amp::before, .loader-amp::after {
  content:''; position:absolute; top:50%;
  width:24px; height:1px; background:var(--gold); opacity:0.5;
}
.loader-amp::before { right:100%; }
.loader-amp::after { left:100%; }
@media (max-width:480px) {
  .loader-name { font-size:1.3rem; }
  .loader-amp { font-size:1rem; padding:0 14px; }
  .loader-amp::before, .loader-amp::after { width:18px; }
}

/* ============================================================
   MUSIC
   ============================================================ */
.music-btn {
  position:fixed; bottom:24px; right:24px; z-index:999;
  width:48px; height:48px; border-radius:50%; background:var(--white);
  box-shadow: var(--shadow-lg); display:flex; align-items:center; justify-content:center;
  border:2px solid var(--sage); transition:all 0.3s;
}
.music-btn:hover { transform:scale(1.1); border-color:var(--gold); }
.music-btn.music-playing {
  border-color:var(--gold);
  box-shadow:0 4px 16px rgba(212,165,32,0.35), 0 0 0 0 rgba(212,165,32,0.55);
  animation:musicPulse 2.4s ease-in-out infinite;
}
.music-icon { width:22px; height:22px; color:var(--green); }
@keyframes musicPulse {
  0%, 100% { box-shadow:0 4px 16px rgba(212,165,32,0.35), 0 0 0 0 rgba(212,165,32,0.55); }
  60%      { box-shadow:0 4px 16px rgba(212,165,32,0.35), 0 0 0 12px rgba(212,165,32,0); }
}

.music-hint {
  position:fixed; bottom:84px; right:24px; z-index:1000;
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 16px 10px 14px;
  background:rgba(45,106,46,0.92); color:#fff;
  border-radius:24px; font-family:var(--font-ui);
  font-size:0.78rem; font-weight:600; letter-spacing:0.4px;
  box-shadow:0 8px 24px rgba(0,0,0,0.18);
  opacity:0; transform:translateY(8px) scale(0.96);
  transition:opacity 0.45s ease, transform 0.45s cubic-bezier(0.4,0,0.2,1);
  pointer-events:none;
  max-width:calc(100vw - 48px);
}
.music-hint.visible { opacity:1; transform:translateY(0) scale(1); }
.music-hint-icon {
  display:inline-flex; align-items:center; justify-content:center;
  width:22px; height:22px; border-radius:50%;
  background:var(--gold); color:var(--green-dark);
  font-size:0.85rem; font-weight:700;
}
@media (max-width:480px) {
  .music-hint { bottom:80px; right:16px; padding:8px 14px 8px 12px; font-size:0.72rem; }
}

/* ============================================================
   NAV
   ============================================================ */
#main-nav {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  padding:14px 24px; display:flex; align-items:center; justify-content:space-between;
  transition: all 0.4s ease;
  background:rgba(0,0,0,0.35); backdrop-filter:blur(8px);
}
#main-nav.scrolled {
  background:rgba(253,248,240,0.95); backdrop-filter:blur(12px);
  box-shadow:0 2px 20px rgba(0,0,0,0.06); padding:8px 24px;
}
.nav-logo img { height:40px; transition:all 0.3s; }
#main-nav.scrolled .nav-logo img { height:32px; }
.nav-links { display:flex; list-style:none; gap:4px; }
.nav-links a {
  font-family:var(--font-ui); font-size:0.75rem; font-weight:600;
  color:var(--white); padding:8px 14px; border-radius:24px;
  transition:all 0.3s; letter-spacing:0.5px; text-transform:uppercase;
}
#main-nav.scrolled .nav-links a { color:var(--text-dark); }
.nav-links a:hover, .nav-links a.active { background:rgba(45,106,46,0.15); color:var(--green); }
.nav-hamburger { display:none; flex-direction:column; gap:5px; padding:8px; z-index:1002; }
.nav-hamburger span { width:24px; height:2px; background:var(--white); transition:all 0.3s; border-radius:2px; }
#main-nav.scrolled .nav-hamburger span { background:var(--text-dark); }
.nav-hamburger.active span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.nav-hamburger.active span:nth-child(2) { opacity:0; }
.nav-hamburger.active span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   HERO - Fixed layout, names on separate lines, strong overlay
   ============================================================ */
.hero-section {
  position:relative; min-height:100vh; min-height:100svh;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.hero-bg { position:absolute; inset:0; }
.hero-bg-img {
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:center 30%;
}
.hero-bg-img-1 { animation:heroFade 10s ease-in-out infinite; }
.hero-bg-img-2 { animation:heroFade 10s ease-in-out infinite; animation-delay:-5s; object-position:center 15%; }

@keyframes heroFade {
  0%, 40%  { opacity:1; }
  50%, 90% { opacity:0; }
  100%     { opacity:1; }
}
.hero-overlay {
  position:absolute; inset:0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.65) 40%,
    rgba(45,106,46,0.6) 100%);
}
.petals-container { position:absolute; inset:0; z-index:1; pointer-events:none; overflow:hidden; }
.hero-content {
  position:relative; z-index:2; text-align:center; color:var(--white); padding:20px;
  max-width:700px;
}
.hero-logo {
  width:80px; margin:0 auto 12px;
  filter: brightness(1.3) drop-shadow(0 2px 12px rgba(0,0,0,0.4));
  animation: floatSoft 4s ease-in-out infinite;
}
.hero-subtitle {
  font-family:var(--font-ui); font-size:clamp(0.7rem,2vw,0.85rem);
  font-weight:700; letter-spacing:4px; text-transform:uppercase;
  margin-bottom:10px;
  text-shadow:0 2px 10px rgba(0,0,0,0.6);
}
.hero-names {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight:400; line-height:1.05; margin:0;
  text-shadow: 0 4px 25px rgba(0,0,0,0.7), 0 2px 6px rgba(0,0,0,0.5);
}
.hero-names-2 { margin-bottom:8px; }
.hero-amp {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--gold-light); line-height:1;
  text-shadow:0 2px 15px rgba(0,0,0,0.4);
  margin:0;
}

.hero-letter {
  display:inline-block;
  opacity:0;
  transform:translateX(-10px) translateY(8px) rotate(-6deg);
  filter:blur(2px);
  white-space:pre;
  will-change:opacity, transform, filter;
}
.hero-write .hero-letter {
  animation: heroHandWrite 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * var(--hero-letter-step, 90ms));
}
@keyframes heroHandWrite {
  0% {
    opacity:0;
    transform:translateX(-10px) translateY(8px) rotate(-6deg);
    filter:blur(2px);
  }
  55% {
    opacity:1;
    filter:blur(0);
  }
  100% {
    opacity:1;
    transform:translateX(0) translateY(0) rotate(0);
    filter:blur(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-letter { opacity:1; transform:none; filter:none; animation:none; }
}
.hero-tagline {
  font-family:var(--font-body); font-size:clamp(0.9rem,2.5vw,1.15rem);
  font-weight:600; font-style:italic; margin-bottom:12px;
  text-shadow:0 2px 10px rgba(0,0,0,0.6);
}
.hero-date {
  font-family:var(--font-ui); font-size:clamp(0.7rem,1.8vw,0.85rem);
  font-weight:700; letter-spacing:3px; text-transform:uppercase;
  border:2px solid rgba(255,255,255,0.5); display:inline-block;
  padding:8px 24px; border-radius:30px;
  text-shadow:0 2px 8px rgba(0,0,0,0.5);
}
.scroll-indicator { position:absolute; bottom:28px; left:50%; transform:translateX(-50%); z-index:2; }
.scroll-arrow {
  width:22px; height:22px; border-right:2px solid rgba(255,255,255,0.7);
  border-bottom:2px solid rgba(255,255,255,0.7);
  transform:rotate(45deg); animation: scrollBounce 2s ease-in-out infinite;
}

/* ============================================================
   DIVIDERS
   ============================================================ */
.section-divider {
  position:relative; height:50px; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(90deg, transparent, rgba(45,106,46,0.08), transparent);
}
.divider-ornament {
  font-size:1.5rem; color:var(--gold); background:var(--ivory); padding:0 16px; line-height:1;
  position:relative; z-index:1;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown-section {
  padding:80px 0; position:relative; overflow:hidden;
  background: linear-gradient(180deg, var(--ivory), var(--sage), var(--ivory));
}
.countdown-wrapper { display:flex; justify-content:center; align-items:center; gap:10px; flex-wrap:wrap; }
.countdown-item { text-align:center; }
.countdown-flip {
  background: linear-gradient(145deg, var(--white), var(--sage));
  border-radius:var(--radius); padding:18px 14px; min-width:75px;
  box-shadow: var(--shadow-lg); border:1px solid rgba(45,106,46,0.08);
}
.countdown-number {
  font-family:var(--font-ui); font-size:clamp(2rem,6vw,3.2rem); font-weight:700;
  background:linear-gradient(135deg,var(--green),var(--gold));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
  line-height:1;
}
.countdown-label {
  display:block; font-family:var(--font-ui); font-size:0.65rem; font-weight:600;
  letter-spacing:2px; text-transform:uppercase; color:var(--text-med); margin-top:8px;
}
.countdown-sep { font-size:1.8rem; color:var(--gold); padding-bottom:20px; }
.married-message { text-align:center; padding:40px 20px; }
.married-title { font-family:var(--font-display); font-size:clamp(2.5rem,7vw,4.5rem); color:var(--green); opacity:0; transform:translateY(10px); transition:opacity 0.7s ease 1.6s, transform 0.7s ease 1.6s; }
.married-sub { font-family:var(--font-body); font-size:1.1rem; color:var(--text-med); font-style:italic; opacity:0; transition:opacity 0.7s ease 1.9s; }
.cake-revealing .married-title { opacity:1; transform:translateY(0); }
.cake-revealing .married-sub { opacity:1; }
.sparkles-container { position:absolute; inset:0; pointer-events:none; overflow:hidden; }

.cake-stage { display:flex; justify-content:center; margin:0 auto 12px; }
.cake-svg { width:min(280px, 70vw); height:auto; overflow:visible; }
.cake-svg .cake-shadow { fill:rgba(0,0,0,0.12); opacity:0; transition:opacity 0.6s ease 0.1s; }
.cake-svg .cake-tier rect { fill:#fdf6e9; stroke:rgba(45,106,46,0.18); stroke-width:1; }
.cake-svg .cake-tier-1 rect { fill:#fdeef0; }
.cake-svg .cake-tier-2 rect { fill:#fff8e8; }
.cake-svg .cake-tier-3 rect { fill:#fdeef0; }
.cake-svg .cake-frosting { fill:#ffffff; }
.cake-svg .cake-dot { fill:var(--gold); }
.cake-svg .cake-tier { opacity:0; transform-origin:center; transform:translateY(20px) scale(0.92); }
.cake-svg .cake-topper { opacity:0; transform-origin:120px 60px; transform:scale(0.6) rotate(-10deg); }
.cake-svg .cake-topper-heart { fill:var(--pink); stroke:var(--gold); stroke-width:1.2; }
.cake-svg .cake-candle { opacity:0; transform-origin:center bottom; transform:translateY(8px); }
.cake-svg .cake-candle rect { fill:var(--gold); }
.cake-svg .cake-flame { fill:#ffb347; }
.cake-svg .cake-petals .cake-petal { fill:var(--pink); opacity:0; transform-origin:center; }
.cake-revealing .cake-svg .cake-shadow { opacity:1; }
.cake-revealing .cake-svg .cake-tier-1 { animation:cakeRise 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.2s forwards; }
.cake-revealing .cake-svg .cake-tier-2 { animation:cakeRise 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.55s forwards; }
.cake-revealing .cake-svg .cake-tier-3 { animation:cakeRise 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.9s forwards; }
.cake-revealing .cake-svg .cake-topper { animation:cakeTopperPop 0.6s cubic-bezier(0.34,1.56,0.64,1) 1.25s forwards; }
.cake-revealing .cake-svg .cake-candle-left { animation:cakeCandlePop 0.5s ease-out 1.1s forwards, cakeFlicker 1.6s ease-in-out 1.6s infinite; }
.cake-revealing .cake-svg .cake-candle-right { animation:cakeCandlePop 0.5s ease-out 1.2s forwards, cakeFlicker 1.6s ease-in-out 1.7s infinite; }
.cake-revealing .cake-svg .cake-petal:nth-child(1) { animation:cakePetalFloat 2.2s ease-out 1.4s forwards; }
.cake-revealing .cake-svg .cake-petal:nth-child(2) { animation:cakePetalFloat 2.2s ease-out 1.5s forwards; }
.cake-revealing .cake-svg .cake-petal:nth-child(3) { animation:cakePetalFloat 2.2s ease-out 1.6s forwards; }
.cake-revealing .cake-svg .cake-petal:nth-child(4) { animation:cakePetalFloat 2.2s ease-out 1.7s forwards; }
.cake-revealing .cake-svg .cake-petal:nth-child(5) { animation:cakePetalFloat 2.2s ease-out 1.8s forwards; }
.cake-revealing .cake-svg .cake-petal:nth-child(6) { animation:cakePetalFloat 2.2s ease-out 1.9s forwards; }

.calendar-actions {
  margin-top:32px; text-align:center;
}
.calendar-actions-label {
  font-family:var(--font-ui); font-size:0.7rem; font-weight:700;
  letter-spacing:3px; text-transform:uppercase; color:var(--gold-tan);
  margin-bottom:12px;
}
.calendar-buttons {
  display:flex; justify-content:center; gap:10px; flex-wrap:wrap;
}
.calendar-btn {
  display:inline-flex; align-items:center; gap:8px;
  font-size:0.78rem; padding:10px 18px; letter-spacing:0.6px;
}
.calendar-btn svg { width:16px; height:16px; flex:0 0 auto; }
@media (max-width:480px) {
  .calendar-buttons { gap:8px; }
  .calendar-btn { font-size:0.7rem; padding:8px 14px; }
}

.scroll-progress {
  position:fixed; top:0; left:0; right:0; height:3px;
  z-index:1500; pointer-events:none;
  background:rgba(45,106,46,0.06);
}
.scroll-progress span {
  display:block; height:100%; width:0;
  background:linear-gradient(90deg, var(--green) 0%, var(--gold) 50%, var(--green) 100%);
  box-shadow:0 0 8px rgba(212,165,32,0.35);
  transition:width 0.08s linear;
}

section.section-enter {
  opacity:0; transform:scale(0.99) translateY(8px);
  transition:opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
section.section-enter.section-entered {
  opacity:1; transform:scale(1) translateY(0);
}
section.hero-section.section-enter { opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce) {
  section.section-enter, section.section-enter.section-entered {
    opacity:1; transform:none; transition:none;
  }
}

.blessing-section {
  padding:70px 0;
  background:linear-gradient(180deg, var(--ivory), #fffaf0, var(--ivory));
}
.blessing-card {
  position:relative; max-width:680px; margin:24px auto 0;
  background:var(--white); border-radius:var(--radius);
  padding:48px 36px 36px; text-align:center;
  box-shadow:var(--shadow);
  border:1px solid rgba(212,165,32,0.18);
}
.blessing-corner {
  position:absolute; width:24px; height:24px;
  border:2px solid var(--gold); opacity:0.7;
}
.blessing-corner-tl { top:10px; left:10px; border-right:none; border-bottom:none; border-top-left-radius:8px; }
.blessing-corner-tr { top:10px; right:10px; border-left:none; border-bottom:none; border-top-right-radius:8px; }
.blessing-corner-bl { bottom:10px; left:10px; border-right:none; border-top:none; border-bottom-left-radius:8px; }
.blessing-corner-br { bottom:10px; right:10px; border-left:none; border-top:none; border-bottom-right-radius:8px; }
.blessing-quote-mark {
  font-family:var(--font-display); font-size:4rem; line-height:0.5;
  color:var(--gold); opacity:0.55; margin-bottom:8px;
}
.blessing-text {
  font-family:var(--font-body); font-style:italic; font-weight:500;
  font-size:clamp(1.05rem, 2.2vw, 1.3rem); line-height:1.55;
  color:var(--text-dark); margin:0 0 16px;
  transition:opacity 0.3s ease;
}
.blessing-ref {
  font-family:var(--font-ui); font-size:0.78rem; font-weight:700;
  letter-spacing:2.5px; text-transform:uppercase; color:var(--green);
  margin:0 0 24px;
  transition:opacity 0.3s ease;
}
.blessing-refresh {
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-ui); font-size:0.72rem; font-weight:600;
  letter-spacing:1.2px; text-transform:uppercase;
  color:var(--green); background:transparent;
  padding:8px 16px; border-radius:20px;
  border:1px solid rgba(45,106,46,0.25);
  transition:all 0.25s ease;
}
.blessing-refresh:hover {
  background:var(--sage); border-color:var(--green);
  transform:translateY(-1px);
}
.blessing-refresh svg { width:14px; height:14px; flex:0 0 auto; }
@media (max-width:480px) {
  .blessing-card { padding:40px 22px 28px; }
  .blessing-quote-mark { font-size:3rem; }
}

/* ============================================================
   OUR STORY - Chapter-based design
   ============================================================ */
.story-section { padding:80px 0; background:var(--ivory); }

.story-intro {
  max-width:700px; margin:0 auto 40px; text-align:center;
  background:var(--white); border-radius:var(--radius); padding:36px 32px;
  box-shadow:var(--shadow-lg); border-left:4px solid var(--gold);
}
.story-intro-quote {
  font-family:Georgia,serif; font-size:4rem; color:var(--gold);
  line-height:0.5; opacity:0.4; margin-bottom:8px;
}
.story-intro-text {
  font-family:var(--font-body); font-size:1rem; color:var(--text-dark);
  font-style:italic; line-height:1.8;
}
.story-intro-author {
  font-family:var(--font-ui); font-size:0.8rem; font-weight:600;
  color:var(--gold); margin-top:12px;
}

.pinboard-hint {
  text-align:center; font-family:var(--font-ui); font-size:0.8rem;
  color:var(--text-light); margin-bottom:32px; letter-spacing:0.5px;
}

/* ---- Compact Polaroid Grid ---- */
.pinboard {
  display:grid;
  grid-template-columns:repeat(6, 1fr);
  gap:14px;
  max-width:1000px;
  margin:0 auto 60px;
  padding:24px;
  background:
    radial-gradient(circle at 20% 30%, rgba(245,183,197,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212,165,32,0.06) 0%, transparent 50%),
    rgba(232,245,233,0.25);
  border-radius:var(--radius);
  border:1px solid rgba(45,106,46,0.06);
}

.polaroid {
  background:var(--white);
  padding:6px 6px 0;
  border-radius:4px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease, border-color 0.3s;
  cursor:pointer;
  position:relative;
  border:2px solid transparent;
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.1) translateY(-6px);
  box-shadow: 0 16px 40px rgba(45,106,46,0.2), 0 4px 12px rgba(0,0,0,0.1);
  z-index:10;
  border-color:var(--pink);
}

.polaroid:active { transform: rotate(0deg) scale(0.97); }

/* Alternating subtle background tints */
.polaroid:nth-child(6n+1) { background:linear-gradient(180deg, #fff 85%, rgba(232,245,233,0.5)); }
.polaroid:nth-child(6n+2) { background:linear-gradient(180deg, #fff 85%, rgba(253,232,238,0.5)); }
.polaroid:nth-child(6n+3) { background:linear-gradient(180deg, #fff 85%, rgba(232,197,71,0.08)); }
.polaroid:nth-child(6n+4) { background:linear-gradient(180deg, #fff 85%, rgba(232,245,233,0.5)); }
.polaroid:nth-child(6n+5) { background:linear-gradient(180deg, #fff 85%, rgba(253,232,238,0.5)); }
.polaroid:nth-child(6n+6) { background:linear-gradient(180deg, #fff 85%, rgba(232,197,71,0.08)); }

.polaroid-highlight {
  box-shadow: 0 3px 12px rgba(212,165,32,0.25), 0 1px 3px rgba(0,0,0,0.06);
  border:2px solid var(--gold);
}
.polaroid-highlight:hover { border-color:var(--gold); }

.polaroid-img {
  width:100%; aspect-ratio:3/4; overflow:hidden; border-radius:2px;
  background:var(--sage);
}
.polaroid-img img {
  width:100%; height:100%; object-fit:cover; object-position:center 15%;
  transition: transform 0.5s ease, filter 0.4s ease;
}
.polaroid:hover .polaroid-img img { transform:scale(1.08); filter:brightness(1.05); }

.polaroid-caption {
  font-family:var(--font-body); font-size:0.65rem; color:var(--text-dark);
  padding:6px 3px 8px; text-align:center; line-height:1.25;
  font-style:italic;
}
.polaroid-caption span {
  display:block; font-family:var(--font-ui); font-size:0.5rem;
  font-weight:700; color:var(--gold); letter-spacing:1.5px;
  margin-top:2px; font-style:normal;
}

/* Tape strips - alternating positions */
.polaroid::before {
  content:''; position:absolute; left:50%; transform:translateX(-50%) rotate(var(--rot,0deg));
  width:36px; height:14px; border-radius:2px; z-index:1;
}
.polaroid:nth-child(odd)::before { top:-6px; background:rgba(212,165,32,0.3); }
.polaroid:nth-child(even)::before { top:-6px; background:rgba(245,183,197,0.35); }

/* Stagger entrance animation */
.pinboard .polaroid { opacity:0; animation: polaroidIn 0.5s ease forwards; }
.pinboard .polaroid:nth-child(1)  { animation-delay:0.05s; }
.pinboard .polaroid:nth-child(2)  { animation-delay:0.1s; }
.pinboard .polaroid:nth-child(3)  { animation-delay:0.15s; }
.pinboard .polaroid:nth-child(4)  { animation-delay:0.2s; }
.pinboard .polaroid:nth-child(5)  { animation-delay:0.25s; }
.pinboard .polaroid:nth-child(6)  { animation-delay:0.3s; }
.pinboard .polaroid:nth-child(7)  { animation-delay:0.35s; }
.pinboard .polaroid:nth-child(8)  { animation-delay:0.4s; }
.pinboard .polaroid:nth-child(9)  { animation-delay:0.45s; }
.pinboard .polaroid:nth-child(10) { animation-delay:0.5s; }
.pinboard .polaroid:nth-child(11) { animation-delay:0.55s; }
.pinboard .polaroid:nth-child(12) { animation-delay:0.6s; }

/* ---- Happy Moments (compact testimonial style) ---- */
.happy-section {
  padding:80px 0;
  background:linear-gradient(180deg, var(--ivory), var(--sage) 40%, var(--sage) 60%, var(--ivory));
}
.happy-quotes {
  display:flex; flex-direction:column; gap:20px;
  max-width:700px; margin:0 auto;
}
.happy-quote {
  display:flex; gap:18px; align-items:flex-start;
  background:var(--white); border-radius:var(--radius); padding:22px 24px;
  box-shadow:var(--shadow); border-left:3px solid var(--pink);
  transition:transform 0.3s ease;
}
.happy-quote:hover { transform:translateX(4px); }
.happy-quote-flip { border-left-color:var(--green); }
.happy-quote-flip { flex-direction:row-reverse; border-left:none; border-right:3px solid var(--green); }
.happy-quote-flip:hover { transform:translateX(-4px); }

.happy-quote-avatar {
  width:70px; height:70px; border-radius:50%; object-fit:cover;
  object-position:center 15%; flex-shrink:0;
  border:3px solid var(--sage);
}

.happy-quote-body h4 {
  font-family:var(--font-heading); font-size:1rem; color:var(--green);
  margin-bottom:6px; font-weight:600;
}
.happy-quote-body p {
  font-family:var(--font-body); font-size:0.85rem; color:var(--text-med);
  line-height:1.75; font-style:italic;
}
.happy-quote-author {
  display:block; margin-top:8px; font-family:var(--font-ui);
  font-size:0.7rem; font-weight:700; color:var(--gold);
  letter-spacing:0.5px; font-style:normal;
}

/* ---- Story Modal ---- */
.story-modal {
  display:none; position:fixed; inset:0; z-index:9999;
  background:rgba(0,0,0,0.8); backdrop-filter:blur(8px);
  align-items:center; justify-content:center; padding:20px;
}
.story-modal.active { display:flex; }

.story-modal-content {
  background:var(--white); border-radius:var(--radius);
  max-width:600px; width:100%; max-height:90vh; overflow-y:auto;
  box-shadow:0 20px 60px rgba(0,0,0,0.3); position:relative;
}

.story-modal-close {
  position:absolute; top:12px; right:16px; font-size:1.8rem;
  color:var(--text-med); z-index:1; width:36px; height:36px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,0.9); border-radius:50%;
  transition:color 0.3s;
}
.story-modal-close:hover { color:var(--text-dark); }

.story-modal-img { width:100%; overflow:hidden; border-radius:var(--radius) var(--radius) 0 0; }
.story-modal-img img {
  width:100%; height:320px; object-fit:cover; object-position:center 15%;
}

.story-modal-body { padding:24px 28px; }

.story-modal-year {
  font-family:var(--font-ui); font-size:0.65rem; font-weight:700;
  letter-spacing:2px; color:var(--white);
  background:linear-gradient(135deg, var(--green), var(--olive));
  padding:4px 14px; border-radius:20px; display:inline-block; margin-bottom:10px;
}
.story-modal-title {
  font-family:var(--font-heading); font-size:1.4rem; color:var(--green);
  margin-bottom:12px; font-weight:600;
}
.story-modal-text {
  font-family:var(--font-body); font-size:0.95rem; color:var(--text-med); line-height:1.85;
}
.story-modal-text p { margin-bottom:10px; }
.story-modal-text em { color:var(--green); }
.story-modal-text strong { color:var(--text-dark); }

/* His Reply - chat bubble style */
.his-reply {
  margin-top:18px; padding:14px 18px; border-radius:16px 16px 16px 4px;
  background:linear-gradient(135deg, var(--sage), rgba(232,245,233,0.6));
  border:1px solid rgba(45,106,46,0.12);
  position:relative;
  animation:replySlideIn 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay:0.8s;
  opacity:0;
}
.his-reply-avatar {
  display:inline-block; font-family:var(--font-ui); font-size:0.7rem;
  font-weight:700; color:var(--green); letter-spacing:0.5px;
  text-transform:uppercase; margin-bottom:4px;
}
.his-reply-text {
  font-style:normal !important; color:var(--text-dark) !important;
  font-size:0.9rem; margin-bottom:0 !important; line-height:1.7;
}

@keyframes replySlideIn {
  0%   { opacity:0; transform:translateY(12px) scale(0.95); }
  100% { opacity:1; transform:translateY(0) scale(1); }
}

.story-modal-nav {
  display:flex; justify-content:space-between; padding:0 28px 20px;
}
.story-nav-btn {
  font-family:var(--font-ui); font-size:0.8rem; font-weight:600;
  color:var(--green); padding:8px 16px; border-radius:8px;
  transition:background 0.3s; letter-spacing:0.5px;
}
.story-nav-btn:hover { background:var(--sage); }

/* Then vs Now - Interactive Reveal Slider */
.then-now-compare {
  margin-top:20px; text-align:center;
  background:var(--white); border-radius:var(--radius);
  padding:40px 28px; box-shadow:var(--shadow-lg);
}
.compare-title {
  font-family:var(--font-heading); font-size:1.3rem; color:var(--green);
  margin-bottom:8px; font-weight:500;
}
.compare-hint {
  font-family:var(--font-ui); font-size:0.75rem; color:var(--text-light);
  margin-bottom:24px; letter-spacing:0.3px;
}

.reveal-container {
  position:relative; max-width:360px; margin:0 auto;
  border-radius:16px; overflow:hidden; cursor:col-resize;
  box-shadow:0 8px 32px rgba(0,0,0,0.12);
  user-select:none; -webkit-user-select:none;
  aspect-ratio:3/4;
}

.reveal-layer {
  position:absolute; inset:0; overflow:hidden;
}
.reveal-layer img {
  width:100%; height:100%; object-fit:cover; object-position:center 15%;
  pointer-events:none;
}
.reveal-before {
  z-index:2; clip-path:inset(0 50% 0 0);
}
.reveal-before.animating { transition:clip-path 0.6s cubic-bezier(0.4,0,0.2,1); }
.reveal-slider.animating { transition:left 0.6s cubic-bezier(0.4,0,0.2,1); }
.reveal-after { z-index:1; }

.reveal-label {
  position:absolute; bottom:16px;
  font-family:var(--font-ui); font-size:0.9rem; font-weight:700;
  letter-spacing:2px; color:var(--white);
  background:rgba(0,0,0,0.5); backdrop-filter:blur(4px);
  padding:6px 18px; border-radius:24px;
  z-index:3; pointer-events:none;
}
.reveal-label-left { left:16px; }
.reveal-label-right { right:16px; }

.reveal-slider {
  position:absolute; top:0; bottom:0; left:50%; z-index:4;
  width:4px; transform:translateX(-50%);
  display:flex; align-items:center; justify-content:center;
  pointer-events:none;
}
.reveal-line {
  position:absolute; inset:0;
  background:var(--white);
  box-shadow:0 0 12px rgba(0,0,0,0.3);
}
.reveal-handle {
  position:relative; width:44px; height:44px;
  background:var(--white); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 16px rgba(0,0,0,0.25);
  color:var(--green);
  pointer-events:auto; cursor:col-resize;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
  z-index:5;
}
.reveal-handle:hover {
  transform:scale(1.15);
  box-shadow:0 4px 24px rgba(45,106,46,0.35);
}
.reveal-handle:active { transform:scale(1.05); }

@keyframes pulseHandle {
  0%, 100% { box-shadow:0 2px 16px rgba(0,0,0,0.25); }
  50% { box-shadow:0 2px 16px rgba(0,0,0,0.25), 0 0 0 8px rgba(45,106,46,0.15); }
}
.reveal-handle.hint { animation:pulseHandle 1.5s ease-in-out 3; }

.compare-affirm {
  margin-top:24px; font-family:var(--font-heading); font-size:clamp(0.95rem, 2.5vw, 1.15rem);
  color:var(--green); font-style:italic; line-height:1.6;
  letter-spacing:0.3px;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section {
  padding:80px 0;
  background: linear-gradient(180deg, var(--ivory), var(--sage) 30%, var(--sage) 70%, var(--ivory));
}
.gallery-grid {
  display:grid; grid-template-columns:repeat(5,1fr);
  grid-auto-rows:200px; gap:10px; margin-bottom:40px;
}
.gallery-item {
  border-radius:10px; overflow:hidden; cursor:pointer; position:relative;
}
.gallery-item img {
  width:100%; height:100%; object-fit:cover;
  transition:transform 0.5s;
}
.gallery-item:hover img { transform:scale(1.08); }
.gallery-item:hover { box-shadow:0 0 0 3px var(--gold); }
.gi-tall { grid-row:span 2; }
.gi-wide { grid-column:span 2; }

.gallery-hint {
  text-align:center; font-family:var(--font-body); font-style:italic;
  color:var(--text-med); font-size:0.88rem; margin:-12px auto 14px; max-width:480px;
}
.gallery-actions { display:flex; justify-content:center; margin-bottom:24px; }
.gallery-reveal-btn {
  font-size:0.78rem; padding:10px 22px; letter-spacing:1.2px;
}

.gallery-item.flip-card {
  perspective:1000px;
  background:transparent;
  overflow:visible;
}
.gallery-item.flip-card .flip-inner {
  position:relative;
  width:100%;
  height:100%;

  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;

  -webkit-transition:
    -webkit-transform 0.7s cubic-bezier(0.4,0,0.2,1);

  transition:
    transform 0.7s cubic-bezier(0.4,0,0.2,1);

  will-change: transform;
}
.gallery-item.flip-card.flipped .flip-inner {
  transform:rotateY(180deg);
}
.gallery-item.flip-card .flip-front,
.gallery-item.flip-card .flip-back {

  position:absolute;
  inset:0;

  border-radius:10px;

  overflow:hidden;

  -webkit-backface-visibility:hidden;
  backface-visibility:hidden;

  transform:translateZ(0);
  -webkit-transform:translateZ(0);

}

.gallery-item.flip-card .flip-back {
  transform:rotateY(180deg);
}
.gallery-item.flip-card .flip-back img {
  width:100%; height:100%; object-fit:cover;
  transition:transform 0.5s;
}
.gallery-item.flip-card.flipped:hover .flip-back img { transform:scale(1.08); }
.gallery-item.flip-card.flipped:hover { box-shadow:0 0 0 3px var(--gold); border-radius:10px; }

.gallery-item.flip-card .flip-front {
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:8px; padding:8px; text-align:center;
  cursor:pointer;
}
.gallery-item.flip-card .flip-front-pattern {
  position:absolute; inset:0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.18) 0, transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(255,255,255,0.14) 0, transparent 28%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 6px, transparent 6px 14px);
  pointer-events:none;
}
.gallery-item.flip-card .flip-front-logo {
  position:relative; z-index:1;
  width:auto !important; height:auto !important;
  max-width:56px; max-height:50%;
  object-fit:contain;
  filter:brightness(1.25) drop-shadow(0 2px 6px rgba(0,0,0,0.35));
  animation:flipPulse 2.4s ease-in-out infinite;
  transition:none;
}
.gallery-item.flip-card .flip-front-hint {
  position:relative; z-index:1;
  font-family:var(--font-ui); font-size:0.6rem; font-weight:600;
  color:rgba(255,255,255,0.92);
  text-transform:uppercase; letter-spacing:1.5px;
  padding:4px 10px; border:1px solid rgba(255,255,255,0.35);
  border-radius:20px;
  backdrop-filter:blur(2px);
}

.gallery-item.flip-card.flip-theme-green .flip-front {
  background:linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
}
.gallery-item.flip-card.flip-theme-gold .flip-front {
  background:linear-gradient(135deg, var(--gold) 0%, var(--gold-tan) 100%);
}
.gallery-item.flip-card.flip-theme-pink .flip-front {
  background:linear-gradient(135deg, var(--pink) 0%, #d99aab 100%);
}
.gallery-item.flip-card.flip-theme-sage .flip-front {
  background:linear-gradient(135deg, var(--green-light) 0%, var(--green) 100%);
}

@keyframes flipPulse {
  0%, 100% { transform:scale(1); opacity:0.95; }
  50% { transform:scale(1.08); opacity:1; }
}

.gallery-item.flip-card .flip-front:active {
  transform:scale(0.97); transition:transform 0.12s;
}

.gallery-item.popped {
  position:fixed; inset:0; z-index:9990; border-radius:0;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,0.85); backdrop-filter:blur(6px);
  animation:popIn 0.3s ease;
}
.gallery-item.popped img {
  width:auto; height:auto; max-width:90vw; max-height:85vh;
  object-fit:contain; border-radius:12px;
}
@keyframes popIn {
  0% { opacity:0; transform:scale(0.85); }
  100% { opacity:1; transform:scale(1); }
}

.gallery-swiper-wrap { display:none; margin-bottom:40px; }
.gallery-swiper .swiper-slide { border-radius:12px; overflow:hidden; height:400px; }
.gallery-swiper .swiper-slide img { width:100%; height:100%; object-fit:cover; object-position:center top; }
.gallery-swiper .swiper-pagination-bullet-active { background:var(--green); }

.thumbnail-strip { overflow:hidden; margin-top:20px; border-radius:8px; }
.thumbnail-track { display:flex; gap:8px; animation:scrollStrip 40s linear infinite; width:max-content; }
.thumbnail-track img {
  width:70px; height:70px; object-fit:cover; object-position:center top;
  border-radius:8px; flex-shrink:0; opacity:0.7;
}
.thumbnail-track img:hover { opacity:1; }

/* Lightbox */
.lightbox {
  position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,0.92);
  display:none; align-items:center; justify-content:center; backdrop-filter:blur(8px);
}
.lightbox.active { display:flex; }
.lightbox-img-wrap { max-width:90vw; max-height:85vh; }
.lightbox-img-wrap img { max-width:100%; max-height:85vh; object-fit:contain; border-radius:8px; }
.lightbox-close {
  position:absolute; top:20px; right:24px; font-size:2.5rem; color:var(--white); z-index:1;
}
.lightbox-prev,.lightbox-next {
  position:absolute; top:50%; transform:translateY(-50%);
  font-size:2rem; color:var(--white); padding:16px; z-index:1;
  background:rgba(255,255,255,0.1); border-radius:50%; width:50px; height:50px;
  display:flex; align-items:center; justify-content:center;
}
.lightbox-prev { left:16px; }
.lightbox-next { right:16px; }
.lightbox-counter {
  position:absolute; bottom:24px; left:50%; transform:translateX(-50%);
  color:rgba(255,255,255,0.7); font-family:var(--font-ui); font-size:0.85rem;
}

/* ============================================================
   DETAILS
   ============================================================ */
.details-cards {
  display:grid; grid-template-columns:repeat(2, minmax(260px, 380px));
  gap:32px; margin-bottom:48px; justify-content:center; align-items:stretch;
  max-width:880px; margin-left:auto; margin-right:auto;
}
.detail-card {
  background:var(--white); border-radius:var(--radius); padding:40px 28px; text-align:center;
  box-shadow:var(--shadow); border:1px solid rgba(45,106,46,0.08); transition:transform 0.3s, box-shadow 0.3s;
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  position:relative; overflow:hidden;
}
.detail-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:4px;
  background:linear-gradient(90deg, var(--green) 0%, var(--gold) 50%, var(--green) 100%);
  opacity:0.85;
}
.detail-card:hover { transform:translateY(-4px); box-shadow:0 14px 36px rgba(45,106,46,0.14); }
.detail-icon {
  width:64px; height:64px; margin:0 auto 18px; background:var(--sage);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
}
.detail-icon svg { width:32px; height:32px; color:var(--green); }
.detail-card h3 { font-family:var(--font-heading); font-size:1.4rem; color:var(--green); margin-bottom:10px; }
.detail-main { font-family:var(--font-ui); font-size:1rem; font-weight:600; margin-bottom:4px; }
.detail-sub { font-family:var(--font-body); font-size:0.92rem; color:var(--text-med); font-style:italic; }

.rsvp-contacts { text-align:center; }
.rsvp-contacts h3 { font-family:var(--font-heading); font-size:1.4rem; color:var(--green); margin-bottom:16px; }
.rsvp-list { display:flex; justify-content:center; gap:12px; flex-wrap:wrap; }
.rsvp-item {
  display:flex; flex-direction:column; align-items:center;
  background:var(--sage); padding:14px 24px; border-radius:12px;
  transition:all 0.3s; border:1px solid transparent;
}
.rsvp-item:hover { border-color:var(--green); background:var(--white); }
.rsvp-name { font-family:var(--font-ui); font-size:0.75rem; font-weight:700; color:var(--green); text-transform:uppercase; letter-spacing:1px; }
.rsvp-phone { font-family:var(--font-ui); font-size:0.9rem; margin-top:2px; }

/* ============================================================
   VENUE
   ============================================================ */
.venue-section {
  padding:80px 0;
  background: linear-gradient(180deg, var(--ivory), var(--sage), var(--ivory));
}
.venue-map-wrap {
  border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-lg);
  margin-bottom:28px; border:2px solid rgba(45,106,46,0.1);
}
.venue-info { text-align:center; }
.venue-address-text {
  font-family:var(--font-body); font-size:0.95rem; color:var(--text-med);
  max-width:600px; margin:0 auto 20px;
}
.venue-actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

.travel-modes {
  display:flex; flex-direction:column; gap:36px;
  margin-bottom:36px;
}
.travel-mode {
  background:var(--white); border-radius:var(--radius);
  padding:28px 24px; box-shadow:var(--shadow);
  border:1px solid rgba(45,106,46,0.08);
}
.travel-mode-header {
  display:flex; align-items:center; gap:14px;
  margin-bottom:20px; padding-bottom:16px;
  border-bottom:1px dashed rgba(212,165,32,0.35);
}
.travel-mode-icon {
  flex:0 0 auto;
  width:54px; height:54px; border-radius:50%;
  background:var(--sage); color:var(--green);
  display:flex; align-items:center; justify-content:center;
}
.travel-mode-icon svg { width:30px; height:30px; }
.travel-mode-title {
  font-family:var(--font-heading); font-size:1.35rem;
  color:var(--green); margin:0 0 2px;
}
.travel-mode-sub {
  font-family:var(--font-body); font-size:0.88rem;
  color:var(--text-med); margin:0; font-style:italic;
}

.route-cards {
  display:grid; grid-template-columns:repeat(2, 1fr); gap:20px;
}
.route-card {
  background:linear-gradient(180deg, var(--ivory) 0%, var(--white) 100%);
  border-radius:14px; padding:22px 20px;
  border:1px solid rgba(45,106,46,0.12);
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.route-card:hover {
  transform:translateY(-3px);
  box-shadow:0 12px 30px rgba(45,106,46,0.12);
}
.route-card-header {
  display:flex; align-items:center; gap:10px;
  margin-bottom:18px; padding-bottom:12px;
  border-bottom:1px solid rgba(45,106,46,0.08);
}
.route-card-badge {
  font-family:var(--font-ui); font-size:0.65rem;
  font-weight:700; letter-spacing:1.5px; text-transform:uppercase;
  background:var(--green); color:var(--white);
  padding:4px 10px; border-radius:20px;
}
.route-card-title {
  font-family:var(--font-heading); font-size:1.1rem;
  color:var(--green-dark); margin:0;
}

.route-steps {
  display:flex; flex-direction:column; gap:0;
  position:relative;
}
.route-step {
  display:flex; align-items:flex-start; gap:14px;
  position:relative; padding-bottom:18px;
}
.route-step:last-child { padding-bottom:0; }
.route-step:not(:last-child)::before {
  content:''; position:absolute;
  left:18px; top:38px; bottom:0;
  width:2px;
  background-image:linear-gradient(to bottom, var(--gold) 50%, transparent 50%);
  background-size:2px 8px;
  background-repeat:repeat-y;
  opacity:0.55;
}
.route-icon {
  flex:0 0 auto;
  width:38px; height:38px; border-radius:50%;
  background:var(--sage); color:var(--green);
  display:flex; align-items:center; justify-content:center;
  position:relative; z-index:1;
  border:2px solid var(--white);
  box-shadow:0 2px 6px rgba(45,106,46,0.12);
}
.route-icon svg { width:20px; height:20px; }
.route-icon-start {
  background:var(--gold); color:var(--white);
}
.route-icon-end {
  background:var(--green); color:var(--white);
}
.route-step-body { flex:1; padding-top:2px; }
.route-step-title {
  font-family:var(--font-ui); font-size:0.88rem; font-weight:600;
  color:var(--text-dark); margin:0 0 3px; line-height:1.35;
}
.route-step-text {
  font-family:var(--font-body); font-size:0.82rem;
  color:var(--text-med); margin:0; font-style:italic; line-height:1.4;
}

/* ============================================================
   TOAST & WISHES
   ============================================================ */
.toast-section { padding:80px 0; background:var(--ivory); position:relative; overflow:hidden; }
.featured-toast {
  max-width:700px; margin:0 auto 60px; text-align:center;
  background:var(--white); border-radius:var(--radius); padding:44px 36px;
  box-shadow:var(--shadow-lg); border:1px solid rgba(212,165,32,0.15);
}
.toast-quote-mark { font-family:Georgia,serif; font-size:3.5rem; color:var(--gold); line-height:0.5; opacity:0.4; }
.toast-quote-end { margin-top:-8px; }
.toast-text {
  font-family:var(--font-body); font-size:clamp(0.95rem,2.5vw,1.1rem);
  color:var(--text-dark); line-height:1.9; font-style:italic; margin:16px 0;
}
.toast-author { font-family:var(--font-ui); font-size:0.8rem; font-weight:600; color:var(--gold); margin-top:12px; }
.hearts-container { position:absolute; inset:0; pointer-events:none; overflow:hidden; }

.wishes-title { font-family:var(--font-heading); font-size:1.4rem; color:var(--green); text-align:center; margin-bottom:20px; }
.wishes-form { max-width:500px; margin:0 auto 40px; display:flex; flex-direction:column; gap:14px; }
.wishes-form input, .wishes-form textarea {
  width:100%; padding:14px 20px; border:2px solid rgba(45,106,46,0.12);
  border-radius:12px; font-family:var(--font-body); font-size:1rem;
  color:var(--text-dark); background:var(--white); transition:border-color 0.3s; outline:none;
}
.wishes-form input:focus, .wishes-form textarea:focus { border-color:var(--green); }
.wishes-form textarea { resize:vertical; min-height:100px; }
.wishes-submit { width:100%; }

.wishes-wall {
  position:relative; min-height:350px; max-width:880px; margin:0 auto;
  padding:10px 0 40px;
  overflow:visible;
}

.wish-note {
  position:absolute; left:50%; top:0;
  width:260px; padding:28px 24px 20px;
  background:var(--bg); cursor:grab;
  transform: translate(calc(-50% + var(--ox, 0px)), var(--oy, 0px)) rotate(var(--rot, 0deg)) scale(var(--scale, 1));
  transition: box-shadow 0.3s ease, transform 0.25s cubic-bezier(0.4,0,0.2,1);
  user-select:none; -webkit-user-select:none;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
}
.wish-note.lifted {
  box-shadow:0 24px 60px rgba(0,0,0,0.22);
  cursor:grabbing;
  transform: translate(calc(-50% + var(--ox, 0px)), calc(var(--oy, 0px) - 8px)) rotate(0deg) scale(calc(var(--scale, 1) * 1.06));
  transition:none;
}
.wish-note:hover:not(.lifted) {
  box-shadow:0 12px 28px rgba(0,0,0,0.14);
  z-index:99 !important;
}

.wish-note.wish-note-settling {
  animation: wishSettle 0.65s cubic-bezier(0.34, 1.4, 0.64, 1) backwards;
  animation-delay: var(--enter-delay, 0ms);
}
@keyframes wishSettle {
  0% {
    opacity: 0;
    transform: translate(calc(-50% + var(--ox, 0px)), calc(var(--oy, 0px) - 36px)) rotate(0deg) scale(0.7);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate(calc(-50% + var(--ox, 0px)), var(--oy, 0px)) rotate(var(--rot, 0deg)) scale(var(--scale, 1));
  }
}
@media (prefers-reduced-motion: reduce) {
  .wish-note.wish-note-settling { animation: none; }
}

.wishes-tap-hint {
  display:none;
  text-align:center;
  font-family:var(--font-body); font-style:italic;
  font-size:0.78rem; color:var(--text-med);
  margin:8px auto 0; max-width:340px;
  opacity:0.85;
}
@media (max-width:768px) {
  .wishes-wall { max-width:340px; padding:10px 0 30px; }
  .wish-note { width:200px; padding:20px 16px 14px; }
  .wish-note-text { font-size:0.85rem; line-height:26px; }
  .wish-note .wish-note-author { font-size:0.65rem; }
  .wishes-tap-hint { display:block; }
}
@media (max-width:380px) {
  .wish-note { width:184px; padding:18px 14px 12px; }
}

.wishes-pager {
  display:flex; align-items:center; justify-content:center; gap:18px;
  margin:24px auto 8px; max-width:520px;
}
.wishes-pager[hidden] { display:none; }
.wishes-pager-btn {
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:50%;
  background:var(--white); color:var(--green);
  border:1.5px solid rgba(45,106,46,0.2);
  font-size:0.9rem; line-height:1;
  transition:all 0.2s ease;
  box-shadow:0 2px 6px rgba(0,0,0,0.06);
}
.wishes-pager-btn:hover:not(:disabled) {
  background:var(--sage); border-color:var(--green);
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(45,106,46,0.18);
}
.wishes-pager-btn:disabled { opacity:0.35; cursor:not-allowed; }
.wishes-pager-info {
  font-family:var(--font-ui); font-size:0.78rem; font-weight:600;
  letter-spacing:1.5px; text-transform:uppercase; color:var(--green);
}

.wish-tear-top {
  position:absolute; top:-7px; left:0; right:0; width:100%; height:8px;
  display:block;
}
.wish-tear-bottom {
  position:absolute; bottom:-7px; left:0; right:0; width:100%; height:8px;
  display:block;
}

.wish-note-lines {
  position:absolute; inset:20px 0 16px; pointer-events:none;
  background:repeating-linear-gradient(
    to bottom,
    transparent, transparent 27px,
    rgba(173,196,222,0.25) 27px, rgba(173,196,222,0.25) 28px
  );
}

.wish-note-text {
  position:relative; font-family:'Lora', Georgia, serif;
  font-size:0.9rem; color:#3a3a3a; line-height:28px;
  font-style:italic; margin-bottom:10px;
}
.wish-note-author {
  position:relative; font-family:var(--font-ui);
  font-size:0.7rem; font-weight:700; color:var(--green);
  text-align:right; letter-spacing:0.5px;
}
.wish-read-more {
  position:relative; display:inline-block;
  margin:-2px 0 8px;
  font-family:var(--font-ui); font-size:0.68rem; font-weight:700;
  letter-spacing:1px; text-transform:uppercase;
  color:var(--green); background:transparent;
  padding:4px 10px; border-radius:14px;
  border:1px solid rgba(45,106,46,0.3);
  cursor:pointer; transition:all 0.2s ease;
}
.wish-read-more:hover {
  background:var(--sage); border-color:var(--green);
}
.wish-note.wish-note-expanded {
  z-index:500 !important;
  box-shadow:0 16px 38px rgba(0,0,0,0.18);
}
.wish-note.wish-note-expanded .wish-note-text {
  font-size:0.88rem; line-height:26px;
}

/* ============================================================
   UPLOAD
   ============================================================ */
.upload-section {
  padding:80px 0;
  background: linear-gradient(180deg, var(--ivory), var(--sage), var(--ivory));
}
.upload-name-row {
  display:flex; flex-direction:column; gap:6px;
  max-width:360px; margin:0 auto 18px;
}
.upload-name-row label {
  font-family:var(--font-ui); font-size:0.78rem; font-weight:600;
  color:var(--green); text-transform:uppercase; letter-spacing:1.2px;
  display:flex; align-items:baseline; gap:8px;
}
.upload-name-row .optional {
  font-family:var(--font-body); font-size:0.7rem; font-style:italic;
  color:var(--gold-tan); text-transform:none; letter-spacing:0; font-weight:400;
}
.upload-name-row input {
  font-family:var(--font-body); font-size:0.95rem;
  padding:12px 16px; border:1.5px solid rgba(45,106,46,0.18);
  border-radius:10px; background:var(--white); color:var(--text-dark);
  transition:border-color 0.2s, box-shadow 0.2s;
}
.upload-name-row input:focus {
  outline:none; border-color:var(--green);
  box-shadow:0 0 0 3px rgba(45,106,46,0.12);
}
.upload-dropzone {
  border:2px dashed rgba(45,106,46,0.25); border-radius:var(--radius);
  padding:44px 24px; text-align:center; background:var(--white); transition:all 0.3s; cursor:pointer;
}
.upload-dropzone.drag-over { border-color:var(--green); background:var(--sage); transform:scale(1.01); }
.upload-icon { margin-bottom:12px; color:var(--green); opacity:0.6; }
.upload-text { font-family:var(--font-body); font-size:1rem; margin-bottom:6px; }
.upload-or { font-family:var(--font-ui); font-size:0.75rem; color:var(--text-light); margin-bottom:14px; }
.upload-btn { cursor:pointer; }
.upload-hint { font-family:var(--font-ui); font-size:0.7rem; color:var(--text-light); margin-top:10px; }

.upload-preview {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(100px,1fr));
  gap:10px; margin-top:16px;
}
.upload-preview .preview-item { position:relative; border-radius:8px; overflow:hidden; height:100px; }
.upload-preview .preview-item img { width:100%; height:100%; object-fit:cover; transition:filter 0.3s; }
.upload-preview .preview-remove {
  position:absolute; top:4px; right:4px; width:22px; height:22px;
  background:rgba(0,0,0,0.6); color:white; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:13px;
}
.upload-preview .preview-status {
  position:absolute; top:6px; left:6px;
  width:22px; height:22px; border-radius:50%;
  display:none; align-items:center; justify-content:center;
  font-size:13px; font-weight:700; color:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,0.25);
}
.upload-preview .preview-uploading .preview-status {
  display:flex; background:var(--gold);
}
.upload-preview .preview-uploading .preview-status::before {
  content:''; width:10px; height:10px; border-radius:50%;
  border:2px solid rgba(255,255,255,0.4); border-top-color:#fff;
  animation:previewSpin 0.8s linear infinite;
}
.upload-preview .preview-uploading img { filter:brightness(0.7) saturate(0.7); }
.upload-preview .preview-success .preview-status {
  display:flex; background:var(--green);
}
.upload-preview .preview-success .preview-status::before { content:'\2713'; }
.upload-preview .preview-error .preview-status {
  display:flex; background:#c0392b;
}
.upload-preview .preview-error .preview-status::before { content:'\21BB'; }
.upload-preview .preview-error img { filter:brightness(0.6) saturate(0.5); }
@keyframes previewSpin { to { transform:rotate(360deg); } }
.upload-progress { margin-top:16px; }
.progress-bar { height:6px; background:var(--sage); border-radius:3px; overflow:hidden; }
.progress-fill { height:100%; background:linear-gradient(90deg,var(--green),var(--gold)); border-radius:3px; width:0; transition:width 0.3s; }
.progress-text { font-family:var(--font-ui); font-size:0.75rem; color:var(--text-med); text-align:center; margin-top:6px; }
.upload-submit-btn { margin-top:16px; width:100%; }

.guest-gallery { margin-top:50px; }
.guest-gallery-title { font-family:var(--font-heading); font-size:1.2rem; color:var(--green); text-align:center; margin-bottom:8px; }
.guest-gallery-link { text-align:center; margin-bottom:20px; font-family:var(--font-ui); font-size:0.8rem; }
.guest-gallery-link a { color:var(--green); text-decoration:underline; font-weight:600; }
.guest-photos-grid {
  position:relative; height:440px; max-width:600px; margin:0 auto;
  padding:0; overflow:visible;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(232,245,233,0.4), rgba(253,248,240,0.4));
}
@media (max-width:768px) { .guest-photos-grid { height:380px; max-width:340px; } }
@media (max-width:380px) { .guest-photos-grid { height:340px; } }

.guest-polaroid {
  position:absolute; top:50%; left:50%;
  width:140px; padding:6px 6px 0; cursor:grab;
  background:#fff; border-radius:3px;
  box-shadow:0 3px 12px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.08);
  transform:translate(calc(-50% + var(--ox, 0px)), calc(-50% + var(--oy, 0px))) rotate(var(--rot, 0deg));
  transition:box-shadow 0.3s ease, transform 0.25s cubic-bezier(0.4,0,0.2,1);
  user-select:none; -webkit-user-select:none;
}
.guest-polaroid.guest-lifted {
  box-shadow:0 18px 45px rgba(0,0,0,0.22);
  cursor:grabbing;
  transform:translate(calc(-50% + var(--ox, 0px)), calc(-50% + var(--oy, 0px) - 6px)) rotate(0deg) scale(1.08);
  z-index:999 !important;
  transition:none;
}
.guest-polaroid:hover:not(.guest-lifted) {
  box-shadow:0 8px 24px rgba(0,0,0,0.15);
  z-index:99;
}

.guest-polaroid-img { width:100%; aspect-ratio:1; overflow:hidden; border-radius:2px; background:var(--sage); }
.guest-polaroid-img img { width:100%; height:100%; object-fit:cover; pointer-events:none; }

.guest-polaroid-img { margin-bottom:6px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding:80px 0 40px; text-align:center; position:relative; overflow:hidden;
  background:linear-gradient(180deg, var(--ivory) 0%, var(--sage) 40%, var(--green-dark) 100%);
}
.footer-hearts { position:absolute; inset:0; pointer-events:none; }
.footer-logo { width:65px; margin:0 auto 14px; filter:brightness(1.2); }
.footer-names { font-family:var(--font-display); font-size:clamp(1.8rem,5vw,2.5rem); color:var(--white); margin-bottom:4px; text-shadow:0 1px 4px rgba(0,0,0,0.3); }
.footer-date { font-family:var(--font-ui); font-size:0.8rem; color:rgba(255,255,255,0.95); letter-spacing:3px; text-transform:uppercase; margin-bottom:20px; text-shadow:0 1px 3px rgba(0,0,0,0.25); }
.footer-rings { display:flex; justify-content:center; align-items:center; margin-bottom:20px; height:50px; }
.ring-animated { width:36px; height:36px; border:3px solid var(--gold); border-radius:50%; animation:ringFloat 3s ease-in-out infinite; }
.ring-a { margin-right:-10px; }
.ring-b { animation-delay:0.3s; }
.footer-tagline { font-family:var(--font-body); font-size:0.85rem; color:rgba(255,255,255,0.9); font-style:italic; text-shadow:0 1px 3px rgba(0,0,0,0.2); }

#confetti-canvas { position:fixed; inset:0; z-index:9998; pointer-events:none; }
#cursor-trail { position:fixed; z-index:9997; pointer-events:none; }
.trail-dot {
  position:absolute; width:6px; height:6px; background:var(--gold);
  border-radius:50%; pointer-events:none; opacity:0; animation: trailFade 0.8s ease forwards;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
.nav-backdrop {
  position:fixed; top:0; left:0; right:0; bottom:0;
  background:rgba(0,0,0,0.55);
  opacity:0; visibility:hidden;
  transition:opacity 0.3s ease, visibility 0.3s ease;
  z-index:1000;
}
.nav-backdrop.active { opacity:1; visibility:visible; }

@media (max-width:768px) {
  .nav-links {
    position:fixed; top:0; right:0;
    width:62%; max-width:240px; min-width:200px;
    height:100vh; height:100dvh;
    background:#fdf8f0 !important;
    box-shadow:-8px 0 32px rgba(0,0,0,0.18);
    display:flex !important; flex-direction:column; align-items:stretch;
    justify-content:flex-start;
    gap:2px; padding:64px 14px 24px;
    margin:0;
    z-index:1001;
    transform:translateX(105%);
    transition:transform 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow-y:auto; overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
  }
  .nav-links.open { transform:translateX(0); }
  .nav-links li { width:100%; list-style:none; display:block; }
  .nav-links a {
    display:block; width:100%; box-sizing:border-box;
    color:var(--text-dark) !important; font-size:0.78rem; padding:10px 14px;
    font-weight:600; border-radius:8px; letter-spacing:0.6px;
    border-bottom:1px solid rgba(45,106,46,0.08);
  }
  .nav-links a:hover, .nav-links a.active { background:var(--sage) !important; color:var(--green) !important; }
  .nav-hamburger { display:flex; z-index:1002; }

  .gallery-grid { grid-template-columns:repeat(5,1fr); grid-auto-rows:100px; gap:5px; }
  .gallery-swiper-wrap { display:none; }
  .gallery-hint { font-size:0.78rem; margin:-8px auto 12px; padding:0 16px; }
  .gallery-reveal-btn { font-size:0.7rem; padding:8px 18px; }
  .gallery-item.flip-card .flip-front-logo { max-width:36px; max-height:42%; }
  .gallery-item.flip-card .flip-front-hint { font-size:0.5rem; padding:3px 7px; letter-spacing:1px; }

  .details-cards { grid-template-columns:1fr; gap:14px; }
  .invitation-img { max-width:280px; }
  .featured-toast { padding:28px 20px; }
  .wishes-wall { grid-template-columns:1fr; }

  .pinboard { grid-template-columns:repeat(4,1fr); gap:10px; padding:14px; }
  .polaroid { padding:5px 5px 0; }
  .polaroid-caption { font-size:0.55rem; padding:5px 2px 6px; }
  .polaroid-caption span { font-size:0.45rem; }
  .polaroid::before { width:28px; height:10px; }
  .story-modal-img img { height:250px; }
  .story-modal-body { padding:20px; }
  .story-modal-nav { padding:0 20px 16px; }
  .happy-quote, .happy-quote-flip { flex-direction:column; text-align:center; align-items:center; }
  .happy-quote-flip { border-right:none; border-left:3px solid var(--green); }
  .happy-quote:hover, .happy-quote-flip:hover { transform:translateY(-3px); }

  .reveal-container { max-width:300px; }
  .reveal-handle { width:36px; height:36px; }
  .reveal-label { font-size:0.75rem; padding:5px 14px; bottom:12px; }
  .reveal-label-left { left:10px; }
  .reveal-label-right { right:10px; }

  .story-intro { padding:28px 20px; }
}

@media (max-width:480px) {
  .hero-names { font-size:2.8rem; }
  .hero-amp { font-size:1.8rem; }
  .countdown-wrapper { gap:6px; }
  .countdown-flip { min-width:60px; padding:12px 8px; }
  .countdown-number { font-size:1.7rem; }
  .countdown-sep { font-size:1.3rem; }
  .gallery-grid { grid-template-columns:repeat(5,1fr); grid-auto-rows:80px; gap:3px; }
  .rsvp-list { display:grid; grid-template-columns:repeat(2, 1fr); gap:10px; justify-items:center; }
  .rsvp-item:last-child:nth-child(odd) { grid-column:1 / -1; max-width:calc(50% - 5px); }
  .venue-actions { flex-direction:column; align-items:center; }
  .travel-modes { gap:24px; margin-bottom:28px; }
  .travel-mode { padding:22px 16px; }
  .travel-mode-header { gap:12px; margin-bottom:16px; padding-bottom:14px; }
  .travel-mode-icon { width:46px; height:46px; }
  .travel-mode-icon svg { width:24px; height:24px; }
  .travel-mode-title { font-size:1.15rem; }
  .travel-mode-sub { font-size:0.8rem; }
  .route-cards { grid-template-columns:1fr; gap:14px; }
  .route-card { padding:20px 16px; }
  .route-step { gap:12px; padding-bottom:16px; }
  .route-icon { width:34px; height:34px; }
  .route-icon svg { width:18px; height:18px; }
  .route-step:not(:last-child)::before { left:16px; top:34px; }
  .route-step-title { font-size:0.85rem; }
  .route-step-text { font-size:0.78rem; }
  .reveal-container { max-width:260px; }
  .reveal-handle { width:32px; height:32px; }
  .reveal-label { font-size:0.65rem; padding:4px 10px; bottom:8px; }
}

@media (min-width:1024px) {
  .gallery-grid { grid-template-columns:repeat(5,1fr); grid-auto-rows:220px; }
}

@media (min-width:1440px) {
  .container { max-width:1300px; }
}

.wishes-wall::-webkit-scrollbar { width:5px; }
.wishes-wall::-webkit-scrollbar-track { background:var(--sage); border-radius:3px; }
.wishes-wall::-webkit-scrollbar-thumb { background:var(--gold-tan); border-radius:3px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline:2px solid var(--gold); outline-offset:3px;
}

/* Toast notification */
.toast-notification {
  position:fixed; bottom:80px; left:50%; transform:translateX(-50%) translateY(20px);
  background:var(--green); color:var(--white); padding:12px 28px; border-radius:30px;
  font-family:var(--font-ui); font-size:0.85rem; font-weight:500;
  box-shadow:0 8px 30px rgba(45,106,46,0.3); z-index:9999; opacity:0;
  animation: toastIn 0.4s ease forwards;
}
.toast-notification.out { animation: toastOut 0.4s ease forwards; }

@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after {
    animation-duration:0.01ms !important; animation-iteration-count:1 !important;
    transition-duration:0.01ms !important; scroll-behavior:auto !important;
  }
}
/* Realigned Legacy Section */
#legacy-section {
  padding: 80px 0; /* Matches your project's natural section rhythm */
}

/* Inherits your native heading styling perfectly */
.legacy-title {
  text-align: center;
  margin-bottom: 20px;
  font-weight: inherit; 
  color: inherit;
}

.legacy-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 25px auto;
  color: inherit;
  opacity: 0.85; /* Softens the text naturally without forcing an odd color */
}

.legacy-subtext {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 45px auto;
  color: inherit;
  opacity: 0.8;
}

/* Uses clean, transparent borders that adapt to light or dark themes */
.legacy-card {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1); 
  border-radius: 8px;
  padding: 35px 25px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* A clean, standard lift on hover without harsh color changes */
.legacy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.legacy-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: inherit;
}

.legacy-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
  opacity: 0.75;
  flex-grow: 1;
}

/* Stripped down action text that doesn't clash with existing main buttons */
.btn-legacy {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s ease;
}

.btn-legacy:hover {
  opacity: 0.6;
}
/* ============================================================
   BUILDING A LEGACY TOGETHER SECTION
   Automated Premium Carousel Layout
============================================================ */

#legacy-section {
    position: relative;
    padding: 80px 0;
}

/* Subtitle Header Layout */
.legacy-subtitle-text {
    font-family: var(--font-body), Georgia, serif;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.6;
    letter-spacing: 0.3px;
    text-align: center !important;
    display: block;
    width: 100%;
    margin: 15px auto 0 auto;
    color: var(--text-muted, #777777) !important; 
}

/* Swiper Container Structure Overrides */
.legacy-swiper {
    width: 100%;
    padding: 30px 15px 60px 15px !important;
    overflow: hidden;
}

.legacy-slide-item {
    height: auto !important;
    display: flex;
    justify-content: center;
}

/* Individual Premium Card Layout & Hover Animation */
.legacy-card {
    width: 100%;
    max-width: 370px;
    min-height: 500px; /* Incremented slightly to comfortably fit larger logos */
    position: relative;
    overflow: hidden;
    padding: 45px 35px 40px 35px;
    border-radius: 28px;
    cursor: pointer;
    
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.99),
        rgba(252, 248, 242, 0.95)
    );
    
    border: 1px solid rgba(176, 141, 87, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.5s ease;
}

/* Decorative Background Accent Circle */
.legacy-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    top: -80px;
    right: -80px;
    background: rgba(176, 141, 87, 0.08);
    transition: background 0.4s ease, transform 0.6s ease;
}

/* Color Shift and Elevation Hover Profile */
.legacy-card:hover {
    transform: translateY(-12px);
    border-color: rgba(30, 70, 32, 0.4);
    box-shadow: 0 25px 50px rgba(30, 70, 32, 0.08), 0 10px 20px rgba(176, 141, 87, 0.04);
}

.legacy-card:hover::before {
    background: rgba(30, 70, 32, 0.06);
    transform: scale(1.1);
}

/* Translucent Card Tracking Numbers */
.legacy-number {
    position: absolute;
    top: 20px;
    right: 25px;
    font-family: var(--font-heading), Georgia, serif;
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -3px;
    line-height: 1;
    color: rgba(176, 141, 87, 0.15);
    transition: color 0.4s ease;
}

.legacy-card:hover .legacy-number {
    color: rgba(30, 70, 32, 0.1);
}

/* Core Internal Alignment Blocks */
.legacy-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Scaled-up Premium Rectangular Logo Container Layout */
.legacy-logo-wrap-rect {
    width: 180px;          /* Expanded from 140px for a bolder presentation */
    height: 85px;          /* Expanded from 65px to give vertical clearance */
    margin: 0 auto 20px auto;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.legacy-org-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;     /* Keeps proportions clean without clipping raw logos */
    pointer-events: auto !important; 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.legacy-card:hover .legacy-org-logo {
    transform: scale(1.05);  /* Clean interactive zoom popup effect on hover */
}

/* Card Heading Formats */
.legacy-card-title {
    margin-top: 15px;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1e4620;
}

.legacy-card-title::after {
    content: "";
    display: block;
    width: 35px;
    height: 2px;
    margin: 15px auto 0 auto;
    background: var(--gold, #b08d57);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.legacy-card:hover .legacy-card-title::after {
    width: 55px;
    background-color: #1e4620;
}

/* Scripture Script Styling Blocks */
.legacy-card-body-text {
    margin-top: 25px;
    font-family: var(--font-body), Georgia, serif;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.8;
    color: #2c2c2c;
}

/* Call To Action Buttons */
.legacy-btn-theme {
    align-self: center;
    font-family: var(--font-ui), sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px !important;
    padding: 12px 32px;
    
    background: transparent;
    color: #1e4620;
    border: 1px solid rgba(30, 70, 32, 0.3);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0 0 rgba(30, 70, 32, 0);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.legacy-card:hover .legacy-btn-theme {
    background: #1e4620;
    color: #ffffff;
    border-color: #1e4620;
    box-shadow: 0 8px 20px rgba(30, 70, 32, 0.25);
    transform: scale(1.03);
}

.legacy-btn-theme:hover {
    background: #163318 !important;
    box-shadow: 0 10px 24px rgba(30, 70, 32, 0.35) !important;
}

/* Carousel Pagination Dot Customizations */
.legacy-swiper-pagination .swiper-pagination-bullet {
    background: rgba(176, 141, 87, 0.4) !important;
    opacity: 1;
}

.legacy-swiper-pagination .swiper-pagination-bullet-active {
    background: #1e4620 !important;
    width: 18px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease;
}