/* ============================================================
   cher-ishby-yee.wedding — Custom Theme (Bootstrap 5 base)
   Cheryl & Jun Yee — 5 March 2027
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Amatic+SC:wght@400;700&family=Open+Sans:ital,wght@0,300;0,400;0,600;1,300&display=swap');

/* ── CSS Variables ── */
:root {
  /* ── Maroon & Gold — Beauty & the Beast theme ── */
  --gold:        #C9A04E;
  --gold-light:  #DFC07A;
  --gold-pale:   #FBF3E4;
  --gold-dark:   #9A7530;

  /* ── Maroon palette ── */
  --maroon:      #8B1A2A;
  --maroon-dark: #6D1020;
  --maroon-deep: #5A0D1A;
  --maroon-light:#B5243A;
  --maroon-pale: #FAEEE8;

  /* ── Backgrounds — cream/ivory (auspicious, no black) ── */
  --cream:       #FEF9F5;
  --cream-dark:  #FAF0EA;
  --charcoal:    #3D2020;
  --text:        #4A2828;
  --text-muted:  #9A7070;
  --white:       #FFFFFF;
  --border:      #E8D0C0;
  --shadow-sm:   0 2px 12px rgba(139,26,42,0.08);
  --shadow-md:   0 4px 24px rgba(139,26,42,0.14);
  --radius:      6px;
  --radius-lg:   12px;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  font-size: 15px;
  line-height: 1.7;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
}
.script { font-family: 'Great Vibes', cursive; font-weight: 400; }
.section-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Amatic SC', cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--charcoal);
  margin-bottom: 1rem;
}
.section-title .accent { color: var(--maroon); }
.divider-gold {
  display: flex; align-items: center; gap: 1rem;
  margin: 1rem auto 2rem;
  max-width: 200px;
}
.divider-gold::before, .divider-gold::after {
  content: ''; flex: 1; height: 1px; background: var(--maroon-pale);
}
.divider-gold span { color: var(--maroon); font-size: 10px; }

