/* ═══════════════════════════════════════════════════════════════
   CINDREW Wedding Management System
   Main Stylesheet — Phase 1
   Design: Modern Luxury Wedding
═══════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --gold:          #C9A84C;
  --gold-light:    #E8D5A3;
  --gold-dark:     #8B6914;

  /* Dark premium backgrounds */
  --ivory:         #16130E;   /* Page & section background */
  --ivory-deep:    #0E0B07;   /* Deeper surface */
  --surface:       #211D17;   /* Card / component surface */
  --surface-raised: #2A2520;  /* Slightly elevated — headers, hover */
  --white:         #FFFFFF;   /* Pure white — kept for high-contrast elements */

  /* Primary text on dark backgrounds */
  --text-primary:  #E8E0D4;
  --text-muted:    #9A8F82;

  /* Wedding palette — Groom side */
  --emerald:       #004D24;
  --emerald-light: #006B33;
  --emerald-dark:  #002D15;

  /* Wedding palette — Bride side */
  --burgundy:      #4D0011;
  --burgundy-light: #7A001B;
  --burgundy-dark:  #2E000A;

  --charcoal:      #2C2C2C;   /* Kept for management portal */
  --gray:          #9A8F82;
  --gray-light:    #2A2520;
  --border:        #332E26;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 16px 56px rgba(0, 0, 0, 0.55);

  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

img { max-width: 100%; height: auto; }

a { color: var(--gold-dark); transition: color var(--transition); }
a:hover { color: var(--gold); }

/* ── Utility Classes ────────────────────────────────────────── */
.text-gold       { color: var(--gold) !important; }
.text-gold-light { color: var(--gold-light) !important; }
.text-emerald    { color: var(--emerald) !important; }
.text-burgundy   { color: var(--burgundy) !important; }
.text-ivory      { color: var(--ivory) !important; }
.bg-emerald      { background-color: var(--emerald) !important; }
.bg-burgundy     { background-color: var(--burgundy) !important; }
.bg-ivory        { background-color: var(--ivory) !important; }
.min-vh-100      { min-height: 100vh; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.6rem 1.75rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.btn-gold:hover, .btn-gold:focus {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}

.btn-gold-outline {
  background: transparent;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.5rem 1.5rem;
  transition: all var(--transition);
}
.btn-gold-outline:hover {
  background: var(--gold);
  color: var(--charcoal);
  box-shadow: 0 4px 16px rgba(201,168,76,0.25);
}

/* Google button */
.btn-google {
  background: var(--white);
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-google:hover {
  background: var(--gray-light);
  border-color: #bbb;
  color: var(--charcoal);
  box-shadow: var(--shadow-sm);
}
.google-icon { flex-shrink: 0; }

/* ── Navbar ─────────────────────────────────────────────────── */
#main-navbar {
  background: transparent;
  padding: 1.25rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#main-navbar.scrolled {
  background: rgba(27, 67, 50, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--gold) !important;
  text-decoration: none;
  transition: opacity var(--transition);
}
.brand-logo:hover { opacity: 0.85; }

#main-navbar .nav-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85) !important;
  padding: 0.5rem 0.9rem;
  transition: color var(--transition);
}
#main-navbar .nav-link:hover { color: var(--gold) !important; }

#main-navbar .dropdown-menu {
  background: var(--emerald-dark);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  margin-top: 0.5rem;
}
#main-navbar .dropdown-item {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  transition: all var(--transition);
}
#main-navbar .dropdown-item:hover {
  background: rgba(201,168,76,0.15);
  color: var(--gold);
}
#main-navbar .dropdown-divider {
  border-color: rgba(201,168,76,0.15);
}

/* ── Section Backgrounds ────────────────────────────────────── */
.section-light  { background: var(--ivory); padding: 6rem 0; }
.section-ivory  { background: var(--ivory); padding: 6rem 0; }
.section-emerald  { background: var(--emerald); padding: 6rem 0; }
.section-burgundy { background: var(--burgundy); padding: 6rem 0; }

