/* ═══════════════════════════════════════════════════════════════════════════
   DEIVIDS & KITIJA — WEDDING INVITATION
   Classic Vintage Romance theme
   Ivory paper (#FAF7F2) · burgundy ink (#800020)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --ivory: #faf7f2;
  --burgundy: #800020;

  --ink-strong: rgba(128, 0, 32, 0.95);
  --ink-soft: rgba(128, 0, 32, 0.72);
  --line: rgba(128, 0, 32, 0.42);
  --line-soft: rgba(128, 0, 32, 0.26);
  --line-faint: rgba(128, 0, 32, 0.16);

  --card-bg: #fffdf9;
  --shadow: 0 14px 34px -16px rgba(128, 0, 32, 0.2);

  /* Scrollbar */
  --scrollbar-thumb: rgba(128, 0, 32, 0.25);
  --scrollbar-track: transparent;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }

::selection {
  background: rgba(128, 0, 32, 0.22);
  color: #4a0512;
}

body {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--ink-strong);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO — ivory wash over the couple photo, script names in burgundy ink
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: -60px;
  background-image: url("./hero-bg.jpg");
  background-size: cover;
  background-position: center 35%;
  z-index: 0;
  animation: hero-kenburns 24s ease-in-out infinite alternate;
}

@keyframes hero-kenburns {
  from { transform: scale(1.0) translateY(0); }
  to   { transform: scale(1.06) translateY(-18px); }
}

/* Ivory wash — keeps the photo as a soft watercolor behind the ink */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(250, 247, 242, 0.5) 0%, rgba(250, 247, 242, 0.32) 45%, rgba(250, 247, 242, 0.4) 100%);
  pointer-events: none;
  z-index: 1;
}

.main-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 2.1rem;
}

