/* ============================================================
   STYLE.CSS — Wedding Website Style Sheet
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --primary:      #5C1D24; /* Deep Burgundy Red */
  --rose-gold:    #C89D7C; /* Soft Rose Gold */
  --amber:        #E2B774; /* Champagne Accent */
  --bg-light:     #FAF7F2; /* Cream White Background */
  --bg-alt:       #F3ECE3; /* Slightly darker cream warm beige */
  --text-dark:    #2F2E2C; /* Contrast Charcoal for readability */
  --text-muted:   #757069; /* Soft grey-brown */
  --text-light:   #FFFFFF;
  --line:         #E3DAC9;
  --glass:        rgba(250, 247, 242, 0.82);
  
  --font-serif:   'Playfair Display', serif;
  --font-sans:    'Inter', sans-serif;
  --font-cursive: 'Great Vibes', cursive;
  
  --shadow-light: 0 10px 30px rgba(92, 29, 36, 0.04);
  --shadow-heavy: 0 20px 50px rgba(92, 29, 36, 0.09);
  --transition:   all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
}

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

.section-padding {
  padding: 100px 0;
}

.alt-bg {
  background-color: var(--bg-alt);
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--primary);
}

/* ---------- SECTION HEADER ---------- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .subtitle {
  font-family: var(--font-cursive);
  font-size: 2.2rem;
  color: var(--rose-gold);
  display: block;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-header p {
  color: var(--text-muted);
  max-width: 55ch;
  margin: 12px auto 0;
}

.accent-line {
  width: 60px;
  height: 2px;
  background-color: var(--rose-gold);
  margin: 18px auto 0;
  position: relative;
}

.accent-line::after {
  content: '♥';
  color: var(--primary);
  background: inherit;
  font-size: 0.8rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 8px;
  background-color: var(--bg-light);
}

.alt-bg .accent-line::after {
  background-color: var(--bg-alt);
}

/* ---------- 1. HERO & COUNTDOWN ---------- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 650px;
  background-image: url('../assets/wedding_bg.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(92,29,36,0.3) 0%, rgba(31,32,34,0.65) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  animation: fadeIn 1.2s ease forwards;
}

.wedding-subtitle {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content h1 {
  font-family: var(--font-cursive);
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 400;
  color: var(--text-light);
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 2px 4px 10px rgba(0,0,0,0.25);
}

.wedding-date-text {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-bottom: 40px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* Countdown */
.countdown-container {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.time-block {
  width: 85px;
  height: 95px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.time-block:hover {
  transform: translateY(-4px);
}

.time-block .number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.1;
}

.time-block .label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 4px;
}

/* RSVP Button */
.rsvp-btn {
  display: inline-block;
  padding: 15px 32px;
  background-color: var(--rose-gold);
  color: var(--text-light);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  border: 1px solid var(--rose-gold);
  border-radius: 2px;
  box-shadow: 0 4px 15px rgba(200, 157, 124, 0.4);
  transition: var(--transition);
}

.rsvp-btn:hover {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,255,255,0.15);
}

/* ---------- STICKY NAVIGATION ---------- */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 30px rgba(92, 29, 36, 0.02);
  transition: box-shadow 0.3s;
}

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

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--rose-gold);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--rose-gold);
}

.nav-link:hover::after {
  width: 100%;
}

