/* ── WBM Core Variables ── */
:root {
  --wbm-ivory: #faf8f5;
  --wbm-blush: #e8c4b8;
  --wbm-sage: #a8b5a0;
  --wbm-gold: #c8956c;
  --wbm-dark: #3d3530;
  --wbm-mid: #5a4a3a;
  --wbm-light: #8a7968;
  --wbm-radius: 12px;
  --wbm-shadow: 0 4px 24px rgba(61,53,48,.10);
  --wbm-font-serif: Georgia, 'Times New Roman', serif;
  --wbm-font-sans: system-ui, -apple-system, sans-serif;
}

/* ── Reset & Base ── */
.wbm-section { padding: 64px 16px; font-family: var(--wbm-font-sans); color: var(--wbm-dark); }
.wbm-section--light { background: var(--wbm-ivory); }
.wbm-section--accent { background: linear-gradient(135deg,#f5ede6,#eef2eb); }
.wbm-container { max-width: 960px; margin: 0 auto; }
.wbm-container--narrow { max-width: 640px; margin: 0 auto; }
.wbm-text-center { text-align: center; }

/* ── Typography ── */
.wbm-section-title {
  font-family: var(--wbm-font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: normal;
  color: var(--wbm-dark);
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: .02em;
}
.wbm-section-sub {
  text-align: center;
  color: var(--wbm-light);
  font-size: 1.05rem;
  margin: 0 0 40px;
  line-height: 1.7;
}

/* ── Hero ── */
.wbm-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #2d1f1a 0%, #5a3628 60%, #8a5240 100%);
  overflow: hidden;
}
.wbm-hero-overlay {
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><circle cx="30" cy="30" r="1" fill="%23ffffff08"/></svg>') repeat;
}
.wbm-hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 40px 24px;
  max-width: 720px;
}
.wbm-hero-eyebrow {
  font-size: .9rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--wbm-blush);
  margin: 0 0 16px;
}
.wbm-hero-names {
  font-family: var(--wbm-font-serif);
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: normal;
  margin: 0 0 16px;
  line-height: 1.1;
}
.wbm-hero-divider { color: var(--wbm-gold); font-size: 1.5rem; margin: 20px 0; }
.wbm-hero-baptism { font-size: 1.1rem; color: rgba(255,255,255,.85); margin: 0 0 28px; line-height: 1.8; }
.wbm-hero-child { font-family: var(--wbm-font-serif); font-size: 1.5rem; color: var(--wbm-blush); }
.wbm-hero-date-text { font-size: 1.1rem; color: var(--wbm-gold); letter-spacing: .05em; }

/* ── Countdown ── */
.wbm-countdown { text-align: center; padding: 16px 0; }
.wbm-countdown-label { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--wbm-light); margin: 0 0 20px; }
.wbm-countdown-grid { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.wbm-countdown-unit { display: flex; flex-direction: column; align-items: center; min-width: 72px; }
.wbm-countdown-num {
  font-family: var(--wbm-font-serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--wbm-gold);
  line-height: 1;
  display: block;
}
.wbm-countdown-text { font-size: .75rem; color: var(--wbm-light); text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }

/* ── Event cards ── */
.wbm-event-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 24px; margin-bottom: 48px; }
.wbm-event-card {
  background: #fff;
  border-radius: var(--wbm-radius);
  padding: 32px 28px;
  box-shadow: var(--wbm-shadow);
  border-top: 4px solid var(--wbm-gold);
  text-align: center;
}
.wbm-event-card-icon { font-size: 2rem; margin-bottom: 12px; }
.wbm-event-card-title { font-family: var(--wbm-font-serif); font-size: 1.4rem; font-weight: normal; margin: 0 0 4px; color: var(--wbm-dark); }
.wbm-event-card-couple { color: var(--wbm-gold); font-size: 1.05rem; margin: 0 0 20px; }
.wbm-event-dl { text-align: left; }
.wbm-event-dl div { margin-bottom: 10px; }
.wbm-event-dl dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--wbm-light); margin-bottom: 2px; }
.wbm-event-dl dd { margin: 0; color: var(--wbm-dark); font-size: .95rem; }

