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

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

:root {
  /* Dark maroon-red Chinese e-invitation */
  --white:        #fff8f5;          /* form input background */
  --off-white:    rgba(255, 248, 245, 0.07);
  --light:        rgba(255, 228, 210, 0.12);
  --border:       rgba(201, 169, 110, 0.45); /* translucent gold */
  --text:         #fff5f0;          /* cream white — main text */
  --text-light:   #f0c8a8;          /* warm peach-gold — secondary */
  --accent:       #c9a96e;          /* antique gold — interactive */
  --accent-dark:  #a8854a;          /* deep gold */
  --gold:         #f0dfa8;          /* bright gold — headings */
  --dark-text:    #1a0800;          /* for text inside light inputs */
}

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% 10%, rgba(160, 20, 35, 0.90) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(90,  5, 15, 0.95) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(130, 10, 25, 0.60) 0%, transparent 70%),
    linear-gradient(160deg, #5c0b14 0%, #7a1020 40%, #8c1828 70%, #5a0a12 100%);
  background-attachment: fixed;
  position: relative;
}

/* Subtle gold shimmer — sits behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50%  0%, rgba(201, 169, 110, 0.12), transparent 45%),
    radial-gradient(circle at 15% 50%, rgba(255, 200, 150, 0.06), transparent 40%),
    radial-gradient(circle at 85% 50%, rgba(255, 200, 150, 0.06), transparent 40%);
  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: 0 24px;
}

.hero-frame {
  position: relative;
  width: 100%;
  max-width: 860px;
  line-height: 0;
}

/* Top fade — background bleeds into photo */
.hero-fade-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18%;
  background: linear-gradient(to bottom,
    #5c0b14 0%,
    rgba(90, 11, 20, 0.70) 40%,
    transparent 100%
  );
  pointer-events: none;
}

.photo-placeholder {
  width: 100%;
  max-width: 860px;
  height: 520px;
  background:
    radial-gradient(ellipse at center, rgba(201,169,110,0.10), transparent 65%),
    rgba(0, 0, 0, 0.25);
  border: 1.5px dashed rgba(201, 169, 110, 0.50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(201, 169, 110, 0.65);
  border-radius: 1px;
  box-shadow:
    0 0 0 6px rgba(201, 169, 110, 0.08),
    0 12px 48px rgba(0, 0, 0, 0.40);
  position: relative;
  overflow: hidden;
}

/* Corner bracket ornaments */
.photo-placeholder::before,
.photo-placeholder::after {
  content: '';
  position: absolute;
  width: 48px;
  height: 48px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.55;
}
.photo-placeholder::before {
  top: 16px; left: 16px;
  border-width: 2px 0 0 2px;
}
.photo-placeholder::after {
  bottom: 16px; right: 16px;
  border-width: 0 2px 2px 0;
}

.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(--accent);
  margin-bottom: 20px;
}

.couple-names {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.2;
  color: var(--gold);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 20px rgba(201, 169, 110, 0.30);
}

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

.ornament {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 28px;
}

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

.invite-text strong {
  color: var(--gold);
  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: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--text);
}

/* ─── ATTENDANCE ────────────────────────────────────────────── */
.attendance {
  background-color: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-align: center;
  padding: 80px 24px;
  border-top: 1px solid rgba(201, 169, 110, 0.20);
  border-bottom: 1px solid rgba(201, 169, 110, 0.20);
}

.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 12px;
  text-shadow: 0 1px 12px rgba(201, 169, 110, 0.25);
}

.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(--accent);
  background: transparent;
  color: var(--accent);
  transition: background-color 0.22s, color 0.22s, border-color 0.22s;
}

.btn-yes {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-yes:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #5a0b14;
}

.btn-no:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #5a0b14;
}

/* 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: #5a0b14;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  transition: background-color 0.22s;
}

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

/* 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(--accent);
  margin-bottom: 8px;
}

input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(201, 169, 110, 0.40);
  background-color: rgba(255, 248, 245, 0.95);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--dark-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(--accent);
  color: #5a0b14;
  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(--gold);
}

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

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

/* Stacked full-width cards */
.wishes-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 680px;
  margin: 0 auto;
}

/* Big physical greeting-card */
.wish-card {
  position: relative;
  background:
    linear-gradient(145deg, rgba(255,248,245,0.06) 0%, rgba(201,169,110,0.04) 100%),
    rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 169, 110, 0.28);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(201, 169, 110, 0.10);
  padding: 52px 56px 44px;
  text-align: center;
  overflow: hidden;
}

/* Thin gold inset rule */
.wish-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 169, 110, 0.16);
  pointer-events: none;
}

/* 囍 watermark bottom-right */
.wish-card::after {
  content: '囍';
  font-family: 'Noto Serif SC', serif;
  position: absolute;
  bottom: 12px;
  right: 20px;
  font-size: 5rem;
  color: rgba(201, 169, 110, 0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Quote text — large italic */
.wish-card .wc-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 32px;
}

/* — Name */
.wish-card .wc-name {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.wish-card .wc-name::before {
  content: '— ';
  color: rgba(201, 169, 110, 0.45);
}

.wish-card .wc-date {
  font-size: 0.60rem;
  color: var(--text-light);
  letter-spacing: 0.14em;
  opacity: 0.65;
}

.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(--accent);
  text-decoration: none;
  margin-bottom: 52px;
  transition: color 0.2s;
}

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

.rsvp-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: var(--gold);
}

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

/* Confirmation box */
.confirmation-box {
  text-align: center;
  padding: 52px 24px;
  background-color: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(201, 169, 110, 0.25);
  margin-top: 8px;
}

.confirmation-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.6rem;
  margin-bottom: 14px;
  color: var(--gold);
}

.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 rgba(201, 169, 110, 0.25);
  text-align: left;
}

.parking-section h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--gold);
}

.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: rgba(0, 0, 0, 0.25);
  border: 1.5px dashed rgba(201, 169, 110, 0.35);
  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;
}

/* Parking media grid */
.parking-media {
  margin-top: 4px;
}

.parking-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.parking-img {
  width: 100%;
  border-radius: 1px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(201, 169, 110, 0.25);
}

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  border-top: 1px solid rgba(201, 169, 110, 0.20);
  background-color: rgba(0, 0, 0, 0.25);
}

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

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

/* ─── MANDARIN TRANSLATION ──────────────────────────────────── */
.zh {
  display: block;
  font-family: 'Noto Serif SC', serif;
  font-size: 0.82em;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin-top: 3px;
  line-height: 1.6;
}

.zh-inline {
  font-family: 'Noto Serif SC', serif;
  font-weight: 300;
}

/* ─── 囍 DECORATIONS ────────────────────────────────────────── */

/* Large watermark 囍 inside photo placeholder */
.xi-watermark {
  position: absolute;
  font-size: 11rem;
  color: rgba(201, 169, 110, 0.12);
  font-family: 'Noto Serif SC', serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
}

/* Section divider with 囍 flanked by gold lines */
.xi-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 22px auto 28px;
  max-width: 260px;
}

.xi-divider::before,
.xi-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.xi-divider::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.xi-char {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.4rem;
  color: var(--gold);
  line-height: 1;
}

/* Large 囍 banner above section headings */
.xi-banner {
  font-family: 'Noto Serif SC', serif;
  font-size: 3.2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.90;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(201, 169, 110, 0.35);
}

/* Footer 囍 */
.footer-xi {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.6rem;
  color: var(--gold);
  opacity: 0.65;
  margin-bottom: 8px;
  line-height: 1;
}

/* ─── 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;
  }
}
