/* ===================================================
   DANIELE & FRANCESCA — STYLE.CSS
   Tema: Beige chiaro, navy, floreale acquarello
   =================================================== */

/* ---------- RESET & VARIABLES ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette estratta dal sito originale */
  --bg:         #f3ecdf;        /* Beige chiaro */
  --bg-light:   #faf6ee;        /* Beige chiarissimo */
  --navy:       #1a2a4a;        /* Blu navy scuro (testi principali) */
  --navy-mid:   #1e3060;        /* Navy medio (icone) */
  --navy-lt:    #2d4070;        /* Navy chiaro */
  --accent:     #c26060;        /* Rosso corallo papavero */
  --accent-lt:  #e08080;        /* Corallo chiaro */
  --lilac:      #9b7fb8;        /* Lilla fiori */
  --sage:       #7a9b6e;        /* Verde salvia foglie */
  --peach:      #e8b090;        /* Pesca bouquet */
  --white:      #ffffff;
  --bg-gradient: linear-gradient(to right, rgba(222,196,150,0) 0%, rgba(222,196,150,.25) 50%, rgba(222,196,150,0) 100%), linear-gradient(#ffffff, #ffffff);
  --text:       #2a2a3a;        /* Testo corpo */
  --text-muted: #6b7080;        /* Testo secondario */
  --border:     rgba(26,42,74,.12);

  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans:  'Lato', 'Helvetica Neue', Arial, sans-serif;

  --shadow-sm:  0 2px 12px rgba(26,42,74,.08);
  --shadow-md:  0 8px 32px rgba(26,42,74,.12);
  --shadow-lg:  0 20px 60px rgba(26,42,74,.18);

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-sans);
  background: var(--bg-gradient) fixed;
  background-color: #ffffff;
  color: var(--text);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--navy-lt); border-radius: 3px; }

/* ===================================================
   ENVELOPE SCREEN
   =================================================== */
#envelope-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .8s ease, visibility .8s ease;
  overflow: hidden;
}
#envelope-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('card-texture.jpg');
  background-repeat: repeat;
  background-size: 300px 300px;
  opacity: 0.25; /* Opacità al 25% nello sfondo della busta */
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
#envelope-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Falling petals */
.env-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -50px;
  opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(214, 120, 150, .25));
  animation: sakuraFall linear forwards, sakuraSway ease-in-out infinite alternate;
}
.petal svg { width: 100%; height: 100%; display: block; }
@keyframes sakuraFall {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  8%   { opacity: .95; }
  90%  { opacity: .85; }
  100% { transform: translateY(108vh) translateX(var(--drift)) rotate(var(--spin)); opacity: 0; }
}
@keyframes sakuraSway {
  0%   { margin-left: -22px; }
  100% { margin-left: 22px; }
}

/* Bouquet on envelope screen */
.envelope-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  position: relative;
  z-index: 5;
}

/* Envelope Container - Più grande e realistica */
.envelope {
  position: relative;
  width: min(580px, 92vw);
  height: min(370px, 60vw);
  background: transparent;
  filter: drop-shadow(0 25px 60px rgba(26, 42, 74, 0.22));
  perspective: 1200px;
  cursor: pointer;
  transition: transform 0.4s ease;
  user-select: none;
}
.envelope:hover {
  transform: translateY(-4px) scale(1.01);
}

