/* =====================================================
   PRO TEMPLATE 2 - Watercolor Blooms
   ===================================================== */

:root {
  --white:        #ffffff;
  --paper:        #f5fafe;
  --blue-pale:    #e2eff8;
  --blue-mid:     #7cb5cf;
  --blue:         #4d8aa6;
  --blue-dark:    #2a5e7b;
  --blue-section: #d7f0fc;
  --text:         #3b6175;
  --text-soft:    #6898ab;
  --border:       #b5d2e6;

  /* Night mode overrides (applied via body.night) */
  --night-bg:          #0f1b2d;
  --night-paper:       #152236;
  --night-section:     #0d1e30;
  --night-white:       #162032;
  --night-text:        #c8dce8;
  --night-text-soft:   #7aa3ba;
  --night-blue:        #8ec9e0;
  --night-blue-dark:   #b8d9ea;
  --night-border:      #2a4a62;
}

/* ── GLOBAL TRANSITION ───────────────────────────── */

*,
*::before,
*::after {
  transition: background 0.9s cubic-bezier(0.4,0,0.2,1), background-color 0.9s cubic-bezier(0.4,0,0.2,1), color 0.9s cubic-bezier(0.4,0,0.2,1), border-color 0.9s cubic-bezier(0.4,0,0.2,1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Noto Serif Georgian', 'Cormorant Garamond', serif;
  font-weight: 300;
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  position: relative;
}

/* ── HERO ────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: calc(var(--vh) * 90);
  background: var(--white);
  overflow-x: clip;
  overflow-y: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1) 0.15s;
  /* Mobile: rotate landscape image to fit portrait viewport */
  top: 50%;
  left: 50%;
  width: calc(var(--vh) * 100);
  height: 100vw;
  transform: translate(-50%, -50%) rotate(-90deg);
}

/* Day background */
.hero::before {
  background-image: url('https://weddsite.b-cdn.net/showcase/pro-2/bg.jpg');
  opacity: 0.6;
}

/* Night background - fades in on body.night */
.hero::after {
  background-image: url('https://weddsite.b-cdn.net/showcase/pro-2/bg-night.jpg');
  opacity: 0;
}

body.night .hero::before {
  opacity: 0;
}

body.night .hero::after {
  opacity: 0.35;
}


/* Border frame: z-index 1 - sits behind the flowers and houses */
.hero-frame {
  position: absolute;
  inset: 16px;
  border: 1.5px solid var(--border);
  z-index: 1;
  pointer-events: none;
}

/* Floral side strips: z-index 3 - on top of border and houses */
.hero-side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10rem;
  z-index: 3;
  background-image: url('https://weddsite.b-cdn.net/showcase/pro-2/bg-side.png');
  background-size: 100% 60%;
  background-repeat: no-repeat;
}

/* Night side strip - cross-fades via ::after pseudo-element */
.hero-side::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://weddsite.b-cdn.net/showcase/pro-2/bg-side-night.png');
background-size: 100% 60%;
  background-repeat: no-repeat;
  background-position: inherit;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1) 0.15s;
}

body.night .hero-side {
  background-image: url('https://weddsite.b-cdn.net/showcase/pro-2/bg-side.png'); /* keep day underneath */
}

body.night .hero-side::after {
  opacity: 1;
}

.hero-side--left {
  left: -18%;
  top: -29%;
  background-position: left center;
  transform: translateX(-110%);
  opacity: 0;
  transition: transform 1.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.4s ease;
}

.hero-side--left.revealed {
  transform: translateX(0);
  opacity: 1;
}

.hero-side--right {
  right: -18%;
top: -29%;
  background-position: left center;
  transform: scaleX(-1) translateX(-110%);
  opacity: 0;
  transition: transform 1.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.4s ease;
}

.hero-side--right.revealed {
  transform: scaleX(-1) translateX(0);
  opacity: 1;
}

/* Bottom landscape - anchored to hero bottom, bleeds into section below */
.hero-bottom {
  position: absolute;
  bottom: -7.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  z-index: 3;
  pointer-events: none;
}

