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

:root {
  --pink: #f4a0a0;
  --dark-red: #6E1010;
  --black: #000;
  --white: #fff;
}

html, body {
  background: var(--black);
  color: var(--white);
  font-family: 'Familjen Grotesk', sans-serif;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* ---- PAGES ---- */
.page { display: none; width: 100%; min-height: 100vh; flex-direction: column; }
.page.active { display: flex; }

/* ========================================
   PAGE 1: LANGUAGE SELECTOR
   ======================================== */
#page-lang {
  background: var(--black);
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.lang-container {
  position: relative;
  width: min(420px, 85vw);
}

/* Single image masked into a figure-8 shape using SVG clip-path */
.figure8-img {
  width: 100%;
  display: block;
}

.figure8-img image {
  width: 100%;
  height: 100%;
}

.lang-buttons {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 12% 0;
}

.lang-btn { display: inline-block; text-decoration: none;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.65);
  color: var(--white);
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: clamp(0.7rem, 2.5vw, 0.9rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 11px 44px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.lang-btn:hover, .lang-btn:active { background: rgba(255,255,255,0.12); }

/* ========================================
   PAGE 2: MAIN
   ======================================== */
#page-main {
  background: var(--black);
  align-items: center;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Video with marquee overlaid on top */
.video-section {
  position: relative;
  width: min(1000px, 92vw);
  margin-top: 0;
}

.video-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Marquee overlaid on video */
.marquee-overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: flex-start;
  padding-top: 60px;
  pointer-events: none;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.15);
  padding-top: 8px;
}
.marquee-track span {
  font-family: 'Vina Sans', sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--white);
  padding: 0 0.4em;
  opacity: 0.92;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Date partially overlapping the video bottom */
.main-date {
  font-family: 'Vina Sans', sans-serif;
  font-size: clamp(3.5rem, 12vw, 7rem);
  color: var(--pink);
  text-align: center;
  line-height: 1;
  margin-top: -0.3em;
  position: relative;
  z-index: 2;
  letter-spacing: 0.01em;
}

/* Names block */
.main-names {
  text-align: center;
  margin-top: 12px;
  line-height: 1.25;
}
.name-line {
  font-family: 'Vina Sans', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  letter-spacing: 0.06em;
  color: var(--white);
}
.sub-line {
  font-family: 'Vina Sans', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}
.city-line {
  font-family: 'Vina Sans', sans-serif;
  font-size: clamp(2rem, 7vw, 4rem);
  letter-spacing: 0.06em;
}
.city { color: var(--dark-red); }

/* Arrows marquee */
.arrows-marquee {
  width: 100%;
  overflow: hidden;
  padding: 18px 0;
}
.arrows-track {
  display: flex;
  white-space: nowrap;
  animation: marquee-left 20s linear infinite;
}
.arrows-track span {
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: rgba(255,255,255,0.5);
  padding: 0 0.8em;
}
@keyframes marquee-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* RSVP button */
.rsvp-btn {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: clamp(0.6rem, 1.8vw, 0.78rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 44px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  margin-bottom: 40px;
}
.rsvp-btn:hover { background: rgba(255,255,255,0.1); }

/* Icons row */
.icons-row {
  display: flex;
  gap: 80px;
  justify-content: center;
  margin-top: 10px;
}
.icon-link {
  font-size: clamp(4rem, 14vw, 6rem);
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.2s;
}
.icon-link:hover { opacity: 0.7; }
.icon-heart { color: var(--pink); }
.icon-diamond { color: var(--dark-red); }

/* ========================================
   PAGE 3: RSVP
   ======================================== */
#page-rsvp {
  min-height: 100vh;
  position: relative;
  flex-direction: column;
}

.rsvp-banner { display: block; text-decoration: none;
  background: var(--pink);
  color: var(--dark-red);
  text-align: center;
  padding: 13px 20px;
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: clamp(0.6rem, 1.8vw, 0.75rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  z-index: 10;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.rsvp-banner:hover { background: #f0b0b0; }

.rsvp-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.rsvp-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.5);
}

.rsvp-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: calc(100vh - 48px);
  padding: 40px 20px;
}

.rsvp-inner {
  display: flex;
  flex-direction: row;
  gap: 60px;
  width: 100%;
  max-width: 900px;
  align-items: center;
  justify-content: center;
}

.rsvp-description {
  flex: 1;
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: clamp(0.65rem, 1.3vw, 0.8rem);
  line-height: 1.8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-align: right;
  max-width: 380px;
}

.rsvp-form-wrap {
  flex: 1;
  max-width: 360px;
  width: 100%;
}

.form-question {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
  font-weight: 700;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: clamp(0.6rem, 1.5vw, 0.7rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
}
.radio-label input[type=radio] { display: none; }
.radio-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  flex-shrink: 0;
  transition: background 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.radio-label input:checked ~ .radio-dot { background: var(--pink); }

.field-label {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 3px;
  display: block;
  font-weight: 700;
}
.field-sub {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.55);
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}
.name-input {
  width: 100%;
  background: var(--pink);
  border: none;
  padding: 11px 14px;
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 0.85rem;
  color: var(--black);
  outline: none;
  margin-bottom: 20px;
  border-radius: 0;
}
.name-input::placeholder { color: rgba(0,0,0,0.35); }

.send-btn {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.6);
  color: var(--white);
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 13px 40px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}
.send-btn:hover { background: rgba(255,255,255,0.1); }

.thank-you {
  display: none;
  font-family: 'Vina Sans', sans-serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--pink);
  text-align: center;
  padding: 40px 20px;
  letter-spacing: 0.04em;
}

/* ---- MOBILE ---- */
@media (max-width: 600px) {
  .rsvp-inner { flex-direction: column; gap: 30px; }
  .rsvp-description { text-align: left; max-width: 100%; }
  .rsvp-form-wrap { max-width: 100%; }
  .video-section { width: 100vw; }
  .main-date { margin-top: -0.25em; }
  .icons-row { gap: 50px; }
}

/* Multi-page mode: all pages are always active */
.page { display: flex; }
#thank-you { display: none; }