/* ── Section Headers ────────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.title-ornament {
  color: var(--gold);
  font-size: 1.1rem;
  display: block;
  margin-top: 0.5rem;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  /* Two families uniting: Burgundy (bride) from the left, Emerald (groom) from the right */
  background-color: #07010e;
  background-image:
    radial-gradient(ellipse at 12% 70%, rgba(77,0,17,0.55) 0%, transparent 48%),
    radial-gradient(ellipse at 88% 70%, rgba(0,77,36,0.55) 0%, transparent 48%),
    radial-gradient(ellipse at 50% 10%, rgba(201,168,76,0.05) 0%, transparent 50%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A84C' fill-opacity='0.04'%3E%3Cpath d='M30 0L60 30L30 60L0 30z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-container { position: relative; z-index: 1; padding: 7rem 0 6rem; }

.hero-inner { max-width: 800px; margin: 0 auto; }

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.hero-ornament-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.25rem auto;
  max-width: 320px;
}
.hero-ornament-line .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.6), transparent);
}
.hero-ornament-line .diamond {
  color: var(--gold);
  font-size: 0.75rem;
}

.hero-names {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  margin: 0;
}
.groom-name, .bride-name {
  display: block;
  color: var(--white);
}
.hero-ampersand {
  display: block;
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--gold);
  font-style: italic;
  margin: 0.25rem 0;
}

.hero-invite-text {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65);
  margin: 1.5rem 0 0;
  line-height: 1.9;
}

.hero-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.75rem 0;
  flex-wrap: wrap;
}
.hero-date-day {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hero-date-divider { color: rgba(255,255,255,0.3); }
.hero-date-full {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}

/* ── Countdown ──────────────────────────────────────────────── */
.countdown-wrapper { margin: 2rem 0; }

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  min-width: 80px;
  backdrop-filter: blur(4px);
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
}

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

.countdown-separator {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: rgba(201,168,76,0.4);
  margin-bottom: 1.5rem;
  align-self: flex-start;
  padding-top: 1rem;
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Scroll Indicator ───────────────────────────────────────── */
.hero-scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: scrollBounce 2s infinite;
  /* Never overlap hero content */
  pointer-events: none;
  z-index: 2;
}
.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px;
  height: 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(8px); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(4px); }
}

/* ── Couple Section ─────────────────────────────────────────── */
.couple-photo-frame {
  position: relative;
  display: inline-block;
}

.couple-photo-placeholder {
  width: 220px;
  height: 270px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255,255,255,0.5);
  margin: 0 auto;
  border: 3px solid rgba(201,168,76,0.3);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.couple-photo-placeholder:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Groom side — Emerald Green */
.groom-bg { background: linear-gradient(135deg, var(--emerald-dark) 0%, var(--emerald) 100%); }
/* Bride side — Burgundy */
.bride-bg  { background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 100%); }

.couple-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 0 24px rgba(0,0,0,0.6);
}
.couple-role {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-light);
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}
.couple-desc {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  max-width: 320px;
  margin: 0 auto;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}

.couple-center-ornament {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.couple-vine-line {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}
.couple-hearts {
  font-size: 1.5rem;
  color: var(--gold);
  display: block;
  margin: 0.5rem 0;
}

/* ── Story Timeline ─────────────────────────────────────────── */
.story-timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.story-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,0.9), rgba(201,168,76,0.9), transparent);
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(201,168,76,0.4);
}

.story-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 2.5rem);
  margin-bottom: 3rem;
  position: relative;
}
.story-item.right {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 2.5rem);
}

.story-dot {
  position: absolute;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--emerald);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.75rem;
  z-index: 1;
}
.story-dot-final {
  background: var(--gold);
  color: var(--charcoal);
  width: 44px;
  height: 44px;
  font-size: 1rem;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 6px rgba(201,168,76,0.15);
}

