/* ============ VARIABLES ============ */
:root {
  --cream: #FFFBF3;
  --white: #FFFFFF;
  --charcoal: #3A3733;
  --muted: #5B564D;

  --blue: #A9D6E0;
  --blue-deep: #397D91;
  --blue-pale: #E4F3F5;
  --line: #CFE5E9;

  --green: #BFE3C4;
  --green-deep: #418B57;
  --green-pale: #EBF7EC;

  --yellow: #FBE7A1;
  --yellow-deep: #B4841A;
  --yellow-pale: #FDF6E0;

  --shadow: 0 10px 30px rgba(58, 55, 51, 0.08);
  --shadow-lg: 0 20px 50px rgba(58, 55, 51, 0.12);
  --radius: 20px;

  --font-head: 'Playfair Display', serif;
  --font-body: 'Quicksand', sans-serif;
}

/* ============ RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 680px; }
.amp { font-style: italic; color: var(--blue-deep); }

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-deep), var(--green-deep), var(--yellow-deep));
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  --tilt: 0deg;
  opacity: 0;
  transform: translateY(24px) rotate(var(--tilt));
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0) rotate(var(--tilt)); }

/* ============ NAV ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(255, 251, 243, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(58,55,51,0.06);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(58,55,51,0.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; letter-spacing: 1px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--blue-deep);
  transition: width 0.25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta {
  background: var(--charcoal);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--blue-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 24px;
  justify-content: center;
}
.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.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 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 140px 0 80px;
}
.hero-blobs { position: absolute; inset: 0; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
}
.blob-blue { width: 380px; height: 380px; background: var(--blue); top: -80px; left: -100px; }
.blob-green { width: 320px; height: 320px; background: var(--green); bottom: -60px; right: -60px; animation-delay: -4s; }
.blob-yellow { width: 300px; height: 300px; background: var(--yellow); top: 40%; left: 60%; animation-delay: -8s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.08); }
}

.confetti-field { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.confetti-piece {
  position: absolute;
  top: -20px;
  border-radius: 2px;
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes fall {
  to { transform: translateY(110vh) rotate(360deg); }
}

.hero-content { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(3rem, 9vw, 6rem);
  margin-bottom: 8px;
}
.hero-sub {
  font-size: 1.3rem;
  color: var(--muted);
  font-style: italic;
  font-family: var(--font-head);
  margin-bottom: 24px;
}
.hero-date {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  margin-bottom: 40px;
  color: var(--charcoal);
}
.hero-date .dot { color: var(--yellow-deep); }
.hero-date em { color: var(--muted); font-style: italic; }

.countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.countdown-box {
  background: var(--white);
  border-radius: 16px;
  padding: 18px 22px;
  min-width: 84px;
  box-shadow: var(--shadow);
}
.cd-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-deep);
}
.cd-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.dress-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 auto;
}
.chip-swatch {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}
.chip-blue { background: var(--blue); margin-left: -6px; }
.chip-green { background: var(--green); margin-left: -6px; }
.chip-yellow { background: var(--yellow); margin-left: -6px; }

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 46px;
  border: 2px solid var(--charcoal);
  border-radius: 20px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 6px; height: 6px;
  background: var(--blue-deep);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDown 1.6s ease infinite;
}
@keyframes scrollDown {
  0% { top: 8px; opacity: 1; }
  70% { opacity: 1; }
  100% { top: 28px; opacity: 0; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--charcoal);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn-ghost {
  background: var(--white);
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
}
.btn-ghost:hover { background: var(--charcoal); color: var(--white); transform: translateY(-2px); }
.btn-block { width: 100%; text-align: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ============ SECTION GENERIC ============ */
.section { padding: 110px 0; }
.section-alt { background: var(--white); }
.section-eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 10px;
}
.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 20px;
}
.section-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ============ TIMELINE (Our Story) ============ */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 32px;
  border-left: 3px dashed var(--line);
}
.timeline-item { position: relative; margin-bottom: 46px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -43px;
  top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px currentColor;
}
.dot-blue { background: var(--blue); color: var(--blue-deep); }
.dot-green { background: var(--green); color: var(--green-deep); }
.dot-yellow { background: var(--yellow); color: var(--yellow-deep); }
.timeline-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow);
}
.timeline-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--muted);
}
.timeline-card h3 { margin: 6px 0 10px; font-size: 1.3rem; }

/* ============ DETAILS ============ */
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.detail-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.detail-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.detail-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 18px;
}
.icon-blue { background: var(--blue-pale); }
.icon-green { background: var(--green-pale); }
.icon-yellow { background: var(--yellow-pale); }
.detail-card h3 { margin-bottom: 12px; font-size: 1.3rem; }
.detail-time { font-weight: 700; margin-bottom: 10px; }
.detail-place { color: var(--muted); }
.detail-place em, .detail-time em { font-style: italic; color: var(--muted); font-weight: 400; }

