/* ============================================================
   BASE STYLES
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  transition: background .3s, color .3s;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--dot) 0.5px, transparent 0.5px);
  background-size: 24px 24px;
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   BACKGROUND CANVAS
   ============================================================ */
#bgCanvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  z-index: -2 !important;
  pointer-events: none !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,.03);
  flex: 0 0 auto;
  transition: background .3s, border-color .3s;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  letter-spacing: .5px;
  color: var(--heading);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.nav-brand .amp {
  font-style: italic;
  color: var(--accent);
  margin: 0 .3rem;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--heading);
  cursor: pointer;
  padding: 0 .5rem;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: .25rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
.nav-link {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: .45rem .8rem;
  border-radius: 20px;
  transition: all .15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--heading); background: var(--surface); }
.nav-link.active { color: var(--heading); background: var(--surface); }
.nav-link.nav-cta {
  background: var(--accent);
  color: var(--accent-text);
  border: 1px solid var(--accent);
}
.nav-link.nav-cta:hover,
.nav-link.nav-cta.active {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-text);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: .5rem 0 0;
    border-top: 1px solid var(--border);
    margin-top: .5rem;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-link {
    text-align: left;
    padding: .8rem 1rem;
    border-radius: 8px;
  }
}

/* ============================================================
   PAGE STRUCTURE
   ============================================================ */
.site-main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 1.5rem 1.5rem 1rem;
  gap: 1.5rem;
}
.page { display: none; width: 100%; max-width: 780px; }
.page.active { display: block; animation: fadeIn .35s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card {
  width: 100%;
  background: var(--card);
  backdrop-filter: blur(2px);
  border-radius: 32px;
  box-shadow: 0 20px 40px -12px var(--shadow), 0 4px 18px rgba(0,0,0,.02);
  padding: 2.8rem 2.5rem;
  border: 1px solid var(--border);
  transition: background .3s, border-color .3s;
}

.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 2rem;
  color: var(--heading);
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}
.page-note {
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.placeholder-msg {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 2rem 1rem;
}

/* ============================================================
   NAMES
   ============================================================ */
.names {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 3.4rem;
  letter-spacing: 2px;
  color: var(--heading);
  line-height: 1.15;
  margin-bottom: .4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .1em .5em;
  text-align: center;
}
.names .amp {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.names .name-bride,
.names .name-groom {
  font-style: normal;
  color: var(--heading);
}

.subhead-wrap { text-align: center; }
.subhead {
  display: inline-block;
  font-size: .9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.8rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .7rem 1.8rem;
}

/* ============================================================
   DETAILS
   ============================================================ */
.details {
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: center; margin: 2rem 0; text-align: center;
}
.detail { flex: 1 1 180px; }
.detail-label {
  font-size: .75rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent);
  font-weight: 500; margin-bottom: .5rem;
}
.detail-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 500;
  color: var(--heading); line-height: 1.4;
}
.detail-value small {
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem; font-weight: 300;
  color: var(--muted); display: block; margin-top: .2rem;
}

.divider {
  width: 80px; height: 1px;
  background: var(--border);
  margin: 1.8rem auto 2rem;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
label {
  font-size: .75rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted);
  font-weight: 500; padding-left: .2rem;
  margin-bottom: .4rem; display: block;
}

input[type=text],
input[type=password] {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300; font-size: .95rem;
  padding: .9rem 1.2rem;
  border: 1.5px solid var(--border);
  border-radius: 48px;
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  transition: all .2s;
  width: 100%;
}
input[type=text]:focus,
input[type=password]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.search-section { display: flex; gap: .6rem; flex-wrap: wrap; }
.search-section input { flex: 1 1 220px; }

.btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; font-size: .75rem;
  padding: .9rem 1.8rem;
  border-radius: 48px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn-submit {
  font-size: .85rem; letter-spacing: 2.5px;
  padding: 1.2rem 2rem; width: 100%; margin-top: 1.2rem;
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--accent-text); }

/* ============================================================
   RSVP RESULTS
   ============================================================ */
.results { margin-top: 1.5rem; display: none; }
.results.show { display: block; }
.results-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; color: var(--heading);
  margin-bottom: .4rem; font-weight: 500;
}
.results-sub {
  font-size: .8rem; color: var(--muted);
  letter-spacing: .5px; margin-bottom: 1.2rem;
}

