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

:root {
  --cream:    #faf8f3;
  --white:    #ffffff;
  --gold:     #b8922a;
  --gold-lt:  #d9b97a;
  --gold-pale:#efe4c8;
  --dark:     #3a3020;
  --mid:      #7a6e5a;
  --soft:     #b5a99a;
  --green:    #6b7c5a;
}

html {
  scroll-behavior: smooth;
}

/* overflow-x belongs on html alone. On body it also forces overflow-y to
   compute as auto, which turns body into a scroll container that can never
   scroll - the trackpad wheel gesture latches onto that dead scroller instead
   of the page. */
html {
  overflow-x: hidden;
}

body {
  background: var(--cream);
  color: var(--dark);
  font-family: 'Playfair Display', 'Noto Serif Georgian', Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  overflow: hidden;
}

/* Botanical flower images - multiply removes white bg */
.hero-bg {
  position: absolute;
  left: 0;
  width: 100%;
  display: block;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
.hero-bg--top    { top: 0; transform: translateY(-8%); }
.hero-bg--bottom {
  bottom: 0;
  transform: translateY(0);
  -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}

/* Content sits above the images */
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  /* push content below top flowers (~55 % of 786px image, scaled to viewport width) */
  padding-top: 220px;
  /* push content above bottom flowers */
  padding-bottom: 260px;
  padding-left: 2rem;
  padding-right: 2rem;
  width: 100%;
}