.story-card {
  background: rgba(33, 29, 23, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 320px;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), transform var(--transition);
}
.story-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.story-card-final {
  border-color: rgba(201, 168, 76, 0.45);
  background: rgba(42, 37, 32, 0.88);
}

.story-year {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.story-event {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin: 0.4rem 0 0.75rem;
  color: var(--text-primary);
}
.story-desc { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ── Big Date Display ───────────────────────────────────────── */
.big-date-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 0.5rem;
}
.big-date-month {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}
.big-date-number {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 16vw, 12rem);
  font-weight: 300;
  color: var(--white);
  line-height: 0.9;
}
.big-date-year {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--gold-light);
}
.big-date-day {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 400;
}

/* ── Schedule Cards ─────────────────────────────────────────── */
.schedule-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.schedule-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.schedule-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-light), var(--shadow-md);
}
.schedule-card.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.schedule-card-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.schedule-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--surface-raised);
  color: var(--text-muted);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}
.schedule-badge-gold {
  background: rgba(201,168,76,0.15);
  color: var(--gold-dark);
}

.schedule-card-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.schedule-meta { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }
.schedule-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.schedule-meta-item i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.schedule-note { font-size: 0.85rem; color: var(--text-muted); font-style: italic; margin: 0; }

/* ── Venue Cards ────────────────────────────────────────────── */
.venue-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.venue-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.venue-card-primary { border-color: var(--gold-light); }

.venue-card-header {
  padding: 1rem 1.5rem 0;
}

.venue-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}
.venue-badge-gold     { background: rgba(201,168,76,0.15); color: var(--gold-dark); }
.venue-badge-secondary { background: var(--gray-light); color: var(--gray); }

.venue-map-placeholder {
  height: 180px;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(255,255,255,0.4);
  margin: 1rem 0 0;
}
.venue-church-bg {
  background: linear-gradient(135deg, #8B6914 0%, #C9A84C 100%);
}

.venue-card-body { padding: 1.5rem; }
.venue-name { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--text-primary); }
.venue-address, .venue-time { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.4rem; }

/* ── Dress Code Groups ──────────────────────────────────────── */
.dress-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 2.5rem;
}

.dress-group-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
  white-space: nowrap;
  display: block;
  width: 100%;
  text-align: center;
}

.dress-group-divider {
  color: rgba(201,168,76,0.2);
  font-size: 2.5rem;
  font-weight: 100;
  display: flex;
  align-items: center;
  padding-top: 2rem;
}

@media (max-width: 640px) {
  .dress-group { padding: 0 1rem; }
  .dress-group-divider { display: none; }
}
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.palette-swatch {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-end;
  padding: 0.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.palette-swatch:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-md);
}
.palette-swatch span {
  font-size: 0.65rem;
  font-weight: 500;
  color: inherit;
  text-align: center;
  width: 100%;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ── Gallery Grid ───────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

/* ── Real Couple Photos ─────────────────────────────────────── */
.couple-real-photo {
  width: 220px;
  height: 290px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
  margin: 0 auto;
}
.couple-real-photo:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}

.groom-photo-frame {
  border: 3px solid var(--emerald);
}
.bride-photo-frame {
  border: 3px solid var(--burgundy);
}

/* ── Real Gallery Photos ────────────────────────────────────── */
.gallery-real-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.95);
}
.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-item a:hover .gallery-real-photo {
  transform: scale(1.04);
  filter: brightness(1.05);
}