.guest-list { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1rem; }
.guest-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  flex-wrap: wrap;
  transition: background .3s;
}
.guest-info { display: flex; flex-direction: column; gap: .15rem; flex: 1 1 180px; }
.guest-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; color: var(--heading); font-weight: 500;
}
.guest-id {
  font-size: .7rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent);
}

.toggle { display: flex; align-items: center; gap: .7rem; cursor: pointer; user-select: none; }
.toggle input { display: none; }
.track {
  position: relative; width: 54px; height: 30px;
  background: var(--border); border-radius: 30px;
  transition: background .25s; flex-shrink: 0;
}
.track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; background: #fff;
  border-radius: 50%; transition: transform .25s;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.toggle input:checked + .track { background: var(--toggle-on); }
.toggle input:checked + .track::after { transform: translateX(24px); }
.toggle-label {
  font-size: .8rem; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted);
  font-weight: 500; min-width: 76px;
}
.toggle input:checked ~ .toggle-label { color: var(--toggle-on-label); }

.msg {
  text-align: center; font-size: .9rem;
  padding: .8rem 1.2rem; border-radius: 60px;
  margin-top: 1rem; display: none;
}
.msg.show { display: block; }
.msg.success { background: var(--success-bg); color: var(--success-text); }
.msg.error   { background: var(--error-bg);   color: var(--error-text); }
.msg.info    { background: var(--info-bg);    color: var(--info-text); }

.footer {
  text-align: center; margin-top: 2rem;
  font-size: .75rem; letter-spacing: 1px;
  color: var(--accent);
}

/* ============================================================
   HOME
   ============================================================ */
.home-hero { text-align: center; padding: 1rem 0; }
.home-invite {
  font-size: .85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.home-cta { margin-top: 1rem; }

/* ============================================================
   WEDDING DETAILS / VENUE
   ============================================================ */
.venue-block {
  text-align: center;
  padding: 1.8rem 1rem;
  border-bottom: 1px dashed var(--border);
}
.venue-block:last-of-type { border-bottom: none; }
.venue-block .detail-label {
  font-size: .72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: .6rem;
}
.venue-block .venue-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--heading);
  margin-bottom: .3rem;
}
.venue-block .venue-addr {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: .3rem;
}
.venue-block .venue-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
}
.venue-block .venue-map-btn {
  font-size: .7rem;
  padding: .7rem 1.4rem;
}

/* ============================================================
   SCHEDULE
   ============================================================ */
.timeline { display: flex; flex-direction: column; gap: 1rem; }
.timeline-item {
  display: flex;
  gap: 1.2rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  align-items: flex-start;
}
.timeline-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 90px;
  letter-spacing: .5px;
}
.timeline-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--heading);
  margin-bottom: .2rem;
}
.timeline-desc { font-size: .85rem; color: var(--muted); line-height: 1.5; }

@media (max-width: 600px) {
  .timeline-item { flex-direction: column; gap: .4rem; }
  .timeline-time { min-width: 0; }
}

/* ============================================================
   ENTOURAGE — unified (all layouts)
   Layouts: single | grid | pair | trio | list
   ============================================================ */
.entourage {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
}

.entourage-section {
  text-align: center;
  width: 100%;
}

.entourage-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--heading);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

/* Layout block spacing inside a section */
.entourage-layout-block {
  margin-bottom: 2rem;
}
.entourage-layout-block:last-child {
  margin-bottom: 0;
}

/* ---------- SINGLE (centered) ---------- */
.entourage-single {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
.entourage-single-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}
.entourage-single-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: .5px;
}
.entourage-single-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--heading);
  line-height: 1.4;
}

/* ---------- GRID (2 columns) ---------- */
.entourage-grid {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem 2rem;
  text-align: center;
  max-width: 640px;
}
.entourage-grid li {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--heading);
  padding: .2rem 0;
  text-align: center;
}

/* ---------- PAIR (2 subtitle columns per row) ---------- */
.entourage-pairs-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}
.entourage-pair {
  display: grid;
  gap: 2rem 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}
