/* ============================================================
   WEDDING SITE — STYLESHEET
   Soft, elegant style: Playfair Display + Lato, light background,
   rounded cards. Colors driven by CSS variables set from config.js.
   ============================================================ */

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

/* ── CSS VARIABLES (overwritten by config.js at runtime) ─── */
:root {
  --primary:       #1a3a8f;
  --primary-light: #2d52b8;
  --secondary:     #c9a84c;
  --dark:          #0f2260;
  --light:         #f7f5f2;
  --card-bg:       #ffffff;
  --text:          #333333;
  --text-light:    #555555;

  --font-display: 'Playfair Display', serif;
  --font-body:    'Lato', sans-serif;

  --radius:     12px;
  --radius-sm:  8px;
  --transition: 0.3s ease;
  --shadow:     0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.14);
}

/* ── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--light);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
}

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

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }

h1, h2, h3 { font-family: var(--font-display); }

section { padding: 3rem 1.5rem; }

/* ── SECTION TITLES ─────────────────────────────────────── */
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-style: italic;
}

/* ── SECTION DIVIDER ────────────────────────────────────── */
.section-divider {
  width: 300px;
  height: 4px;
  background: linear-gradient(to right, transparent, var(--secondary), transparent);
  margin: 3.5rem auto;
  opacity: 0.6;
  border-radius: 4px;
}

/* ── FADE-IN ANIMATION ──────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── NAVIGATION ─────────────────────────────────────────── */
header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 1px solid rgba(26,58,143,0.12);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

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

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  list-style: none;
  justify-content: flex-end;
}

.nav-links a {
  padding: 0.35rem 0.75rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(26,58,143,0.07);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav open */
body.nav-open .nav-links { display: flex; }
body.nav-open header { z-index: 9999; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  margin-bottom: 3rem;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 65vh;
  overflow: hidden;
  border-radius: var(--radius);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(72%);
  transform: scale(1.03);
  transition: transform 6s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.07);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  width: 90%;
  max-width: 700px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-content h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
  opacity: 0.92;
}

.hero-caption {
  font-size: 1rem;
  opacity: 0.88;
  font-style: italic;
}

.hero-date {
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.hero-tag {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  opacity: 0.88;
}

/* ── COUNTDOWN ───────────────────────────────────────────── */
.countdown {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: nowrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  min-width: 60px;
  backdrop-filter: blur(4px);
}

.countdown-number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: white;
  line-height: 1;
}

.countdown-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 0.2rem;
}

@media (max-width: 480px) {
  .countdown { gap: 0.4rem; }
  .countdown-unit { padding: 0.4rem 0.5rem; min-width: 0; }
  .countdown-number { font-size: 1.4rem; }
  .countdown-label { font-size: 0.52rem; letter-spacing: 0.08em; }
}

/* ── STORY SECTIONS ──────────────────────────────────────── */
.two-column {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 2rem auto 0;
}

.story-card {
  flex: 1;
  min-width: 280px;
}

.story-card h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.story-card p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1.02rem;
}

.story-image-wrapper {
  flex: 1;
  min-width: 280px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.story-image-wrapper img {
  width: 100%;
  height: 340px;
  border-radius: var(--radius);
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.story-image-wrapper:hover img {
  transform: scale(1.04);
}

.story-caption {
  position: absolute;
  bottom: 0.8rem;
  left: 0.8rem;
  background: var(--primary);
  color: white;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  opacity: 0.88;
}

/* ── WEDDING PARTY CARDS ─────────────────────────────────── */
.wp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.wp-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}

.wp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.wp-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 0.8rem;
  transition: transform 0.5s ease;
}

.wp-card:hover img {
  transform: scale(1.03);
}

.wp-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  color: var(--primary);
}

.wp-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  font-style: italic;
}

/* VIP cards slightly larger */
.wp-card.vip img { height: 260px; }

