/* ==============================================
   Isabel & Markus — Wedding Website
   Theme: Wisteria botanical — TheKnot style
   Palette: ivory, dark green, lavender purple
   ============================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500&display=swap');

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

/* ---------- Custom Properties ---------- */
:root {
  --green-dark:   #1a3c2a;
  --green-soft:   #5b8c5a;
  --purple-acc:   #8b7aaf;
  --purple-light: #b8aed6;
  --ivory:        #faf7f2;
  --ivory-warm:   #f5f0e8;
  --charcoal:     #2d2d2d;
  --text-muted:   #6b6b6b;
  --sage:         #c5cfc0;
  --rose:         #c97b7b;
  --white:        #ffffff;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  --radius:    8px;
  --radius-lg: 12px;
  --transition: 350ms ease;
  --modal-transition: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--charcoal);
  background-color: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--green-dark);
  line-height: 1.3;
}

h2 {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: var(--space-xl);
}

h3 {
  font-size: 1.15rem;
  color: var(--purple-acc);
  margin-bottom: var(--space-sm);
  font-weight: 400;
}

p { margin-bottom: var(--space-md); }

a {
  color: var(--purple-acc);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
a:hover, a:focus-visible { color: var(--green-dark); }

/* ---------- Section ---------- */
.section {
  padding: var(--space-3xl) var(--space-lg);
}

.section-inner {
  max-width: 640px;
  margin: 0 auto;
}

.section-alt {
  background: var(--white);
}

.section-divider {
  text-align: center;
  padding: var(--space-xl) 0;
  color: var(--purple-acc);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  position: relative;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-warm) 100%);
}

.hero-illustration {
  max-width: 260px;
  width: 70%;
  height: auto;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 1s ease;
}

.hero-names {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 400;
  color: var(--green-dark);
  letter-spacing: -0.005em;
  margin-bottom: var(--space-xs);
  animation: fadeInUp 1s ease 0.15s both;
}

.hero-ampersand {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--purple-acc);
}

.hero-date {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--purple-acc);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-cta {
  animation: fadeInUp 1s ease 0.45s both;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.8rem;
  animation: fadeInUp 1s ease 1s both, bounce 2s ease-in-out 2s infinite;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform 150ms ease, box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--green-dark);
  color: var(--white);
  width: 100%;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #254d37;
  box-shadow: 0 4px 20px rgba(26, 60, 42, 0.2);
}

.btn-primary:disabled {
  background: var(--sage);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid var(--sage);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--ivory-warm);
  border-color: var(--green-dark);
}

/* ---------- Ceremony Details ---------- */
.detail-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--ivory-warm);
}

.detail-item:last-child { border-bottom: none; }

.detail-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 1.8rem;
  text-align: center;
}

.detail-content strong {
  display: block;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--purple-acc);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.detail-content span,
.detail-content a {
  font-weight: 400;
  color: var(--charcoal);
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--sage);
  padding: var(--space-md) 0;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  padding: var(--space-sm) 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  -webkit-tap-highlight-color: transparent;
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--purple-acc);
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after { content: '−'; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms ease, padding 400ms ease;
}

.faq-item.open .faq-answer { max-height: 20rem; }

.faq-answer p {
  padding: 0 0 var(--space-md);
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--green-dark);
  color: var(--ivory);
}

.footer-illustration {
  max-width: 160px;
  width: 50%;
  height: auto;
  margin: 0 auto var(--space-md);
  display: block;
  opacity: 0.7;
}

.footer-names {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--ivory);
}

.footer-contact {
  font-size: 0.85rem;
  color: var(--sage);
  line-height: 1.8;
}

.footer-contact a {
  color: var(--ivory-warm);
}

/* ==============================================
   MODAL
   ============================================== */

/* Backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(29, 29, 29, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--modal-transition), visibility var(--modal-transition);
}

.modal-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

/* Modal panel */
.modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 90dvh;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 101;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform var(--modal-transition);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
  overscroll-behavior: contain;
}

.modal.visible {
  transform: translateY(0);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-inner {
  padding: var(--space-md) var(--space-lg) var(--space-2xl);
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--sage);
  border-radius: 2px;
  opacity: 0.6;
}

.modal-close {
  position: absolute;
  top: 50%;
  right: var(--space-md);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
  z-index: 3;
}

.modal-close:hover { background: var(--ivory-warm); }

/* Modal content sections */
.modal-section {
  display: none;
}