.details-note {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.details-note p { margin-bottom: 18px; color: var(--muted); }

/* ============ DRESS CODE ============ */
.swatch-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 780px;
  margin: 0 auto 44px;
}
.swatch-card { text-align: center; }
.swatch-circle {
  width: 110px; height: 110px;
  border-radius: 50%;
  margin: 0 auto 16px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.swatch-card:hover .swatch-circle { transform: scale(1.08) rotate(-4deg); }
.swatch-blue { background: radial-gradient(circle at 30% 30%, #fff6, transparent), var(--blue); }
.swatch-green { background: radial-gradient(circle at 30% 30%, #fff6, transparent), var(--green); }
.swatch-yellow { background: radial-gradient(circle at 30% 30%, #fff6, transparent), var(--yellow); }
.swatch-card h4 { margin-bottom: 4px; }
.swatch-card p { color: var(--muted); font-size: 0.9rem; }

.no-black-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  font-weight: 600;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* ============ WEDDING PARTY ============ */
.party-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.party-card {
  perspective: 1200px;
  height: 240px;
}
.party-card-inner {
  position: relative;
  width: 100%; height: 100%;
  transition: transform 0.6s cubic-bezier(.4,.2,.2,1);
  transform-style: preserve-3d;
}
.party-card.flipped .party-card-inner { transform: rotateY(180deg); }
.party-card-front, .party-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  box-shadow: var(--shadow);
}
.party-card-front {
  background: var(--white);
}
.party-card-front span {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 4px;
}
.party-card-back {
  transform: rotateY(180deg);
  color: var(--charcoal);
  font-weight: 600;
}
.back-blue { background: var(--blue-pale); }
.back-green { background: var(--green-pale); }
.back-yellow { background: var(--yellow-pale); }
.back-neutral { background: var(--cream); }

.party-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 14px;
}
.avatar-blue { background: var(--blue); }
.avatar-green { background: var(--green); }
.avatar-yellow { background: var(--yellow); }
.avatar-neutral { background: var(--muted); opacity: 0.25; }
.party-card-front h4 { font-size: 1.1rem; }

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.polaroid {
  background: var(--white);
  padding: 14px 14px 26px;
  box-shadow: var(--shadow);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  transition: transform 0.3s ease;
}
.polaroid:hover { transform: scale(1.04) rotate(0deg) !important; z-index: 2; }
.rot-l { --tilt: -4deg; }
.rot-r { --tilt: 3deg; }
.polaroid-photo {
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin-bottom: 14px;
}
.ph-blue { background: var(--blue-pale); }
.ph-green { background: var(--green-pale); }
.ph-yellow { background: var(--yellow-pale); }

/* ============ FAQ ============ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--cream);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 26px;
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
}
.faq-icon {
  font-size: 1.4rem;
  color: var(--blue-deep);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 26px;
}
.faq-item.open .faq-answer { max-height: 240px; padding: 0 26px 22px; }
.faq-answer p { color: var(--muted); }

/* ============ RSVP ============ */
.rsvp-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.form-row { margin-bottom: 22px; }
.form-row label, .form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.92rem;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="number"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
  transition: border-color 0.2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue-deep);
}
.radio-group { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--line);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.radio-pill input { accent-color: var(--blue-deep); }
.radio-pill:has(input:checked) {
  border-color: var(--blue-deep);
  background: var(--blue-pale);
}

.rsvp-success {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 60px 40px;
  box-shadow: var(--shadow-lg);
}
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.rsvp-success h3 { font-size: 1.6rem; margin-bottom: 10px; }
.rsvp-success p { color: var(--muted); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  text-align: center;
  padding: 60px 0 40px;
}
.footer-names { font-size: 1.8rem; margin-bottom: 6px; }
.footer-names .amp { color: var(--yellow); }
.footer-date { letter-spacing: 3px; font-weight: 700; color: var(--blue); margin-bottom: 18px; }
.footer-note { color: #d8d4cc; margin-bottom: 20px; }
.footer-note a { text-decoration: underline; }
.footer-swatches { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.footer-copy { font-size: 0.85rem; color: #a39d92; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .details-grid, .swatch-row, .party-grid, .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: var(--cream);
    padding: 20px 24px 30px;
    gap: 18px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-140%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-cta { align-self: flex-start; }

  .hero { padding-top: 120px; }
  .countdown { gap: 10px; }
  .countdown-box { min-width: 68px; padding: 14px 12px; }
  .cd-num { font-size: 1.5rem; }

  .details-grid, .swatch-row, .party-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  .section { padding: 80px 0; }
  .rsvp-form { padding: 28px 22px; }
}