.hero-bottom img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1) 0.15s;
}

.hero-bottom__night {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

body.night .hero-bottom__day {
  opacity: 0;
}

body.night .hero-bottom__night {
  opacity: 1;
}

/* Wrapper that lets hero-houses bleed from hero into message */
.hero-transition {
  position: relative;
}

/* Houses illustration: floats above the transition boundary */
.hero-houses {
  position: absolute;
  bottom: 79%;
  right: -5%;
  width: 10rem;
  object-fit: contain;
  height: auto;
  z-index: 5;
  pointer-events: none;
}


.hero-houses img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1) 0.15s;
}

.hero-houses__night {
  opacity: 0;
}

body.night .hero-houses__day {
  opacity: 0;
}

body.night .hero-houses__night {
  opacity: 1;
}

/* Hero text: z-index 4 - above everything */
.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: calc(var(--vh) * 15) 80px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Staggered entry animation */
.hero-content > * {
  opacity: 0;
  transform: translateY(-18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-content.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

.hero-content.revealed > *:nth-child(1) { transition-delay: 0.0s; }
.hero-content.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.hero-content.revealed > *:nth-child(3) { transition-delay: 0.2s; }
.hero-content.revealed > *:nth-child(4) { transition-delay: 0.3s; }
.hero-content.revealed > *:nth-child(5) { transition-delay: 0.4s; }

.hero-eyebrow {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero-names {
  font-family: 'Cormorant Garamond', 'Noto Serif Georgian', serif;
  font-size: 1.9rem;
  font-weight: 300;
  color: var(--blue);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.hero-amp {
  color: var(--blue-dark);
  font-weight: 400;
  margin: 0 0.3em;
}

.hero-date {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero-date-num {
  font-variant-numeric: lining-nums;
}

/* Countdown */
.hero-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 4rem;
  margin-bottom: 2rem;
  margin-left: 0.5rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3rem;
}

.countdown-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--blue-dark);
  line-height: 1;
}

.countdown-lbl {
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 3px;
}

.countdown-sep {
  font-size: 1.6rem;
  color: var(--blue-mid);
  padding-bottom: 1.2rem;
  line-height: 1;
}

/* CTA */
.hero-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.7rem 2.4rem;
  border: 1.5px solid var(--blue-mid);
  color: var(--blue-dark);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  transition: background 0.9s cubic-bezier(0.4,0,0.2,1), color 0.9s cubic-bezier(0.4,0,0.2,1), opacity 0.7s ease, transform 0.7s ease;
}

.hero-cta:hover {
  background: var(--blue-mid);
  color: var(--white);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: var(--text-soft);
  font-size: 1.7rem;
  animation: bounce 2.2s ease-in-out infinite;
}

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

/* ── MESSAGE ─────────────────────────────────────── */

.message {
  padding: 3rem 24px 88px;
  text-align: center;
  position: relative;
  z-index: 0;
  min-height: 15rem;
  background: var(--blue-section);
}

.message::before,
.message::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center center;
  z-index: 0;
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1) 0.15s;
}

/* .message::before {
  background-image: url('https://weddsite.b-cdn.net/showcase/pro-2/second-bg.png');
  opacity: 1;
}

.message::after {
  background-image: url('https://weddsite.b-cdn.net/showcase/pro-2/second-bg-night.png');
  opacity: 0;
} */

body.night .message::before {
  opacity: 0;
}

body.night .message::after {
  opacity: 1;
}

.message > * {
  position: relative;
  z-index: 1;
}

.message-inner {
  max-width: 480px;
  margin: 0 auto;
}

.message-title {
  font-family: 'Cormorant Garamond', 'Noto Serif Georgian', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 1rem;
}

.message-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.9;
}

/* ── SCROLL REVEAL ───────────────────────────────── */

.section {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease, background 0.9s cubic-bezier(0.4,0,0.2,1), color 0.9s cubic-bezier(0.4,0,0.2,1), border-color 0.9s cubic-bezier(0.4,0,0.2,1);
  
}