/* ── Navbar ── */
.navbar-wedding {
  background: rgba(250,247,242,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  transition: box-shadow 0.3s;
}
.navbar-wedding.scrolled { box-shadow: var(--shadow-sm); }
.navbar-brand-wedding {
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem;
  color: var(--charcoal) !important;
  text-decoration: none;
}
.navbar-wedding .nav-link {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  padding: 0.5rem 0.85rem !important;
  transition: color 0.2s;
}
.navbar-wedding .nav-link:hover,
.navbar-wedding .nav-link.active { color: var(--maroon) !important; }
.navbar-toggler { border: 1px solid var(--border); padding: 0.4rem 0.6rem; }
.navbar-toggler:focus { box-shadow: none; }

/* ── Buttons ── */
.btn-gold {
  background: var(--maroon);
  color: #fff;
  border: 2px solid var(--maroon);
  font-family: 'Amatic SC', cursive;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius);
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-gold:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: #fff; }
.btn-gold-outline {
  background: transparent;
  color: var(--maroon);
  border: 2px solid var(--maroon);
  font-family: 'Amatic SC', cursive;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius);
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-gold-outline:hover { background: var(--maroon); color: #fff; }
.btn-white-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  font-family: 'Amatic SC', cursive;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius);
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-white-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ── Forms ── */
.field-group { margin-bottom: 1.1rem; }
.field-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 400;
}
.field-input {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.field-input:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(139,26,42,0.12);
}
.field-input::placeholder { color: #C8C0B0; }
.field-input[disabled] { background: #f5f5f5; color: #aaa; }
textarea.field-input { resize: vertical; min-height: 90px; }
select.field-input { cursor: pointer; }

/* ── Cards ── */
.card-wedding {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.card-wedding-hover {
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card-wedding-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

/* ── Sections ── */
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }
.bg-cream { background: var(--cream); }
.bg-cream-dark { background: var(--cream-dark); }
.bg-white { background: var(--white); }
.bg-charcoal { background: var(--charcoal); }
.bg-gold { background: var(--gold); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #5A0D1A 0%, #7A1525 40%, #8B1A2A 100%);
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: url('../assets/images/header-bg.jpg') center/cover no-repeat;
  opacity: 0.35;
}
.hero-rings {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(201,160,78,0.25);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 6s ease-in-out infinite;
}
.hero-ring:nth-child(1) { width: 600px; height: 600px; }
.hero-ring:nth-child(2) { width: 420px; height: 420px; animation-delay: 1.5s; }
.hero-ring:nth-child(3) { width: 260px; height: 260px; animation-delay: 3s; }
@keyframes ringPulse { 0%,100%{opacity:0.2;transform:translate(-50%,-50%) scale(1)} 50%{opacity:0.45;transform:translate(-50%,-50%) scale(1.03)} }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 8rem 1.5rem 4rem; }
.hero-eyebrow {
  font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 1.5rem; display: block;
}
.hero-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3.5rem, 10vw, 7rem);
  color: #fff;
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-date {
  font-family: 'Amatic SC', cursive;
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.hero-divider {
  width: 60px; height: 1px; background: var(--gold); margin: 1.25rem auto;
  position: relative;
}
.hero-divider::before, .hero-divider::after {
  content: '✦'; position: absolute; top: -7px; font-size: 9px; color: var(--gold);
}
.hero-divider::before { left: -12px; }
.hero-divider::after  { right: -12px; }

/* ── Countdown ── */
.countdown-section {
  background: linear-gradient(135deg, #5A0D1A 0%, #8B1A2A 100%);
  position: relative; overflow: hidden;
}
.countdown-section::before {
  content: ''; position: absolute; inset: 0;
  background: url('../assets/images/countdown-bg.jpg') center/cover;
  opacity: 0.15;
}
.countdown-wrap { position: relative; z-index: 1; padding: 5rem 0; text-align: center; }
.countdown-grid { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; }
.countdown-unit { text-align: center; min-width: 70px; }
.countdown-num {
  font-family: 'Amatic SC', cursive;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.countdown-lbl {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-top: 0.25rem;
}
.countdown-sep {
  font-family: 'Amatic SC', cursive;
  font-size: 3rem;
  color: rgba(201,160,78,0.6);
  align-self: flex-start;
  padding-top: 0.25rem;
  display: flex; align-items: flex-start;
}

/* ── Couple Section ── */
.couple-photo {
  width: 160px; height: 160px; border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--maroon-light);
  box-shadow: 0 4px 20px rgba(139,26,42,0.2);
}
.couple-heart {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(139,26,42,0.4);
}

/* ── Events accordion ── */
.event-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--white);
}
.event-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s;
}
.event-header:hover { background: var(--gold-pale); }
.event-header.open { background: var(--gold-pale); border-bottom: 1px solid var(--border); }
.event-time {
  font-family: 'Amatic SC', cursive; font-size: 1.1rem; font-weight: 700;
  color: var(--gold); min-width: 80px;
}
.event-name { font-size: 0.95rem; font-weight: 600; color: var(--charcoal); }
.event-body { padding: 1rem 1.25rem; font-size: 0.88rem; color: var(--text-muted); display: none; }
.event-body.open { display: block; }

/* ── Gallery ── */
.gallery-filter .filter-btn {
  padding: 0.4rem 1rem; border-radius: 20px;
  border: 1px solid var(--border); background: var(--white);
  font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-muted); cursor: pointer; transition: all 0.2s;
  margin: 0.2rem;
}
.gallery-filter .filter-btn:hover,
.gallery-filter .filter-btn.active {
  background: var(--maroon); border-color: var(--maroon); color: #fff;
}
.gallery-grid img {
  width: 100%; display: block; border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-grid .gallery-item { overflow: hidden; border-radius: var(--radius); }
.gallery-grid .gallery-item:hover img { transform: scale(1.04); box-shadow: var(--shadow-md); }

/* ── Testimonials/Guestbook carousel ── */
.testimony-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.testimony-avatar {
  width: 70px; height: 70px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--gold-light);
  margin: 0 auto 1rem;
}
.testimony-quote {
  font-family: 'Great Vibes', cursive;
  font-size: 1.4rem; color: var(--text-muted);
  line-height: 1.6;
}
.testimony-name {
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--maroon); margin-top: 1rem;
}

