/* ==========================================================================
   International Luxury Wedding Website Template
   Palettes: ivory-gold | burgundy | sage
   Author: webdeesign (https://fastwork.com/user/webdeesign)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens & CSS Variables per Palette
   -------------------------------------------------------------------------- */
:root,
body[data-palette="ivory-gold"] {
  --bg-page: #F3ECE1;
  --bg-card: #FAF6F0;
  --bg-envelope: #ECE3D2;
  --flap-top: #F6EEDC;
  --flap-bot: #EADFC6;
  --flap-border: #CBB996;
  --pocket-dark: #D4C5A9;
  --pocket-mid: #E8DDC6;
  --pocket-light: #F5EDE0;

  --ink-primary: #2C2621;
  --ink-secondary: #5C534A;
  --ink-muted: #82786E;

  --accent-gold: #C59B4E;
  --accent-gold-light: #E4BE72;
  --accent-gold-dark: #9A752F;
  --seal-color: #C8993E;
  --seal-shadow: rgba(140, 100, 30, 0.4);

  --border-gold: rgba(197, 155, 78, 0.45);
  --border-delicate: rgba(197, 155, 78, 0.22);
  --pill-bg: rgba(255, 255, 255, 0.88);
  --card-shadow: 0 16px 44px -8px rgba(44, 38, 33, 0.12);

  --botanical-color: #8C7B5D;
}

body[data-palette="burgundy"] {
  --bg-page: #ECE4E4;
  --bg-card: #FAF5F5;
  --bg-envelope: #6A1E2B;
  --flap-top: #7A2635;
  --flap-bot: #5E1A27;
  --flap-border: #3F0F18;
  --pocket-dark: #4F1520;
  --pocket-mid: #6A1E2B;
  --pocket-light: #84303E;

  --ink-primary: #2A1D20;
  --ink-secondary: #584447;
  --ink-muted: #7E6A6D;

  --accent-gold: #7B2433;
  --accent-gold-light: #9B3849;
  --accent-gold-dark: #581622;
  --seal-color: #C8993E;
  --seal-shadow: rgba(40, 8, 14, 0.55);

  --border-gold: rgba(123, 36, 51, 0.38);
  --border-delicate: rgba(123, 36, 51, 0.18);
  --pill-bg: rgba(255, 255, 255, 0.90);
  --card-shadow: 0 16px 44px -8px rgba(42, 29, 32, 0.13);

  --botanical-color: #843E4B;
}

body[data-palette="sage"] {
  --bg-page: #E4ECE3;
  --bg-card: #F4F8F3;
  --bg-envelope: #75876A;
  --flap-top: #849676;
  --flap-bot: #6B7C5E;
  --flap-border: #4E5D43;
  --pocket-dark: #5F7052;
  --pocket-mid: #75876A;
  --pocket-light: #8C9D80;

  --ink-primary: #212B20;
  --ink-secondary: #485447;
  --ink-muted: #6E7B6C;

  --accent-gold: #536A4E;
  --accent-gold-light: #738C6D;
  --accent-gold-dark: #374A33;
  --seal-color: #C8993E;
  --seal-shadow: rgba(30, 40, 26, 0.5);

  --border-gold: rgba(83, 106, 78, 0.4);
  --border-delicate: rgba(83, 106, 78, 0.18);
  --pill-bg: rgba(255, 255, 255, 0.90);
  --card-shadow: 0 16px 44px -8px rgba(33, 43, 32, 0.12);

  --botanical-color: #5D7258;
}

/* --------------------------------------------------------------------------
   Global Reset & Base Setup
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-page);
  font-size: 16px;
}

body {
  background-color: var(--bg-page);
  color: var(--ink-primary);
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.7;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Subtle Cotton Paper Grain Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.032'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
}

/* Single-Column Mobile-First Container (Max 480px, responsive) */
.invitation-container {
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-card);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.08);
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 60px;
}

/* --------------------------------------------------------------------------
   Floating Controls (Sound Toggle & Language Switcher)
   -------------------------------------------------------------------------- */