/* ---------- 2. OUR STORY (Timeline) ---------- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background-color: var(--line);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
}

.timeline-item.left {
  left: 0;
  align-items: flex-end;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  align-items: flex-start;
  text-align: left;
}

.timeline-badge {
  position: absolute;
  top: 25px;
  width: 36px;
  height: 36px;
  background-color: var(--bg-light);
  border: 1px solid var(--rose-gold);
  color: var(--rose-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  z-index: 5;
  transition: var(--transition);
}

.timeline-item.left .timeline-badge {
  right: -18px;
}

.timeline-item.right .timeline-badge {
  left: -18px;
}

.timeline-item:hover .timeline-badge {
  background-color: var(--rose-gold);
  color: var(--text-light);
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(200, 157, 124, 0.4);
}

.timeline-panel {
  width: 100%;
  background: var(--bg-light);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 4px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.timeline-item:hover .timeline-panel {
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--rose-gold);
}

.timeline-panel .date {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose-gold);
  display: block;
  margin-bottom: 8px;
}

.timeline-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.timeline-panel p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- 3. WEDDING EVENTS ---------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
  max-width: 900px;
  margin: 0 auto;
}

.event-card {
  background-color: var(--bg-light);
  border: 1px solid var(--line);
  padding: 44px 36px;
  text-align: center;
  border-radius: 4px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--rose-gold);
}

.event-icon {
  width: 60px;
  height: 60px;
  background-color: var(--bg-alt);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 24px;
  transition: var(--transition);
}

.event-card:hover .event-icon {
  background-color: var(--primary);
  color: var(--text-light);
}

.event-card h3 {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.event-details {
  margin-bottom: 28px;
  width: 100%;
}

.event-details p {
  font-size: 0.92rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.event-details p i {
  color: var(--rose-gold);
  font-size: 0.95rem;
}

.map-link {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose-gold);
  border: 1px solid var(--line);
  padding: 10px 20px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-link:hover {
  background-color: var(--rose-gold);
  color: var(--text-light);
  border-color: var(--rose-gold);
}

/* ---------- 4. RSVP SECTION ---------- */
.rsvp-section {
  position: relative;
  background-image: url('../assets/wedding_bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-light);
}

.rsvp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(92, 29, 36, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1;
}

.rsvp-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.rsvp-card-wrapper {
  background: rgba(250, 247, 242, 0.08);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 60px 48px;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.rsvp-desc {
  color: rgba(255, 255, 255, 0.8) !important;
}

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

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

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

.form-group label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  padding: 12px 16px;
  font-size: 0.95rem;
  border-radius: 2px;
  outline: none;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group select option {
  background-color: var(--primary);
  color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--amber);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 10px rgba(226, 183, 116, 0.2);
}

.form-group textarea {
  resize: none;
  min-height: 120px;
}

.submit-btn-wedding {
  background-color: var(--rose-gold);
  color: var(--text-light);
  border: 1px solid var(--rose-gold);
  padding: 15px 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(200, 157, 124, 0.3);
  transition: var(--transition);
  margin-top: 10px;
}

.submit-btn-wedding:hover {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
  box-shadow: 0 8px 25px rgba(255,255,255,0.15);
}

/* ---------- 5. GUESTBOOK / WISHES ---------- */
.wishes-wrapper {
  max-width: 800px;
  margin: 0 auto;
  max-height: 480px;
  overflow-y: auto;
  padding: 10px 10px 10px 0;
  border-radius: 4px;
}

/* Style wishes custom scrollbar */
.wishes-wrapper::-webkit-scrollbar {
  width: 6px;
}
.wishes-wrapper::-webkit-scrollbar-track {
  background: var(--bg-alt);
  border-radius: 3px;
}
.wishes-wrapper::-webkit-scrollbar-thumb {
  background: var(--rose-gold);
  border-radius: 3px;
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wish-card {
  background-color: var(--bg-light);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 4px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  animation: fadeIn 0.5s ease-out forwards;
}

.wish-card:hover {
  border-color: var(--rose-gold);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(92, 29, 36, 0.05);
}

.wish-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.wish-author {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
}

.wish-status {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
}

.wish-status.attending {
  background-color: #E2ECE9;
  color: #2D6A4F;
}

.wish-status.declining {
  background-color: #F8D7DA;
  color: #842029;
}

.wish-text {
  font-size: 0.92rem;
  color: var(--text-dark);
  font-style: italic;
  line-height: 1.6;
}

/* ---------- FOOTER ---------- */
.wedding-footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 70px 0;
  text-align: center;
  border-top: 2px solid var(--amber);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: var(--amber);
}

.footer-quote {
  font-family: var(--font-cursive);
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.footer-copyright {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- SUCCESS MODAL ---------- */
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.success-modal.open {
  display: flex;
}

.modal-overlay-wedding {
  position: absolute;
  inset: 0;
  background-color: rgba(47, 46, 44, 0.8);
  backdrop-filter: blur(8px);
}

.modal-content-wedding {
  position: relative;
  background: var(--bg-light);
  border: 1px solid var(--line);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  border-radius: 4px;
  box-shadow: var(--shadow-heavy);
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 10;
}

.modal-close-wedding {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close-wedding:hover {
  color: var(--primary);
}

.success-icon {
  font-size: 3rem;
  color: #2D6A4F;
  margin-bottom: 18px;
}

.modal-body-wedding h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.modal-body-wedding p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.done-btn {
  width: 100%;
  padding: 12px 0;
  background-color: var(--primary);
  color: var(--text-light);
  border: 1px solid var(--primary);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.done-btn:hover {
  background-color: transparent;
  color: var(--primary);
}

/* ---------- SCROLL REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(15px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- RESPONSIVE MEDIA QUERIES ---------- */
@media (max-width: 860px) {
  .sticky-nav {
    position: static;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 12px;
    padding: 12px 24px;
  }
  
  .nav-links {
    gap: 18px;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  /* Timeline Mobile */
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding: 15px 0 15px 44px;
    text-align: left !important;
    align-items: flex-start !important;
  }
  
  .timeline-item.left, .timeline-item.right {
    left: 0;
  }
  
  .timeline-badge {
    left: 2px !important;
  }
  
  .rsvp-card-wrapper {
    padding: 40px 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* live guest list */
.live-stats { display:inline-flex; align-items:center; gap:8px; margin-top:14px; font-size:.82rem; letter-spacing:.04em; color:#8a7d72; }
.live-stats .dot { width:8px; height:8px; border-radius:50%; background:#c9a36a; }
.live-stats.live .dot { background:#4caf50; box-shadow:0 0 0 0 rgba(76,175,80,.5); animation:lsPulse 2s infinite; }
@keyframes lsPulse { 70% { box-shadow:0 0 0 7px rgba(76,175,80,0); } 100% { box-shadow:0 0 0 0 rgba(76,175,80,0); } }
.wish-status.wish { background:rgba(201,163,106,.15); color:#b08850; }

/* bot trap */
.hp-field { position:absolute !important; left:-9999px !important; width:1px; height:1px; opacity:0; }
