/* Minimal White — Clean & Modern Wedding Template */
:root {
  --white: #ffffff;
  --off-white: #fafafa;
  --light: #f7f7f7;
  --border: #eaeaea;
  --text: #1a1a1a;
  --text-soft: #4a4a4a;
  --text-muted: #8c8c8c;
  --accent: #1a1a1a;
  --gold: #9e7c4f;
  --gold-light: #c9a96e;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --radius: 4px;
  --transition: 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); font-size: 15px; line-height: 1.8; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

.mw-hidden { display: none; }
.mw-hidden.mw-visible { display: block; animation: mwFadeIn 1s ease; }
@keyframes mwFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ─── Opening ─── */
.mw-opening {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--white);
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 1s, visibility 1s;
}
.mw-opening::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.88);
  z-index: 0;
}
.mw-opening.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.mw-opening-inner { text-align: center; padding: 2rem; max-width: 500px; position: relative; z-index: 1; }
.mw-opening-label { font-size: 0.65rem; letter-spacing: 0.5em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 1rem; }
.mw-opening-names { font-family: var(--font-display); font-size: clamp(2.5rem, 9vw, 4.5rem); font-weight: 300; line-height: 1.1; margin-bottom: 0.75rem; }
.mw-opening-names span { display: block; font-style: italic; color: var(--gold); font-size: 0.5em; margin: 0.5rem 0; }
.mw-opening-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; letter-spacing: 0.15em; }
.mw-opening-guest { display: none; font-size: 0.82rem; color: var(--text); font-weight: 500; margin-bottom: 2rem; padding: 0.5rem 1.5rem; border: 1px solid var(--border); }
.mw-btn-open {
  background: var(--accent); color: var(--white); border: none;
  padding: 1rem 3rem; font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; cursor: pointer; transition: var(--transition);
  font-family: var(--font-body);
}
.mw-btn-open:hover { background: var(--gold); }

/* ─── Music ─── */
.mw-music {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 50px; padding: 0.4rem 1rem;
  display: flex; align-items: center; gap: 0.6rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
#musicBtn { background: var(--accent); border: none; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: var(--transition); }
#musicBtn:hover { background: var(--gold); }
#volumeSlider { width: 60px; height: 3px; -webkit-appearance: none; background: var(--border); border-radius: 2px; outline: none; }
#volumeSlider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); cursor: pointer; }

/* ─── Sections ─── */
.mw-section { padding: 6rem 2rem; max-width: 700px; margin: 0 auto; text-align: center; }
.mw-heading {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 300;
  margin-bottom: 3rem; letter-spacing: 0.05em; position: relative;
}
.mw-heading::after { content: ''; display: block; width: 50px; height: 1px; background: var(--gold-light); margin: 1.25rem auto 0; }

/* ─── Hero ─── */
.mw-hero {
  padding: 10rem 2rem 8rem;
  border-bottom: 1px solid var(--border);
  background-size: cover;
  background-position: center;
  position: relative;
}
.mw-hero-label { font-size: 0.6rem; letter-spacing: 0.6em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 2.5rem; }
.mw-hero-names { font-family: var(--font-display); font-size: clamp(3.5rem, 14vw, 6rem); font-weight: 300; line-height: 1; }
.mw-hero-amp { font-family: var(--font-display); font-style: italic; font-size: 1.8rem; color: var(--gold); display: block; margin: 0.75rem 0; }
.mw-hero-date { margin-top: 2.5rem; font-size: 0.75rem; letter-spacing: 0.3em; color: var(--text-muted); text-transform: uppercase; }

/* ─── Countdown ─── */
.mw-countdown { display: flex; justify-content: center; gap: 2.5rem; margin-bottom: 2.5rem; }
.mw-cd { text-align: center; }
.mw-cd span { display: block; font-family: var(--font-display); font-size: 3rem; font-weight: 300; color: var(--text); line-height: 1; }
.mw-cd small { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-muted); margin-top: 0.5rem; display: block; }

/* ─── Buttons ─── */
.mw-btn {
  display: inline-block; padding: 0.85rem 2.5rem; background: var(--accent); color: #fff;
  text-decoration: none; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  border: none; cursor: pointer; transition: var(--transition); font-family: var(--font-body);
}
.mw-btn:hover { background: var(--gold); color: #fff; }
.mw-btn.w-full { width: 100%; }
.mw-btn-outline {
  display: inline-block; padding: 0.7rem 2rem; background: transparent;
  border: 1px solid var(--border); color: var(--text-soft);
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer; transition: var(--transition); font-family: var(--font-body);
}
.mw-btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.mw-center { text-align: center; margin-top: 2rem; }

/* ─── Couple ─── */
.mw-couple { display: flex; align-items: flex-start; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.mw-couple-item { text-align: center; flex: 1; min-width: 200px; }
.mw-couple-item h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 300; margin-bottom: 0.75rem; }
.mw-couple-item p { font-size: 0.82rem; color: var(--text-soft); line-height: 1.8; }
.mw-couple-divider { font-family: var(--font-display); font-size: 2rem; color: var(--gold); font-style: italic; padding-top: 3rem; }
.mw-couple-photo { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; margin: 0 auto 1.5rem; border: 1px solid var(--border); }
.mw-couple-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mw-couple-photo img[src=""] { display: none; }
.mw-couple-photo:has(img[style*="display: none"]) { display: none; }

/* ─── Event ─── */
.mw-quote { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--text-soft); margin-bottom: 3rem; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.8; }
.mw-event-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); margin-bottom: 2.5rem; }
.mw-event-card { padding: 2.5rem 1.5rem; border-right: 1px solid var(--border); }
.mw-event-card:last-child { border-right: none; }
.mw-event-card h4 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; margin-bottom: 0.75rem; color: var(--text); }
.mw-event-card p { font-size: 0.82rem; color: var(--text-soft); margin-bottom: 0.25rem; }
.mw-event-time { font-size: 1.1rem !important; font-weight: 500; color: var(--gold) !important; }
.mw-event-loc { font-size: 0.8rem; color: var(--text-soft); margin-top: 0.5rem; font-weight: 500; }
.mw-event-loc[data-separate="0"] { display: none; }
.mw-event-location { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; color: var(--text-soft); font-size: 0.85rem; }
.mw-event-location i { color: var(--gold); }
.mw-maps { border: 1px solid var(--border); }
.mw-maps iframe { width: 100%; min-height: 280px; border: 0; display: block; }
.maps-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.maps-dual-item { border: 1px solid var(--border); overflow: hidden; }
.maps-dual-label { font-size: 0.75rem; padding: 0.6rem 1rem; margin: 0; color: var(--text-soft); background: var(--light); letter-spacing: 0.05em; }
.maps-dual-item iframe { width: 100%; min-height: 200px; border: 0; display: block; }
@media (max-width: 600px) { .maps-dual { grid-template-columns: 1fr; } }

