﻿/* ============================================================
   WEDDING INVITATION — style.css
   Arjun Vinod & Sreeja NS | 12.12.2026
   Minimal Elegant Invitation Aesthetic
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: #FAF7F2;
  color: #2D3748;
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #FAF7F2; }
::-webkit-scrollbar-thumb { background: #D4AF37; border-radius: 2px; }

/* Reveal initial state */
.reveal { opacity: 0; transform: translateY(30px); }

/* ============================================================
   INVITATION OVERLAY
   ============================================================ */
#invitation-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #FAF7F2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.inv-inner {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Decorative corner borders */
.inv-corner {
  position: fixed;
  width: 60px;
  height: 60px;
  border-color: rgba(212,175,55,0.3);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}
.inv-corner-tl { top: 28px; left: 28px; border-top-width: 1px; border-left-width: 1px; }
.inv-corner-tr { top: 28px; right: 28px; border-top-width: 1px; border-right-width: 1px; }
.inv-corner-bl { bottom: 28px; left: 28px; border-bottom-width: 1px; border-left-width: 1px; }
.inv-corner-br { bottom: 28px; right: 28px; border-bottom-width: 1px; border-right-width: 1px; }

/* Envelope */
.inv-envelope {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 5/3.5;
  perspective: 800px;
}

/* Envelope body */
.inv-body {
  position: absolute;
  inset: 0;
  background: #EDE8DF;
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Envelope flap */
.inv-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(175deg, #E8E1D6 0%, #EDE8DF 100%);
  clip-path: polygon(0 0, 100% 0, 50% 90%);
  border-bottom: 1px solid rgba(212,175,55,0.15);
  z-index: 2;
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Invitation card inside envelope */
.inv-card {
  width: 88%;
  height: 85%;
  background: #FFFDF9;
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  margin-bottom: 8%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.inv-card-inner {
  padding: 20px 16px;
}

.inv-card-label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: #D4AF37;
  margin-bottom: 8px;
}

.inv-card-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0;
  color: rgba(212,175,55,0.5);
  font-size: 0.7rem;
}
.inv-card-ornament::before, .inv-card-ornament::after {
  content: "";
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212,175,55,0.4));
}
.inv-card-ornament::after {
  background: linear-gradient(to left, transparent, rgba(212,175,55,0.4));
}

.inv-card-names {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 300;
  color: #2D3748;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.inv-card-names em {
  font-style: italic;
  color: #D4AF37;
  font-size: 0.85em;
}

.inv-card-date {
  font-family: "Montserrat", sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  color: rgba(45,55,72,0.45);
  margin-top: 10px;
}

/* Wax seal */
.inv-seal {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c9943a 0%, #a0782a 60%, #8a6520 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15), inset 0 1px 2px rgba(255,255,255,0.25);
}
.inv-seal span {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.72rem;
  font-style: italic;
  color: #FFFDF9;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* CTA */
.inv-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 0;
  margin-top: 8px;
}
.inv-cta-text {
  font-family: "Montserrat", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(212,175,55,0.7);
  animation: breathe 3s ease-in-out infinite;
}
.inv-cta-icon {
  color: rgba(212,175,55,0.5);
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  background: #D4AF37;
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ============================================================
   TOAST
   ============================================================ */
#toast {
  position: fixed;
  bottom: 40px; right: 28px;
  z-index: 9998;
  background: #2D3748;
  color: #FAF7F2;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-family: "Montserrat", sans-serif;
  border-left: 3px solid #D4AF37;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 280px;
  pointer-events: none;
}
#toast.show { transform: translateX(0); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
#lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s;
}
#lightbox.open { opacity: 1; pointer-events: all; }
#lightbox img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 8px; object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
#lightbox.open img { transform: scale(1); }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.3);
  color: #D4AF37;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s;
}
.lb-btn:hover { background: rgba(212,175,55,0.25); }
#lb-prev { left: 16px; }
#lb-next { right: 16px; }
#lb-close {
  position: absolute; top: 20px; right: 20px;
  color: #fff; cursor: pointer;
  background: rgba(255,255,255,0.08); border: none; border-radius: 50%;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
#lb-close:hover { background: rgba(212,175,55,0.3); }
#lb-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: "Montserrat", sans-serif; font-size: 0.72rem;
  letter-spacing: 0.25em; color: rgba(255,255,255,0.4);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
#mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: rgba(250,247,242,0.98);
  z-index: 950;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
}
#mobile-menu.open { display: flex; }
#mobile-menu .nav-link {
  font-size: 1rem; letter-spacing: 0.3em; color: #2D3748;
}
#mobile-menu .nav-link:hover { color: #D4AF37; }
#mobile-menu #mobile-close { color: #2D3748 !important; }

/* ============================================================
   NAV
   ============================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(250,247,242,0.95);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.4s, padding 0.3s;
  padding: 16px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s, box-shadow 0.4s, padding 0.3s;
}
#navbar.visible {
  opacity: 1;
  pointer-events: all;
}
#navbar.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.04);
  padding: 10px 0;
}
.nav-link {
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(45,55,72,0.6); transition: color 0.2s; font-weight: 500;
  text-decoration: none;
}
.nav-link:hover { color: #D4AF37; }

/* Music toggle */
.music-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(212,175,55,0.65);
  transition: color 0.2s;
  padding: 4px 0;
}
.music-toggle:hover { color: #D4AF37; }
.music-toggle-text {
  font-family: "Montserrat", sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================================
   HERO — Invitation inner page
   ============================================================ */
#hero {
  min-height: 100vh;
  position: relative;
  background: #FAF7F2;
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 120px 0 80px;
}
#petal-canvas { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-content { position: relative; z-index: 1; }

/* Couple names — dark on ivory */
.couple-names {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 300; letter-spacing: 0.03em;
  color: #2D3748; line-height: 1.05;
}
.couple-names .ampersand {
  color: #D4AF37; font-style: italic; font-size: 0.85em;
}

/* Invitation copy */
.inv-copy {
  margin: 0 auto 32px;
}
.inv-copy p {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-style: italic;
  color: rgba(45,55,72,0.55);
  line-height: 2;
  letter-spacing: 0.02em;
}

/* Date & venue details */
.inv-details {
  margin-bottom: 24px;
}
.inv-details-date {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.1rem, 2.8vw, 2.4rem);
  font-weight: 500;
  color: #2D3748;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.inv-details-year {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.95rem, 3.4vw, 2.15rem);
  font-weight: 400;
  color: rgba(45,55,72,0.7);
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.inv-details-time {
  font-family: "Montserrat", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(212,175,55,0.7);
  margin-top: 8px;
}

.inv-venue {
  margin-bottom: 40px;
}
.inv-venue-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 500;
  color: #2D3748;
  letter-spacing: 0.03em;
}
.inv-venue-addr {
  font-family: "Montserrat", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: rgba(45,55,72,0.4);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Ornament */
.ornament { display: flex; align-items: center; gap: 12px; justify-content: center; }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; }
.ornament::before { background: linear-gradient(to right, transparent, rgba(212,175,55,0.4)); }
.ornament::after  { background: linear-gradient(to left,  transparent, rgba(212,175,55,0.4)); }
.ornament span { color: rgba(212,175,55,0.5); font-size: 0.9rem; }

/* Countdown — minimal */
.countdown-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}
.cd-unit { text-align: center; }
.cd-num {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 300;
  color: #2D3748;
  line-height: 1;
  display: block;
  letter-spacing: 0.02em;
}
.cd-lbl {
  font-family: "Montserrat", sans-serif;
  font-size: 0.48rem;
  letter-spacing: 0.3em;
  color: rgba(45,55,72,0.35);
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}
.cd-dot {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  color: rgba(212,175,55,0.35);
  margin-top: -12px;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
section { padding: 96px 0; }
.section-label {
  font-family: "Montserrat", sans-serif; font-size: 0.58rem;
  letter-spacing: 0.4em; color: #D4AF37; text-transform: uppercase;
}
.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 300;
  color: #2D3748; line-height: 1.1;
}
.gold-divider { display: flex; align-items: center; gap: 14px; }
.gold-divider::before, .gold-divider::after { content: ""; flex: 1; height: 1px; }
.gold-divider::before { background: linear-gradient(to right, transparent, rgba(212,175,55,0.35) 50%, transparent); }
.gold-divider::after  { background: linear-gradient(to right, transparent, rgba(212,175,55,0.35) 50%, transparent); }
.gold-divider span { color: rgba(212,175,55,0.45); font-size: 0.8rem; white-space: nowrap; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline-line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(212,175,55,0.3) 20%, rgba(212,175,55,0.3) 80%, transparent);
  transform: translateX(-50%);
}
.photo-card {
  overflow: hidden; border-radius: 12px; cursor: pointer; position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: box-shadow 0.4s;
}
.photo-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.photo-card img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
  display: block;
}
.photo-card:hover img { transform: scale(1.04); }
.photo-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(45,55,72,0.5) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s;
  display: flex; align-items: flex-end; padding: 20px;
}
.photo-card:hover .overlay { opacity: 1; }

