@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&family=Lato:wght@300;400&display=swap');

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

:root {
  /* Garden · Twilight palette */
  --white:        #fbfaf6;          /* moonlit ivory */
  --off-white:    #f1efe8;          /* misty linen */
  --light:        #e3e6dc;          /* pale moss */
  --border:       #c9cfc1;          /* sage edge */
  --text:         #2f3a32;          /* deep forest */
  --text-light:   #6b7568;          /* sage grey */
  --accent:       #8aa48a;           /* sage green */
  --accent-dark:  #5e7a64;          /* twilight pine */
  --dusk:         #6b7a8f;          /* twilight blue */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: var(--text);
  line-height: 1.8;
  background:
    radial-gradient(ellipse at 20% 0%,  rgba(138, 164, 138, 0.10), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(107, 122, 143, 0.10), transparent 60%),
    linear-gradient(180deg, #fbfaf6 0%, #f4f3ed 100%);
  background-attachment: fixed;
  position: relative;
}

/* Misty fog overlay — sits behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.55), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(227,230,220,0.45), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(107,122,143,0.10), transparent 50%);
  animation: mist-drift 28s ease-in-out infinite alternate;
}

@keyframes mist-drift {
  0%   { transform: translate3d(0, 0, 0)     scale(1); }
  100% { transform: translate3d(-3%, 1%, 0)  scale(1.08); }
}

/* All page sections sit above the fog */
section, footer, .rsvp-wrapper { position: relative; z-index: 1; }

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.photo-placeholder {
  width: 100%;
  max-width: 860px;
  height: 520px;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,0.6), transparent 70%),
    linear-gradient(135deg, #e3e6dc 0%, #c9cfc1 60%, #aab4a4 100%);
  border: 1.5px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-light);
  border-radius: 1px;
  box-shadow: 0 12px 40px rgba(47, 58, 50, 0.10);
}

.photo-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.35;
}

.photo-placeholder .ph-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* swap .photo-placeholder for an <img class="hero-image"> when ready */
.hero-image {
  width: 100%;
  max-width: 860px;
  display: block;
  border-radius: 1px;
  object-fit: cover;
}

/* ─── WELCOME ───────────────────────────────────────────────── */
.welcome {
  background-color: transparent;
  text-align: center;
  padding: 80px 24px;
}

.welcome-inner {
  max-width: 600px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
}

.couple-names {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 28px;
}

.couple-names .amp {
  font-style: italic;
  color: var(--accent);
}

.ornament {
  display: block;
  width: 50px;
  height: 1px;
  background-color: var(--accent);
  margin: 0 auto 28px;
}

.invite-text {
  font-size: 0.97rem;
  color: var(--text-light);
  line-height: 2;
}

.invite-text strong {
  color: var(--text);
  font-weight: 400;
}

/* Event detail pills */
.event-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 52px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.detail-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.detail-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--text);
}

/* ─── ATTENDANCE ────────────────────────────────────────────── */
.attendance {
  background-color: rgba(241, 239, 232, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  text-align: center;
  padding: 80px 24px;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.75rem;
  color: var(--text);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 0.87rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* Yes / No buttons */
.attend-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 0;
}

.btn-yes,
.btn-no {
  padding: 13px 38px;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  transition: background-color 0.22s, color 0.22s, border-color 0.22s;
}

.btn-yes:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn-no:hover {
  background-color: var(--text);
  color: var(--white);
}

/* RSVP prompt */
.rsvp-prompt {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.rsvp-prompt p {
  font-size: 0.97rem;
  color: var(--text-light);
}

.btn-rsvp {
  display: inline-block;
  padding: 14px 48px;
  background-color: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background-color 0.22s;
}

.btn-rsvp:hover {
  background-color: var(--accent-dark);
}

/* Wish / decline form */
.decline-form-wrap {
  max-width: 460px;
  margin: 36px auto 0;
  text-align: left;
}

.decline-form-wrap .note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

/* ─── FORMS (shared) ────────────────────────────────────────── */
.form-group {
  margin-bottom: 22px;
}

label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}

input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background-color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text);
  outline: none;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%238a8a8a' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background-color: var(--text);
  color: var(--white);
  border: none;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.22s;
  margin-top: 4px;
}

.btn-submit:hover {
  background-color: var(--accent);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ─── WISHES SECTION ────────────────────────────────────────── */
.wishes-section {
  background-color: transparent;
  text-align: center;
  padding: 80px 24px;
}

.wishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}

.wish-card {
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 28px 24px;
  border-left: 2px solid var(--accent);
  box-shadow: 0 4px 18px rgba(47, 58, 50, 0.05);
}

.wish-card .wc-name {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.wish-card .wc-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.85;
}

.wish-card .wc-date {
  font-size: 0.68rem;
  color: var(--text-light);
  margin-top: 14px;
}

.no-wishes {
  color: var(--text-light);
  font-style: italic;
  font-size: 0.9rem;
}

/* ─── RSVP PAGE ─────────────────────────────────────────────── */
.rsvp-wrapper {
  max-width: 560px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.back-link {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  margin-bottom: 52px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent);
}

.rsvp-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.rsvp-form {
  margin-top: 40px;
  text-align: left;
}

/* Confirmation box */
.confirmation-box {
  text-align: center;
  padding: 52px 24px;
  background-color: var(--off-white);
  margin-top: 8px;
}

.confirmation-box h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.confirmation-box p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 2;
  margin-bottom: 28px;
}

/* Parking video */
.parking-section {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.parking-section h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.parking-section .parking-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--light);
  border: 1.5px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-light);
  border-radius: 1px;
}

.video-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.35;
}

.video-placeholder .vp-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.video-placeholder .vp-sub {
  font-size: 0.68rem;
  opacity: 0.7;
}

/* replace .video-placeholder with an <iframe> or <video> when ready */

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--border);
  background-color: rgba(241, 239, 232, 0.6);
}

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

.success-inline {
  text-align: center;
  color: var(--accent);
  font-size: 0.92rem;
  padding: 20px 0;
}

/* ─── PETALS & LEAVES ──────────────────────────────────────── */
.petals {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.petal {
  position: absolute;
  top: -40px;
  width: 14px;
  height: 18px;
  background: radial-gradient(ellipse at 50% 30%, #ffffff 0%, #fdfaf5 55%, #f3ece1 100%);
  border-radius: 80% 10% 80% 10% / 80% 10% 80% 10%;
  opacity: 0;
  filter: drop-shadow(0 1px 2px rgba(180, 160, 130, 0.18));
  will-change: transform, opacity;
  animation-name: petal-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.petal.leaf {
  background: radial-gradient(ellipse at 30% 30%, #c5d4bb 0%, #8aa48a 60%, #5e7a64 100%);
  border-radius: 0 100% 0 100%;
  filter: drop-shadow(0 1px 2px rgba(60, 80, 60, 0.22));
}

.petal.dusk {
  background: radial-gradient(ellipse at 50% 30%, #ffffff 0%, #e3e6f0 55%, #b8c4d4 100%);
}

@keyframes petal-fall {
  0% {
    transform: translate3d(0, -40px, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.95;
  }
  50% {
    transform: translate3d(40px, 50vh, 0) rotate(220deg);
  }
  90% {
    opacity: 0.95;
  }
  100% {
    transform: translate3d(-30px, 105vh, 0) rotate(540deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .petals { display: none; }
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .photo-placeholder {
    height: 260px;
  }

  .attend-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-yes,
  .btn-no {
    width: 100%;
    max-width: 280px;
  }
}