.section.revealed {
  opacity: 1;
  transform: none;
}

/* ── DETAILS ─────────────────────────────────────── */

.details {
  position: relative;
  background: var(--paper);
  padding: 88px 24px;
  text-align: center;
  overflow: hidden;
  background: var(--blue-section);
}

.details > * {
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: 'Cormorant Garamond', 'Noto Serif Georgian', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--blue);
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
}

.timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 0.5rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--blue-mid) 8%, var(--blue-mid) 92%, transparent);
  transform: translateX(-50%);
}

.timeline-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-step:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 2.5rem);
  text-align: right;
}

.timeline-step:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 2.5rem);
  text-align: left;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0.6rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--blue-mid);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--blue-mid);
  z-index: 2;
  transition: background 0.9s cubic-bezier(0.4,0,0.2,1), border-color 0.9s cubic-bezier(0.4,0,0.2,1), color 0.9s cubic-bezier(0.4,0,0.2,1);
}

.timeline-card {
  flex: 1;
  padding: 1.5rem 1.8rem;
  border: 1.5px solid var(--border);
  border-left: 3px solid var(--blue-mid);
  background: rgba(255,255,255,0.88);
  cursor: pointer;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(77, 138, 166, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.9s cubic-bezier(0.4,0,0.2,1), border-color 0.9s cubic-bezier(0.4,0,0.2,1);
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(77, 138, 166, 0.18);
}

.timeline-step:nth-child(even) .timeline-card {
  border-left: 1.5px solid var(--border);
  border-right: 3px solid var(--blue-mid);
}

.details-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.details-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
}

.details-venue {
  font-family: 'Cormorant Garamond', 'Noto Serif Georgian', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--blue-dark);
}

.details-address {
  font-size: 0.8rem;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

.addr-num {
  font-variant-numeric: lining-nums;
}

.sections-wrapper {
  position: relative;
}

.sections-transition {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: transparent;
  pointer-events: none;
  z-index: 10;
}

body.night .sections-transition {
  background: transparent;
}

/* ── RSVP ────────────────────────────────────────── */

.rsvp {
  position: relative;
  background: var(--paper);
  padding: 88px 24px;
  text-align: center;
  overflow: hidden;
}

.rsvp > * {
  position: relative;
  z-index: 1;
}

.rsvp-inner {
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 2.8rem 2rem 2.2rem;
  box-shadow: 0 4px 32px rgba(77, 138, 166, 0.10);
}

.rsvp-subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}

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

.rsvp-row {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.rsvp-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.rsvp-label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.rsvp-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: var(--paper);
  padding: 0.65rem 0.9rem;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease, background 0.9s cubic-bezier(0.4,0,0.2,1), color 0.9s cubic-bezier(0.4,0,0.2,1);
}

.rsvp-input:focus {
  border-color: var(--blue-mid);
  background: var(--white);
}

.rsvp-radios {
  display: flex;
  gap: 0.8rem;
}

.radio-card {
  cursor: pointer;
  flex: 1;
}

.radio-card input {
  display: none;
}

.radio-face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--text);
  background: var(--paper);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.radio-icon {
  font-size: 0.75rem;
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

.radio-card input:checked + .radio-face {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(77, 138, 166, 0.28);
}

.radio-card input:checked + .radio-face .radio-icon {
  opacity: 1;
}

.rsvp-guest-pills {
  display: flex;
  gap: 0.6rem;
}

.guest-pill {
  cursor: pointer;
}

.guest-pill input {
  display: none;
}

.guest-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  background: var(--paper);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.guest-pill input:checked + span {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(77, 138, 166, 0.28);
}

#guestCountField {
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

#guestCountField.hidden {
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
}

.rsvp-submit {
  width: 100%;
  padding: 0.85rem 2rem;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 0.4rem;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.rsvp-submit:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(77, 138, 166, 0.3);
}

.rsvp-submit:active {
  transform: translateY(0);
}