/* ── Gallery grid aspect ratio fix ─────────────────────────── */
.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ivory-deep);
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--gold);
}
.footer-tagline { font-family: var(--font-heading); font-size: 1rem; color: rgba(255,255,255,0.5); }
.footer-ornament { display: block; color: var(--gold); font-size: 1rem; }
.footer-date { font-family: var(--font-heading); color: var(--gold-light); font-size: 1rem; }
.footer-hashtag { color: var(--gold-light); font-size: 0.9rem; letter-spacing: 0.05em; }
.footer-venue { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-divider { height: 1px; background: rgba(255,255,255,0.08); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-link { color: rgba(255,255,255,0.45); font-size: 0.8rem; text-decoration: none; transition: color var(--transition); }
.footer-link:hover { color: var(--gold); }

/* ── Auth Pages ─────────────────────────────────────────────── */
.auth-page, .auth-page-simple { min-height: 100vh; }

.auth-hero {
  background-color: #07010e;
  background-image:
    radial-gradient(ellipse at 15% 70%, rgba(77,0,17,0.45) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 70%, rgba(0,77,36,0.45) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 20%, rgba(201,168,76,0.05) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A84C' fill-opacity='0.03'%3E%3Cpath d='M30 0L60 30L30 60L0 30z'/%3E%3C/g%3E%3C/svg%3E");
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.auth-brand {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--gold) !important;
  text-decoration: none;
}
.auth-brand-dark {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-decoration: none;
}

.auth-hero-ornament { color: var(--gold); font-size: 1.25rem; }
.auth-hero-names {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--white);
}
.auth-hero-date { font-family: var(--font-heading); font-size: 1.1rem; color: var(--gold-light); }
.auth-hero-venue { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin: 0; }
.auth-hero-venue-addr { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.auth-hero-hashtag { font-size: 0.9rem; color: rgba(201,168,76,0.7); letter-spacing: 0.05em; }
.auth-hero-quote { font-family: var(--font-heading); font-size: 1.15rem; color: rgba(255,255,255,0.6); max-width: 280px; margin: 2rem auto 0; line-height: 1.7; }

.auth-form-panel { background: var(--ivory); padding: 3rem 2rem; }

.auth-form-box {
  max-width: 440px;
  margin: 0 auto;
  padding: 0 1rem;
}

.auth-form-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.auth-form-subtitle { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--gray);
  font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-link { color: var(--gold-dark); font-weight: 500; text-decoration: none; transition: color var(--transition); }
.auth-link:hover { color: var(--gold); }
.auth-link-muted { color: var(--gray); font-size: 0.9rem; text-decoration: none; transition: color var(--transition); }
.auth-link-muted:hover { color: var(--gold-dark); }

.auth-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(201,168,76,0.1);
  border: 2px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--gold);
  margin: 0 auto;
}
.auth-icon-success {
  background: rgba(0,77,36,0.08);
  border-color: rgba(0,77,36,0.25);
  color: var(--emerald);
}
.auth-icon-danger {
  background: rgba(220,53,69,0.08);
  border-color: rgba(220,53,69,0.25);
  color: #dc3545;
}

/* ── Profile Page ───────────────────────────────────────────── */
.page-wrapper { padding-top: 5rem; }
.page-header { border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
.page-title { font-family: var(--font-heading); font-size: 2.25rem; color: var(--text-primary); margin-bottom: 0.25rem; }

.role-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 100px;
}
.role-super_admin { background: rgba(201,168,76,0.15); color: var(--gold-dark); border: 1px solid rgba(201,168,76,0.3); }
.role-reception   { background: rgba(0,77,36,0.1);   color: var(--emerald);    border: 1px solid rgba(0,77,36,0.2); }
.role-guest       { background: var(--gray-light);     color: var(--gray);       border: 1px solid var(--border); }

.card-elegant {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card-elegant-header {
  padding: 1.1rem 1.5rem;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
}
.card-elegant-body { padding: 1.75rem; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-control {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
  outline: none;
}
.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert-success { background: rgba(0,77,36,0.18);  border-color: rgba(0,77,36,0.35);  color: #5cb87e; }
.alert-danger   { background: rgba(220,53,69,0.15); border-color: rgba(220,53,69,0.3);  color: #f47c7c; }
.alert-warning  { background: rgba(201,168,76,0.15); border-color: rgba(201,168,76,0.35); color: var(--gold-light); }
.alert-info     { background: rgba(13,110,253,0.12); border-color: rgba(13,110,253,0.25); color: #6db8f7; }

/* ── Error Pages ────────────────────────────────────────────── */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--ivory);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .story-timeline::before { left: 24px; }
  .story-item, .story-item.right {
    flex-direction: column;
    padding-right: 0;
    padding-left: 3.5rem;
    justify-content: flex-start;
  }
  .story-dot {
    left: 24px;
    transform: translateX(-50%);
    top: 0;
  }
  .story-card { max-width: 100%; }

  .section-light, .section-ivory, .section-emerald { padding: 4rem 0; }

  .auth-form-panel { padding: 2.5rem 1.5rem; }
}

@media (max-width: 575.98px) {
  .hero-names { font-size: 3rem; }
  .countdown-unit { min-width: 64px; padding: 0.75rem; }
  .countdown-number { font-size: 1.75rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .palette-swatch { width: 80px; height: 80px; }
  .dress-code-palette { gap: 0.6rem; }
  /* Hide scroll indicator on small phones — no room */
  .hero-scroll-indicator { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   INVITATION & RSVP PAGES
═══════════════════════════════════════════════════════════════ */

.invitation-page,
.rsvp-page {
  min-height: 100vh;
  background: var(--ivory);
  padding: 6rem 0 4rem;
}

.invitation-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}
.invitation-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--emerald), var(--gold), var(--burgundy));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.invitation-greeting {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.invitation-body-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.event-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1rem 0;
  background: var(--surface-raised);
}
.event-card.primary {
  border-color: rgba(201,168,76,0.35);
  background: linear-gradient(135deg, rgba(201,168,76,0.06), var(--surface-raised));
}
.event-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.event-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.event-detail i { color: var(--gold); width: 16px; }

.rsvp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin: 0 auto;
}

.rsvp-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.rsvp-choice-btn {
  padding: 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface-raised);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-primary);
}
.rsvp-choice-btn:hover { border-color: var(--gold); }
.rsvp-choice-btn.selected-yes {
  border-color: var(--emerald);
  background: rgba(0,77,36,0.12);
  color: #5cb87e;
}
.rsvp-choice-btn.selected-no {
  border-color: var(--burgundy);
  background: rgba(77,0,17,0.12);
  color: #f47c7c;
}

.member-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  position: relative;
}
.member-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.member-number {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--gold);
}
.primary-guest-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.qr-code-container {
  text-align: center;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: inline-block;
}
.qr-code-container img { max-width: 180px; height: auto; }