/* ── Map ── */
.wbm-map-section { margin-top: 48px; }
.wbm-map-title { font-family: var(--wbm-font-serif); font-size: 1.4rem; font-weight: normal; text-align: center; margin-bottom: 16px; }
.wbm-map-embed-wrap { border-radius: var(--wbm-radius); overflow: hidden; box-shadow: var(--wbm-shadow); margin-bottom: 16px; }
.wbm-map-iframe { width: 100%; height: 320px; border: 0; display: block; }
.wbm-map-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── CTA Strip ── */
.wbm-cta-strip { padding: 48px 16px; }
.wbm-cta-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 16px; max-width: 800px; margin: 0 auto; }
.wbm-cta-item {
  background: #fff;
  border-radius: var(--wbm-radius);
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--wbm-dark);
  box-shadow: var(--wbm-shadow);
  transition: transform .2s, box-shadow .2s;
}
.wbm-cta-item:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(61,53,48,.15); }
.wbm-cta-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.wbm-cta-label { font-size: .9rem; color: var(--wbm-mid); line-height: 1.4; }

/* ── Contact ── */
.wbm-contact-link { color: var(--wbm-gold); text-decoration: none; font-size: 1.1rem; display: inline-block; margin: 8px 0; }
.wbm-contact-link:hover { text-decoration: underline; }

/* ── Forms ── */
.wbm-form { max-width: 580px; margin: 0 auto; }
.wbm-form--centered { text-align: center; }
.wbm-field { margin-bottom: 24px; }
.wbm-label { display: block; font-size: .9rem; font-weight: 600; color: var(--wbm-mid); margin-bottom: 6px; }
.wbm-req { color: var(--wbm-gold); }
.wbm-optional { font-weight: normal; color: var(--wbm-light); font-size: .85rem; }
.wbm-input, .wbm-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ddd5c8;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--wbm-font-sans);
  color: var(--wbm-dark);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.wbm-input:focus, .wbm-textarea:focus {
  outline: none;
  border-color: var(--wbm-gold);
  box-shadow: 0 0 0 3px rgba(200,149,108,.15);
}
.wbm-input--narrow { max-width: 120px; }
.wbm-input--code { font-size: 1.8rem; letter-spacing: .3em; text-align: center; max-width: 200px; }
.wbm-textarea { resize: vertical; min-height: 120px; }
.wbm-help { display: block; font-size: .82rem; color: var(--wbm-light); margin-top: 4px; }
.wbm-char-count { display: block; font-size: .8rem; color: var(--wbm-light); text-align: right; margin-top: 2px; }

