/* ===== Design tokens ===== */
:root {
  --bg: #0b0710;
  --bg-alt: #120a1a;
  --surface: #1a1024;
  --surface-2: #241535;
  --border: #3a2650;
  --purple: #8a4fd1;
  --purple-light: #c9a6e6;
  --purple-deep: #4a2570;
  --text: #f2ecf7;
  --text-muted: #b7a8c9;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, sans-serif;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; margin: 0; }

a { color: var(--purple-light); }

code { background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 4px; font-size: 0.9em; }

/* ===== Header / Nav ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 7, 16, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--text);
}

.brand .amp { color: var(--purple-light); font-style: italic; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--purple-light); }

.nav-cta {
  border: 1px solid var(--purple);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  color: var(--text) !important;
}

.nav-cta:hover { background: var(--purple); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,7,16,0.55) 0%, rgba(11,7,16,0.35) 40%, rgba(11,7,16,0.65) 100%);
  pointer-events: none;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  background: rgba(11, 7, 16, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 166, 230, 0.15);
  padding: 3rem 1.5rem;
  border-radius: 8px;
  max-width: 700px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.8rem;
  color: var(--purple-light);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.eyebrow.center { text-align: center; }

.hero-names {
  font-size: clamp(3rem, 9vw, 6rem);
  letter-spacing: 4px;
  color: var(--text);
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.hero-date {
  color: var(--text);
  margin: 1rem 0 2rem;
  font-size: 1.05rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}

.countdown-item span {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--purple-light);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.countdown-item small {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff;
}

.btn-primary:hover { filter: brightness(1.15); }

.btn-outline {
  border-color: var(--purple);
  color: var(--purple-light);
  background: transparent;
}

.btn-outline:hover { background: var(--purple); color: #fff; }

.btn-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-full { width: 100%; text-align: center; border: none; }

/* ===== Sections ===== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.section-alt {
  max-width: none;
  background: var(--bg-alt);
}

.section-alt > * { max-width: var(--max-width); margin-left: auto; margin-right: auto; }

.section-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.section-title.center { text-align: center; }

.section-sub {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0.5rem auto 3rem;
}

.section-sub.center { text-align: center; }

/* ===== Details ===== */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.detail-card h3 {
  font-size: 1.3rem;
  color: var(--purple-light);
  margin-bottom: 1rem;
}

.detail-big {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.venue-photo {
  margin-top: 2.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }

.gallery-item:hover img { transform: scale(1.06); }

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
}

.info-card h3 {
  color: var(--purple-light);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.info-card p { color: var(--text-muted); margin-bottom: 1rem; }

/* ===== FAQ ===== */
.faq-list {
  max-width: 720px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.5rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: '+ ';
  color: var(--purple-light);
}

.faq-item[open] summary::before { content: '\2212 '; }

.faq-item p { color: var(--text-muted); margin: 0.75rem 0 0; }

/* ===== RSVP Form ===== */
.rsvp-form {
  max-width: 560px;
  margin: 2.5rem auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem;
}

.form-row { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }

.form-row label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--purple);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 7, 16, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.footer-names {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--purple-light);
  margin-bottom: 0.25rem;
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.open { max-height: 400px; }

  .main-nav a {
    padding: 1rem 1.5rem;
    width: 100%;
    border-top: 1px solid var(--border);
  }

  .nav-cta { margin: 1rem 1.5rem; text-align: center; }

  .details-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .countdown { gap: 0.75rem; }
  .countdown-item { min-width: 52px; }
  .countdown-item span { font-size: 1.6rem; }
}