/* ── Music Player FAB ───────────────────────────────────────── */
.music-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: none;
}

.music-btn {
  pointer-events: all;
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(33, 29, 23, 0.92);
  border: 1.5px solid rgba(201, 168, 76, 0.5);
  color: var(--gold);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
  outline: none;
}
.music-btn:hover {
  border-color: var(--gold);
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.25);
}
.music-btn-playing {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15), 0 4px 20px rgba(0,0,0,0.4);
}

/* Expanding rings when playing */
.music-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.35);
  animation: musicPulse 2s ease-out infinite;
  pointer-events: none;
}
.music-ring-1 { width: 68px;  height: 68px;  animation-delay: 0s; }
.music-ring-2 { width: 88px;  height: 88px;  animation-delay: 0.7s; }

@keyframes musicPulse {
  0%   { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* Song label tooltip */
.music-label {
  pointer-events: none;
  background: rgba(33, 29, 23, 0.92);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

@media (max-width: 575.98px) {
  .music-fab { bottom: 1.25rem; right: 1.25rem; }
  .music-btn { width: 46px; height: 46px; font-size: 1rem; }
}
.text-muted { color: var(--text-muted) !important; }

/* ── Misc text helpers ───────────────────────────────────────── */
.text-charcoal { color: var(--text-primary) !important; }
a { color: var(--gold); transition: color var(--transition); }
a:hover { color: var(--gold-light); }
