﻿/* ── CORPORATE-4 · GRAND OPENING · Light + Navy + Gold ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --light:  #f8fafc;
  --white:  #ffffff;
  --navy:   #1a3055;
  --dark:   #0d1e35;
  --gold:   #c9a84c;
  --gold2:  #e0c060;
  --text:   #3a5070;
  --muted:  #7a9aaa;
  --border: rgba(26,48,85,.12);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--light); color: var(--navy); font-family: 'Inter', sans-serif; font-weight: 300; overflow-x: hidden; }

/* ── SPLASH ── */

/* White/pearl canvas — light theme */
#spl {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--light);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden;
  /* Exit: bright flash blur scale — like a grand reveal */
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1),
              transform 0.9s cubic-bezier(0.4,0,0.2,1),
              filter 0.9s ease;
}
#spl.spl-out {
  opacity: 0;
  transform: scale(1.15);
  filter: blur(12px) brightness(1.6);
  pointer-events: none;
}

/* Expanding spotlight glow from center — like a light turning on */
.spl-spotlight {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 45% at 50% 50%,
    rgba(201,168,76,0.18) 0%,
    rgba(201,168,76,0.06) 40%,
    transparent 70%);
  animation: spotlightOn 2.5s ease-out both, spotlightBreath 5s ease-in-out 2.5s infinite;
}
@keyframes spotlightOn {
  0%   { opacity: 0; transform: scale(0.3); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes spotlightBreath {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.12); }
}

/* Particle container */
#spl-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }

/* Confetti particles — colorful rectangles rotating and falling */
.spl-pt {
  position: absolute;
  width: var(--pw, 4px); height: var(--ph, 12px);
  background: var(--pc, #c9a84c);
  border-radius: 1px;
  opacity: 0;
  transform-origin: center center;
  animation: confettiFall var(--d, 5s) var(--dl, 0s) ease-in infinite;
}
@keyframes confettiFall {
  0%   { opacity: 0; transform: translateY(-20px) rotate(var(--r, 0deg)); }
  8%   { opacity: 0.85; }
  88%  { opacity: 0.4; }
  100% {
    opacity: 0;
    transform: translateY(105vh) rotate(calc(var(--r, 0deg) + var(--rs, 360deg)));
  }
}

/* ── Decorative star badge */
.spl-star-badge {
  margin-bottom: 1.8rem; z-index: 2;
  animation: starBadgeIn 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.4s both;
}
@keyframes starBadgeIn {
  from { transform: scale(0) rotate(-180deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}
.spl-star-icon {
  display: block; font-size: 28px; color: var(--gold);
  animation: starPulse 3s ease-in-out 1.2s infinite;
}
@keyframes starPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%       { transform: scale(1.15); opacity: 1; }
}

/* ── Content */
.spl-inner {
  position: relative; z-index: 2; text-align: center; padding: 0 2rem;
}

.spl-eyebrow {
  font-size: clamp(9px,1.4vw,11px); letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.4rem;
  animation: splFadeUp 0.8s ease 0.8s both;
}

/* Title: scale up from slight blur — dramatic reveal */
.spl-name {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(2.5rem,7vw,5rem); color: var(--navy);
  letter-spacing: 0.04em; text-align: center; line-height: 1.1;
  animation: titleBlurIn 1.1s cubic-bezier(0.16,1,0.3,1) 1.1s both;
}
@keyframes titleBlurIn {
  from { opacity: 0; transform: scale(0.85); filter: blur(8px); }
  to   { opacity: 1; transform: scale(1);    filter: blur(0); }
}

.spl-line {
  width: 60px; height: 2px; background: var(--gold);
  margin: 1.5rem auto; border-radius: 1px;
  animation: splFadeUp 0.7s ease 1.8s both;
}

.spl-date {
  font-size: clamp(10px,1.5vw,12px); letter-spacing: 0.3em;
  color: var(--muted);
  animation: splFadeUp 0.7s ease 2s both;
}

/* Shared upward fade */
@keyframes splFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CTA button */
.spl-btn {
  margin-top: 44px; z-index: 10; padding: 13px 36px; border-radius: 40px;
  border: 1px solid rgba(26,48,85,0.35); background: transparent;
  color: var(--navy); font-family: 'Inter', sans-serif; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer;
  transition: background 0.3s, border-color 0.3s;

}
.spl-btn:hover { background: rgba(26,48,85,0.07); border-color: rgba(26,48,85,0.6); }
@keyframes splFadeIn { from { opacity:0; transform: translateX(-50%) translateY(6px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
@keyframes splHintBreath {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 0.75; }
}

/* ── NAV ── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.2rem 3rem; display: flex; align-items: center; justify-content: space-between;
  transition: background .4s, padding .4s, box-shadow .4s;
}
#site-nav.scrolled { background: rgba(248,250,252,.95); backdrop-filter: blur(12px); padding: .9rem 3rem; box-shadow: 0 1px 20px rgba(26,48,85,.08); }
#nav-brand { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 1.25rem; letter-spacing: .12em; color: var(--navy); }
.nav-logo   { height: 32px; width: auto; opacity: .8; }

/* ── HERO ── */
#hero {
  min-height: 100vh; position: relative; display: flex; align-items: center; justify-content: center;
  background: var(--light);
}
#hero-bg {
  position: absolute; inset: 0;
  background-image: url('assets/hero.jpg');
  background-size: cover; background-position: center;
  opacity: 1;
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 2rem; max-width: 820px; }
.hero-tag     { display: inline-block; background: var(--gold); color: #0a0800; font-size: 9px; letter-spacing: .45em; text-transform: uppercase; padding: .4rem 1.2rem; border-radius: 20px; margin-bottom: 2rem; font-weight: 500; }
.hero-eyebrow { font-size: clamp(9px,1.4vw,11px); letter-spacing: .45em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; }
.hero-name    { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(3rem,7vw,5.5rem); letter-spacing: .04em; line-height: 1.05; color: var(--navy); }
.hero-line    { width: 60px; height: 2px; background: var(--gold); margin: 1.8rem auto; border-radius: 1px; }
.hero-meta    { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; }
.hero-meta-item { font-size: clamp(10px,1.4vw,12px); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero-subtitle { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(1rem,2vw,1.25rem); color: var(--gold); margin-top: 1rem; opacity: .9; }

/* ── COUNTDOWN ── */
#countdown-section { padding: 5rem 2rem; background: var(--white); text-align: center; display: none; box-shadow: inset 0 1px 0 var(--border), inset 0 -1px 0 var(--border); }
.countdown-label { font-size: 10px; letter-spacing: .45em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.countdown-date  { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--navy); margin-bottom: 3rem; }
.countdown-grid  { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; }
.countdown-unit  { text-align: center; min-width: 80px; }
.countdown-num   { font-family: 'Cormorant Garamond', serif; font-size: clamp(3rem,6vw,4.5rem); font-weight: 300; color: var(--navy); line-height: 1; }
.countdown-unit-label { font-size: 9px; letter-spacing: .35em; text-transform: uppercase; color: var(--muted); margin-top: .5rem; }
.countdown-sep   { font-size: 2rem; color: var(--gold); align-self: center; padding-bottom: .5rem; opacity: .5; }

/* ── STORY ── */
#story-section { padding: 6rem 2rem; background: var(--light); }
.section-inner  { max-width: 900px; margin: 0 auto; }
.section-eyebrow { font-size: 10px; letter-spacing: .5em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.section-title  { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2rem,4.5vw,3rem); color: var(--navy); margin-bottom: 2.5rem; }
.story-text { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(1.1rem,2.2vw,1.35rem); line-height: 1.9; color: var(--text); max-width: 700px; }

/* ── DETAILS ── */
#details-section { padding: 5rem 2rem; background: var(--white); }
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.detail-card { background: var(--light); border: 1px solid var(--border); border-radius: 14px; padding: 2rem 2.2rem; transition: border-color .3s, box-shadow .3s; }
.detail-card:hover { border-color: rgba(201,168,76,.35); box-shadow: 0 4px 20px rgba(201,168,76,.08); }
.detail-card-label { font-size: 9px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.detail-card-value { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--navy); letter-spacing: .05em; }
#dresscode-card { display: none; }

/* ── GALLERY ── */
#gallery-section { padding: 5rem 2rem; background: var(--light); display: none; }
.gallery-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 2rem; }
.gallery-bento-item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.gallery-bento-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-bento-item:hover img { transform: scale(1.05); }
.gallery-bento-item__overlay { position: absolute; inset: 0; background: rgba(13,30,53,.15); }
#accordion-two { display: none; gap: 8px; margin-top: 2rem; min-height: 320px; }
.accordion-item { position: relative; flex: 1; border-radius: 10px; overflow: hidden; cursor: pointer; transition: flex .5s cubic-bezier(.4,0,.2,1); min-width: 60px; }
.accordion-item.active { flex: 4; }
.accordion-item img { width: 100%; height: 100%; object-fit: cover; }
.accordion-item__overlay { position: absolute; inset: 0; background: rgba(13,30,53,.2); }

/* ── LOCATION ── */
#location-section { padding: 5rem 2rem; background: var(--white); }
.location-card { background: var(--light); border: 1px solid var(--border); border-radius: 14px; padding: 2rem 2.4rem; margin-bottom: 1.5rem; }
.loc-label  { font-size: 9px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.loc-name   { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--navy); margin-bottom: .3rem; }
.loc-detail { font-size: 13px; color: var(--muted); margin-bottom: .2rem; }
.loc-link   { display: inline-block; margin-top: 1rem; font-size: 12px; letter-spacing: .12em; color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201,168,76,.4); padding-bottom: 2px; }
.map-frame  { width: 100%; height: 260px; border-radius: 12px; border: none; margin-top: 1rem; display: block; }

/* ── RSVP ── */
#rsvp-section { padding: 6rem 2rem; text-align: center; background: var(--navy); }
#rsvp-section .section-eyebrow { color: var(--gold); }
#rsvp-section .section-title { color: var(--white); }
.rsvp-text { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(1.05rem,2.2vw,1.3rem); color: rgba(248,250,252,.7); max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.85; }
.rsvp-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-rsvp-da {
  padding: .95rem 2.8rem; border-radius: 40px; text-decoration: none; font-size: 13px; letter-spacing: .08em;
  background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #0a0800; font-weight: 500;
  transition: transform .2s, box-shadow .2s;
}
.btn-rsvp-nu {
  padding: .95rem 2.8rem; border-radius: 40px; text-decoration: none; font-size: 13px; letter-spacing: .08em;
  border: 1px solid rgba(248,250,252,.3); color: rgba(248,250,252,.7); transition: border-color .2s;
}
.btn-rsvp-da:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,.3); }
.btn-rsvp-nu:hover { border-color: rgba(248,250,252,.6); color: var(--white); }