.rsvp-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.rsvp-status {
  font-size: 0.8rem;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  min-height: 0;
  margin-top: -1rem;
}

.rsvp-status:empty {
  display: none;
}

.rsvp-success {
  padding: 2rem 1rem;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.rsvp-success-check {
  font-size: 2.5rem;
  color: var(--blue-mid);
  line-height: 1;
}

.rsvp-success-text {
  font-size: 1rem;
  color: var(--blue-dark);
  letter-spacing: 0.04em;
}

/* ── CLOSING MESSAGE ─────────────────────────────── */

.closing {
  background: var(--blue-section);
  padding: 72px 24px;
  text-align: center;
}

.closing-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.closing-rule {
  width: 48px;
  height: 1px;
  background: var(--blue-mid);
  opacity: 0.5;
}

.closing-text {
  font-family: 'Cormorant Garamond', 'Noto Serif Georgian', serif;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--blue-dark);
  line-height: 1.9;
  letter-spacing: 0.02em;
}

/* ── FOOTER ──────────────────────────────────────── */

.footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  padding: 52px 24px;
}

.footer-names {
  font-family: 'Cormorant Garamond', 'Noto Serif Georgian', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.footer-rule {
  width: 44px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  margin: 0 auto 0.75rem;
}

.footer-credit {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
}

/* ── NIGHT MODE ──────────────────────────────────── */

body.night {
  background: var(--night-bg);
  color: var(--night-text);
}

body.night .hero {
  background: var(--night-bg);
}

body.night .hero-frame {
  border-color: var(--night-border);
}

body.night .hero-eyebrow,
body.night .hero-date,
body.night .countdown-lbl,
body.night .countdown-sep {
  color: var(--night-text-soft);
}

body.night .hero-names {
  color: var(--night-blue);
}

body.night .hero-amp {
  color: var(--night-blue-dark);
}

body.night .countdown-val {
  color: var(--night-blue-dark);
}

body.night .hero-cta {
  border-color: var(--night-blue);
  color: var(--night-blue-dark);
}

body.night .hero-cta:hover {
  background: var(--night-blue);
  color: var(--night-bg);
}

body.night .hero-scroll-hint {
  color: var(--night-text-soft);
}

body.night .message {
background: var(--night-paper);
  /* bg cross-fade handled via ::before/::after */
}

body.night .message-title {
  color: var(--night-blue-dark);
}

body.night .message-text {
  color: var(--night-text-soft);
}

body.night .details {
  background: var(--night-paper);
}

body.night .section-title {
  color: var(--night-blue);
}

body.night .details-label,
body.night .details-address {
  color: var(--night-text-soft);
}

body.night .details-venue {
  color: var(--night-blue-dark);
}

body.night .details-time {
  color: var(--night-blue);
}

body.night .timeline-dot {
  background: var(--night-paper);
  border-color: var(--night-blue);
  color: var(--night-blue);
}

body.night .timeline-card {
  background: rgba(21, 34, 54, 0.85);
  border-color: var(--night-border);
  border-left-color: var(--night-blue);
}

body.night .timeline-step:nth-child(even) .timeline-card {
  border-left-color: var(--night-border);
  border-right-color: var(--night-blue);
}

body.night .details-divider {
  background: var(--night-border);
}

body.night .rsvp {
  background: var(--night-section);
}

body.night .rsvp-inner {
  background: var(--night-paper);
  border-color: var(--night-border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}

body.night .rsvp-subtitle {
  color: var(--night-text-soft);
}

body.night .rsvp-label {
  color: var(--night-text-soft);
}

body.night .rsvp-input {
  border-color: var(--night-border);
  background: var(--night-section);
  color: var(--night-text);
}

body.night .rsvp-input:focus {
  border-color: var(--night-blue);
  background: var(--night-paper);
}

body.night .radio-face {
  border-color: var(--night-border);
  color: var(--night-text);
  background: var(--night-section);
}

body.night .radio-card input:checked + .radio-face {
  background: var(--night-blue);
  border-color: var(--night-blue);
  color: var(--night-bg);
}

body.night .guest-pill span {
  border-color: var(--night-border);
  color: var(--night-text);
  background: var(--night-section);
}

body.night .guest-pill input:checked + span {
  background: var(--night-blue);
  border-color: var(--night-blue);
  color: var(--night-bg);
}

body.night .rsvp-submit {
  background: var(--night-blue);
  color: var(--night-bg);
}

body.night .rsvp-submit:hover {
  background: var(--night-blue-dark);
}

body.night .rsvp-status {
  color: var(--night-text-soft);
}

body.night .rsvp-success-check {
  color: var(--night-blue);
}

body.night .rsvp-success-text {
  color: var(--night-blue-dark);
}

body.night .closing {
  background: var(--night-section);
}

body.night .closing-rule {
  background: var(--night-blue);
}

body.night .closing-text {
  color: var(--night-blue-dark);
}

body.night .details-time {
  color: var(--night-blue);
}

body.night .footer {
  background: #080f1a;
}

/* ── TIMELINE MODAL ─────────────────────────────────── */

.tl-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 27, 45, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.tl-modal.active {
  opacity: 1;
  pointer-events: all;
}

.tl-modal__box {
  position: relative;
  width: calc(100% - 3rem);
  max-width: 360px;
  background: var(--white);
  border-radius: 20px;
  padding: 2rem 2rem 1.6rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 27, 45, 0.28);
  transform: scale(0.92);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.9s cubic-bezier(0.4,0,0.2,1);
}

.tl-modal.active .tl-modal__box {
  transform: scale(1);
}

body.night .tl-modal__box {
  background: var(--night-paper);
}

.tl-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tl-modal__close:hover {
  border-color: var(--blue-mid);
  color: var(--blue);
}

body.night .tl-modal__close {
  border-color: var(--night-border);
  color: var(--night-text-soft);
}

.tl-modal__time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.25rem;
}