/* 1. Interno/Fondo della busta (Busta interna) */
.envelope-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #efe5d1 0%, #dccdb0 100%);
  border-radius: 6px;
  z-index: 1;
  box-shadow: inset 0 2px 8px rgba(26, 42, 74, 0.1);
  overflow: hidden;
}
.envelope-back::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('envelope-texture.jpg');
  background-repeat: repeat;
  background-size: 300px 200px;
  opacity: 0.50; /* Opacità al 50% per la busta interna */
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* 2. Biglietto/Invito all'interno della busta */
.envelope-card {
  position: absolute;
  left: 6%;
  width: 88%;
  top: 15px;
  bottom: 15px;
  background-color: #fffdf8;
  border-radius: 6px;
  z-index: 3;
  box-shadow: 0 4px 20px rgba(26, 42, 74, 0.1);
  border: 1px solid rgba(26, 42, 74, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 20px;
  transform: translateY(0);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.9s ease;
  pointer-events: none;
  overflow: hidden;
}
.envelope.opened .envelope-card,
.envelope-card.extracted {
  transform: translateY(-160px);
  box-shadow: 0 16px 40px rgba(26, 42, 74, 0.18);
}

/* Trama del foglio con opacità al 30% */
.envelope-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('card-texture.jpg');
  background-repeat: repeat;
  background-size: 280px 280px;
  opacity: 0.30;
  pointer-events: none;
  z-index: 0;
}
.envelope-card > * { position: relative; z-index: 1; }

/* Illustrazione sulla cartolina */
.card-bouquet {
  width: min(210px, 42vw);
  height: 130px;
  object-fit: contain;
  margin-bottom: 6px;
  background: transparent;
  mix-blend-mode: multiply;
}

.letter-eyebrow {
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy-lt);
  margin-bottom: 3px;
}
.letter-names {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.8vw, 2.2rem);
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 4px;
}
.letter-divider {
  width: 40px;
  height: 1.5px;
  background: var(--accent);
  opacity: 0.5;
  margin: 3px auto 6px;
  border-radius: 2px;
}
.letter-date {
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  color: var(--navy-lt);
  font-weight: 400;
}
.letter-location {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 3. Tasca frontale della busta */
.envelope-pocket {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}
.pocket-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* 4. Patta superiore rotante */
.top-flap-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  transform-origin: top center;
  transform: rotateX(0deg);
  z-index: 8;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1), z-index 0s 0.35s;
  pointer-events: none;
}
.flap-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 6px 12px rgba(26, 42, 74, 0.15));
}

.envelope.opened .top-flap-wrap,
.top-flap-wrap.opened {
  transform: rotateX(180deg);
  z-index: 2;
}

/* 5. Sigillo in ceralacca al centro - Più grande e realistico */
.wax-seal {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  filter: drop-shadow(0 6px 14px rgba(45, 4, 7, 0.45));
  animation: sealPulse 3s ease-in-out infinite;
}
.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.08);
}
.envelope.opened .wax-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  pointer-events: none;
}
@keyframes sealPulse {
  0%, 100% { filter: drop-shadow(0 6px 14px rgba(45, 4, 7, 0.45)); }
  50%       { filter: drop-shadow(0 8px 22px rgba(200, 30, 40, 0.6)); }
}
.wax-seal-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Open button */
.open-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: var(--ff-sans);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(26,42,74,.3);
  margin-top: 10px;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  animation: btnPulse 2.5s ease-in-out infinite;
}
.open-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(26,42,74,.45);
}
.open-btn:active { transform: scale(.97); }
.open-btn.hide { opacity: 0; pointer-events: none; }
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(26,42,74,.3); }
  50%       { box-shadow: 0 8px 40px rgba(26,42,74,.5); }
}

/* Adattamento responsive per schermi piccoli */
@media (max-width: 640px) {
  .envelope {
    width: 90vw;
    height: 58vw;
  }
  .card-bouquet {
    max-height: 90px;
    width: 130px;
  }
  .letter-names {
    font-size: 1.45rem;
  }
  .letter-eyebrow {
    font-size: 0.65rem;
  }
  .letter-date {
    font-size: 0.76rem;
  }
  .letter-location {
    font-size: 0.7rem;
  }
  .wax-seal {
    width: 76px;
    height: 76px;
  }
  .envelope.opened .envelope-card,
  .envelope-card.extracted {
    transform: translateY(-115px);
  }
}