/* ── eyebrow ── */
.hero-eyebrow {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-eyebrow.hidden { display: none; }

/* ── guest personalisation ── */
.hero-dear {
  display: none;
  font-family: 'Playfair Display', 'Noto Serif Georgian', serif;

  font-size: 1.2rem;
  color: var(--gold);
}
.hero-dear.visible { display: block; }

.hero-bridge {
  display: none;
  font-family: 'Playfair Display', 'Noto Serif Georgian', serif;

  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.hero-bridge.visible { display: block; }

/* ── ქორწილში line ── */
.hero-wedding {
  display: none;
  font-family: 'Playfair Display', 'Noto Serif Georgian', serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}
.hero-wedding.visible { display: block; }

/* ── names ── */
.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 0;
}

.hero-name {
  font-family: 'Playfair Display', 'Noto Serif Georgian', serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
}

.hero-amp {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.8rem;
  color: var(--gold-lt);
  line-height: 1.5;
}

/* ── divider rule ── */
.hero-rule {
  width: 2.5rem;
  height: 1px;
  background: var(--gold-pale);
  margin: 0.1rem 0;
}

/* ── date block ── */
.hero-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-date-label {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-date-num {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 3rem;
  color: var(--gold);
  line-height: 0.95;
  letter-spacing: 0.02em;
  padding-bottom: 1rem;
}

.hero-date-sub {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ── venue ── */
.hero-venue {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft);
}

/* ═══════════════════════════════════════════════
   COUNTDOWN STRIP
═══════════════════════════════════════════════ */
.countdown-section {
  background: var(--cream);
  padding: 2.5rem 1.75rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  border-top: 1px solid var(--gold-pale);
}

.countdown-label {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── countdown ── */
.countdown {
  display: flex;
  align-items: flex-start;
  gap: 0.1rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.8rem;
  color: var(--dark);
}

.countdown-num {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
  color: var(--gold);
}

.countdown-lbl {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 0.46rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.2rem;
}

.countdown-sep {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--gold-pale);
  line-height: 1;
  padding-top: 0.1rem;
  align-self: flex-start;
}

.countdown-done {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
}

/* ── CTA button ── */
.hero-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.8rem 2.2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}
.hero-cta:hover,
.hero-cta:active {
  background: var(--gold);
  color: var(--cream);
}

/* ═══════════════════════════════════════════════
   SCROLL-REVEAL SECTIONS
═══════════════════════════════════════════════ */
.section {
  padding: 1rem 1.75rem;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.section.revealed {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-family: 'Playfair Display', 'Noto Serif Georgian', serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--gold);
  text-align: center;
  margin: 4rem 0 2rem; 
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════
   DETAILS
═══════════════════════════════════════════════ */
.details {
  background: var(--white);
  text-align: center;
}

/* couple photo */
.couple-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.couple-photo {
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--gold-pale);
  outline: 6px solid var(--white);
  box-shadow: 0 0 0 7px var(--gold-pale);
}

.details-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detail-card {
  padding: 1.5rem 1rem;
}

.detail-card__label {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.detail-card__name {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.detail-card__time {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.detail-card__addr {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--mid);
  line-height: 1.9;
}

.detail-divider {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, transparent, var(--gold-pale), transparent);
}

/* ═══════════════════════════════════════════════
   RSVP
═══════════════════════════════════════════════ */
.rsvp {
  background: var(--cream);
}

.rsvp-subtitle {
  text-align: center;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--mid);
  margin-top: -1.4rem;
  margin-bottom: 2.25rem;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 360px;
  margin: 0 auto;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
}

.form-input {
  background: var(--white);
  border: 1px solid var(--gold-pale);
  border-radius: 0;
  padding: 0.8rem 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus {
  border-color: var(--gold);
}
.form-input::placeholder {
  color: var(--soft);
}

/* ── radio toggle cards ── */
.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.radio-card {
  cursor: pointer;
}
.radio-card input[type="radio"] {
  display: none;
}

.radio-face {
  display: block;
  padding: 0.8rem 0.4rem;
  border: 1px solid var(--gold-pale);
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.4;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.radio-card input:checked + .radio-face {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--white);
}

/* ── guest count ── */
.guest-count-input {
  max-width: 8rem;
}

/* ── submit button ── */
.rsvp-btn {
  align-self: center;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.85rem 2.5rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.rsvp-btn:hover {
  background: var(--gold);
  color: var(--cream);
}

/* ── success message ── */
.rsvp-success {
  display: none;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
  margin-top: 1.5rem;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.rsvp-success.visible {
  display: block;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
  background: var(--dark);
  padding: 3rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--gold-lt);
}

.footer-credit {
  font-family: 'Raleway', sans-serif;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--soft);
}

.footer-credit span {
  color: #c47a7a;
}

.footer-brand {
  color: var(--gold-lt);
  text-decoration: none;
}

/* ═══════════════════════════════════════════════
   DESKTOP  (≥ 768px)
═══════════════════════════════════════════════ */
@media (min-width: 768px) {

  /* ── Hero ── */
  .hero-content {
    /* top-desk image: 2752×950 → at 1440vw renders ~497px tall; flowers fill top ~55% ≈ 273px */
    padding-top:    300px;
    /* bottom-desk image: 2752×1500 → at 1440vw renders ~785px; flowers occupy bottom ~65% ≈ 510px */
    padding-bottom: 480px;
    max-width: 640px;
    margin: 0 auto;
    gap: 0.7rem;
  }

  .hero-name {
    font-size: 4rem;
  }

  .hero-amp {
    font-size: 2.8rem;
  }

  .hero-wedding {
    font-size: 1.8rem;
  }

  .hero-rule {
    width: 4rem;
  }

  /* ── Countdown strip ── */
  .countdown-section {
    padding: 4rem 3rem 5rem;
  }

  .countdown-label {
    font-size: 1.3rem;
    letter-spacing: 0.22em;
  }

  .countdown-num {
    font-size: 3.6rem;
  }

  .countdown-lbl {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
  }

  .countdown-sep {
    font-size: 2.4rem;
  }

  .countdown-unit {
    min-width: 5.5rem;
  }

  /* ── Details ── */
  .details {
    padding: 0rem 4rem;
  }

  .couple-photo {
    width: 420px;
  }

  .section-title {
    font-size: 2.4rem;
    margin: 3rem 0 2.5rem;
  }

  .details-cards {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
  }

  .detail-card {
    flex: 1;
    padding: 2.5rem 3.5rem;
  }

  .detail-card__label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    margin-bottom: 0.75rem;
  }

  .detail-card__name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .detail-card__time {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .detail-card__addr {
    font-size: 0.9rem;
    line-height: 2;
  }

  /* Vertical divider on desktop */
  .detail-divider {
    width: 1px;
    height: 9rem;
    background: linear-gradient(to bottom, transparent, var(--gold-pale), transparent);
    flex-shrink: 0;
  }

  /* ── RSVP ── */
  .rsvp {
    padding: 6rem 4rem;
  }

  .rsvp-subtitle {
    font-size: 0.9rem;
    margin-bottom: 3rem;
  }

  .rsvp-form {
    max-width: 560px;
    gap: 2rem;
  }

  .form-label {
    font-size: 0.78rem;
    letter-spacing: 0.24em;
  }

  .form-input {
    padding: 1rem 1.2rem;
    font-size: 1.1rem;
  }

  .radio-face {
    padding: 1rem 0.6rem;
    font-size: 1rem;
  }

  .rsvp-btn {
    font-size: 0.82rem;
    padding: 1rem 3rem;
    letter-spacing: 0.24em;
  }

  .rsvp-success {
    font-size: 1.4rem;
    max-width: 560px;
  }

  /* ── Footer ── */
  .footer {
    padding: 4rem 4rem;
  }

  .footer-link {
    font-size: 1.4rem;
  }

  .footer-credit {
    font-size: 0.78rem;
  }

    .couple-photo-wrap {

      margin-bottom: 8rem;
    }
}


/* ===========================================================================
   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;
}

.vh-lock .hero {
    min-height: calc(var(--vh) * 100);
}

/* 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: #faf8f3;
    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 #efe4c8;
    border-top-color: #b8922a;
    border-radius: 50%;
    animation: loader-spin 0.9s linear infinite;
}

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