.modal-section.active {
  display: block;
  animation: fadeSlideIn 350ms ease;
}

/* ── Modal: Name lookup ── */
.modal-title {
  text-align: center;
  margin-bottom: var(--space-xs);
}

.modal-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.name-fields {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.name-fields .input-group {
  flex: 1;
  min-width: 0;
}

/* ── Modal: RSVP Form ── */
.rsvp-greeting {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.rsvp-greeting h2 {
  font-size: 1.35rem;
  margin-bottom: var(--space-xs);
}

/* Attending toggle */
.attending-toggle {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.attending-option {
  flex: 1;
}

.attending-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.attending-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border: 2px solid var(--sage);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.attending-option label:hover {
  border-color: var(--purple-acc);
  background: rgba(139, 122, 175, 0.06);
}

.attending-option input:checked + label {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: var(--white);
}

.attending-option input:checked + label[for="attending-no"] {
  border-color: var(--rose);
  background: var(--rose);
}

/* Conditional fields */
.rsvp-details {
  display: none;
  animation: fadeSlideIn 350ms ease;
}

.rsvp-details.visible {
  display: block;
}

/* ── Modal: Success ── */
.success-message {
  text-align: center;
  padding: var(--space-lg) 0;
}

.success-message .checkmark {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-md);
  animation: popIn 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.success-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--green-dark);
  margin-bottom: var(--space-xs);
}

.success-detail {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

/* ── Modal: No match ── */
.no-match {
  text-align: center;
  padding: var(--space-lg) 0;
}

.no-match p {
  margin-bottom: var(--space-sm);
  color: var(--text-muted);
}

/* ── Modal: Deadline closed ── */
.closed-message {
  text-align: center;
  padding: var(--space-xl) 0;
  color: var(--text-muted);
}

.change-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-sm);
}

/* ---------- Form Elements ---------- */
.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.input-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--charcoal);
  background: var(--ivory-warm);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--purple-acc);
  box-shadow: 0 0 0 3px rgba(139, 122, 175, 0.15);
  background: var(--white);
}

input[type="text"]::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

textarea {
  resize: vertical;
  min-height: 5rem;
}

.form-field {
  margin-bottom: var(--space-lg);
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: var(--space-sm);
}

.field-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.submit-feedback {
  text-align: center;
  font-size: 0.9rem;
  margin-top: var(--space-md);
  min-height: 1.5em;
}