/* ===================================================
   UTILITIES
   =================================================== */
.hidden { display: none !important; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(243,236,223,.0);
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(243,236,223,.96);
  backdrop-filter: blur(14px);
  padding: 12px 40px;
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--navy);
  letter-spacing: .03em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color var(--transition);
  opacity: .75;
}
.nav-links a:hover { opacity: 1; color: var(--accent); }

.btn-nav {
  padding: 8px 20px;
  border: 1.5px solid var(--navy) !important;
  border-radius: 50px;
  opacity: 1 !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  transition: background var(--transition), color var(--transition) !important;
}
.btn-nav:hover {
  background: var(--navy) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================
   HERO
   =================================================== */
.hero {
  min-height: 100vh;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle background circles */
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,127,184,.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -100px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,155,110,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-bouquet-wrap {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  display: flex;
  justify-content: center;
}
.hero-bouquet {
  width: min(440px, 82vw);
  object-fit: contain;
  background: transparent;
  mix-blend-mode: multiply;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px 24px 60px;
  max-width: 760px;
}

.hero-eyebrow {
  font-family: var(--ff-sans);
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--navy-lt);
  margin-bottom: 20px;
  opacity: .8;
}

.hero-title {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.05;
  margin-bottom: 28px;
}

.hero-date-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 36px;
  background: rgba(26,42,74,.04);
  border-radius: var(--radius);
  padding: 20px 36px;
  border: 1px solid var(--border);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 36px;
}
.hero-day-num {
  font-family: var(--ff-serif);
  font-size: clamp(3.5rem, 8vw, 5rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}
.hero-date-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  font-family: var(--ff-serif);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--navy);
  font-style: italic;
}
.hero-date-detail .accent {
  color: var(--accent);
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  font-weight: 600;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}
.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--navy);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 70px;
}
.countdown-block span {
  font-family: var(--ff-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}
.countdown-block label {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-top: 6px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: var(--ff-sans);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(26,42,74,.3);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(26,42,74,.45);
  background: var(--navy-mid);
}
.btn-primary.btn-large { padding: 18px 52px; font-size: .95rem; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 50px;
  font-family: var(--ff-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* Hero quick links */
.hero-links {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 0 24px 80px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.hero-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  min-width: 180px;
  flex: 1;
  max-width: 240px;
  transition: transform var(--transition), box-shadow var(--transition);
  color: var(--navy);
}
.hero-link-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.hero-link-card p {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-align: center;
  color: var(--navy);
}
.hlc-icon { line-height: 0; }

/* ===================================================
   SECTIONS BASE
   =================================================== */
.section { padding: 90px 0; position: relative; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.section-header { text-align: center; margin-bottom: 60px; }

.section-eyebrow {
  display: block;
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--navy);
  margin-bottom: 18px;
}
.section-divider {
  width: 50px; height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--lilac));
  margin: 0 auto;
  border-radius: 2px;
}

/* Bouquet decoration on each section */
.section-bouquet {
  display: flex;
  justify-content: center;
  margin-bottom: -40px;
  position: relative;
  z-index: 2;
}
.section-bouquet img {
  width: min(240px, 50vw);
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(26,42,74,.08));
}

/* ===================================================
   LOCATION
   =================================================== */
.location-section { background: transparent; }

