/* ==========================================================
   Kimberly & Johnkhem — Wedding RSVP Site
   Palette: Midnight #0D1B2A · Navy #1E2E4F · Gold #A67C38
            Champagne #D6C3A3 · Ivory #F7EADD
   ========================================================== */

:root {
  --midnight: #0d1b2a;
  --navy: #1e2e4f;
  --gold: #a67c38;
  --gold-light: #c9a15f;
  --champagne: #d6c3a3;
  --ivory: #f7eadd;
  --white: #ffffff;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Cormorant Garamond', Georgia, serif;

  --shadow-soft: 0 10px 40px rgba(13, 27, 42, 0.25);
  --transition: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--midnight);
  font-size: 19px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0 0 0.5em;
  letter-spacing: 0.5px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.section .container { position: relative; z-index: 1; } /* keep content above blobs */

.section-dark {
  background: linear-gradient(160deg, var(--midnight), var(--navy));
  color: var(--ivory);
}

/* Soft blurred color blobs behind light sections so frosted-glass cards
   have something visible to blur against. */
.section:not(.section-dark)::before,
.section:not(.section-dark)::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.section:not(.section-dark)::before {
  top: -120px; right: -100px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(166,124,56,0.22), transparent 70%);
  filter: blur(10px);
}
.section:not(.section-dark)::after {
  bottom: -140px; left: -110px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(214,195,163,0.4), transparent 70%);
  filter: blur(10px);
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 14px;
  text-align: center;
}

.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 50px;
  font-size: 20px;
  opacity: 0.85;
}

.divider {
  width: 150px;
  height: 34px;
  background-image: url('/img/floral-sprig.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin: 8px auto 34px;
  position: relative;
  opacity: 0.95;
}

/* ---------- Nav ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(13, 27, 42, 0.0);
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(8px);
  padding: 12px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.nav-monogram {
  font-family: var(--font-script);
  font-size: 28px;
  color: var(--gold-light);
}
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ivory);
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 26px;
  cursor: pointer;
  position: relative;
  z-index: 620;
}

@media (max-width: 780px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: 72%;
    max-width: 320px;
    background: linear-gradient(180deg, var(--midnight), var(--navy));
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transition: right var(--transition);
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    z-index: 600;
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(166,124,56,0.18), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(166,124,56,0.14), transparent 45%),
    linear-gradient(160deg, var(--midnight) 0%, var(--navy) 55%, var(--midnight) 100%);
  color: var(--ivory);
  overflow: hidden;
  padding: 140px 20px 80px;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(166,124,56,0.35);
  pointer-events: none;
}
.hero::after { inset: 22px; border-width: 1px; opacity: 0.5; }

.hero-floral {
  position: absolute;
  top: 70px;
  width: 200px;
  height: 200px;
  opacity: 1;
  pointer-events: none;
  z-index: -1;
  filter: drop-shadow(0 0 14px rgba(201,161,95,0.25));
  animation: fadeIn 1.6s ease both;
}
.hero-floral-left { left: -6px; }
.hero-floral-right { right: -6px; transform: scaleX(-1); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 700px) {
  .hero-floral { width: 130px; height: 130px; top: 54px; }
  .hero-floral-left { left: -10px; }
  .hero-floral-right { right: -10px; }
}

.sparkle-field { position: absolute; inset: 0; pointer-events: none; }
.sparkle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--gold-light);
  border-radius: 50%;
  opacity: 0.7;
  animation: twinkle 3.5s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.4); }
}

.hero-eyebrow {
  letter-spacing: 5px;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--gold-light);
  margin-bottom: 22px;
  animation: fadeDown 1s ease both;
}
.hero-names {
  font-family: var(--font-script);
  font-size: clamp(56px, 11vw, 118px);
  line-height: 1.05;
  color: var(--ivory);
  margin: 0;
  animation: fadeUp 1.1s 0.15s ease both;
  text-shadow: 0 4px 30px rgba(166,124,56,0.25);
}
.hero-amp {
  display: block;
  font-family: var(--font-script);
  color: var(--gold-light);
  font-size: clamp(30px, 5vw, 50px);
  margin: 6px 0;
  animation: fadeUp 1.1s 0.3s ease both;
}
.hero-tagline {
  margin-top: 22px;
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
  animation: fadeUp 1.1s 0.45s ease both;
}
.hero-date {
  margin-top: 30px;
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--gold-light);
  animation: fadeUp 1.1s 0.6s ease both;
}

@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px);} to { opacity: 1; transform: translateY(0);} }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px);} to { opacity: 1; transform: translateY(0);} }

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 100px));
  gap: 16px;
  margin-top: 46px;
  justify-content: center;
  animation: fadeUp 1.1s 0.75s ease both;
}
.countdown-unit {
  background: rgba(247,234,221,0.06);
  border: 1px solid rgba(166,124,56,0.4);
  border-radius: 10px;
  padding: 16px 8px;
  text-align: center;
  backdrop-filter: blur(4px);
  min-width: 0;
  overflow: hidden;
}
.countdown-num {
  font-family: var(--font-heading);
  font-size: clamp(20px, 6vw, 32px);
  color: var(--gold-light);
  display: block;
  white-space: nowrap;
}
.countdown-label {
  font-size: clamp(9px, 2.4vw, 12px);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.75;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .countdown { grid-template-columns: repeat(4, minmax(0, 78px)); gap: 8px; }
  .countdown-unit { padding: 12px 4px; }
}

.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 2px solid var(--gold-light);
  border-radius: 20px;
  opacity: 0.75;
}
.scroll-cue::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  background: var(--gold-light);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease infinite;
}
@keyframes scrollDot { 0% { top: 6px; opacity: 1;} 70% { top: 20px; opacity: 0;} 100% { top: 6px; opacity: 0;} }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Story / Details cards ---------- */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 10px;
}
@media (max-width: 720px) { .details-grid { grid-template-columns: 1fr; } }

