/* ═══════════════════════════════════════════════
   WEDDING WEBSITE — Stylesheet
   ═══════════════════════════════════════════════ */

/* ── Palette ── */
:root {
  --blush:       #f0e2d3;
  --rose:        #c4835a;
  --rose-dark:   #a0623d;
  --sage:        #7a8c5e;
  --sage-dark:   #5e6e45;
  --cream:       #fdf6ef;
  --warm-white:  #fefaf5;
  --gold:        #c5a258;
  --text:        #3d3232;
  --text-light:  #7a6a6a;
  --overlay:     rgba(61, 50, 50, 0.35);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lora', 'Georgia', serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Utilities ── */
.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
img { max-width: 100%; display: block; }

/* ═══════════════════════════════════════════════
   FLOATING PETALS
   ═══════════════════════════════════════════════ */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -40px;
  opacity: 0;
  font-size: 1rem;
  animation: fall linear infinite;
  pointer-events: none;
}
@keyframes fall {
  0%   { opacity: 0; transform: translateY(0) rotate(0deg); }
  10%  { opacity: .7; }
  90%  { opacity: .7; }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

/* ═══════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253, 248, 244, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 147, 142, 0.15);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.06); }
.nav-inner {
  max-width: 900px; margin: 0 auto; padding: .85rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif; font-size: 1.25rem;
  font-weight: 700; color: var(--rose-dark);
  text-decoration: none; letter-spacing: 2px;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-light); text-decoration: none; transition: color .3s;
}
.nav-links a:hover { color: var(--rose-dark); }
.nav-toggle {
  display: none; background: none; border: none; font-size: 1.3rem;
  color: var(--text); cursor: pointer;
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative;
  background:
    linear-gradient(135deg, rgba(244,228,219,.85), rgba(143,166,138,.25)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><circle cx="40" cy="40" r="1.5" fill="%23c9938e" opacity=".12"/></svg>');
  background-size: cover, 80px 80px;
}
.hero-content { position: relative; z-index: 1; padding: 2rem; }
.hero-pre {
  font-family: 'Inter', sans-serif; font-size: .8rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--text-light); margin-bottom: 1rem;
}
.hero-names {
  font-family: 'Playfair Display', serif; font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400; line-height: 1.15; color: var(--text);
}
.amp {
  font-style: italic; color: var(--rose); display: inline-block;
  margin: 0 .15em; font-size: .8em;
}
.hero-divider {
  font-size: 1.2rem; color: var(--gold); margin: 1.2rem 0;
  letter-spacing: 8px;
}
.hero-date {
  font-family: 'Inter', sans-serif; font-size: .95rem; letter-spacing: 2px;
  color: var(--text-light); margin-bottom: 1.5rem;
}

/* Countdown */
.countdown {
  display: flex; justify-content: center; gap: 1.5rem;
  margin-bottom: 2rem; flex-wrap: wrap;
}
.countdown-unit {
  display: flex; flex-direction: column; align-items: center;
}
.countdown-number {
  font-family: 'Playfair Display', serif; font-size: 2.2rem;
  font-weight: 700; color: var(--rose-dark); line-height: 1.2;
}
.countdown-label {
  font-family: 'Inter', sans-serif; font-size: .65rem;
  text-transform: uppercase; letter-spacing: 2px; color: var(--text-light);
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-block; padding: .85rem 2.5rem;
  font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: #fff; background: var(--rose-dark);
  border: none; border-radius: 50px; cursor: pointer;
  text-decoration: none; transition: all .3s;
}
.btn:hover {
  background: var(--sage-dark); transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(107, 133, 102, .25);
}

/* ═══════════════════════════════════════════════
   SECTIONS (shared)
   ═══════════════════════════════════════════════ */
.section { padding: 6rem 0; position: relative; z-index: 1; }
.section:nth-child(odd)  { background: var(--warm-white); }
.section:nth-child(even) { background: var(--cream); }
.section-title {
  font-family: 'Playfair Display', serif; font-size: 2.4rem;
  text-align: center; font-weight: 400; margin-bottom: .25rem;
}
.section-ornament {
  text-align: center; font-size: 1.2rem; color: var(--rose);
  margin-bottom: 2.5rem;
}

/* ═══════════════════════════════════════════════
   OUR STORY
   ═══════════════════════════════════════════════ */
.story-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.story-card {
  background: #fff; border-radius: 16px; padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.04);
  transition: transform .3s, box-shadow .3s;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.08);
}
.story-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.story-card h3 {
  font-family: 'Playfair Display', serif; font-weight: 400;
  font-size: 1.3rem; margin-bottom: .75rem;
}
.story-card p { font-size: .92rem; color: var(--text-light); }