.location-cards {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 800px;
  margin: 0 auto 48px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.loc-card {
  flex: 1;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: background var(--transition);
}
.loc-card:hover { background: var(--bg-light); }

.loc-divider-flower {
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--border) 20%, var(--border) 80%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.loc-icon { margin-bottom: 6px; }
.loc-card h3 {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.loc-name { font-weight: 700; color: var(--navy); font-size: .95rem; }
.loc-address { font-size: .875rem; color: var(--text-muted); }
.loc-time {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  color: var(--accent);
  font-style: italic;
  margin: 4px 0 12px;
}

/* Map embed placeholder */
.map-embed {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.map-inner {
  height: 220px;
  background: linear-gradient(135deg, var(--bg) 0%, #e8dcc6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.map-pin-big { font-size: 2.5rem; }
.map-label {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--navy);
}
.map-sub { font-size: .85rem; color: var(--text-muted); }
.map-link-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 9px 24px;
  border: 1.5px solid var(--navy);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--navy);
  transition: background var(--transition), color var(--transition);
}
.map-link-pill:hover { background: var(--navy); color: var(--white); }

/* ===================================================
   PROGRAMMA
   =================================================== */
.programma-section { background: transparent; }

.programma-timeline {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prog-item {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  width: 100%;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.prog-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.prog-icon { flex-shrink: 0; }

.prog-text { flex: 1; }
.prog-time {
  display: block;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 4px;
}
.prog-text h3 {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.prog-text p { font-size: .875rem; color: var(--text-muted); line-height: 1.5; }

.prog-connector {
  width: 2px;
  height: 36px;
  background: linear-gradient(to bottom, var(--border), var(--navy-lt), var(--border));
  flex-shrink: 0;
  margin: 4px 0;
  align-self: center;
}

/* ===================================================
   RSVP
   =================================================== */
.rsvp-section { background: transparent; }

.rsvp-subtitle {
  margin-top: 12px;
  font-size: .95rem;
  color: var(--text-muted);
}
.rsvp-subtitle strong { color: var(--navy); }

.rsvp-form {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
  opacity: .8;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text);
  font-family: var(--ff-sans);
  font-size: .95rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.radio-group { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 4px; }
.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: .95rem;
  color: var(--text);
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
}
.radio-label input[type="radio"] { accent-color: var(--navy); width: 16px; height: 16px; }

.form-actions { text-align: center; margin-top: 8px; }

.rsvp-success {
  text-align: center;
  padding: 40px 20px;
  animation: fadeUp .6s ease forwards;
}
.success-flower { font-size: 3rem; color: var(--accent); display: block; margin-bottom: 16px; }
.rsvp-success h3 {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.rsvp-success p { color: var(--text-muted); font-size: 1.05rem; }

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 0 20px 40px;
  overflow: hidden;
}
.footer-bouquet {
  width: min(200px, 45vw);
  margin: 0 auto -20px;
  filter: brightness(1.1) saturate(.8);
  opacity: .85;
}
.footer-names {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-date {
  font-size: .8rem;
  letter-spacing: .2em;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
}
.footer-quote {
  font-style: italic;
  font-size: .9rem;
  color: rgba(255,255,255,.45);
  max-width: 420px;
  margin: 0 auto 20px;
  line-height: 1.7;
}
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.3); }

/* ===================================================
   ANIMATIONS
   =================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 900px) {
  .navbar { padding: 14px 20px; }
  .navbar.scrolled { padding: 10px 20px; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100vh;
    background: rgba(243,236,223,.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1rem; }
  .nav-toggle { display: flex; z-index: 1001; }

  .hero-links { gap: 16px; }
  .hero-link-card { min-width: 140px; padding: 24px 16px; }

  .location-cards { flex-direction: column; }
  .loc-divider-flower { width: 100%; height: 2px; }

  .prog-item { gap: 20px; padding: 22px 24px; }

  .form-row { grid-template-columns: 1fr; }
  .rsvp-form { padding: 32px 24px; }
}

@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .hero-content { padding: 10px 16px 40px; }
  .hero-links { padding: 0 16px 60px; }
  .hero-link-card { min-width: 100%; max-width: 100%; flex-direction: row; justify-content: flex-start; }
  .countdown { gap: 10px; }
  .countdown-block { min-width: 60px; padding: 12px 14px; }
  .rsvp-form { padding: 24px 16px; }
  .loc-card { padding: 28px 20px; }
  .prog-item { flex-direction: column; text-align: center; }
}