.right-controls {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* ── Language switch (ivory pill, burgundy ink) ─────────────────────────── */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(250, 247, 242, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lang-btn {
  border: none;
  border-radius: 999px;
  padding: 0.36rem 0.5rem;
  background: transparent;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "Playfair Display", serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, transform 0.15s;
}

.lang-btn:hover { color: var(--burgundy); }

.lang-btn.is-active {
  background: var(--burgundy);
  color: #fffdf9;
}

.lang-btn:active { transform: scale(0.96); }

.flag {
  display: inline-block;
  width: 16px;
  height: 11px;
  border-radius: 2px;
  border: 1px solid rgba(128, 0, 32, 0.25);
}

.flag-en {
  background: linear-gradient(0deg, #c8102e 0 33%, #ffffff 33% 66%, #012169 66% 100%);
}

.flag-hu {
  background: linear-gradient(0deg, #ce2939 0 33%, #ffffff 33% 66%, #477050 66% 100%);
}

.flag-ro {
  background: linear-gradient(90deg, #002b7f 0 33%, #fcd116 33% 66%, #ce1126 66% 100%);
}

.flag-lv {
  background: linear-gradient(0deg, #8c1c3a 0 42%, #ffffff 42% 58%, #8c1c3a 58% 100%);
}

/* ── Hero content — script names, italic-serif details ─────────────────── */
.hero-content {
  position: relative;
  z-index: 3;
  width: min(980px, 92vw);
  animation: fadeUp 1s ease-out;
}

.hero-content h1 {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  color: var(--burgundy);
  -webkit-text-stroke: 0.6px var(--burgundy);
  text-shadow: 0 1px 10px rgba(255, 253, 249, 0.35);
  font-size: clamp(3rem, 9vw, 6.2rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.hero-content .ampersand {
  display: inline-block;
  color: var(--burgundy);
}

.subheading {
  margin: 0.6rem 0 0.8rem;
  color: var(--ink-soft);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.45em;
  font-weight: 500;
  text-transform: uppercase;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0.7rem 0 0.4rem;
}

.hero-divider-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--burgundy), transparent);
  opacity: 0.5;
}

.hero-divider-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--burgundy);
  opacity: 0.6;
}

.hero-sub {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  margin: 0.6rem 0 0;
}

.hero-message {
  margin: 0.5rem 0 0;
  color: rgba(128, 0, 32, 0.7);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN — warm ivory paper with a faint dotted grain
   ═══════════════════════════════════════════════════════════════════════════ */

main {
  background: var(--ivory);
  background-image: radial-gradient(rgba(128, 0, 32, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
}

.info-block {
  width: min(960px, 92vw);
  margin: 0 auto;
  padding: 4rem 0;
  position: relative;
}

.info-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--burgundy), transparent);
  opacity: 0.3;
}

.info-block h2 {
  margin-top: 0;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 2.4rem;
  color: var(--burgundy);
}

.info-block p {
  color: rgba(128, 0, 32, 0.85);
  line-height: 1.7;
  font-size: 0.98rem;
  font-style: italic;
}

.info-block a {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.info-block a:hover {
  color: rgba(128, 0, 32, 0.6);
}

/* ── Double-line frame with filigree corners ───────────────────────────── */
.filigree-frame {
  position: relative;
  border: 1px solid var(--line-soft);
  background-color: rgba(255, 253, 249, 0.6);
}

.filigree-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--line-faint);
  pointer-events: none;
  z-index: 2;
}

.corner {
  position: absolute;
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  opacity: 0.85;
  pointer-events: none;
  z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' fill='none'%3E%3Cpath d='M1 19V8c0-5.6 4.4-10 10-10h7' stroke='%23800020' stroke-opacity='.55' stroke-width='1'/%3E%3Cpath d='M1 26v-9c0-3.9 3.1-7 7-7s7 3.1 7 7-3.1 7-7 7H8c-4 0-7-3.1-7-7z' stroke='%23800020' stroke-opacity='.35'/%3E%3Ccircle cx='7' cy='7' r='1.6' fill='%23800020' fill-opacity='.45'/%3E%3C/svg%3E");
}

.corner-tl { top: -1px; left: -1px; }
.corner-tr { top: -1px; right: -1px; transform: scaleX(-1); }
.corner-bl { bottom: -1px; left: -1px; transform: scaleY(-1); }
.corner-br { bottom: -1px; right: -1px; transform: scale(-1, -1); }

/* ═══════════════════════════════════════════════════════════════════════════
   WEDDING DETAILS — date line + venue timeline with line-art icons
   ═══════════════════════════════════════════════════════════════════════════ */

.details-date {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--burgundy);
  letter-spacing: 0.02em;
  margin-bottom: 1.6rem;
}

/* ── Simple timeline — time + event list ──────────────────────────────── */
.timeline {
  max-width: 480px;
  margin: 1.8rem auto 0;
  padding: 1.6rem 1.8rem;
  border-radius: 4px;
}

.timeline-item {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 0.65rem 0.3rem;
  border-bottom: 1px solid var(--line-faint);
}

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

.timeline-time {
  flex: 0 0 3.4rem;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--burgundy);
  font-size: 1.05rem;
  white-space: nowrap;
  text-align: right;
}

.timeline-event {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 0.95rem;
}

/* ── SVARĪGAS DETAĻAS — horizontal timeline schedule ─────────────────── */
.schedule { --slot-h: 150px; --dot-sz: 12px; margin-top: 1.2rem; }

.schedule-title {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  text-align: center;
  color: var(--burgundy);
  font-size: clamp(1.5rem, 4vw, 2.3rem);
}

.schedule-axis {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 6px;
  max-width: 780px;
  margin: 2.4rem auto 0;
}

/* every node is the same fixed height — all dots end up at exact center */
.node { position: relative; height: calc(var(--slot-h) * 2 + var(--dot-sz)); }

/* the horizontal accent line, dead-center on the axis (== dot row) */
.schedule-axis::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: var(--burgundy);
}

/* dot pinned to the exact vertical center of its node */
.schedule-axis .dot {
  position: absolute;
  left: 50%;
  top: calc(50% - var(--dot-sz) / 2);
  transform: translateX(-50%);
  width: var(--dot-sz);
  height: var(--dot-sz);
  border-radius: 50%;
  background: var(--burgundy);
  z-index: 1;
}

/* text slots and icon slots are absolutely positioned halves — zero flow,
   nothing that can drift the dot off the line */
