/* ============================================
   GENERAL
============================================ */
:root {
  --primary: #b08968;        /* warm brown */
  --primary-dark: #7f5539;
  --accent: #d4a373;         /* soft gold */
  --bg: #fdf6ee;             /* cream */
  --bg-soft: #f6e8d6;
  --text: #3d2c1f;
  --muted: #7a6552;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(60, 40, 20, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.hidden { display: none !important; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow { max-width: 700px; }

/* ============================================
   TYPOGRAPHY
============================================ */
.section-eyebrow {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 4px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 0.95rem;
}

/* ============================================
   BUTTONS
============================================ */
.btn-primary,
.btn-secondary,
.btn-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(176, 137, 104, 0.35);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  color: var(--primary-dark);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: #fff; }

.btn-open {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  padding: 14px 36px;
  font-size: 1rem;
  box-shadow: 0 8px 26px rgba(176, 137, 104, 0.5);
}
.btn-open:hover { transform: translateY(-3px) scale(1.03); }

/* ============================================
   COVER SECTION
============================================ */
.cover {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    linear-gradient(rgba(40, 25, 15, 0.55), rgba(40, 25, 15, 0.7)),
    url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1600&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 32px 20px;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.cover.closed {
  opacity: 0;
  transform: translateY(-30px);
  pointer-events: none;
}

.cover-content { max-width: 600px; }

.cover-eyebrow {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.cover-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.cover-date {
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 36px;
  opacity: 0.9;
}

.cover-guest {
  margin-bottom: 36px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  display: inline-block;
}

.guest-label {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 4px;
}

.guest-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
}

/* ============================================
   HERO
============================================ */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(253, 246, 238, 0.1), rgba(253, 246, 238, 0.95)),
    url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?w=1600&q=80') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.hero-inner { max-width: 640px; }

.hero-eyebrow {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 7vw, 4rem);
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.hero-date {
  letter-spacing: 4px;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.cd-box {
  background: var(--white);
  border: 1px solid var(--bg-soft);
  border-radius: 14px;
  width: 80px;
  padding: 16px 8px;
  box-shadow: var(--shadow);
}

.cd-box span {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.cd-box small {
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-guest {
  background: var(--white);
  border: 1px solid var(--bg-soft);
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.hero-guest p { margin: 0; }
.hero-guest p:first-child { font-size: 0.85rem; color: var(--muted); }
.hero-guest-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-dark);
}

/* ============================================
   QUOTE SECTION
============================================ */
.quote-section {
  background: var(--bg-soft);
  text-align: center;
  padding: 80px 20px;
}

.arabic {
  font-family: 'Amiri', serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--primary-dark);
  margin-bottom: 24px;
  line-height: 2;
}

.quote-text {
  font-style: italic;
  max-width: 700px;
  margin: 0 auto 12px;
  color: var(--text);
}

.quote-source {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ============================================
   COUPLE
============================================ */
.couple { padding: 100px 0; }

.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  margin-top: 50px;
}

.couple-card {
  background: var(--white);
  padding: 30px;
  border-radius: 18px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--bg-soft);
}

.couple-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 4px solid var(--accent);
}

.couple-photo img { width: 100%; height: 100%; object-fit: cover; }

.couple-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.couple-role { font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }

.couple-parents { font-size: 0.95rem; line-height: 1.5; margin-bottom: 16px; }

.couple-and {
  font-family: 'Great Vibes', cursive;
  font-size: 5rem;
  color: var(--accent);
  text-align: center;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.socials a:hover { background: var(--primary); color: #fff; }

/* ============================================
   EVENTS
============================================ */
.events {
  padding: 100px 0;
  background: var(--bg-soft);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.event-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: 18px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}

.event-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.event-date { font-weight: 600; margin-bottom: 4px; }
.event-time { color: var(--muted); margin-bottom: 16px; }
.event-place { font-weight: 600; }
.event-address { color: var(--muted); margin-bottom: 20px; font-size: 0.9rem; }

.event-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.livestream {
  text-align: center;
  background: var(--white);
  padding: 40px 24px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 0 auto;
}

.livestream h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.livestream p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* ============================================
   STORY
============================================ */
.story { padding: 100px 0; }

.timeline {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.timeline-item.reverse { direction: rtl; }
.timeline-item.reverse > * { direction: ltr; }

.timeline-img img {
  border-radius: 18px;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.timeline-text h5 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

/* ============================================
   GALLERY
============================================ */
.gallery {
  padding: 100px 0;
  background: var(--bg-soft);
}

.gallery-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

/* ============================================
   RSVP
============================================ */
.rsvp { padding: 100px 0; }

.rsvp-form, .wish-form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rsvp-form input,
.rsvp-form select,
.wish-form input,
.wish-form textarea {
  padding: 14px 18px;
  border: 1.5px solid var(--bg-soft);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.wish-form input:focus,
.wish-form textarea:focus {
  border-color: var(--primary);
}

.wish-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================
   GIFT
============================================ */
.gift {
  padding: 100px 0;
  background: var(--bg-soft);
}

.gift-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gift-card {
  background: var(--white);
  padding: 30px 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}

.gift-card h5 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.gift-name { color: var(--muted); margin-bottom: 6px; font-size: 0.9rem; }

.gift-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 16px;
  word-break: break-word;
}

/* ============================================
   WISHES
============================================ */
.wishes { padding: 100px 0; }

.wish-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 4px;
}

.wish-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(60, 40, 20, 0.06);
  border: 1px solid var(--bg-soft);
}

.wish-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
  text-transform: uppercase;
}

.wish-body { flex: 1; }

.wish-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 6px;
}

.wish-time { font-size: 0.75rem; color: var(--muted); }

.wish-body p { font-size: 0.92rem; color: var(--text); }

/* ============================================
   CLOSING
============================================ */
.closing {
  padding: 120px 20px;
  text-align: center;
  background:
    linear-gradient(rgba(253, 246, 238, 0.85), rgba(253, 246, 238, 0.95)),
    url('https://images.unsplash.com/photo-1606800052052-a08af7148866?w=1600&q=80') center/cover no-repeat;
}

.closing-text {
  max-width: 600px;
  margin: 0 auto 30px;
  color: var(--text);
}

.closing-sign {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 6px;
}

.closing-name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: var(--primary-dark);
}

/* ============================================
   FOOTER
============================================ */
.footer {
  text-align: center;
  padding: 30px 20px;
  background: var(--primary-dark);
  color: #fff;
}

.footer .small {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 4px;
}

/* ============================================
   MUSIC TOGGLE
============================================ */
.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 8px 24px rgba(176, 137, 104, 0.5);
  transition: transform 0.3s;
}

.music-toggle:hover { transform: scale(1.1); }

.music-toggle.playing i {
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 800px) {
  .couple-grid { grid-template-columns: 1fr; }
  .couple-and { font-size: 4rem; }
  .event-grid { grid-template-columns: 1fr; }
  .timeline-item, .timeline-item.reverse { grid-template-columns: 1fr; direction: ltr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gift-grid { grid-template-columns: 1fr; }
  .cd-box { width: 70px; padding: 12px 6px; }
  .cd-box span { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cd-box { width: 64px; }
  .section-title { font-size: 2rem; }
}