body.night .tl-modal__time {
  color: var(--night-blue);
}

.tl-modal__label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.4rem;
}

body.night .tl-modal__label {
  color: var(--night-text-soft);
}

.tl-modal__venue {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Cormorant Garamond', 'Noto Serif Georgian', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--blue-dark);
  text-decoration: none;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tl-modal__venue:hover {
  color: var(--blue);
  border-color: var(--blue-mid);
}

body.night .tl-modal__venue {
  color: var(--night-blue-dark);
  border-color: var(--night-border);
}

body.night .tl-modal__venue:hover {
  color: var(--night-blue);
  border-color: var(--night-blue);
}

.tl-modal__pin {
  font-size: 1rem;
}

/* ── NIGHT TOGGLE BUTTON ─────────────────────────── */

.night-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.night-toggle__track {
  display: flex;
  align-items: center;
  width: 56px;
  height: 28px;
  border-radius: 14px;
  background: #d0e8f5;
  border: 1.5px solid var(--border);
  padding: 3px;
  transition: background 0.9s cubic-bezier(0.4,0,0.2,1), border-color 0.9s cubic-bezier(0.4,0,0.2,1);
}

body.night .night-toggle__track {
  background: #1a2f4a;
  border-color: var(--night-border);
}

.night-toggle__thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, background 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

body.night .night-toggle__thumb {
  transform: translateX(28px);
  background: #0f1b2d;
}

.night-toggle__icon {
  position: absolute;
  font-size: 13px;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.night-toggle__icon--sun  { opacity: 1; }
.night-toggle__icon--moon { opacity: 0; }

body.night .night-toggle__icon--sun  { opacity: 0; }
body.night .night-toggle__icon--moon { opacity: 1; }

/* ── OPENING CURTAIN ────────────────────────────── */

#opening-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  cursor: pointer;
}

.opening-panel {
  position: absolute;
  width: 200%;
  height: 120%;
  overflow: hidden;
  transition: transform 5.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.opening-panel--tl {
  top: -30%;
  left: -30%;
  z-index: 4;
  transform-origin: top left;
}

.opening-panel--tr {
  top: -30%;
  right: -30%;
  z-index: 3;
  transform-origin: top right;
  transition-delay: 0.06s;
}

.opening-panel--bl {
  bottom: -30%;
  left: -30%;
  z-index: 2;
  transform-origin: bottom left;
  transition-delay: 0.06s;
}

.opening-panel--br {
  bottom: -30%;
  right: -30%;
  z-index: 1;
  transform-origin: bottom right;
}

.opening-panel img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1) 0.15s;
}