.detail-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 38px 32px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition);
  position: relative;
  overflow: hidden;
}
.detail-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 90px; height: 90px;
  background: url('/img/floral-sprig.svg') no-repeat center / contain;
  opacity: 0.4;
  transform: rotate(45deg);
  pointer-events: none;
}
.detail-card:hover { transform: translateY(-6px); }
.detail-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--ivory);
  font-size: 24px;
}
.detail-card h3 { font-size: 24px; color: var(--navy); }
.detail-time { color: var(--gold); font-weight: 600; letter-spacing: 1px; margin: 6px 0 14px; }
.detail-venue { font-weight: 600; }
.detail-address { opacity: 0.75; font-size: 17px; margin: 4px 0 16px; }
.detail-link {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--gold);
  border-radius: 30px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  transition: var(--transition);
}
.detail-link:hover { background: var(--gold); color: var(--white); }

.dress-code-banner {
  margin-top: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 26px 24px 30px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(166,124,56,0.1), rgba(30,46,79,0.06));
  border: 1px dashed rgba(166,124,56,0.5);
}
.dress-code-banner strong { color: var(--navy); }

/* ---------- Dress code color palette (horizontal, compact) ---------- */
.color-palette {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 18px 14px;
  margin-top: 22px;
}
.color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 84px;
}
.swatch-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(13,27,42,0.2), inset 0 0 0 1px rgba(255,255,255,0.25);
  border: 1px solid rgba(13,27,42,0.08);
  transition: transform 0.3s ease;
}
.color-swatch:hover .swatch-circle { transform: scale(1.08); }
.swatch-circle-light { border: 1px solid rgba(166,124,56,0.4); }
.swatch-name {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: 4px;
}
.swatch-hex {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--gold);
  font-weight: 600;
}
.swatch-desc {
  font-size: 11px;
  font-style: italic;
  opacity: 0.65;
}
@media (max-width: 480px) {
  .dress-code-banner { padding: 24px 16px 28px; }
  .color-palette { gap: 16px 10px; }
  .color-swatch { width: 72px; }
  .swatch-circle { width: 38px; height: 38px; }
}

/* ---------- RSVP ---------- */
.rsvp-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.rsvp-wrap::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--champagne), var(--gold));
}
.card-sprig {
  display: block;
  width: 130px;
  margin: -8px auto 22px;
  opacity: 0.9;
}
@media (max-width: 600px) { .rsvp-wrap { padding: 34px 22px; } }

.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--navy);
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="number"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #dcd0bd;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 17px;
  background: var(--ivory);
  transition: border var(--transition), box-shadow var(--transition);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(166,124,56,0.18);
}
.form-row textarea { resize: vertical; min-height: 90px; }

.attend-toggle { display: flex; gap: 14px; }
.attend-option { flex: 1; }
.attend-option input { display: none; }
.attend-option label {
  display: block;
  text-align: center;
  padding: 18px 10px;
  border: 1.5px solid #dcd0bd;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
  transition: var(--transition);
}
.attend-option input:checked + label {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-color: var(--gold);
  color: var(--white);
  transform: scale(1.02);
}