/* ═══════════════════════════════════════════════
   DETAILS
   ═══════════════════════════════════════════════ */
.details-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.detail-card {
  text-align: center; padding: 2rem 1.5rem;
  border: 1px solid rgba(201,147,142,.2); border-radius: 16px;
  background: #fff;
}
.detail-icon { font-size: 2rem; margin-bottom: .75rem; }
.detail-card h3 {
  font-family: 'Playfair Display', serif; font-weight: 400;
  font-size: 1.25rem; margin-bottom: .5rem;
}
.detail-time {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: .85rem;
  color: var(--rose-dark); letter-spacing: 1px; margin-bottom: .5rem;
}
.detail-card p { font-size: .88rem; color: var(--text-light); line-height: 1.7; }

/* ═══════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════ */
.timeline { position: relative; max-width: 600px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 120px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--rose), var(--sage));
}
.timeline-item {
  display: flex; align-items: flex-start; gap: 1.5rem;
  margin-bottom: 2rem; position: relative;
}
.timeline-time {
  min-width: 100px; text-align: right;
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: .82rem; color: var(--rose-dark); padding-top: .15rem;
  letter-spacing: .5px;
}
.timeline-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
  background: var(--rose); border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--rose);
  margin-top: .35rem;
}
.timeline-content h4 {
  font-family: 'Playfair Display', serif; font-weight: 400;
  font-size: 1.1rem; margin-bottom: .2rem;
}
.timeline-content p { font-size: .88rem; color: var(--text-light); }

/* ═══════════════════════════════════════════════
   RSVP
   ═══════════════════════════════════════════════ */
.rsvp { background: linear-gradient(180deg, var(--cream), var(--blush)) !important; }
.rsvp-subtitle {
  text-align: center; font-family: 'Inter', sans-serif;
  font-size: .9rem; color: var(--text-light); margin-bottom: 2.5rem;
}
.rsvp-subtitle:has(+ .rsvp-note) { margin-bottom: .5rem; }
.rsvp-note {
  text-align: center; font-family: 'Inter', sans-serif;
  font-size: .8rem; font-style: italic; color: var(--text-light); margin-bottom: 2.5rem;
}
.rsvp-form {
  max-width: 520px; margin: 0 auto;
  background: #fff; padding: 2.5rem; border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,.06);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; font-family: 'Inter', sans-serif; font-size: .78rem;
  font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-light); margin-bottom: .4rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%; padding: .75rem 1rem; font-family: 'Lora', serif;
  font-size: .95rem; color: var(--text);
  border: 1.5px solid rgba(201,147,142,.3); border-radius: 10px;
  background: var(--warm-white); transition: border-color .3s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--rose);
}
.form-group textarea { resize: vertical; }

/* Radio buttons */
.radio-group { display: flex; flex-direction: column; gap: .6rem; margin-top: .4rem; }
.form-group .radio-label {
  display: flex; align-items: center; gap: .6rem; cursor: pointer; position: relative;
  /* undo the uppercase field-label style inherited from .form-group label */
  font-family: 'Lora', serif; font-size: .95rem; font-weight: 400;
  letter-spacing: normal; text-transform: none; color: var(--text); margin-bottom: 0;
}
/* Visually hidden but still focusable, so keyboards and screen readers can use it */
.radio-label input[type="radio"] {
  position: absolute; left: 0; width: 20px; height: 20px;
  margin: 0; opacity: 0; cursor: pointer;
}
.radio-label input[type="radio"]:focus-visible + .radio-custom {
  outline: 2px solid var(--rose-dark); outline-offset: 3px;
}
.radio-custom {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--rose); transition: all .2s;
  position: relative;
}
.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: var(--rose-dark);
  background: var(--rose-dark);
  box-shadow: inset 0 0 0 3px #fff;
}

/* Conditional fields */
.attending-only { display: none; }
.attending-only.visible { display: block; }

.form-error {
  margin-bottom: 1rem; padding: .75rem 1rem; border-radius: 10px;
  background: rgba(160,98,61,.08); border: 1px solid rgba(160,98,61,.25);
  color: var(--rose-dark); font-family: 'Inter', sans-serif; font-size: .85rem;
}