.node > .s-above {
  position: absolute;
  left: 0; right: 0;
  top: calc(50% - var(--slot-h));
  height: var(--slot-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.node > .s-below {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: var(--slot-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* icons live in the half that is NOT taken by text — type decides which */
.node-text-top > .icon {
  position: absolute;
  left: 50%;
  top: calc(50% - var(--dot-sz) / 2);          /* icon below dot */
  transform: translateX(-50%);
  width: 54px;
  height: calc(var(--slot-h) + var(--dot-sz));
}

.node-icon-top > .icon {
  position: absolute;
  left: 50%;
  top: calc(50% - var(--slot-h) - var(--dot-sz) / 2); /* icon above dot */
  transform: translateX(-50%);
  width: 54px;
  height: calc(var(--slot-h) + var(--dot-sz));
}

.node > .icon { display: flex; align-items: center; justify-content: center; color: #1c1917; }
.node > .icon svg { width: 54px; height: 54px; }

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

.s-time {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 1.35rem;
  color: var(--burgundy);
}

.s-label {
  font-family: "Playfair Display", serif;
  font-style: italic;
  line-height: 1.45;
  font-size: 0.92rem;
  color: var(--burgundy);
}

/* ── Venue cards (framed) ──────────────────────────────────────────────── */
.venues-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin-top: 1.5rem;
}

.venue-card {
  position: relative;
  border-radius: 4px;
  padding: 1.8rem 1.5rem;
  text-align: center;
}

.venue-card h3, .contact-name, .share-dialog h2 {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  color: var(--burgundy);
  margin-top: 0;
}

.venue-card h3 { font-size: 1.5rem; }

.venue-time {
  font-family: "Playfair Display", serif;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

.venue-name {
  font-family: "Playfair Display", serif;
  font-style: italic;
  line-height: 1.6;
  font-size: 0.98rem;
  color: rgba(128, 0, 32, 0.85);
  margin-top: 0.35rem;
}

.maps-button {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-family: "Playfair Display", serif;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--burgundy);
  background: rgba(128, 0, 32, 0.05);
  transition: background 0.25s ease, transform 0.2s ease, border-color 0.2s;
  margin-top: 0.6rem;
}

.maps-button:hover {
  background: rgba(128, 0, 32, 0.1);
  transform: translateY(-1px);
  border-color: var(--line);
}

/* ── Gifts + Additional — two-column framed band ─────────────────────── */
.details-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin-top: 2.2rem;
}

.detail-col {
  position: relative;
  padding: 1.4rem 1.6rem;
  text-align: center;
}

.detail-col-gifts { border-left: 1px solid var(--line-soft); }
.detail-col-extra { border-right: 1px solid var(--line-soft); }

.detail-col-title {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  color: var(--burgundy);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
}

.detail-col-body {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

/* ── Dress code block (framed) ────────────────────────────────────────── */
.dress-code-block {
  margin-top: 2.2rem;
  padding: 1.8rem 1.8rem 2rem;
  border-radius: 4px;
  text-align: center;
}

.dress-code-title {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  color: var(--burgundy);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.dress-code-subtitle {
  font-family: "Great Vibes", cursive;
  color: var(--ink-strong);
  font-size: 1.7rem;
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

.dress-code-desc {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

/* ── Dress code swatches (circular) ───────────────────────────────────── */
.swatch-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 1.4rem;
}

.swatch {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c);
  box-shadow:
    0 0 0 2px #fffdf9,
    0 0 0 3px rgba(128, 0, 32, 0.22),
    inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

/* ── Contact cards (framed) ───────────────────────────────────────────── */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  color: rgba(128, 0, 32, 0.9);
}

.contact-name { font-size: 1.5rem; }

.contact-phone {
  font-family: "Playfair Display", serif;
  font-style: italic;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  color: var(--burgundy);
}

/* ── Card entrance — fade up when scrolled into view ─────────────────── */
.venue-card, .contact-card, .detail-col, .dress-code-block {
  opacity: 0;
  transform: translateY(24px);
}

.venue-card.in-view, .contact-card.in-view, .detail-col.in-view, .dress-code-block.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WEDDING PICTURES / GUEST UPLOADS
   ═══════════════════════════════════════════════════════════════════════════ */

.pictures-upload-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

#pic-input { display: none; }

.upload-file-label {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  color: var(--burgundy);
  background: rgba(128, 0, 32, 0.05);
  font-family: "Playfair Display", serif;
  font-style: italic;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.2s, border-color 0.2s;
}

.upload-file-label:hover {
  background: rgba(128, 0, 32, 0.09);
  border-color: var(--line);
}

#upload-pic-btn {
  padding: 0.5rem 1.1rem;
  background: var(--burgundy);
  color: #fffdf9;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 0.88rem;
  transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
}

#upload-pic-btn:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

#upload-pic-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.pic-file-count { font-size: 0.85rem; color: var(--ink-soft); font-style: italic; }

.upload-pic-status {
  min-height: 1.3em;
  font-size: 0.88rem;
  color: var(--burgundy);
  margin-bottom: 0.75rem;
}

.pictures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.picture-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-radius: 6px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--line-faint);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

/* inner double line */
.picture-item::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(128, 0, 32, 0.1);
  pointer-events: none;
  z-index: 2;
}

.picture-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line-soft);
}

