/* ============================================================
   WEDDING SITE — STYLE.CSS
   Palette: Ivory · Blush · Gold · Sage
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ivory:   #FFFDF7;
  --ivory2:  #F5F0E8;
  --blush:   #E8C4B8;
  --blush2:  #F2D5CB;
  --gold:    #C9A96E;
  --gold2:   #E2C48A;
  --sage:    #8A9E8A;
  --dark:    #1C1C1C;
  --mid:     #3A3530;
  --light-text: #6B6058;

  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans:  'Montserrat', sans-serif;

  --radius: 16px;
  --transition: 0.4s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-sans);
  background: var(--ivory);
  color: var(--mid);
  overflow-x: hidden;
}

/* ── CANVAS ── */
#petals-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: center;
  transition: background var(--transition), backdrop-filter var(--transition);
}
#navbar.scrolled {
  background: rgba(255,253,247,0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
#navbar ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
#navbar a {
  font-family: var(--ff-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  transition: color var(--transition);
}
#navbar.scrolled a { color: var(--mid); }
#navbar a.nav-cta {
  border: 1px solid var(--ivory);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  transition: all var(--transition);
}
#navbar.scrolled a.nav-cta {
  border-color: var(--gold);
  color: var(--gold);
}
#navbar a.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ivory) !important;
}

/* ── Language switcher ── */
.lang-switcher {
  position: absolute;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.lang-btn {
  background: none;
  border: none;
  font-family: var(--ff-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  cursor: pointer;
  padding: 0.3rem 0.4rem;
  border-radius: 4px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
#navbar.scrolled .lang-btn { color: var(--light-text); }
.lang-btn.active {
  color: var(--gold2);
  font-weight: 600;
}
#navbar.scrolled .lang-btn.active { color: var(--gold); }
.lang-btn:hover { color: var(--gold2); }
.lang-sep {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.25);
  line-height: 1;
}
#navbar.scrolled .lang-sep { color: rgba(0,0,0,0.2); }


/* ── HERO ── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(28,20,15,0.55) 0%, rgba(80,50,30,0.35) 100%),
    url('hero.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(201,169,110,0.18) 0%, transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.hero-pre {
  font-family: var(--ff-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--blush2);
}
.hero-content h1 {
  font-family: var(--ff-serif);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.ampersand {
  font-style: italic;
  color: var(--gold2);
}
.hero-date {
  font-family: var(--ff-serif);
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--blush2);
}
.hero-divider {
  font-size: 1.8rem;
  color: var(--gold2);
  opacity: 0.7;
  line-height: 1;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-hint span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}
.scroll-hint span::after {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0%   { opacity: 1; top: 5px; }
  100% { opacity: 0; top: 20px; }
}

/* ── FADE-IN ANIMATIONS ── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.9s forwards;
}
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dark);
  background: linear-gradient(135deg, var(--gold2) 0%, var(--gold) 100%);
  padding: 0.85rem 2.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(201,169,110,0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201,169,110,0.5);
  filter: brightness(1.05);
}
.btn-primary:active { transform: translateY(-1px); }
.btn-full { width: 100%; padding: 1rem; }

/* ── SECTION SHARED ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-label {
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
h2 {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1rem;
}

/* ── COUNTDOWN ── */
#countdown {
  background: linear-gradient(135deg, var(--mid) 0%, var(--dark) 100%);
  padding: 4rem 2rem;
  text-align: center;
}
#countdown .section-label { color: var(--gold2); }
.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}
.count-num {
  font-family: var(--ff-serif);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 300;
  color: var(--ivory);
  line-height: 1;
  letter-spacing: -0.02em;
}
.count-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold2);
  margin-top: 0.4rem;
}
.count-sep {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 1.5rem;
  align-self: center;
}

/* ── HISTORIA ── */
.section-light  { padding: 6rem 0; background: var(--ivory); }
.section-dark   { padding: 6rem 0; background: var(--mid); color: var(--ivory2); }
.section-dark h2 { color: var(--ivory); }

.timeline {
  margin-top: 3.5rem;
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
}
.tl-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.tl-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ivory2);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  position: absolute;
  left: -1.5rem;
  top: 0;
  box-shadow: 0 0 0 6px var(--ivory);
}
.tl-content { padding-left: 2rem; }
.tl-content h3 {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}
.tl-year {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}
.tl-content p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--light-text);
}

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
  backdrop-filter: blur(6px);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: rgba(201,169,110,0.08);
}
.card-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.card h3 {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ivory);
  margin-bottom: 0.25rem;
}
.card-time {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold2);
  margin-bottom: 0.75rem;
  display: block;
}
.card p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.65); }
.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold2);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,169,110,0.3);
  transition: border-color var(--transition), color var(--transition);
}
.card-link:hover { color: var(--gold2); border-color: var(--gold2); }

/* ── DRESS CODE ── */
.dress-code {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(201,169,110,0.2);
}
.palette {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
}
.color-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform var(--transition);
}
.color-swatch:hover { transform: scale(1.2); }
.dress-code > p:last-child {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
}

/* ── RSVP FORM ── */
.rsvp-note {
  font-size: 0.9rem;
  color: var(--light-text);
  margin-bottom: 2.5rem;
  text-align: center;
}
.rsvp-note strong { color: var(--gold); }

#rsvp-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 8px 50px rgba(0,0,0,0.07);
  border: 1px solid rgba(201,169,110,0.15);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-text);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--ff-sans);
  font-size: 0.92rem;
  color: var(--mid);
  background: var(--ivory);
  border: 1.5px solid #E8E0D5;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}
.form-group input.invalid,
.form-group select.invalid {
  border-color: #E07070;
  box-shadow: 0 0 0 3px rgba(224,112,112,0.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }

/* ── FORM MESSAGES ── */
.form-msg {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
}
.form-msg span { font-size: 3rem; display: block; margin-bottom: 1rem; }
.form-msg h3 {
  font-family: var(--ff-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.form-msg p { font-size: 0.9rem; color: var(--light-text); }
.form-msg--success { background: linear-gradient(135deg, #F0FAF0, #E8F5E8); border: 1px solid #A8D5A8; }
.form-msg--error   { background: linear-gradient(135deg, #FFF0F0, #FAE8E8); border: 1px solid #E0A0A0; }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── FOOTER ── */
#footer {
  background: var(--dark);
  color: var(--ivory);
  text-align: center;
  padding: 5rem 2rem 3rem;
}
.footer-ornament {
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 1rem;
}
.footer-names {
  font-family: var(--ff-serif);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 300;
  margin-bottom: 0.5rem;
}
.footer-date {
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--gold2);
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.footer-quote {
  font-family: var(--ff-serif);
  font-size: 1rem;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.footer-credit {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.2);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  #rsvp-form { padding: 1.5rem; }
  .tl-item { flex-direction: column; }
  .count-sep { display: none; }
  .countdown-grid { gap: 0; }
  .count-item { min-width: 70px; }
}