.floating-controls {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--bg-page) 90%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 200;
  pointer-events: none;
}

.pill-button {
  pointer-events: auto;
  background: var(--pill-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.25s ease;
}

.pill-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.music-toggle.playing .music-icon-note {
  animation: pulseBeat 1.4s infinite ease-in-out;
}

@keyframes pulseBeat {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Section 1: 3D Envelope & Wax Seal Opening Stage
   -------------------------------------------------------------------------- */
.envelope-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  position: relative;
  text-align: center;
}

.envelope-intro-tag {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 24px;
}

/* The 3D Stage */
.envelope-3d-stage {
  position: relative;
  width: 320px;
  height: 210px;
  margin: 20px auto 35px;
  perspective: 1000px;
  cursor: pointer;
  user-select: none;
}

/* Pocket Body with Paper Flaps Graphic */
.envelope-pocket {
  position: absolute;
  inset: 0;
  background: var(--bg-envelope);
  border-radius: 6px;
  box-shadow: 0 26px 40px -12px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 0 0 1px var(--border-gold);
  z-index: 10;
  overflow: hidden;
}

/* Decorative SVG Fold Lines on Pocket */
.envelope-pocket::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 210' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L160 115 L0 210 Z' fill='%23000' fill-opacity='0.035'/%3E%3Cpath d='M320 0 L160 115 L320 210 Z' fill='%23000' fill-opacity='0.05'/%3E%3Cpath d='M0 210 L160 95 L320 210 Z' fill='%23fff' fill-opacity='0.12'/%3E%3Cpath d='M0 210 L160 95 L320 210' fill='none' stroke='%23000' stroke-opacity='0.12' stroke-width='0.8'/%3E%3Cpath d='M0 0 L160 115 L0 210 M320 0 L160 115 L320 210' fill='none' stroke='%23000' stroke-opacity='0.08' stroke-width='0.7'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}

/* Top Triangular Flap */
.envelope-top-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 122px;
  background: linear-gradient(180deg, var(--flap-top) 0%, var(--flap-bot) 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 20;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.15));
  border-top: 1px solid var(--flap-border);
}

/* Inside Invitation Card Peeking Out */
.envelope-inner-card {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  height: 180px;
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: 5px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.95s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.inner-card-eyebrow {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.inner-card-names {
  font-family: "Great Vibes", cursive;
  font-size: 27px;
  font-weight: 400;
  color: var(--ink-primary);
  line-height: 1.15;
  margin: 4px 0 2px;
}

.inner-card-monogram {
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent-gold);
  font-style: italic;
}

.inner-card-date {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Wax Seal Graphic */
.wax-seal-graphic {
  position: absolute;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 78px;
  z-index: 30;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
  filter: drop-shadow(0 8px 18px var(--seal-shadow));
  cursor: pointer;
}

.wax-seal-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Opened Envelope State */
.envelope-3d-stage.opened .envelope-top-flap {
  transform: rotateX(180deg);
  z-index: 2;
}

.envelope-3d-stage.opened .wax-seal-graphic {
  transform: translateX(-50%) translateY(-100px) scale(0.6);
  opacity: 0;
  pointer-events: none;
}

.envelope-3d-stage.opened .envelope-inner-card {
  transform: translateY(-90px);
  z-index: 15;
}

/* Tap to Open Action Prompt */
.tap-to-open-pill {
  background: var(--pill-bg);
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  padding: 10px 24px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-primary);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.tap-to-open-pill:hover {
  transform: scale(1.03);
  background: #FFFFFF;
  box-shadow: 0 8px 24px var(--seal-shadow);
}

.envelope-note {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  font-style: italic;
  color: var(--ink-muted);
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   Main Content Sections (Revealed after Envelope Open)
   -------------------------------------------------------------------------- */
.main-invitation-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
  display: none;
}

.main-invitation-content.revealed {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  display: block;
}

/* Botanical Flourish SVG */
.botanical-divider {
  width: 100%;
  max-width: 180px;
  margin: 28px auto;
  display: flex;
  justify-content: center;
  color: var(--botanical-color);
  opacity: 0.85;
}

.botanical-divider svg {
  width: 100%;
  height: 24px;
}

/* Section Header Typography */
.section-tag {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: block;
  text-align: center;
  margin-bottom: 8px;
}

.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  color: var(--ink-primary);
  line-height: 1.25;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Section 2: Hero Section (Names, Date, Hero Photo or Fallback Crest)
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 50px 24px 30px;
  text-align: center;
}

.hero-names {
  font-family: "Great Vibes", cursive;
  font-size: clamp(38px, 9vw, 48px);
  font-weight: 400;
  color: var(--ink-primary);
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  font-style: italic;
  color: var(--ink-secondary);
  margin-bottom: 24px;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 24px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-gold);
}