/* ── FOOTER ── */
footer { padding: 3rem 2rem; text-align: center; background: var(--dark); }
.footer-logo { height: 36px; width: auto; margin-bottom: .8rem; opacity: .7; }
.footer-org  { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: rgba(248,250,252,.6); margin-bottom: .4rem; }
.footer-sig  { font-size: 11px; letter-spacing: .1em; color: rgba(248,250,252,.3); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 600px) {
  #site-nav { padding: 1rem 1.5rem; }
  .details-grid { grid-template-columns: 1fr 1fr; }
  .gallery-bento { grid-template-columns: repeat(2, 1fr); }
  /* Hero: imaginea completa pe mobile */
  #hero { min-height: unset; aspect-ratio: 16/9; }
  #hero-bg { background-size: contain; background-position: center; background-color: var(--light); }
}

/* safe-area footer — iOS Safari toolbar + home indicator */
.footer, footer { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 768px) {
  .footer, footer { padding-bottom: calc(200px + env(safe-area-inset-bottom, 0px)) !important; }
}
/* ── LUX-NAV ── */
.lux-nav {
  width: 100%;
  background: var(--light);
  position: sticky;
  top: 0;
  z-index: 200;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.lux-nav::-webkit-scrollbar { display: none; }
.lux-nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  min-height: 76px;
  white-space: nowrap;
}
.lux-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 20px;
  text-decoration: none;
  color: rgba(61,40,16,0.55);
  transition: color 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-size: 0.56rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.lux-nav__item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  transition: transform 0.25s ease;
}
.lux-nav__item:hover,
.lux-nav__item.lux-active { color: rgba(61,40,16,1); }
.lux-nav__item:hover svg { transform: translateY(-2px); }
.lux-nav__sep {
  width: 1px;
  height: 20px;
  background: rgba(61,40,16,0.22);
  flex-shrink: 0;
  align-self: center;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 480px) {
  .lux-nav__item { padding: 12px 13px; font-size: 0.52rem; letter-spacing: 1.5px; }
  .lux-nav__item svg { width: 20px; height: 20px; }
}


/* Logo footer responsive */
.ppv-footer-logo { height: 44px !important; }
@media (max-width: 600px) { .ppv-footer-logo { height: 64px !important; } }


/* Logo responsive mobile bump */
@media (max-width: 600px) {
  .nav-logo { height: 48px !important; }
  .footer-logo { height: 56px !important; }
}