/* ============================================================
   EVENT CARDS — Minimal typographic
   ============================================================ */
.event-card {
  background: transparent;
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 12px;
  padding: 36px 32px;
  transition: border-color 0.3s;
}
.event-card:hover { border-color: rgba(212,175,55,0.45); }

.event-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(212,175,55,0.12);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: #D4AF37;
  text-decoration: none;
  transition: color 0.2s;
  padding: 0;
}
.btn-text:hover { color: #b8922e; }

.flow-item { display: flex; gap: 12px; align-items: center; padding: 5px 0; }
.flow-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(212,175,55,0.5); flex-shrink: 0; }

/* ============================================================
   GALLERY
   ============================================================ */
#gallery-grid { columns: 2; column-gap: 12px; }
@media (min-width: 768px)  { #gallery-grid { columns: 3; } }
@media (min-width: 1024px) { #gallery-grid { columns: 4; } }

.gallery-item {
  break-inside: avoid; margin-bottom: 12px;
  border-radius: 8px; overflow: hidden; cursor: pointer; position: relative;
}
.gallery-item img {
  width: 100%; display: block; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-overlay {
  position: absolute; inset: 0; background: rgba(45,55,72,0.35);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item.hidden-item { display: none; }

.filter-btn {
  padding: 7px 18px; border-radius: 50px;
  font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  font-family: "Montserrat", sans-serif;
  border: 1px solid rgba(212,175,55,0.35); color: rgba(212,175,55,0.7);
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
  background: transparent;
}
.filter-btn.active, .filter-btn:hover {
  background: rgba(212,175,55,0.1); color: #D4AF37; border-color: #D4AF37;
}

/* ============================================================
   GUESTBOOK
   ============================================================ */
.wish-form-wrap {
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 12px;
  padding: 32px 28px;
  background: transparent;
}

.form-label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(45,55,72,0.45);
  margin-bottom: 8px;
}
.form-input {
  width: 100%; padding: 12px 16px;
  border: 1px solid rgba(212,175,55,0.2); border-radius: 6px;
  font-family: "Montserrat", sans-serif; font-size: 0.82rem;
  color: #2D3748; background: #FFFDF9;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-input:focus {
  border-color: rgba(212,175,55,0.5);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.08);
}
textarea.form-input { resize: vertical; min-height: 90px; }

.wish-grid { columns: 1; column-gap: 16px; }
@media (min-width: 640px)  { .wish-grid { columns: 2; } }
@media (min-width: 1024px) { .wish-grid { columns: 3; } }

.wish-card {
  background: transparent; border-radius: 10px; padding: 22px 20px;
  border: 1px solid rgba(212,175,55,0.15);
  position: relative; break-inside: avoid; margin-bottom: 16px;
  transition: border-color 0.25s;
  animation: cardIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
.wish-card:hover { border-color: rgba(212,175,55,0.35); }
.wish-card::before {
  content: "\201C";
  position: absolute; top: 8px; left: 14px;
  font-family: "Cormorant Garamond", serif; font-size: 4rem;
  color: rgba(212,175,55,0.08); line-height: 1; pointer-events: none;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item { border-bottom: 1px solid rgba(212,175,55,0.15); }
.faq-question {
  width: 100%; text-align: left; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; background: none; border: none;
  font-family: "Cormorant Garamond", serif; font-size: 1.12rem; font-weight: 400;
  color: #2D3748; transition: color 0.2s;
}
.faq-question:hover { color: #D4AF37; }
.faq-icon { transition: transform 0.3s; color: rgba(212,175,55,0.5); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.4s; }
.faq-item.open .faq-answer { max-height: 320px; padding-bottom: 20px; }
.faq-answer p { font-size: 0.85rem; line-height: 1.85; color: #718096; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #2D3748;
  position: relative; overflow: hidden;
}
.monogram {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem); font-style: italic;
  color: rgba(212,175,55,0.6); letter-spacing: -0.02em; line-height: 1;
}
