/* ═══════════════════════════════════════════════════════
   WEDDING WEBSITE — STYLE.CSS
   Mobile-first · Glassmorphism · Romantic Rose Gold
   ═══════════════════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ── */
:root {
  --gold:       #c9a96e;
  --gold-light: #e8d5b0;
  --gold-dark:  #a07840;
  --rose:       #c97a8a;
  --rose-light: #f5e6ea;
  --rose-dark:  #9e5060;
  --cream:      #fdf8f2;
  --cream-dark: #f3ece0;
  --deep:       #1a1208;
  --text:       #3d2c1e;
  --text-muted: #8a6e5e;
  --white:      #ffffff;
  --glass-bg:   rgba(255, 252, 248, 0.65);
  --glass-border: rgba(201, 169, 110, 0.3);
  --shadow-soft: 0 8px 40px rgba(60, 30, 20, 0.12);
  --shadow-md:   0 16px 64px rgba(60, 30, 20, 0.18);
  --radius-sm:   12px;
  --radius-md:   20px;
  --radius-lg:   32px;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Montserrat', system-ui, sans-serif;
  --transition:  0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h:       64px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
textarea { resize: vertical; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 99px; }

/* ── PETAL RAIN ── */
#petals-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -60px;
  font-size: 18px;
  opacity: 0;
  animation: petal-fall linear infinite;
}

@keyframes petal-fall {
  0%   { transform: translateY(0) rotate(0deg) scale(1);   opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(110vh) rotate(720deg) scale(0.5); opacity: 0; }
}

/* ── NAVIGATION ── */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}

#main-nav.scrolled {
  background: rgba(253, 248, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(60,30,20,0.1);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.12em;
  transition: color var(--transition);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

#main-nav.scrolled .nav-logo { color: var(--gold-dark); text-shadow: none; }

.nav-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(253, 248, 242, 0.98);
  backdrop-filter: blur(20px);
  padding: 24px;
  gap: 8px;
  box-shadow: var(--shadow-md);
  border-top: 1px solid var(--glass-border);
}

.nav-menu.open { display: flex; }

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover {
  background: var(--rose-light);
  color: var(--rose-dark);
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition);
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

#main-nav.scrolled .nav-hamburger span { background: var(--gold-dark); }

.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    url('hero-bg.png') center center / cover no-repeat;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 8, 3, 0.35) 0%,
    rgba(40, 20, 10, 0.55) 50%,
    rgba(15, 8, 3, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
  max-width: 600px;
  width: 100%;
}

.hero-pre {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.hero-names {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 12vw, 7rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--white);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  flex-wrap: wrap;
}

.hero-ampersand {
  font-style: italic;
  color: var(--gold-light);
  font-size: 0.75em;
  display: block;
  line-height: 1;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px auto;
  max-width: 200px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.divider-icon {
  color: var(--gold-light);
  font-size: 1.1rem;
}

.hero-date {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 36px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  border: 1.5px solid rgba(201, 169, 110, 0.6);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all var(--transition);
}

.hero-cta:hover {
  background: rgba(201, 169, 110, 0.25);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,169,110,0.25);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-mouse {
  display: block;
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 13px;
  position: relative;
  animation: mouse-scroll 2s ease-in-out infinite;
}

.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  animation: mouse-dot 2s ease-in-out infinite;
}

@keyframes mouse-scroll {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes mouse-dot {
  0%   { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

/* ── FADE IN ANIMATIONS ── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.9s cubic-bezier(0.4,0,0.2,1) forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }
.delay-4 { animation-delay: 1.1s; }
.delay-5 { animation-delay: 1.4s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── REVEAL ON SCROLL ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SECTION BASE ── */
.section { padding: 80px 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.section-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 400;
  text-align: center;
  color: var(--text);
  margin-bottom: 48px;
  line-height: 1.2;
}

/* ── GLASS CARD ── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(160, 120, 64, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(160, 120, 64, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold);
}

.btn-secondary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* ── COUNTDOWN ── */
.countdown-section {
  background: linear-gradient(135deg, var(--deep) 0%, #2d1810 50%, #1a120a 100%);
  position: relative;
  overflow: hidden;
}

.countdown-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,169,110,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(201,121,138,0.06) 0%, transparent 60%);
}

.countdown-section .section-tag { color: var(--gold-light); }
.countdown-section .section-title { color: var(--white); }

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.countdown-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: var(--radius-md);
  padding: 24px 12px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform var(--transition), box-shadow var(--transition);
}

.countdown-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(201,169,110,0.15);
}

.countdown-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
}

.countdown-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ── STORY TIMELINE ── */
.story-section { background: var(--cream); }

.story-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* Mobile: single column, centered */
.story-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-light) 10%, var(--gold-light) 90%, transparent);
}

.timeline-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 32px;
  position: relative;
  padding-left: 64px;
}

/* Override left/right on mobile — same layout for all */
.timeline-left,
.timeline-right { flex-direction: row; }

.timeline-icon {
  position: absolute;
  left: 0;
  top: 16px;
  transform: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(201,169,110,0.4);
  z-index: 2;
  flex-shrink: 0;
}

.timeline-card {
  width: 100%;
  padding: 18px 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.timeline-year {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.timeline-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── DETAILS ── */
.details-section { background: var(--cream-dark); }

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

.detail-card {
  padding: 28px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.detail-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.detail-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-light), #ffe8ee);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.detail-icon { font-size: 1.8rem; }

.detail-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
}

.detail-info { margin-bottom: 16px; }

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(201,169,110,0.15);
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.detail-row:last-child { border-bottom: none; }

.detail-svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
}

/* ── VENUE ── */
.venue-section { background: var(--cream); }