.cloud-night {
  opacity: 0;
}

body.night .cloud-day {
  opacity: 0;
}

body.night .cloud-night {
  opacity: 1;
}

#opening-overlay.open {
  pointer-events: none;
}

#opening-overlay.open .opening-panel--tl {
  transform: translate(-100%, -100%);
}

#opening-overlay.open .opening-panel--tr {
  transform: translate(100%, -100%);
}

#opening-overlay.open .opening-panel--bl {
  transform: translate(-100%, 100%);
}

#opening-overlay.open .opening-panel--br {
  transform: translate(100%, 100%);
}

.mobile-break {
  display: block;
}

@media (min-width: 769px) {
  .mobile-break {
    display: none;
  }
}

/* ── RESPONSIVE (mobile-first) ───────────────────── */

/* Mobile timeline: line on left, all steps left-aligned */
.timeline::before {
  left: 18px;
  transform: none;
}

.timeline-step:nth-child(odd),
.timeline-step:nth-child(even) {
  flex-direction: row;
  padding-right: 0;
  padding-left: 3.8rem;
  text-align: left;
}

/* On mobile all cards show left accent border */
.timeline-step:nth-child(even) .timeline-card {
  border-left: 3px solid var(--blue-mid);
  border-right: 1.5px solid var(--border);
}

body.night .timeline-step:nth-child(even) .timeline-card {
  border-left-color: var(--night-blue);
  border-right-color: var(--night-border);
}

.timeline-dot {
  left: 18px;
  transform: translateX(-50%);
}

/* ≥ 481px - large phones / small tablets */
@media (min-width: 481px) {
  .rsvp-row {
    flex-direction: row;
    gap: 1rem;
  }

  .rsvp-row .rsvp-field {
    flex: 1;
  }
  .hero-frame {
    inset: 20px;
  }
  .hero-side{
    width: 12rem;
  }
  .hero-side--left {
    left: -8%;
  }
  .hero-side--right {
    right: -8%;
  }
  .hero-content {
    padding: calc(var(--vh) * 12) 115px 0;
  }
  .hero-names {
    font-size: 2.4rem;
  }
  .hero-houses {
    right: 0;
    bottom:75%;
    width: 85%;
    height: calc(var(--vh) * 50);
  }
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
  .timeline-step:nth-child(odd) {
    flex-direction: row;
    padding-right: calc(50% + 3rem);
    padding-left: 0;
    text-align: right;
  }
  .timeline-step:nth-child(even) {
    flex-direction: row-reverse;
    padding-left: calc(50% + 3rem);
    padding-right: 0;
    text-align: left;
  }
  .timeline-dot {
    left: 50%;
    transform: translateX(-50%);
  }
  .details-grid {
    flex-direction: row;
  }
  .details-divider {
    width: 1px;
    height: auto;
    min-height: 160px;
    align-self: stretch;
  }
  .timeline-step:nth-child(odd) {
    padding-right: calc(50% + 3rem);
  }
  .timeline-step:nth-child(even) {
    padding-left: calc(50% + 3rem);
  }

  /* Restore right accent for even cards on wider screens */
  .timeline-step:nth-child(even) .timeline-card {
    border-left: 1.5px solid var(--border);
    border-right: 3px solid var(--blue-mid);
  }

  body.night .timeline-step:nth-child(even) .timeline-card {
    border-left-color: var(--night-border);
    border-right-color: var(--night-blue);
  }

  .message {
    min-height: 40rem;
  }
}