.picture-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

.pic-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

.pic-video-wrap { position: relative; line-height: 0; }

.pic-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.pic-download-btn {
  display: block;
  text-align: center;
  padding: 0.35rem 0.5rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.04em;
  background: rgba(128, 0, 32, 0.05);
  transition: background 0.2s, color 0.2s;
}

.pic-download-btn:hover { background: rgba(128, 0, 32, 0.1); color: var(--burgundy); }

.no-pics-msg {
  color: var(--ink-soft);
  font-style: italic;
  grid-column: 1 / -1;
  font-size: 0.9rem;
}

.picture-item-hidden { display: none; }

.guest-toggle-btn {
  display: block;
  width: 100%;
  padding: 0.65rem;
  margin-top: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(128, 0, 32, 0.05);
  color: var(--burgundy);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.guest-toggle-btn:hover { background: rgba(128, 0, 32, 0.1); border-color: var(--line); }

/* ═══════════════════════════════════════════════════════════════════════════
   RSVP FORM (kept for template use — no form element in current index.html)
   ═══════════════════════════════════════════════════════════════════════════ */

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
  padding: 2rem;
  border-radius: 4px;
}

.rsvp-form label { display: flex; flex-direction: column; gap: 0.35rem; }

.rsvp-form label span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--burgundy);
  text-transform: uppercase;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  border: 1px solid rgba(128, 0, 32, 0.3);
  background: rgba(255, 255, 255, 0.6);
  color: var(--burgundy);
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder { color: var(--ink-soft); }

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.08);
}

.rsvp-form select {
  cursor: pointer;
  appearance: none;
  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='%23800020' 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;
}

.rsvp-form select option { background: var(--ivory); color: var(--burgundy); }

.rsvp-form textarea { resize: vertical; min-height: 80px; }

.guest-names-wrap { padding: 0.5rem 0 0; }

.guest-names-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guest-names-list { display: flex; flex-direction: column; gap: 0.5rem; }

.guest-entry label {
  font-size: 0.72rem;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.guest-entry input {
  padding: 0.6rem 0.9rem;
  border-radius: 4px;
  border: 1px solid rgba(128, 0, 32, 0.3);
  background: rgba(255, 255, 255, 0.6);
  color: var(--burgundy);
  font-size: 0.9rem;
}

.rsvp-submit-btn {
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--burgundy);
  color: #fffdf9;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s, filter 0.2s;
}

.rsvp-submit-btn:hover { transform: translateY(-1px); filter: brightness(1.1); }

.form-status {
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.2em;
  color: var(--burgundy);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHTBOX — dim burgundy-black scrim, light controls (images need a dark stage)
   ═══════════════════════════════════════════════════════════════════════════ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(26, 8, 14, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox-img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 4px;
  object-fit: contain;
  display: block;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-size: 2rem;
  line-height: 1;
  background: rgba(250, 247, 242, 0.08);
  border: 1px solid rgba(250, 247, 242, 0.35);
  color: var(--ivory);
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  opacity: 0.75;
}

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

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.8rem;
  line-height: 1;
  background: rgba(250, 247, 242, 0.06);
  border: 1px solid rgba(250, 247, 242, 0.3);
  color: var(--ivory);
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  opacity: 0.6;
  user-select: none;
}

.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }

.lightbox-prev { left: 0.6rem; }
.lightbox-next { right: 0.6rem; }

.lightbox-video { max-width: 92vw; max-height: 82vh; border-radius: 4px; display: block; outline: none; }
.lightbox-video[hidden] { display: none; }

.lightbox-download {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: rgba(128, 0, 32, 0.75);
  color: var(--ivory);
  border: 1px solid rgba(250, 247, 242, 0.35);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
}