.conditional-fields {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.conditional-fields.open { max-height: 900px; }

.btn-submit {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--midnight), var(--navy));
  color: var(--ivory);
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13,27,42,0.35); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-msg { margin-top: 16px; text-align: center; font-weight: 600; }
.form-msg.error { color: #a63838; }

.rsvp-deadline-note { text-align: center; margin-top: 22px; font-size: 15px; opacity: 0.7; }

/* ---------- Photo Contest upload ---------- */
.file-drop {
  position: relative;
  border: 1.5px dashed var(--gold);
  border-radius: 12px;
  padding: 30px 16px;
  text-align: center;
  background: rgba(166, 124, 56, 0.05);
  cursor: pointer;
  transition: var(--transition);
}
.file-drop:hover,
.file-drop.dragover {
  background: rgba(166, 124, 56, 0.1);
  border-color: var(--gold-light);
}
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-drop-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}
.file-drop-text {
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
}
.file-list {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.file-chip {
  background: var(--ivory);
  border: 1px solid #dcd0bd;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--navy);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Registry ---------- */
.registry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}
.registry-card {
  background: rgba(247,234,221,0.05);
  border: 1px solid rgba(166,124,56,0.35);
  border-radius: 16px;
  padding: 32px 26px;
  text-align: center;
  transition: var(--transition);
}
.registry-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.registry-icon { font-size: 34px; margin-bottom: 14px; color: var(--gold-light); }
.registry-card h3 { font-size: 21px; margin-bottom: 6px; }
.registry-card p { opacity: 0.8; font-size: 16px; margin-bottom: 18px; }
.registry-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 30px;
  border: 1px solid var(--gold-light);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.registry-btn:hover { background: var(--gold-light); color: var(--midnight); }

/* ---------- Entourage (Principal Sponsors + Bridesmaids/Groomsmen) ---------- */
.entourage-heading {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--gold);
  text-align: center;
  margin: 46px 0 20px;
  letter-spacing: 0.5px;
}
.entourage-heading:first-of-type { margin-top: 8px; }

.entourage-table {
  max-width: 480px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(13, 27, 42, 0.08);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.entourage-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.entourage-row:not(:last-child) { border-bottom: 1px solid rgba(166, 124, 56, 0.18); }
.entourage-row::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 1px;
  background: rgba(166, 124, 56, 0.3);
}
.entourage-row .col-left,
.entourage-row .col-right {
  padding: 12px 20px;
  font-size: 18px;
  color: var(--navy);
}
.entourage-row .col-left { text-align: right; }
.entourage-row .col-right { text-align: left; }
.entourage-row-header {
  background: linear-gradient(120deg, var(--midnight), var(--navy));
}
.entourage-row-header .col-left,
.entourage-row-header .col-right {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  padding: 14px 20px;
}

@media (max-width: 480px) {
  .entourage-row .col-left,
  .entourage-row .col-right { font-size: 16px; padding: 10px 12px; }
  .entourage-row-header .col-left,
  .entourage-row-header .col-right { font-size: 11px; padding: 12px; }
}

/* ---------- Announcements ---------- */
.announcement-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.announcement-item {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 22px 26px;
  box-shadow: 0 4px 16px rgba(13,27,42,0.08);
}
.announcement-date { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.announcement-item h4 { font-size: 20px; margin-bottom: 6px; color: var(--navy); }

/* ---------- Contact / Guest Communication ---------- */
.contact-wrap { max-width: 640px; margin: 0 auto; }

/* ---------- Footer ---------- */
.footer {
  background: var(--midnight);
  color: var(--champagne);
  text-align: center;
  padding: 50px 20px 30px;
}
.footer-sprig { width: 140px; margin: 0 auto 10px; opacity: 0.85; }
.footer-monogram { font-family: var(--font-script); font-size: 40px; color: var(--gold-light); margin-bottom: 12px; }
.footer small { opacity: 0.6; display: block; margin-top: 10px; }

/* ---------- Welcome Aboard Overlay ---------- */
.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(30,46,79,0.97), rgba(13,27,42,0.99));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.welcome-overlay.show { opacity: 1; pointer-events: all; }

.welcome-card {
  text-align: center;
  color: var(--ivory);
  padding: 50px 40px;
  max-width: 480px;
  transform: scale(0.85);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}
.welcome-overlay.show .welcome-card { transform: scale(1); opacity: 1; }

.welcome-icon {
  width: 90px; height: 90px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 2px solid var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  color: var(--gold-light);
  animation: pulseRing 2s ease-in-out infinite;
}
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(166,124,56,0.4); }
  50% { box-shadow: 0 0 0 16px rgba(166,124,56,0); }
}

.welcome-title {
  font-family: var(--font-script);
  font-size: 54px;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.welcome-sub { font-size: 20px; opacity: 0.9; margin-bottom: 24px; }
.welcome-detail { font-size: 16px; opacity: 0.75; margin-bottom: 30px; line-height: 1.7; }
.welcome-close {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid var(--gold-light);
  border-radius: 30px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  background: none;
  color: var(--ivory);
  transition: var(--transition);
}
.welcome-close:hover { background: var(--gold-light); color: var(--midnight); }

.confetti-canvas { position: fixed; inset: 0; z-index: 2001; pointer-events: none; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  background: linear-gradient(135deg, var(--midnight), var(--navy));
  color: var(--gold-light);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  box-shadow: 0 6px 20px rgba(13,27,42,0.35);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { background: var(--gold-light); color: var(--midnight); }
@media (max-width: 640px) {
  .back-to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; font-size: 18px; }
}

/* Declined state (softer, no confetti) */
.welcome-card.declined .welcome-icon { color: var(--champagne); border-color: var(--champagne); }
.welcome-card.declined .welcome-title { color: var(--champagne); font-size: 42px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  body { font-size: 17px; }
}