/* ≥ 769px - tablets / small desktops */
@media (min-width: 769px) {
    .message {
            min-height: 50rem;
        }

  .hero::before,
  .hero::after {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    transform: none;
  }
  .hero-frame {
    inset: 24px;
  }
  .hero-side {
    width: 15rem;
  }
    .hero-side--left {
        left: -8%;
    }
    
    .hero-side--right {
        right: -8%;
    }
  .hero-content {
    padding: calc(var(--vh) * 15) 185px 0;
  }
  .hero-names {
    font-size: 2.7rem;
  }
  .hero-houses {
    width: 70%;
    height: calc(var(--vh) * 55);
  }
  .opening-panel {

      width: 100%;
      height: 100%;
;
  }
  .opening-panel--tl {
      top: -26%;
      left: -26%;
      z-index: 4;
      transform-origin: top left;
  }

  .opening-panel--tr {
      top: -26%;
      right: -26%;
      z-index: 3;
      transform-origin: top right;
      transition-delay: 0.06s;
  }

  .opening-panel--bl {
      bottom: -26%;
      left: -26%;
      z-index: 2;
      transform-origin: bottom left;
      transition-delay: 0.06s;
  }

  .opening-panel--br {
      bottom: -26%;
      right: -26%;
      z-index: 1;
      transform-origin: bottom right;
  }
}

@media (min-width: 900px) {
            .message {
                    min-height: 24rem;
                    width: 110%;
                }
  .message::before {
      background-image: url('https://weddsite.b-cdn.net/showcase/pro-2/second-bg-desktop.png');
      background-position: center -150px;
  }

  .message::after {
      background-image: url('https://weddsite.b-cdn.net/showcase/pro-2/second-bg-desktop-night.png');
      background-position: center -150px;
  }}
@media (min-width: 1050px) {
            .message {
                    min-height: 28rem;
                    width: 110%;
                }
  .message::before {
      background-image: url('https://weddsite.b-cdn.net/showcase/pro-2/second-bg-desktop.png');
      background-position: center -180px;
  }

  .message::after {
      background-image: url('https://weddsite.b-cdn.net/showcase/pro-2/second-bg-desktop-night.png');
      background-position: center -180px;
  }}

/* ≥ 1025px - desktop */
@media (min-width: 1025px) {
    .message {
            min-height: 25rem;
            width: 110%;
        }
    
        .message::before {
            background-image: url('https://weddsite.b-cdn.net/showcase/pro-2/second-bg-desktop.png');
            background-position: center -220px;
        }
    
        .message::after {
            background-image: url('https://weddsite.b-cdn.net/showcase/pro-2/second-bg-desktop-night.png');
            background-position: center -220px;
        }
                

  .hero-frame {
    inset: 28px;
  }
  .hero-side {
    width: 15rem;
    height: 110%;
  }

    .hero-side--left {
        left: 0%;
    }

    .hero-side--right {
        right: 0;
    }
  .hero-content {
    padding: calc(var(--vh) * 24) 255px 0;
  }
  .hero-eyebrow{
    font-size: 1.2rem;
  }
  .hero-date{
    font-size: 1.2rem;
  }
  .hero-names {
    font-size: 3rem;
  }
.countdown-val{
    font-size: 3rem;
}

.countdown-lbl{
    font-size: 0.7rem;
}

.hero-cta {
    font-size: 1rem;
}
    .hero-houses {
        width: 80%;
        bottom: 85%;
        height: calc(var(--vh) * 62);
    }
    .hero-bottom {
        width: 140%;
    }
}