.entourage-pair:last-child { margin-bottom: 0; }
.entourage-pair.cols-1 {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.entourage-pair.cols-2 { grid-template-columns: 1fr 1fr; }
.entourage-pair.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.entourage-col {
  text-align: center;
}
.entourage-col-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: .6rem;
  letter-spacing: .5px;
}
.entourage-col-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--heading);
  line-height: 1.7;
}

/* ---------- TRIO (3 sections side-by-side) ---------- */
.entourage-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem 1.5rem;
  text-align: center;
  width: 100%;
}
.entourage-trio .entourage-section {
  border: none;
  padding: 0;
}
.entourage-trio .entourage-section-title {
  border-bottom: 1px solid var(--border);
  padding-bottom: .4rem;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  letter-spacing: 1.5px;
}

/* ---------- LIST (label … value) ---------- */
.entourage-list {
  max-width: 520px;
  margin: 0 auto;
}
.entourage-list-row {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .35rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--heading);
}
.elr-label {
  flex: 0 0 auto;
  font-weight: 500;
  text-align: left;
}
.elr-dots {
  flex: 1 1 auto;
  border-bottom: 1px dotted var(--border);
  margin-bottom: .25rem;
}
.elr-value {
  flex: 0 0 auto;
  text-align: right;
}

/* ---------- Entourage responsive ---------- */
@media (max-width: 900px) {
  .entourage-trio { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .entourage-pair.cols-2,
  .entourage-pair.cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .entourage-grid { grid-template-columns: 1fr; }
  .entourage-trio { grid-template-columns: 1fr; }

  .entourage-list-row { flex-wrap: wrap; }
  .elr-dots { display: none; }
  .elr-label { flex: 1 1 100%; }
  .elr-value { flex: 1 1 100%; text-align: left; }
}

/* ============================================================
   ATTIRE
   ============================================================ */
.attire-blocks { display: flex; flex-direction: column; gap: 2rem; }
.attire-block { text-align: center; }
.attire-style {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--heading);
  margin-bottom: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.attire-swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.attire-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  min-width: 80px;
}
.swatch-color {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border);
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
  transition: transform .15s;
}
.attire-swatch:hover .swatch-color { transform: scale(1.05); }
.swatch-label {
  font-size: .72rem;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
}

/* ============================================================
   STORY
   ============================================================ */
.story-body {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.story-body p { margin-bottom: 1rem; }

.story-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.story-photo {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.story-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.story-photo figcaption {
  font-size: .75rem;
  color: var(--muted);
  padding: .6rem .8rem;
  text-align: center;
}

/* ============================================================
   GIFTS
   ============================================================ */
.gifts-list { display: flex; flex-direction: column; gap: 1.2rem; }
.gift-card {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  flex-wrap: wrap;
}
.gift-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
  flex-shrink: 0;
}
.gift-body { flex: 1 1 220px; }
.gift-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--heading);
  font-weight: 500;
  margin-bottom: .4rem;
}
.gift-details { font-size: .9rem; color: var(--muted); line-height: 1.6; }

@media (max-width: 600px) {
  .gift-card { flex-direction: column; text-align: center; }
  .gift-card img { width: 100%; max-width: 240px; height: auto; }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .8rem;
}
.gallery-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .2s;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9500;
  padding: 2rem;
  opacity: 0;
  transition: opacity .2s;
  flex-direction: column;
  gap: 1rem;
}
.lightbox-overlay.show { opacity: 1; }
.lightbox-overlay img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  opacity: .8;
  transition: opacity .15s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-caption {
  color: #fff;
  font-size: .9rem;
  text-align: center;
  max-width: 700px;
  opacity: .85;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown {
  text-align: center;
  margin: 0 0 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 1px;
  color: var(--accent);
}
.countdown .num {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--heading);
  margin: 0 .15rem;
}
.countdown .unit {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-right: .8rem;
}
.countdown.done {
  color: var(--heading);
  font-size: 1.3rem;
  font-weight: 500;
}

/* ============================================================
   SETUP WIZARD
   ============================================================ */