.hero-photo {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Fallback Crest if Hero Photo is omitted */
.hero-fallback-crest {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 24px;
  padding: 40px 20px;
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.fallback-monogram {
  font-family: "Great Vibes", cursive;
  font-size: 54px;
  color: var(--accent-gold);
  line-height: 1;
  margin: 12px 0;
}

.hero-date-badge {
  display: inline-block;
  padding: 8px 22px;
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-primary);
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   Section 3: Countdown Timer
   -------------------------------------------------------------------------- */
.countdown-section {
  padding: 24px 20px 36px;
  text-align: center;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 360px;
  margin: 16px auto 0;
}

.countdown-box {
  background: #FFFFFF;
  border: 1px solid var(--border-delicate);
  border-radius: 6px;
  padding: 12px 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.countdown-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--accent-gold);
  line-height: 1;
  display: block;
}

.countdown-label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 4px;
  display: block;
}

/* --------------------------------------------------------------------------
   Section 4: Day Schedule Timeline
   -------------------------------------------------------------------------- */
.schedule-section {
  padding: 30px 24px 40px;
}

.timeline {
  position: relative;
  max-width: 400px;
  margin: 24px auto 0;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 8px;
  width: 1px;
  background: var(--border-gold);
}

.timeline-item {
  position: relative;
  margin-bottom: 26px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-gold);
}

.timeline-time {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
  margin-bottom: 2px;
}

.timeline-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink-primary);
  line-height: 1.3;
}

.timeline-desc {
  font-family: "Cormorant Garamond", serif;
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Section 5: Venue & Google Maps Button
   -------------------------------------------------------------------------- */
.venue-section {
  padding: 30px 24px 40px;
  text-align: center;
}

.venue-card {
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 30px 20px;
  box-shadow: var(--card-shadow);
  max-width: 400px;
  margin: 16px auto 0;
}

.venue-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 8px;
}

.venue-address {
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-gold);
  color: #FFFFFF;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 30px;
  box-shadow: 0 4px 16px var(--seal-shadow);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--seal-shadow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--ink-primary);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 11px 24px;
  border-radius: 30px;
  border: 1px solid var(--border-gold);
  transition: all 0.25s ease;
  cursor: pointer;
  background: #FFFFFF;
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Section 6: Couple's Story & Gallery
   -------------------------------------------------------------------------- */
.story-section {
  padding: 30px 24px 40px;
  text-align: center;
}

.story-body {
  max-width: 400px;
  margin: 0 auto;
  font-size: 16.5px;
  color: var(--ink-secondary);
  line-height: 1.8;
  text-align: justify;
  text-align-last: center;
}

.story-body p + p {
  margin-top: 14px;
}

.story-carousel {
  max-width: 400px;
  margin: 26px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.carousel-stage {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-envelope);
  border: 1px solid var(--border-gold);
  box-shadow: var(--card-shadow);
}

.carousel-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.28s ease;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-primary);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, background-color 0.2s ease;
  z-index: 3;
}

.carousel-nav-btn:hover {
  background: #FFFFFF;
  transform: translateY(-50%) scale(1.06);
}

.carousel-nav-prev {
  left: 10px;
}

.carousel-nav-next {
  right: 10px;
}

.carousel-caption-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 14px 10px;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0) 0%, rgba(20, 16, 12, 0.65) 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  color: #FFFFFF;
}