/* ── Counter section ── */
.counter-section {
  background: var(--maroon-pale);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.counter-num {
  font-family: 'Amatic SC', cursive;
  font-size: 3.5rem; font-weight: 700;
  color: var(--maroon); display: block; line-height: 1;
}
.counter-lbl { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }

/* ── Step indicator ── */
.step-indicator { display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; }
.step-dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: #eee; color: #bbb;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Amatic SC', cursive; font-size: 1rem; font-weight: 700;
  transition: all 0.3s; flex-shrink: 0;
}
.step-dot.active { background: var(--maroon); color: #fff; }
.step-dot.done   { background: var(--maroon); color: #fff; opacity: 0.5; }
.step-line { flex: 0 0 50px; height: 2px; background: #eee; transition: background 0.3s; }
.step-line.done { background: var(--maroon); }

/* ── Attend buttons ── */
.attend-btn {
  flex: 1; padding: 0.75rem 1rem; border: 2px solid var(--border);
  border-radius: var(--radius); background: var(--white);
  font-family: 'Amatic SC', cursive; font-size: 1.15rem; font-weight: 700;
  color: #bbb; cursor: pointer; transition: all 0.2s; text-align: center;
}
.attend-btn:hover { border-color: var(--maroon); color: var(--maroon); }
.attend-btn.yes-active { border-color: var(--maroon); background: var(--maroon); color: #fff; }
.attend-btn.no-active  { border-color: #ccc; background: #f5f5f5; color: #aaa; }

/* ── Meal pill buttons ── */
.meal-btn {
  padding: 0.4rem 1rem; border: 1px solid var(--border);
  border-radius: 20px; background: var(--white);
  font-size: 13px; color: var(--text-muted);
  cursor: pointer; transition: all 0.2s; margin: 0.2rem;
}
.meal-btn:hover { border-color: var(--maroon); color: var(--maroon); }
.meal-btn.selected { border-color: var(--maroon); background: var(--maroon); color: #fff; }

/* ── Person card ── */
.person-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  margin-bottom: 0.75rem;
  animation: fadeUp 0.3s ease;
}
@keyframes fadeUp { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }
.person-badge {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--maroon); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Amatic SC', cursive; font-size: 0.95rem; font-weight: 700;
  flex-shrink: 0;
}

/* ── Summary rows ── */
.summary-row {
  display: flex; justify-content: space-between;
  padding: 0.55rem 0; border-bottom: 1px solid #f0ebe3;
  font-size: 0.88rem;
}
.summary-row:last-child { border: none; }
.summary-lbl { color: var(--text-muted); }
.summary-val { color: var(--charcoal); font-weight: 600; text-align: right; max-width: 60%; }

/* ── Tab switcher ── */
.tab-switcher { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.tab-btn { flex: 1; padding: 0.85rem; border: none; background: #fafafa; cursor: pointer; font-family: 'Amatic SC', cursive; font-size: 1.1rem; letter-spacing: 0.05em; color: #bbb; transition: all 0.25s; }
.tab-btn.active { background: var(--maroon); color: #fff; }

/* ── Quick links (portal) ── */
.quick-link {
  display: block; padding: 1.5rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--white); text-align: center; text-decoration: none;
  color: var(--charcoal); transition: all 0.2s;
}
.quick-link:hover { border-color: var(--maroon); color: var(--maroon); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.quick-link i { font-size: 1.75rem; color: var(--maroon); margin-bottom: 0.5rem; display: block; }
.quick-link span { font-family: 'Amatic SC', cursive; font-size: 1.1rem; font-weight: 700; display: block; }
.quick-link small { font-size: 11px; color: var(--text-muted); }

/* ── VR venue ── */
.vr-wrapper { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.vr-hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,0.9); backdrop-filter: blur(4px); padding: 0.4rem 1rem; border-radius: 20px; font-size: 12px; color: #666; pointer-events: none; white-space: nowrap; z-index: 10; }

/* ── Admin ── */
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; }
.stat-num { font-family: 'Amatic SC', cursive; font-size: 3rem; font-weight: 700; color: var(--maroon); line-height: 1; display: block; }
.stat-lbl { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.25rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); padding: 0.5rem 0.75rem; border-bottom: 2px solid var(--border); font-weight: 400; text-align: left; }
.admin-table td { padding: 0.7rem 0.75rem; border-bottom: 1px solid #f5f0e8; color: var(--text); }
.admin-table tr:hover td { background: var(--gold-pale); }
.badge-yes { background: #fde8ec; color: #8B1A2A; padding: 0.2rem 0.65rem; border-radius: 10px; font-size: 11px; }
.badge-no  { background: #f5f5f5; color: #aaa; padding: 0.2rem 0.65rem; border-radius: 10px; font-size: 11px; }

/* ── Guestbook message card ── */
.message-card {
  background: var(--white); border-left: 4px solid var(--maroon);
  padding: 1.25rem 1.5rem; margin-bottom: 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.35s ease;
}
.message-author { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--maroon); margin-bottom: 0.4rem; }
.message-text { font-family: 'Great Vibes', cursive; font-size: 1.35rem; color: var(--text); line-height: 1.5; }
.message-time { font-size: 11px; color: #ccc; margin-top: 0.3rem; }

/* ── Venue info ── */
.venue-badge {
  background: var(--maroon-pale); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

/* ── Footer ── */
.footer-wedding {
  background: var(--maroon-deep);
  padding: 4rem 0 2rem;
  color: rgba(255,255,255,0.5);
}
.footer-names {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.5rem;
}
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.4); text-decoration: none;
  font-size: 14px; transition: all 0.2s; margin: 0 0.25rem;
}
.footer-social a:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* ── Page banner (sub-pages) ── */
.page-banner {
  background: linear-gradient(160deg, #5A0D1A 0%, #8B1A2A 100%);
  position: relative; overflow: hidden; padding: 6rem 0 3rem; text-align: center;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background: url('../assets/images/banner-bottom.jpg') center/cover;
  opacity: 0.2;
}
.page-banner-content { position: relative; z-index: 1; }
.page-banner h1 { font-family: 'Amatic SC', cursive; font-size: clamp(2.5rem, 6vw, 4rem); color: #fff; }
.page-banner p { color: var(--gold-light); font-size: 14px; letter-spacing: 0.1em; }

/* ── Auth card ── */
.auth-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }

/* ── Panel toggle ── */
.panel { display: none; }
.panel.active { display: block; }

/* ── OTP input ── */
.otp-input { letter-spacing: 0.5em; font-size: 2rem; text-align: center; font-family: 'Amatic SC', cursive; }

/* ── Offcanvas ── */
.offcanvas { background: var(--cream); }
.offcanvas-header { border-bottom: 1px solid var(--border); }
.offcanvas-title { font-family: 'Great Vibes', cursive; font-size: 1.6rem; color: var(--charcoal); }

/* ── Lightbox override ── */
.lb-data .lb-caption { font-family: 'Open Sans', sans-serif; }

/* ── Responsive ── */
@media (max-width: 576px) {
  .hero-names { font-size: 3.5rem; }
  .countdown-grid { gap: 1.25rem; }
  .section-pad { padding: 3.5rem 0; }
}