.setup-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  padding: 1.5rem;
}
.setup-box {
  max-width: 440px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.4rem 2rem;
  box-shadow: 0 20px 40px -12px var(--shadow);
}
.setup-box h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 2rem;
  color: var(--heading);
  margin-bottom: .4rem;
  text-align: center;
}
.setup-box p {
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1.6rem;
  line-height: 1.5;
}
.setup-box label {
  font-size: .72rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  display: block;
  margin-bottom: .35rem;
  margin-top: 1rem;
}
.setup-box input {
  width: 100%;
  padding: .85rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: .95rem;
  outline: none;
  transition: all .2s;
}
.setup-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.setup-box .btn { width: 100%; margin-top: 1.5rem; }
.setup-box .msg { margin-top: 1rem; }

/* Setup — demo checkbox */
.setup-checkbox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1rem;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  cursor: pointer;
  margin-top: 1.2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
}
.setup-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  margin: 0;
}
.setup-checkbox span {
  font-weight: 500;
  color: var(--heading);
}
.setup-checkbox small {
  flex: 1 1 100%;
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: .2rem;
}

/* ============================================================
   VIEW TABLE NO. BUTTON
   ============================================================ */
.btn-table {
  margin-top: .5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  padding: .45rem .9rem;
  border-radius: 20px;
  border: 1px dashed var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: all .2s;
  width: fit-content;
}
.btn-table:hover {
  background: var(--accent);
  color: var(--accent-text);
  border-style: solid;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity .2s ease;
}
.modal-overlay.show { opacity: 1; }
.modal-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.2rem 2rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35);
  position: relative;
  transform: translateY(10px);
  transition: transform .2s ease;
}
.modal-overlay.show .modal-box { transform: translateY(0); }
.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--heading);
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}
.modal-table-no {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .8rem;
  letter-spacing: 2px;
}
.modal-table-no.modal-pending { color: var(--muted); font-size: 3rem; }
.modal-hint {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.modal-close {
  position: absolute;
  top: .8rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition: color .15s;
}
.modal-close:hover { color: var(--heading); }
.modal-ok { width: 100%; }

/* ============================================================
   RSVP THANK-YOU MODAL
   ============================================================ */
.thanks-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1;
}
.thanks-list {
  list-style: none;
  padding: .8rem 0;
  margin: 0 0 1.5rem;
  max-height: 240px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.thanks-list:empty { display: none; }
.thanks-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .5rem .3rem;
  font-size: .85rem;
  border-bottom: 1px dashed var(--border);
}
.thanks-row:last-child { border-bottom: none; }
.thanks-name {
  color: var(--heading);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
}
.thanks-status {
  font-size: .65rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.thanks-row.yes .thanks-status { background: var(--success-bg); color: var(--success-text); }
.thanks-row.no .thanks-status  { background: var(--error-bg);   color: var(--error-text); }

/* ============================================================
   ADMIN LINK
   ============================================================ */
.admin-link {
  display: block;
  width: fit-content;
  margin: 1rem auto 1.5rem;
  padding: .7rem 1.6rem;
  font-size: .7rem;
  letter-spacing: 2.5px;
  text-decoration: none;
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 40px;
  transition: all .2s;
}
.admin-link:hover {
  color: var(--heading);
  border-color: var(--accent);
  background: var(--surface);
}

/* ============================================================
   RESPONSIVE — GLOBAL
   ============================================================ */
@media (max-width: 900px) {
  .names { flex-direction: column; gap: .05em; }
}

@media (max-width: 600px) {
  .card { padding: 1.8rem 1.5rem; }
  .names { font-size: 2.4rem; }
  .subhead { font-size: .7rem; letter-spacing: 3px; padding: .7rem 1rem; }
  .detail-value { font-size: 1.2rem; }
  .site-main { padding: 1.2rem 1rem 1rem; }
}

/* ============================================================
   ONEPAGE LAYOUT
   When <html data-layout="onepage">, all sections stack and the
   site scrolls continuously instead of switching pages.
   ============================================================ */

html[data-layout="onepage"] .page {
  display: block;
  margin-bottom: 2rem;
  scroll-margin-top: 90px; /* clears sticky nav */
}
html[data-layout="onepage"] .page.active {
  animation: none;
}
html[data-layout="onepage"] .page:last-of-type {
  margin-bottom: 0;
}

/* Give stacked cards a little breathing room */
html[data-layout="onepage"] .site-main {
  justify-content: flex-start;
  gap: 0;
  padding-top: 2rem;
}