.submit-feedback.success { color: var(--green-soft); }
.submit-feedback.error { color: var(--rose); }

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.5); }
  70%  { transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Desktop (≥768px) ---------- */
@media (min-width: 768px) {
  .hero-names { font-size: 3.5rem; }
  .hero-date   { font-size: 1.25rem; }
  .hero-illustration { max-width: 340px; }

  .section { padding: var(--space-3xl) var(--space-2xl); }
  h2 { font-size: 2rem; }

  .modal {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 480px;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
  }

  .modal.visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  .modal-handle { display: none; }

  .detail-item { max-width: 480px; margin-left: auto; margin-right: auto; }

  .name-fields { max-width: 400px; margin-left: auto; margin-right: auto; }
}

/* ---------- Toast notification ---------- */
.toast {
  position: fixed;
  top: var(--space-lg);
  left: var(--space-lg);
  right: var(--space-lg);
  max-width: 480px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: center;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}



/* ==============================================
   THEKNOT-STYLE LAYOUT (ceremony page)
   ============================================== */

/* ---------- Top navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ivory-warm);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--green-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: var(--space-lg);
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--charcoal);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-sm) 0;
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--purple-acc); }

.site-nav .nav-rsvp {
  color: var(--green-dark);
  font-weight: 500;
  border: 1.5px solid var(--green-dark);
  border-radius: var(--radius);
  padding: 0.4rem 0.9rem;
  margin-left: var(--space-sm);
}

.site-nav .nav-rsvp:hover { background: var(--green-dark); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--green-dark);
  cursor: pointer;
  padding: var(--space-sm);
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Wisteria frame ---------- */
.wisteria-frame {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.wisteria-top {
  height: 200px;
  background:
    radial-gradient(ellipse 80% 100% at 20% 0%, var(--purple-light) 0%, transparent 50%),
    radial-gradient(ellipse 70% 90% at 50% 0%, var(--purple-acc) 0%, transparent 50%),
    radial-gradient(ellipse 90% 100% at 80% 0%, #c4b8d8 0%, transparent 50%),
    linear-gradient(180deg, var(--ivory-warm) 0%, var(--ivory) 100%);
  margin-bottom: var(--space-xl);
}

.wisteria-bottom {
  height: 160px;
  background:
    radial-gradient(ellipse 80% 100% at 20% 100%, var(--purple-light) 0%, transparent 50%),
    radial-gradient(ellipse 70% 90% at 50% 100%, var(--purple-acc) 0%, transparent 50%),
    radial-gradient(ellipse 90% 100% at 80% 100%, #c4b8d8 0%, transparent 50%);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
}

.wisteria-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.wisteria-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-size: 0.85rem;
  color: var(--green-dark);
  font-style: italic;
  opacity: 0.6;
}

.wisteria-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Hero (overrides old) ---------- */
.hero {
  text-align: center;
  padding: 0 var(--space-lg) var(--space-3xl);
  position: relative;
  background: var(--ivory);
  min-height: auto;
}

.hero-content { max-width: 720px; margin: 0 auto; }

.hero-names {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 400;
  color: var(--green-dark);
  letter-spacing: 0.01em;
  margin-bottom: var(--space-sm);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-amp {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  color: var(--purple-acc);
  margin: 0 0.2em;
}

.hero-date {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-xs);
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-location {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--purple-acc);
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 1s ease 0.5s both;
}

.hero-photo {
  max-width: 520px;
  margin: 0 auto var(--space-2xl);
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-cta {
  max-width: 320px;
  margin: 0 auto;
  display: block;
  animation: fadeInUp 1s ease 0.8s both;
}

.btn-large {
  font-size: 1.05rem;
  padding: 1.1rem 2rem;
  min-height: 56px;
}

/* ---------- Photo placeholder ---------- */
.photo-placeholder {
  background: linear-gradient(135deg, var(--ivory-warm) 0%, var(--sage) 100%);
  border: 1px dashed var(--purple-light);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  color: var(--green-dark);
  font-size: 0.85rem;
  font-style: italic;
  padding: var(--space-2xl);
  aspect-ratio: 4/3;
}

.photo-placeholder span:first-child { font-size: 2rem; font-style: normal; opacity: 0.5; }

.hero-photo .photo-placeholder {
  aspect-ratio: 16/10;
  font-size: 1rem;
  padding: var(--space-3xl);
  border-radius: var(--radius-lg);
}

.hero-photo .photo-placeholder span:first-child { font-size: 3rem; }

/* ---------- Section variants ---------- */
.section-inner.narrow { max-width: 560px; }

.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: var(--space-lg);
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  margin-top: calc(-1 * var(--space-md));
  margin-bottom: var(--space-xl);
}

/* ---------- Schedule ---------- */
.schedule-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--ivory-warm);
}

.schedule-item:last-child { border-bottom: none; }

.schedule-time {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--purple-acc);
  flex-shrink: 0;
  width: 90px;
  padding-top: 2px;
}

.schedule-content h3 { color: var(--green-dark); margin-bottom: var(--space-xs); }

.schedule-venue {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.schedule-rsvp {
  background: var(--ivory-warm);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-md);
  border: 1px solid var(--sage);
}

.schedule-rsvp .schedule-time { color: var(--green-dark); }

.schedule-rsvp .btn {
  margin-top: var(--space-md);
  width: auto;
  display: inline-block;
}

/* ---------- Venue cards ---------- */
.venue-card {
  background: var(--white);
  border: 1px solid var(--sage);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.venue-card:last-child { margin-bottom: 0; }

.venue-card h3 { color: var(--green-dark); margin-bottom: var(--space-xs); }

.venue-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: var(--space-xs);
}

.venue-address {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.venue-map {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--green-dark);
  padding-bottom: 1px;
  margin-bottom: var(--space-md);
}

.venue-map:hover { color: var(--purple-acc); border-bottom-color: var(--purple-acc); }

.venue-detail {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--ivory-warm);
  padding: var(--space-md);
  border-radius: var(--radius);
  line-height: 1.6;
}

.venue-detail strong { color: var(--charcoal); font-weight: 500; }

/* ---------- Photo grid ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.photo-grid-item { aspect-ratio: 1; font-size: 0.8rem; padding: var(--space-md); }

/* ---------- Wedding party ---------- */
.party-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.party-member { text-align: center; }

.photo-portrait {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  aspect-ratio: 1;
  font-size: 0.8rem;
  padding: var(--space-sm);
}