/* ─── Story ─── */
.mw-story-timeline { text-align: left; max-width: 550px; margin: 0 auto 2rem; }
.mw-story-item { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.mw-story-item:last-child { border-bottom: none; }
.mw-story-item h4 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; margin-bottom: 0.5rem; color: var(--text); }
.mw-story-item p { font-size: 0.85rem; color: var(--text-soft); line-height: 1.8; }
.mw-story-extra { font-size: 0.88rem; color: var(--text-soft); line-height: 2; text-align: center; max-width: 550px; margin: 0 auto; padding-top: 2rem; border-top: 1px solid var(--border); }
.mw-story-extra:empty { display: none; }

/* ─── Gallery ─── */
.mw-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.gallery-item { overflow: hidden; cursor: pointer; position: relative; }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.05); }

/* ─── Lightbox ─── */
.mw-lightbox {
  position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: 0.3s;
}
.mw-lightbox.active { opacity: 1; visibility: visible; }
.mw-lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 2px; }
.mw-lightbox-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; z-index: 10; }
.mw-lightbox-prev, .mw-lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem; transition: 0.3s; }
.mw-lightbox-prev:hover, .mw-lightbox-next:hover { background: rgba(255,255,255,0.2); }
.mw-lightbox-prev { left: 20px; }
.mw-lightbox-next { right: 20px; }

/* ─── Video ─── */
.mw-video iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }

/* ─── Gift ─── */
.mw-gift-desc { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 2rem; }
.mw-gift-content { max-width: 400px; margin: 0 auto; }
.gift-account-item { padding: 1.5rem; border: 1px solid var(--border); margin-bottom: 0.75rem; text-align: center; }
.gift-account-item:last-child { margin-bottom: 0; }
.gift-account-item strong { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.gift-account-number { display: block; font-size: 1.3rem; font-weight: 500; color: var(--text); letter-spacing: 0.05em; margin: 0.5rem 0; }

/* ─── RSVP ─── */
.mw-form { max-width: 420px; margin: 0 auto 2rem; display: flex; flex-direction: column; gap: 0.75rem; text-align: left; }
.mw-form input, .mw-form select, .mw-form textarea {
  width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--border);
  font-family: var(--font-body); font-size: 0.85rem; background: var(--white); outline: none; transition: var(--transition);
}
.mw-form input:focus, .mw-form select:focus, .mw-form textarea:focus { border-color: var(--accent); }
.mw-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.mw-guestbook { max-width: 420px; margin: 0 auto; max-height: 400px; overflow-y: auto; text-align: left; }
.mw-guestbook .guest-item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.mw-guestbook .guest-item:first-child { padding-top: 0; }
.mw-guestbook .guest-item strong { font-size: 0.85rem; }
.mw-guestbook .guest-item p { font-size: 0.8rem; color: var(--text-soft); margin: 0.25rem 0 0; }
.mw-guestbook .guest-item small { font-size: 0.7rem; color: var(--text-muted); }

/* ─── Footer ─── */
.mw-footer { padding: 5rem 2rem; text-align: center; border-top: 1px solid var(--border); }
.mw-footer p { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.05em; }
.mw-footer-names { font-family: var(--font-display); font-size: 2rem; font-weight: 300; margin: 0.75rem 0 2rem; }
.mw-share { display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 2rem; }
.mw-share a, .mw-share button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; transition: var(--transition); font-size: 1rem; }
.mw-share a:hover, .mw-share button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.mw-footer small { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.1em; }

/* ─── Toast ─── */
.mw-toast { position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-20px); background: var(--white); border: 1px solid var(--border); padding: 0.85rem 1.75rem; font-size: 0.8rem; z-index: 10000; opacity: 0; transition: 0.4s; box-shadow: 0 8px 30px rgba(0,0,0,0.08); letter-spacing: 0.02em; }
.mw-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .mw-section { padding: 4rem 1.5rem; }
  .mw-couple { flex-direction: column; gap: 2rem; }
  .mw-couple-divider { padding-top: 0; }
  .mw-event-grid { grid-template-columns: 1fr; }
  .mw-event-card { border-right: none; border-bottom: 1px solid var(--border); }
  .mw-event-card:last-child { border-bottom: none; }
  .mw-form-row { grid-template-columns: 1fr; }
  .mw-countdown { gap: 1.5rem; }
  .mw-cd span { font-size: 2.2rem; }
  .mw-gallery { grid-template-columns: repeat(2, 1fr); }
  .mw-hero { padding: 7rem 1.5rem 5rem; }
}