/* ≥ 1440px - xl / large desktop */
@media (min-width: 1230px) {
    .message {
            min-height: 30rem;
            width: 110%;
        }
    
        .message::before {
            background-image: url('https://weddsite.b-cdn.net/showcase/pro-2/second-bg-desktop.png');
            background-position: center -230px;
        }
    
        .message::after {
            background-image: url('https://weddsite.b-cdn.net/showcase/pro-2/second-bg-desktop-night.png');
            background-position: center -230px;
        }
}
@media (min-width: 1440px) {
        .message {
                min-height: 40rem;
                width: 110%;
            }
        
            .message::before {
                background-image: url('https://weddsite.b-cdn.net/showcase/pro-2/second-bg-desktop.png');
                background-position: center -300px;
            }
        
            .message::after {
                background-image: url('https://weddsite.b-cdn.net/showcase/pro-2/second-bg-desktop-night.png');
                background-position: center -300px;
            }
  .hero-side {
    width: 20rem;
    height: 160%;
  }
  .hero-side--left,.hero-side--right {
    top:-35%;
  }
  .hero-houses {
    width: 90%;
    height: calc(var(--vh) * 75);
  }
          .hero-bottom {
              width: 100%;
          }
}

/* ── MOBILE PROMPT (desktop notice) ──────────────────── */

html.no-scroll,
body.no-scroll {
  overflow: hidden;
  height: 100%;
}

.mobile-prompt {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: rgba(12, 14, 20, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-prompt.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-prompt.is-blocking {
  background-color: rgba(7, 10, 16, 0.96);
}

.mobile-prompt__card {
  position: relative;
  width: min(92vw, 420px);
  padding: 26px 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  background-color: rgba(19, 26, 36, 0.9);
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.mobile-prompt__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background-color: transparent;
  color: #ecf2fa;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
}

.mobile-prompt.is-blocking .mobile-prompt__close {
  display: none;
}

.mobile-prompt__logo {
  width: 52px;
  height: 52px;
  display: block;
  margin: 0 auto 14px;
  opacity: 0.8;
}

.mobile-prompt__title {
  margin: 0 0 8px;
  font-family: 'Noto Serif Georgian', 'Cormorant Garamond', serif;
  font-size: 22px;
  color: #f4f8ff;
  letter-spacing: 0.03em;
}

.mobile-prompt__text {
  margin: 0;
  font-family: 'Noto Serif Georgian', 'Cormorant Garamond', serif;
  font-size: 16px;
  color: #c9d7e7;
  line-height: 1.45;
}


/* ===========================================================================
   Viewport pin + loading screen
   ---------------------------------------------------------------------------
   Shared across every Weddsite template; only the palette below is per design.

   --vh is written by the inline script in <head> and re-measured on width
   changes only, so Instagram's and Messenger's sliding nav bar cannot resize
   the layout. `vh`, `svh`, `lvh` and `dvh` all move with it, which is why the
   pin has to come from JS. The 100vh/100svh floors stay as the no-JS fallback
   and MUST be declared before the .vh-lock rule that overrides them.

   The loader exists so `font-display: block` is safe: the block period is spent
   behind the spinner instead of on an invisible page. It also holds the entry
   animation (via .is-loading) so the intro is not played out behind it.
   =========================================================================== */

:root {
    --vh: 1vh;
}

html {
    overscroll-behavior-y: none;
}

/* Entry animations must not play out behind the spinner - a guest who uncovers a
   finished, static scene has been shown nothing. `is-loading` is set by the
   inline script in <head> before first paint and removed on reveal, so a paused
   animation resumes from frame zero exactly when the guest can first see it.
   The spinner itself is excluded, and with JS off the class never lands. */
.is-loading body *:not(.loader):not(.loader__spinner) {
    animation-play-state: paused !important;
}

.loader {
    position: fixed;
    inset: 0;
    /* Out-ranks every entry overlay (envelopes / curtains / clouds live at 9999+). */
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5fafe;
    opacity: 1;
    transition: opacity 0.55s ease;
}

.loader.is-hidden {
    opacity: 0;
}

.loader.is-gone {
    display: none;
}

.loader__spinner {
    display: block;
    width: 40px;
    height: 40px;
    border: 2px solid #e2eff8;
    border-top-color: #4d8aa6;
    border-radius: 50%;
    animation: loader-spin 0.9s linear infinite;
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}
