/* ===================================================
   WEDDING INVITATION — Thays & Rafael (Rose Palette)
   styles.css
   =================================================== */

/* ── Root Variables (Rosy & Elegant Palette) ── */
:root {
  --rose-primary: #8a3b4e;
  --rose-dark: #4a1926;
  --rose-light: #d896a4;
  --rose-soft: #f9ecef;
  --rose-accent: #c46b7e;
  --gold: #d4af37;
  --gold-light: #f3e5ab;
  --gold-dark: #997a15;
  --cream: #fffafb;
  --text-dark: #361720;
  --text-light: #fff5f7;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Montserrat', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--rose-dark); color: var(--text-dark); }

/* ════════════════════════════════════════
   INTRO / VIDEO SCREEN
════════════════════════════════════════ */
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--rose-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

.intro-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Start Overlay (Cover before video plays) ── */
.start-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: radial-gradient(circle at center, #6b2635 0%, #38111b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.start-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.start-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Seal Button */
.seal-btn {
  position: relative;
  width: min(35vw, 150px);
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.seal-btn:hover {
  transform: scale(1.1);
}

.seal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
}

/* Curved text around seal */
.curved-text-svg {
  position: absolute;
  inset: -28%;
  width: 156%;
  height: 156%;
  pointer-events: none;
  animation: spin-text 14s linear infinite;
}

.curved-text {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 2px;
  fill: var(--gold-light);
  text-transform: uppercase;
}

@keyframes spin-text {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Intro Video ── */
.intro-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100vw;
  max-height: 100vh;
}

/* ════════════════════════════════════════
   INVITATION PAGE
════════════════════════════════════════ */
.invitation-page {
  position: relative;
  z-index: 1;
  background: var(--cream);
  min-height: 100vh;
  animation: page-fade-in 1.2s ease both;
}

@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── HERO SECTION ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(138,59,78,0.9) 0%, rgba(74,25,38,0.95) 100%),
    linear-gradient(135deg, var(--rose-dark) 0%, var(--rose-primary) 50%, var(--rose-dark) 100%);
  padding: 4rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Crect width='6' height='6' fill='none'/%3E%3Crect width='1' height='1' fill='rgba(255,255,255,0.03)' x='2' y='2'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  width: 100%;
}

.hero-blessing {
  font-family: var(--font-sans);
  font-size: clamp(0.68rem, 2vw, 0.85rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.logo-svg {
  width: min(75vw, 340px);
  filter: brightness(0) invert(1) sepia(0.3) hue-rotate(-30deg) saturate(1.2);
  opacity: 0.95;
}

.hero-invite-text {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3.2vw, 1.3rem);
  font-style: italic;
  color: var(--rose-soft);
  opacity: 0.85;
  margin-bottom: 0.25rem;
}

.hero-title {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 8.5vw, 4.5rem);
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 25px rgba(212,175,55,0.3);
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.8rem;
}

.divider-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.divider-diamond {
  color: var(--gold-light);
  font-size: 0.65rem;
}

.hero-date-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.date-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.date-label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.8;
}

.date-value {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  color: var(--text-light);
  white-space: nowrap;
}

.date-sep {
  color: var(--gold-light);
  opacity: 0.4;
  font-size: 1.2rem;
}

/* ── VERSE SECTION ── */
.verse-section {
  background: var(--rose-dark);
  padding: 4.5rem 2rem;
  text-align: center;
}

.verse-container { max-width: 620px; margin: 0 auto; }

.verse-ornament {
  font-size: 1.3rem;
  color: var(--gold-light);
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

.verse-text {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 3.2vw, 1.4rem);
  font-style: italic;
  font-weight: 300;
  color: var(--rose-soft);
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

.verse-ref {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  opacity: 0.8;
  text-transform: uppercase;
}

/* ── COUPLE PHOTO SECTION ── */
.couple-section {
  background: var(--rose-soft);
  padding: 4.5rem 1.5rem;
  display: flex;
  justify-content: center;
}

.couple-frame {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.couple-photo {
  width: 100%;
  border-radius: 8px;
  display: block;
  box-shadow: 0 20px 50px rgba(74,25,38,0.2);
  border: 6px solid #fff;
  outline: 1px solid var(--rose-light);
  outline-offset: 6px;
}

.couple-caption {
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.couple-name {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 7.5vw, 3.2rem);
  color: var(--rose-primary);
}

.couple-amp {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: var(--gold-dark);
  font-style: italic;
}

/* ── ACTION CARDS SECTION ── */
.cards-section {
  background: var(--rose-dark);
  padding: 4rem 1.5rem;
  text-align: center;
}

.cards-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 2.2rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  max-width: 540px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(4, 1fr); max-width: 720px; }
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 1.5rem 0.9rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s, transform 0.25s, border-color 0.3s;
}

.action-card:hover {
  background: rgba(212,175,55,0.15);
  border-color: var(--gold-light);
  transform: translateY(-4px);
}

.card-icon { font-size: 1.9rem; }

.card-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  opacity: 0.9;
  text-align: center;
}

/* ── GIFT LIST SECTION ── */
.gifts-section {
  background: var(--cream);
  padding: 4.5rem 1.5rem;
}

.gifts-header {
  text-align: center;
  margin-bottom: 2.8rem;
}

.gifts-ornament {
  font-size: 2.2rem;
  color: var(--rose-primary);
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

.gifts-title {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 6.5vw, 3.2rem);
  color: var(--rose-dark);
  margin-bottom: 0.4rem;
}

.gifts-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2.6vw, 1.1rem);
  font-style: italic;
  color: #7a505a;
}

.gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.gift-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(138,59,78,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--rose-soft);
}

.gift-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(138,59,78,0.15);
}

.gift-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fdf5f6;
}

.gift-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gift-card:hover .gift-img { transform: scale(1.06); }

.gift-info {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.gift-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rose-dark);
  line-height: 1.4;
}

.gift-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--rose-primary);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  text-align: center;
  transition: background 0.25s;
}

.gift-btn:hover {
  background: var(--rose-dark);
}

/* ── PIX SECTION ── */
.pix-section {
  background: var(--rose-dark);
  padding: 4.5rem 1.5rem;
}

.pix-container { max-width: 520px; margin: 0 auto; text-align: center; }

.pix-ornament {
  font-size: 2rem;
  color: var(--rose-light);
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.pix-title {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5.5vw, 2.8rem);
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.pix-subtitle {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--rose-soft);
  opacity: 0.85;
  margin-bottom: 2.2rem;
}

.pix-card {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 12px;
  padding: 1.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pix-qr {
  width: 140px;
  height: 140px;
  border-radius: 10px;
  border: 3px solid rgba(212,175,55,0.4);
}

.pix-info {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pix-key-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.8;
}

.pix-key {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-light);
}

.pix-copy-btn {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.55rem 1.2rem;
  background: var(--rose-primary);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s;
}

.pix-copy-btn:hover { background: var(--rose-accent); }
.pix-copy-btn.copied { background: #388e3c; }

/* ── FOOTER ── */
.invitation-footer {
  background: #2a0b13;
  text-align: center;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo {
  width: min(55vw, 220px);
  filter: brightness(0) invert(1) sepia(0.3) hue-rotate(-30deg);
  opacity: 0.7;
}

.footer-msg {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--rose-soft);
  opacity: 0.7;
}

.footer-date {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  opacity: 0.5;
}

/* ── Scroll Animations ── */
@keyframes slide-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: slide-up 0.7s ease both;
}

.hidden { display: none !important; }