.photo-portrait span:first-child { font-size: 2.5rem; }

.party-member h4 { font-size: 1.1rem; margin-bottom: 2px; }

.party-role {
  font-size: 0.85rem;
  color: var(--purple-acc);
  font-style: italic;
}

/* ---------- Registry ---------- */
.registry-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  margin-top: var(--space-xl);
}

.registry-links .btn { width: auto; min-width: 240px; }

/* ---------- Section CTA ---------- */
.section-cta {
  text-align: center;
  background: var(--ivory-warm);
}

.section-cta .btn {
  width: auto;
  display: inline-block;
  margin-top: var(--space-md);
}

/* ---------- Footer (overrides old) ---------- */
.site-footer {
  text-align: center;
  padding: 0;
  background: var(--green-dark);
  color: var(--ivory);
  position: relative;
}

.site-footer .wisteria-bottom {
  background:
    radial-gradient(ellipse 80% 100% at 20% 100%, rgba(184, 174, 214, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse 70% 90% at 50% 100%, rgba(139, 122, 175, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse 90% 100% at 80% 100%, rgba(196, 184, 216, 0.4) 0%, transparent 50%);
  height: 140px;
  margin-top: 0;
}

.footer-names {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
  color: var(--ivory);
  padding: 0 var(--space-lg);
}

.footer-date {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--space-lg);
}

.footer-contact {
  font-size: 0.85rem;
  color: var(--ivory-warm);
  line-height: 1.8;
  padding: 0 var(--space-lg) var(--space-2xl);
}

.footer-contact a {
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px dotted var(--sage);
}

.footer-contact a:hover { color: var(--purple-light); }

/* ==============================================
   MOBILE RESPONSIVE (TheKnot layout)
   ============================================== */

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: var(--space-md) var(--space-lg);
    gap: 0;
    border-bottom: 1px solid var(--ivory-warm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
  }

  .site-nav.open { max-height: 500px; }

  .site-nav a {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--ivory-warm);
  }

  .site-nav a:last-child { border-bottom: none; }

  .site-nav .nav-rsvp {
    border: none;
    margin-left: 0;
    padding: var(--space-md) 0;
  }

  .wisteria-top { height: 140px; }
  .wisteria-bottom { height: 110px; }

  .hero-names { font-size: 2.5rem; }

  .schedule-item { flex-direction: column; gap: var(--space-xs); }

  .schedule-time {
    width: auto;
    padding-top: 0;
    font-size: 0.9rem;
  }

  .photo-grid { grid-template-columns: repeat(2, 1fr); }

  .party-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 var(--space-md); }
  .section { padding: var(--space-2xl) var(--space-md); }
  .wisteria-top { height: 100px; }
  .hero-names { font-size: 2rem; }
  .hero-date { font-size: 0.8rem; }
  .photo-grid { grid-template-columns: 1fr; }
  .venue-card { padding: var(--space-md); }
  .photo-portrait { width: 110px; height: 110px; }
}

/* ==============================================
   SPA STATE CLASSES — visibility control
   ============================================== */

/* ── Ceremony-only: hide reception elements ── */
body.page-ceremony .ceremony-hidden { display: none !important; }
body.page-ceremony-url .reception-gated { display: none !important; }

/* ── Reception locked / unlocked ── */
/* (reception section removed — kept for reference) */

/* ── Auth-gated reception content ── */
.reception-authed-only { display: none; }
body.reception-auth .reception-authed-only { display: block; }

/* ── "RSVP for reception" button in schedule: hidden when authed ── */
body.reception-auth .reception-unauthed-only { display: none; }

/* ── Dietary toggle ── */
.dietary-toggle {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.dietary-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--charcoal);
}

.dietary-option input[type="radio"] {
  accent-color: var(--green-dark);
  width: 1.1rem;
  height: 1.1rem;
}

#dietary:disabled {
  background: var(--ivory-warm);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.7;
}

/* ── Reception gated blur ── */
.reception-gated-blur {
  transition: filter 500ms ease, opacity 500ms ease;
}

body:not(.reception-auth) .reception-gated-blur {
  filter: blur(4px);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}

/* ── Floating RSVP button on gated card ── */
.gated-rsvp-btn {
  margin-top: var(--space-md);
  position: relative;
  z-index: 2;
}

/* ── Fix modal close button ── */
.modal-close {
  top: var(--space-sm);
  right: var(--space-sm);
  transform: none;
}