.venue-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.venue-info {
  padding: 28px 24px;
}

.venue-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}

.venue-address {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.venue-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.venue-transport h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}

.transport-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(201,169,110,0.12);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.transport-item:last-child { border-bottom: none; }
.transport-icon { font-size: 1.1rem; flex-shrink: 0; }

.venue-map-container {
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--glass-border);
}

.venue-map-container iframe { width: 100%; height: 100%; }

/* ── RSVP ── */
.rsvp-section {
  background: linear-gradient(160deg, var(--cream-dark) 0%, #f9f0e8 100%);
}

.rsvp-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.rsvp-card { max-width: 560px; margin: 0 auto; padding: 32px 24px; }

.rsvp-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.label-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
}

.form-input {
  padding: 14px 16px;
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.8);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}

.form-textarea { min-height: 90px; }

/* attendance options */
.attendance-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.attendance-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--glass-border);
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.attendance-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.attendance-option:has(input:checked) {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(201,169,110,0.1), rgba(201,121,138,0.08));
  box-shadow: 0 4px 20px rgba(201,169,110,0.2);
}

.option-icon { font-size: 1.6rem; }
.option-text { font-size: 0.8rem; font-weight: 500; color: var(--text); }

/* guest counter */
.guest-counter {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255,255,255,0.8);
}

.counter-btn {
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gold-dark);
  background: transparent;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.counter-btn:hover { background: var(--gold-light); }

.counter-value {
  min-width: 60px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  border-left: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
  padding: 0 8px;
  line-height: 46px;
}

/* submit button */
.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  position: relative;
}

.btn-loading {
  display: none;
  letter-spacing: 0.3em;
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loading { display: block; }

/* success */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(201,169,110,0.1), rgba(201,121,138,0.08));
  border: 1px solid var(--gold-light);
}

.form-success[hidden] { display: none; }
.success-icon { font-size: 2.5rem; }

/* ── UPLOAD SECTION ── */
.upload-section { background: var(--cream-dark); }

.upload-subtitle {
  text-align: center;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.upload-card {
  max-width: 500px;
  margin: 0 auto;
  padding: 32px 24px;
}

.file-upload-wrapper {
  position: relative;
  margin-bottom: 12px;
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  border: 2px dashed rgba(201,169,110,0.4);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.4);
  transition: all var(--transition);
  text-align: center;
}

.file-upload-wrapper:hover .file-label,
.file-input:focus + .file-label {
  border-color: var(--gold);
  background: rgba(255,255,255,0.7);
}

.file-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.file-text {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.file-text small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 4px;
}

.file-preview-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.file-preview-item {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(201,169,110,0.3);
}

.file-preview-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  margin-top: 4px;
}

/* ── FOOTER ── */
.footer {
  background: var(--deep);
  padding: 64px 24px 40px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.footer-names {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.footer-date {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  margin-bottom: 24px;
}

.footer-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.footer-hearts {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.footer-credit {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.25);
}

/* ── BACK TO TOP ── */
.back-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(160,120,64,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all var(--transition);
  z-index: 500;
}

.back-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(160,120,64,0.5);
}

/* ══════════════════════════════
   TABLET (min-width: 640px)
   ══════════════════════════════ */
@media (min-width: 640px) {
  .details-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .venue-map-container { height: 380px; }
}

/* ══════════════════════════════
   DESKTOP (min-width: 900px)
   ══════════════════════════════ */
@media (min-width: 900px) {
  .nav-hamburger { display: none; }

  .nav-menu {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    backdrop-filter: none;
    padding: 0;
    gap: 4px;
    box-shadow: none;
    border: none;
  }

  .nav-link { color: var(--white); }
  #main-nav.scrolled .nav-link { color: var(--text); }

  .venue-content {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .venue-map-container { height: 420px; }

  /* Timeline: true 2-column layout on desktop */
  .story-timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    padding-left: 0;
    gap: 20px;
    margin-bottom: 40px;
  }

  .timeline-left  { flex-direction: row; }
  .timeline-right { flex-direction: row-reverse; }

  .timeline-icon {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
  }

  .timeline-card { width: calc(50% - 44px); }
  .timeline-left  .timeline-card { margin-left: 0; }
  .timeline-right .timeline-card { margin-right: 0; }

  .section { padding: 100px 0; }
  .rsvp-card { padding: 48px 40px; }
}

/* ══════════════════════════════
   MOBILE BOTTOM NAVIGATION
   ══════════════════════════════ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(253, 248, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(201, 169, 110, 0.2);
  z-index: 2000;
  justify-content: space-around;
  align-items: center;
  padding: 12px 10px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(60, 30, 20, 0.08);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  gap: 4px;
  transition: all 0.3s ease;
  flex: 1;
}

.bottom-nav-item svg {
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--gold-dark);
}

.bottom-nav-item:hover svg,
.bottom-nav-item.active svg {
  color: var(--gold-dark);
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  /* Show bottom nav on mobile/tablet */
  .mobile-bottom-nav {
    display: flex;
  }
  
  /* Hide the old top hamburger menu */
  .nav-hamburger, .nav-menu {
    display: none !important;
  }

  /* Center the logo perfectly */
  .nav-inner {
    justify-content: center;
  }
  .nav-logo {
    margin-right: 0;
    font-size: 1.5rem;
  }

  /* Give body extra padding so bottom nav doesn't hide content */
  body {
    padding-bottom: 70px; 
  }

  /* Move the back-to-top button above the new bottom navigation */
  .back-top {
    bottom: calc(85px + env(safe-area-inset-bottom));
  }
}

/* ══════════════════════════════
   REDUCED MOTION
   ══════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .petal { display: none; }
  .hero { background-attachment: scroll; }
}