/* Attendance buttons */
.wbm-attendance-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.wbm-attend-btn {
  flex: 1;
  min-width: 160px;
  padding: 14px 20px;
  border: 2px solid #ddd5c8;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: all .2s;
  color: var(--wbm-mid);
}
.wbm-attend-btn:hover, .wbm-attend-btn.active { border-color: var(--wbm-gold); background: #fdf6f0; color: var(--wbm-gold); }
.wbm-attend-btn--no:hover, .wbm-attend-btn--no.active { border-color: #c0a898; background: #faf5f2; color: var(--wbm-light); }

/* Radios & Checkboxes */
.wbm-fieldset { border: none; padding: 0; margin: 0 0 24px; }
.wbm-legend { font-size: .9rem; font-weight: 600; color: var(--wbm-mid); margin-bottom: 10px; display: block; }
.wbm-radio-group { display: flex; flex-direction: column; gap: 10px; }
.wbm-radio-label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .95rem; line-height: 1.5; }
.wbm-radio { width: 18px; height: 18px; accent-color: var(--wbm-gold); flex-shrink: 0; margin-top: 2px; }
.wbm-checkbox-label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .9rem; line-height: 1.5; }
.wbm-checkbox { width: 18px; height: 18px; accent-color: var(--wbm-gold); flex-shrink: 0; margin-top: 2px; }
.wbm-field--consent { background: #fdf9f6; border: 1px solid #e8ddd4; border-radius: 8px; padding: 16px; }

/* ── Buttons ── */
.wbm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--wbm-font-sans);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all .2s;
}
.wbm-btn--primary { background: var(--wbm-gold); color: #fff; border-color: var(--wbm-gold); }
.wbm-btn--primary:hover { background: #b8814f; border-color: #b8814f; }
.wbm-btn--outline { background: transparent; color: var(--wbm-gold); border-color: var(--wbm-gold); }
.wbm-btn--outline:hover { background: var(--wbm-gold); color: #fff; }
.wbm-btn--ghost { background: transparent; color: var(--wbm-light); border-color: #e0d5c8; font-size: .85rem; }
.wbm-btn--ghost:hover { background: #f5f0eb; }
.wbm-btn--sm { padding: 8px 14px; font-size: .85rem; }
.wbm-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Messages ── */
.wbm-success-msg {
  background: #f0f8f0;
  border: 1.5px solid #a8c8a0;
  border-radius: var(--wbm-radius);
  padding: 24px;
  text-align: center;
  margin: 16px 0;
  color: #2d5a2d;
}
.wbm-success-msg--neutral { background: #f8f5f0; border-color: #d0c0b0; color: var(--wbm-mid); }
.wbm-success-icon { font-size: 2rem; margin: 0 0 8px; }
.wbm-error-msg {
  background: #fdf0f0;
  border: 1.5px solid #e0a0a0;
  border-radius: 8px;
  padding: 14px 18px;
  color: #8b2020;
  font-size: .9rem;
  margin: 12px 0;
}
.wbm-error-msg ul { margin: 4px 0 0 16px; padding: 0; }
.wbm-empty { text-align: center; color: var(--wbm-light); font-style: italic; padding: 40px 0; }

/* ── Access page ── */
.wbm-access-section { min-height: 80svh; display: flex; align-items: center; background: var(--wbm-ivory); }
.wbm-access-card {
  background: #fff;
  border-radius: var(--wbm-radius);
  padding: 48px 40px;
  box-shadow: var(--wbm-shadow);
  text-align: center;
  border-top: 4px solid var(--wbm-gold);
}
.wbm-access-icon { font-size: 3rem; margin-bottom: 16px; }
.wbm-access-contact { font-size: .9rem; color: var(--wbm-light); margin-top: 24px; }
.wbm-access-contact a { color: var(--wbm-gold); }

/* ── Wishes ── */
.wbm-wishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.wbm-wish-card {
  background: #fff;
  border-radius: var(--wbm-radius);
  padding: 24px;
  box-shadow: var(--wbm-shadow);
  position: relative;
  border-left: 4px solid var(--wbm-blush);
}
.wbm-wish-card--featured { border-left-color: var(--wbm-gold); }
.wbm-wish-star { position: absolute; top: 16px; right: 16px; color: var(--wbm-gold); font-size: 1.2rem; }
.wbm-wish-text { margin: 0 0 16px; font-style: italic; color: var(--wbm-mid); line-height: 1.7; }
.wbm-wish-text p { margin: 0; }
.wbm-wish-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.wbm-wish-author { font-style: normal; font-weight: 600; font-size: .9rem; color: var(--wbm-dark); }
.wbm-wish-date { font-size: .8rem; color: var(--wbm-light); }

/* ── Upload / Dropzone ── */
.wbm-dropzone {
  border: 2px dashed var(--wbm-blush);
  border-radius: var(--wbm-radius);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  background: #fdf9f6;
  transition: all .2s;
  position: relative;
}
.wbm-dropzone:hover, .wbm-dropzone--over { border-color: var(--wbm-gold); background: #fef6ef; }
.wbm-dropzone-icon { font-size: 3rem; margin-bottom: 12px; }
.wbm-dropzone-text { font-size: 1.05rem; color: var(--wbm-mid); margin: 0 0 4px; font-weight: 600; }
.wbm-dropzone-sub { font-size: .9rem; color: var(--wbm-light); margin: 0; }
.wbm-file-input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.wbm-file-list { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.wbm-file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e8ddd4;
  border-radius: 8px;
  padding: 12px;
}
.wbm-file-preview-wrap { width: 48px; height: 48px; border-radius: 6px; overflow: hidden; background: #f0ebe5; flex-shrink: 0; }
.wbm-file-thumb { width: 100%; height: 100%; object-fit: cover; }
.wbm-file-info { flex: 1; min-width: 0; }
.wbm-file-name { display: block; font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbm-file-size { display: block; font-size: .8rem; color: var(--wbm-light); }
.wbm-file-progress { width: 100%; height: 4px; margin-top: 4px; accent-color: var(--wbm-gold); }
.wbm-file-remove { background: none; border: none; color: var(--wbm-light); cursor: pointer; font-size: 1.1rem; padding: 4px; flex-shrink: 0; }
.wbm-file-remove:hover { color: #c0392b; }
.wbm-status--ok { color: #2d7a2d; font-size: .8rem; }
.wbm-status--err { color: #c0392b; font-size: .8rem; }
.wbm-overall-progress { margin: 16px 0; display: flex; align-items: center; gap: 10px; }
.wbm-progress { flex: 1; height: 8px; accent-color: var(--wbm-gold); border-radius: 4px; }

/* ── Gallery ── */
.wbm-gallery-controls { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.wbm-filter-group, .wbm-sort-group { display: flex; gap: 8px; flex-wrap: wrap; }
.wbm-filter-btn, .wbm-sort-btn {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid #e0d5c8;
  background: #fff;
  color: var(--wbm-mid);
  font-size: .85rem;
  text-decoration: none;
  transition: all .2s;
}
.wbm-filter-btn.active, .wbm-sort-btn.active,
.wbm-filter-btn:hover, .wbm-sort-btn:hover { border-color: var(--wbm-gold); color: var(--wbm-gold); background: #fdf6f0; }
.wbm-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.wbm-gallery-item { position: relative; border-radius: var(--wbm-radius); overflow: hidden; background: #f0ebe5; box-shadow: var(--wbm-shadow); }
.wbm-gallery-thumb-btn { display: block; width: 100%; border: none; background: none; padding: 0; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.wbm-gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; display: block; }
.wbm-gallery-thumb-btn:hover .wbm-gallery-img { transform: scale(1.05); }
.wbm-video-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: rgba(0,0,0,.55);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  pointer-events: none;
}
.wbm-gallery-meta { padding: 10px 12px; }
.wbm-gallery-caption { font-size: .85rem; color: var(--wbm-mid); margin: 0 0 8px; }
.wbm-gallery-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Lightbox ── */
.wbm-lightbox {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px;
}
.wbm-lightbox[hidden] { display: none; }
.wbm-lightbox-close, .wbm-lightbox-prev, .wbm-lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  padding: 0;
}
.wbm-lightbox-close:hover,.wbm-lightbox-prev:hover,.wbm-lightbox-next:hover { background: rgba(255,255,255,.25); }
.wbm-lightbox-close { top: 16px; right: 16px; }
.wbm-lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.wbm-lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.wbm-lightbox-content { max-width: 95vw; max-height: 80svh; }
.wbm-lb-img { max-width: 95vw; max-height: 80svh; object-fit: contain; border-radius: 8px; }
.wbm-lb-video { max-width: 95vw; max-height: 80svh; border-radius: 8px; }
.wbm-lightbox-caption { color: rgba(255,255,255,.75); font-size: .9rem; margin-top: 12px; text-align: center; }

/* ── Modal ── */
.wbm-modal { position: fixed; inset: 0; z-index: 99998; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.wbm-modal[hidden] { display: none; }
.wbm-modal-box { background: #fff; border-radius: var(--wbm-radius); padding: 32px; max-width: 480px; width: 100%; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.wbm-modal-close { position: absolute; top: 12px; right: 12px; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--wbm-light); }

/* ── Slideshow ── */
.wbm-slideshow-wrap { position: relative; background: #000; border-radius: var(--wbm-radius); overflow: hidden; aspect-ratio: 16/9; max-width: 100%; }
.wbm-ss-stage { width: 100%; height: 100%; position: relative; }
.wbm-ss-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; display: flex; align-items: center; justify-content: center; }
.wbm-ss-slide.active { opacity: 1; }
.wbm-ss-img { width: 100%; height: 100%; object-fit: contain; }
.wbm-ss-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent,rgba(0,0,0,.7)); color: #fff; padding: 24px 20px 16px; font-size: .9rem; }
.wbm-slideshow-fs { position: absolute; top: 12px; right: 12px; z-index: 10; background: rgba(0,0,0,.4); border: none; color: #fff; border-radius: 6px; padding: 6px 10px; cursor: pointer; font-size: 1.1rem; }

/* ── Pagination ── */
.wbm-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.wbm-page-btn {
  min-width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1.5px solid #e0d5c8;
  text-decoration: none;
  color: var(--wbm-mid);
  font-size: .9rem;
  transition: all .2s;
}
.wbm-page-btn.active, .wbm-page-btn:hover { background: var(--wbm-gold); border-color: var(--wbm-gold); color: #fff; }

/* ── Privacy page ── */
.wbm-privacy-date { text-align: center; color: var(--wbm-light); margin-bottom: 40px; }
.wbm-section h2 { font-family: var(--wbm-font-serif); font-weight: normal; margin: 32px 0 10px; font-size: 1.3rem; }
.wbm-section h3 { font-size: 1.05rem; margin: 20px 0 6px; color: var(--wbm-mid); }
.wbm-section p, .wbm-section li { line-height: 1.75; color: var(--wbm-mid); }

/* ── QR Admin grid ── */
.wbm-qr-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 24px; margin-top: 24px; }
.wbm-qr-card { background: #fff; border-radius: 8px; padding: 24px; text-align: center; border: 1px solid #e0d5c8; }
.wbm-qr-card h3 { margin: 0 0 12px; font-size: 1rem; }
.wbm-qr-card img { display: block; margin: 0 auto 12px; }
.wbm-qr-url { font-size: .75rem; color: #888; margin: 8px 0; word-break: break-all; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .wbm-section { padding: 40px 16px; }
  .wbm-access-card { padding: 32px 20px; }
  .wbm-event-cards { grid-template-columns: 1fr; }
  .wbm-gallery-grid { grid-template-columns: repeat(2,1fr); }
  .wbm-lightbox-prev { left: 6px; }
  .wbm-lightbox-next { right: 6px; }
  .wbm-cta-grid { grid-template-columns: repeat(2,1fr); }
  .wbm-attendance-buttons { flex-direction: column; }
  .wbm-attend-btn { min-width: unset; }
}

/* ── Focus / Accessibility ── */
*:focus-visible { outline: 3px solid var(--wbm-gold); outline-offset: 3px; border-radius: 4px; }

/* Slideshow v1.1 */
.wbm-slideshow{position:relative;background:#000;min-height:80vh;display:flex;align-items:center;justify-content:center;overflow:hidden}.wbm-slideshow-stage{width:100%;height:80vh;position:relative}.wbm-slide{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.wbm-slide[hidden]{display:none}.wbm-slide img,.wbm-slide video{width:100%;height:100%;object-fit:contain}.wbm-slide p{position:absolute;left:0;right:0;bottom:0;margin:0;padding:32px 20px 16px;background:linear-gradient(transparent,rgba(0,0,0,.75));color:#fff;text-align:center}.wbm-slideshow-fullscreen{position:absolute;top:16px;right:16px;z-index:2;background:rgba(255,255,255,.15);color:#fff;border-color:rgba(255,255,255,.4)}