/* ── WEEKEND EVENTS ──────────────────────────────────────── */
.events-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.event-block {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.event-block.reverse { flex-direction: row-reverse; }

.event-image-wrapper {
  flex: 1;
  min-width: 260px;
  border-radius: var(--radius);
  overflow: hidden;
}

.event-image-wrapper img {
  width: 100%;
  height: 300px;
  border-radius: var(--radius);
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.event-image-wrapper:hover img { transform: scale(1.04); }

.event-content {
  flex: 1;
  min-width: 260px;
}

.event-content h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.event-time, .event-location {
  font-weight: 700;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  color: var(--text);
}

.event-dresscode {
  font-size: 0.88rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.event-content p.desc {
  color: var(--text-light);
  line-height: 1.8;
  margin-top: 0.5rem;
}

/* ── GALLERY ─────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(0.88);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  cursor: zoom-out;
  animation: fadeIn 0.2s ease;
}

.lightbox-inner img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
  background: none;
  border: none;
  line-height: 1;
}

.lightbox-close:hover { opacity: 1; }

.hidden { display: none !important; }

/* ── RSVP FORM ───────────────────────────────────────────── */
.rsvp-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.rsvp-header {
  background: var(--primary);
  color: white;
  padding: 2rem;
  text-align: center;
}

.rsvp-header h3 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 0.3rem;
}

.rsvp-header p {
  font-size: 0.88rem;
  opacity: 0.8;
  font-style: italic;
}

.rsvp-body { padding: 2rem; }

/* Attending toggle */
.attending-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.toggle-btn {
  padding: 1rem;
  border: 2px solid rgba(26,58,143,0.2);
  background: transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.toggle-btn .toggle-icon { display: block; font-size: 1.6rem; margin-bottom: 0.3rem; }
.toggle-btn .toggle-sub  { display: block; font-family: var(--font-body); font-size: 0.7rem; opacity: 0.6; margin-top: 0.2rem; }

.toggle-btn:hover { border-color: var(--primary); color: var(--primary); }
.toggle-btn.selected-yes { background: var(--primary); border-color: var(--primary); color: white; box-shadow: 0 4px 16px rgba(26,58,143,0.3); }
.toggle-btn.selected-no  { background: #5a3a3a; border-color: #8b5a5a; color: #fde8e8; }

/* Form fields */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.45rem;
}

.form-label .req { color: var(--secondary); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(26,58,143,0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text);
  background: var(--light);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,143,0.1);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a3a8f' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-textarea { min-height: 100px; resize: vertical; line-height: 1.6; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Guest row */
.guest-row {
  background: rgba(26,58,143,0.04);
  border: 1px solid rgba(26,58,143,0.1);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
}

.guest-row-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.remove-guest-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: rgba(26,58,143,0.3);
  cursor: pointer;
  font-size: 1rem;
  transition: color var(--transition);
  padding: 0.2rem;
}
.remove-guest-btn:hover { color: #8b4a4a; }

.add-guest-btn {
  width: 100%;
  padding: 0.65rem;
  border: 1px dashed rgba(26,58,143,0.3);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 1.25rem;
}
.add-guest-btn:hover { background: rgba(26,58,143,0.05); border-color: var(--primary); }

/* Attend/decline sections */
.rsvp-attending-fields { display: none; }
.rsvp-attending-fields.visible { display: block; }
.rsvp-decline-section { display: none; }
.rsvp-decline-section.visible { display: block; }

.decline-box {
  text-align: center;
  background: rgba(26,58,143,0.05);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.decline-box-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.decline-box p { font-style: italic; color: var(--text-light); }

/* Form divider */
.form-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
}
.form-divider::before,
.form-divider::after { content: ''; flex: 1; height: 1px; background: rgba(26,58,143,0.12); }

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  display: none;
  margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(26,58,143,0.4);
  margin-top: 0.75rem;
}

/* Form status messages */
.form-status {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-style: italic;
  font-size: 0.98rem;
  text-align: center;
  line-height: 1.7;
}
.form-status.success { display: block; background: rgba(26,58,143,0.08); border: 1px solid rgba(26,58,143,0.2); color: var(--primary); }
.form-status.error   { display: block; background: rgba(180,30,30,0.06); border: 1px solid rgba(180,30,30,0.2); color: #8b1a1a; }
.form-status.decline { display: block; background: rgba(26,58,143,0.05); border: 1px solid rgba(26,58,143,0.15); color: var(--primary); }

/* Setup note */
.setup-note {
  max-width: 640px;
  margin: 0 auto 2rem;
  background: #fffbee;
  border: 1px solid rgba(201,168,76,0.4);
  border-left: 4px solid var(--secondary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.83rem;
  line-height: 1.75;
  color: var(--text);
}
.setup-note strong { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.5rem; }
.setup-note ol { padding-left: 1.2rem; }
.setup-note li { margin-bottom: 0.3rem; }
.setup-note code { background: rgba(26,58,143,0.1); color: var(--primary); padding: 0.1rem 0.35rem; border-radius: 3px; font-size: 0.88em; }

/* ── REGISTRY ────────────────────────────────────────────── */
.registry-buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.registry-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--primary);
  color: white;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  text-decoration: none;
}

.registry-btn:hover {
  background: var(--primary-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,58,143,0.3);
}

.registry-btn .btn-icon { font-size: 1.2rem; }

/* ── MESSAGES FORM ───────────────────────────────────────── */
.messages-wrap {
  max-width: 680px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  border: 1px solid rgba(26,58,143,0.08);
  position: relative;
  overflow: hidden;
}

.messages-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200%;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.messages-intro {
  text-align: center;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.75rem;
  font-size: 1rem;
}

/* ── MARRIED MESSAGE ─────────────────────────────────────── */
.married-message {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.08rem;
  color: var(--text-light);
  line-height: 1.85;
  font-style: italic;
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── HEARTS ──────────────────────────────────────────────── */
.hearts-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.heart {
  position: absolute;
  color: rgba(201,168,76,0.25);
  font-size: 1.1rem;
  opacity: 0;
  animation: floatUp linear infinite;
  pointer-events: none;
  user-select: none;
}

@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 0.5; }
  100% { transform: translateY(-110vh) translateX(var(--drift,0px)) rotate(var(--spin,0deg)); opacity: 0; }
}

/* Hearts always behind page content */
header, section, footer { position: relative; z-index: 1; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  margin-top: 3rem;
}

footer p { margin-bottom: 0.3rem; font-size: 0.95rem; }
footer .footer-hashtag { font-style: italic; font-size: 0.85rem; opacity: 0.65; margin-top: 0.5rem; }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-image-wrapper { height: 55vh; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content h2 { font-size: 1.25rem; }
  .two-column { flex-direction: column; }
  .event-block, .event-block.reverse { flex-direction: column; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    border-top: 1px solid rgba(26,58,143,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 0.75rem 1rem;
    gap: 0.1rem;
    z-index: 9999;
  }
  .nav-links a { padding: 0.6rem 1rem; display: block; }
  .nav-toggle { display: flex; }
  body.nav-open header { position: sticky; }
  header { position: sticky; z-index: 9999; }
}

@media (max-width: 600px) {
  section { padding: 2.2rem 1.2rem; }
  .hero-image-wrapper { height: 50vh; }
  .gallery-item img { height: 160px; }
  .form-row { grid-template-columns: 1fr; }
  .attending-toggle { grid-template-columns: 1fr 1fr; }
  .messages-wrap { padding: 1.5rem; }
}