.carousel-caption-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 14.5px;
  font-style: italic;
  text-align: left;
  line-height: 1.25;
}

.carousel-counter {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  padding: 2px 9px;
  white-space: nowrap;
}

.carousel-thumb-strip {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
}

.carousel-thumb-btn {
  flex: 0 0 56px;
  height: 56px;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #FFFFFF;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.carousel-thumb-btn:hover {
  opacity: 0.92;
}

.carousel-thumb-btn.active {
  opacity: 1;
  border-color: var(--accent-gold);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.carousel-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   Section 7: Travel & Accommodations
   -------------------------------------------------------------------------- */
.travel-section {
  padding: 30px 24px 40px;
}

.info-card {
  background: #FFFFFF;
  border: 1px solid var(--border-delicate);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  max-width: 400px;
  margin: 16px auto 0;
}

.info-card-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.info-card-text {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.info-card-text + .info-card-text {
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Section 8: Dress Code & Registry
   -------------------------------------------------------------------------- */
.dresscode-section {
  padding: 30px 24px 40px;
  text-align: center;
}

.dresscode-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 8px;
}

.dresscode-desc {
  max-width: 380px;
  margin: 0 auto;
  font-size: 15.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.dresscode-swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 380px;
  margin: 18px auto 0;
}

.dresscode-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 54px;
}

.dresscode-swatch-chip {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--border-gold);
}

.dresscode-swatch-label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.registry-bank-note {
  margin-top: 12px;
  padding: 10px 14px;
  background: #FAF6F0;
  border: 1px dashed var(--border-gold);
  border-radius: 6px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  color: var(--ink-primary);
  line-height: 1.5;
  word-break: break-word;
}

.registry-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Section 9: Frequently Asked Questions (FAQ)
   -------------------------------------------------------------------------- */
.faq-section {
  padding: 30px 24px 40px;
}

.faq-list {
  max-width: 400px;
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-delicate);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 18px;
  text-align: left;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 10px;
}

.faq-icon {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  color: var(--accent-gold);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 18px;
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 180px;
  padding: 0 18px 16px;
}

/* --------------------------------------------------------------------------
   Section 10: RSVP & Add-to-Calendar
   -------------------------------------------------------------------------- */
.rsvp-section {
  padding: 40px 24px;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.5) 100%);
}

.rsvp-deadline {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.rsvp-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

/* --------------------------------------------------------------------------
   Footer & Creator Credit
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 35px 20px 20px;
  text-align: center;
  border-top: 1px solid var(--border-delicate);
  margin-top: 20px;
}

.footer-monogram {
  font-family: "Great Vibes", cursive;
  font-size: 32px;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.footer-date-line {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.creator-credit {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 10px;
  color: var(--ink-muted);
}

.creator-credit a {
  color: var(--ink-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Tier B Photo Option Notice for Link-Generated Sites
   -------------------------------------------------------------------------- */
.tier-b-notice {
  max-width: 380px;
  margin: 18px auto 0;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--accent-gold);
  border-radius: 6px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.5;
  text-align: center;
}

.tier-b-notice a {
  color: var(--accent-gold);
  font-weight: 700;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Apps Script Direct In-Page RSVP Form
   -------------------------------------------------------------------------- */
.apps-script-rsvp-form {
  max-width: 380px;
  margin: 24px auto 0;
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 24px 20px;
  box-shadow: var(--card-shadow);
  text-align: left;
}

.as-form-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--ink-primary);
  text-align: center;
  margin-bottom: 16px;
}

.as-form-field {
  margin-bottom: 14px;
}

.as-form-field label {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.as-form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-delicate);
  border-radius: 4px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13.5px;
  color: var(--ink-primary);
  background: #FCFAF7;
  box-sizing: border-box;
}

.as-form-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: #FFFFFF;
}

.as-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.as-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  color: var(--ink-primary);
  cursor: pointer;
}

.as-feedback {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 4px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12.5px;
  text-align: center;
  line-height: 1.5;
}

.as-feedback.success {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}

.as-feedback.error {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF9A9A;
}