.btn-submit {
  width: 100%; margin-top: .5rem; padding: 1rem;
  font-size: .85rem;
}
.btn-submit:disabled {
  opacity: .5; cursor: not-allowed; transform: none !important;
  box-shadow: none !important;
}

/* Success state */
.rsvp-success {
  text-align: center; max-width: 520px; margin: 0 auto;
  padding: 3rem; background: #fff; border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,.06);
  animation: pop .5s cubic-bezier(.175,.885,.32,1.275);
}
.success-icon { font-size: 3rem; margin-bottom: 1rem; }

/* RSVP summary on the success card */
.rsvp-summary {
  display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.25rem;
  margin: 2rem 0 0; padding: 1.5rem 0 0; text-align: left;
  border-top: 1px solid rgba(196,131,90,.2);
}
.rsvp-summary dt {
  font-family: 'Inter', sans-serif; font-size: .7rem; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase; color: var(--text-light);
  padding-top: .2rem;
}
.rsvp-summary dd { font-size: .95rem; overflow-wrap: anywhere; }

.calendar-links { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.calendar-label {
  flex-basis: 100%; font-family: 'Inter', sans-serif; font-size: .78rem;
  letter-spacing: 1px; text-transform: uppercase; color: var(--text-light);
}
.btn-outline {
  background: none; color: var(--rose-dark); border: 1.5px solid var(--rose-dark);
  padding: .6rem 1.25rem; font-size: .75rem;
}
.btn-outline:hover { background: var(--rose-dark); color: #fff; }

.btn-link {
  margin-top: 1.75rem; background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: .85rem; color: var(--rose-dark);
  text-decoration: underline; text-underline-offset: 3px;
}
.btn-link:hover { color: var(--sage-dark); }

/* Closed state */
.rsvp-closed {
  text-align: center; max-width: 520px; margin: 0 auto 2rem;
  padding: 2.5rem; background: #fff; border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,.06);
}
.rsvp-closed h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: .75rem; }
.rsvp-closed p { color: var(--text-light); }
.rsvp-success h3 {
  font-family: 'Playfair Display', serif; font-size: 1.8rem;
  font-weight: 400; margin-bottom: .5rem;
}
.rsvp-success p { color: var(--text-light); }
@keyframes pop {
  0% { transform: scale(.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════════════
   VENUE MAP
   ═══════════════════════════════════════════════ */
.map-wrapper { border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.06); }

/* ═══════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════ */
.faq-list { max-width: 640px; margin: 0 auto; }
.faq-item {
  background: #fff; border-radius: 12px; margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.04); overflow: hidden;
  transition: box-shadow .3s;
}
.faq-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,.07); }
.faq-item summary {
  padding: 1.25rem 1.5rem; cursor: pointer;
  font-family: 'Playfair Display', serif; font-size: 1.05rem;
  font-weight: 400; color: var(--text); list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-family: 'Inter', sans-serif; font-size: 1.3rem;
  font-weight: 300; color: var(--rose); transition: transform .3s;
  flex-shrink: 0; margin-left: 1rem;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 1.5rem 1.25rem; font-size: .9rem; color: var(--text-light);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  text-align: center; padding: 3rem 1.5rem;
  background: var(--text); color: rgba(255,255,255,.7);
  font-family: 'Inter', sans-serif; font-size: .85rem;
  position: relative; z-index: 1;
}
.footer-hearts { font-size: 1.5rem; margin-bottom: .75rem; }
.footer-small { font-size: .72rem; margin-top: .5rem; opacity: .5; }
.footer-admin { color: inherit; text-decoration: none; }
.footer-admin:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */
.fade-in {
  animation: fadeInUp 1s ease-out both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: rgba(253,248,244,.97);
    backdrop-filter: blur(10px); padding: 1rem 1.5rem; gap: 1rem;
    border-bottom: 1px solid rgba(201,147,142,.15);
  }
  .nav-links.open { display: flex; }

  .timeline::before { left: 20px; }
  .timeline-time { min-width: 50px; font-size: .72rem; }
  .timeline-item { gap: .8rem; }

  .hero-names { font-size: clamp(2.4rem, 10vw, 4rem); }
  .section { padding: 4rem 0; }
  .rsvp-form { padding: 1.75rem; }
  .rsvp-summary { grid-template-columns: 1fr; gap: .1rem; }
  .rsvp-summary dd { margin-bottom: .6rem; }
  .countdown { gap: 1rem; }
  .countdown-number { font-size: 1.6rem; }
}