.lightbox-download[hidden] { display: none; }
.lightbox-download::before { content: "\21A3"; font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   SHARE BUTTON & MODAL
   ═══════════════════════════════════════════════════════════════════════════ */

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(250, 247, 242, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--burgundy);
  cursor: pointer;
  flex-shrink: 0;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 0.78rem;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.share-btn:hover { background: rgba(128, 0, 32, 0.08); border-color: var(--line); }

.share-modal[hidden] { display: none; }

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 8, 17, 0.5);
}

.share-dialog {
  position: relative;
  z-index: 1;
  border-radius: 6px;
  padding: 2rem 2rem 1.6rem;
  text-align: center;
  max-width: 320px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.share-dialog h2 {
  margin: 0;
  font-size: 1.8rem;
}

.share-dialog p {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.share-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  background: rgba(128, 0, 32, 0.06);
  border: none;
  color: var(--ink-soft);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.share-close:hover { color: var(--burgundy); }

.qr-container {
  display: flex;
  justify-content: center;
  padding: 0.4rem;
  background: #fffdf9;
  border-radius: 8px;
  border: 1px solid rgba(128, 0, 32, 0.2);
}

.copy-link-btn {
  padding: 0.5rem 1.6rem;
  background: var(--burgundy);
  color: #fffdf9;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 0.85rem;
  transition: filter 0.2s, transform 0.15s;
}

.copy-link-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

.copy-confirm { color: var(--burgundy); font-size: 0.8rem; letter-spacing: 0.05em; }
.copy-confirm[hidden] { display: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.site-footer {
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  border-top: 1px solid rgba(128, 0, 32, 0.2);
  margin-top: 2rem;
}

.footer-names {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: 2.2rem;
  color: var(--burgundy);
  margin: 0 0 0.3rem;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(128, 0, 32, 0.65);
  margin: 0 0 0.9rem;
  font-style: italic;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(128, 0, 32, 0.45);
  margin: 0;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

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

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 760px) {
  /* ── Mobile: nodes stack vertically in natural flow (no abs. positions,
     nothing to squash). The shared axis line is replaced by a small dot
     between each node's two halves — same order as desktop. */
  .schedule-axis { grid-template-columns: 1fr; max-width: none; margin-inline: auto; gap: 2rem; }
  .node { height: auto; text-align: center; padding-inline: 0.6rem; }
  .schedule-axis .dot { position: relative !important; left: auto !important; top: auto !important; transform: none !important; display: block; width: var(--dot-sz); height: var(--dot-sz); margin: 0 auto; }
  .node > .s-above, .node > .s-below { position: relative !important; top: auto; height: auto; margin-block: 0.5rem; }
  .node > .icon { position: relative !important; left: auto; top: auto; transform: none; width: 52px; height: 56px; display: flex; align-items: center; justify-content: center; margin: 0.9rem auto; }
  .node > .icon svg { width: 48px; height: 48px; }
  .schedule-axis::before { display: none; }

}

@media (max-width: 760px) {
  .main-nav { align-items: stretch; gap: 0.75rem; padding: max(0.8rem, env(safe-area-inset-top)) 0.8rem 0.6rem; }
  .right-controls { width: 100%; flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .language-switch { width: 100%; justify-content: space-between; }
  .lang-btn { flex: 1; justify-content: center; min-height: 36px; padding: 0.34rem 0.22rem; font-size: 0.62rem; }

  .hero-content { margin-top: 8.7rem; width: min(96vw, 560px); padding: 0 0.25rem; }
  .hero-content h1 { font-size: clamp(2.4rem, 13vw, 4rem); }
  .subheading { letter-spacing: 0.3em; font-size: 0.62rem; margin-bottom: 1rem; }

  .info-block { width: min(94vw, 540px); padding: 2.5rem 0; }
  .info-block::before { width: 24px; }
  .info-block h2 { font-size: 2rem; }

  .venues-grid { grid-template-columns: 1fr; gap: 1rem; }
  .details-cols { grid-template-columns: 1fr; gap: 1.2rem; }
  .detail-col-gifts, .detail-col-extra { border-left: none; border-right: none; }
  .swatch-row { gap: 12px; }
  .rsvp-form { padding: 1.4rem; }
}

@media (max-width: 420px) {
  .hero-content { margin-top: 9.4rem; }
  .lang-btn span:last-child { font-size: 0.56rem; }
  .info-block h2 { font-size: 1.85rem; }

  .venues-timeline { gap: 10px; }

/* ═══════════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content h1, .subheading, .hero-content { animation: none; }
  #particles-canvas { display: none; }
}
