/* The brand display fonts (Zapf / Genty) were never bundled with the project,
   so they 404'd on every page. We fall back to the already-loaded Cormorant
   Garamond instead (see .font-esthetic / .font-theme below). */

html {
    scroll-behavior: smooth !important;
    scrollbar-width: none !important;
}

body {
    /* font-family: 'Josefin Sans', sans-serif !important; */
    font-family: "Lora", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    padding: 0 !important;
    letter-spacing: -0.05rem !important;
    /* background:#fff !important; */
    color:#373737;
    font-size: 1.3rem;
}
.b, b {
    font-weight:600;
}

.py-10 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.mt-10 {
    margin-top:6rem;
}

.height-100 {
    height: 100vh;
}
/* p,h3,h4,h5,h6,span,button,.btn,label,input {

} */
.invitation-wrapper {
    background:#FDF4EB;
}

.text-header {
    font-size: 2.8rem;
}

.font-esthetic {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-weight: bold;
    font-style: normal;
    color: #373737 !important;
}
.font-theme {
    font-family: "Cormorant Garamond", Georgia, serif;
}
.color-retro {
    color:#6F5643;
}

.img-crop {
    width: 9em;
    height: 9em;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    background:#fff;
}

.img-crop>img {
    display: inline;
    margin: 0 auto;
    height: auto;
    width: 100%;
}

.video-container {
    width: 70%;
    height: 100%;
    margin:0px auto;
}

.embed-responsive video {
    box-shadow: 2px 2px 3px -1px #bfbfbf;
    max-width: 70%;
}

.embed-responsive-item {
  object-fit: cover; /* Cover the full area, may cut off parts of the video */
  width: 100%;
  height: 100%; /* Full height of the viewport */
}

.embed-responsive-item {
  object-fit: cover; /* This will ensure your video covers the full area, be mindful of video aspect ratio */
}

.btn-music {
    position: fixed;
    bottom: 9vh !important;
    right: 2vh !important;
    z-index: 1055 !important;
}

.loading-page {
    position: fixed;
    inset: 0 !important;
    width: 100%;
    height: 100%;
    background-color: #FDF4EB;
    z-index: 1056 !important;
}
.text-dark ,
.text-dark *{
    color:#373737;
}

.card-body {
    overflow-wrap: break-word !important;
}

.mouse-animation {
    padding: 0.25rem 0.625rem;
    height: 2rem;
    border: 0.1rem solid #373737;
    border-radius: 1.4rem;
    opacity: 0.75;
    box-sizing: content-box;
}

.progress {
    background-color: #EDDFD2;
}

.progress-bar {
    background-color: #BA602A;
}

/* ── Loading page — echoes the welcome cover (cream · sepia · hairline) ── */
.yf-loader { display: flex; align-items: center; justify-content: center; }
.yf-loader-inner { text-align: center; width: min(320px, 76vw); }
.yf-loader-mono {
    width: 80px; height: 80px; margin: 0 auto 40px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(107, 79, 58, 0.4);
    border-radius: 50%;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic; font-weight: 400; font-size: 27px;
    letter-spacing: -0.01em; color: #6B4F3A; line-height: 1;
}
.yf-loader-track {
    position: relative; width: 100%; height: 2px;
    background: #E7D9C8; overflow: hidden; border-radius: 2px;
}
.yf-loader-fill {
    display: block; height: 100%; width: 0;
    background: #6B4F3A; transition: width 0.45s ease;
}
.yf-loader-text {
    margin-top: 22px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic; font-weight: 300; font-size: 15px;
    letter-spacing: 0.02em; color: #8a6b51;
}

/* Elegant fallback when a wedding has no uploaded photo (no broken images) */
.photo-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, #EFE4D3, #D8C5AC);
    color: #8a6b51;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic; font-weight: 400;
    font-size: 2.6rem; letter-spacing: -0.01em; line-height: 1;
}
.welcome-cover--noimg {
    background: radial-gradient(ellipse at center, #5b5046 0%, #2e2820 100%);
}

small, .small {
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   Welcome cover — full-bleed photo, ornamental arched frame,
   editorial monogram + italic display names + tagline.
   Replaces the previous circle-avatar "Welcome To Our Wedding"
   card. The host element keeps id="welcome" so existing fade-out
   (util.buka → opacity('welcome')) still works.
   ═══════════════════════════════════════════════════════════════ */
.welcome-cover {
    position: fixed;
    inset: 0;
    z-index: 1080;
    overflow: hidden;
    color: #FBF8F2;
    font-family: 'Cormorant Garamond', 'Garamond Premier Pro', Georgia, serif;
    -webkit-font-smoothing: antialiased;
}
.welcome-cover-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    animation: welcomeBgFloat 18s ease-in-out infinite alternate;
}
.welcome-cover-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.45) 70%, rgba(0,0,0,0.62) 100%),
        linear-gradient(180deg, rgba(20,16,12,0.25) 0%, rgba(20,16,12,0.35) 100%);
}
@keyframes welcomeBgFloat {
    from { transform: scale(1.04) translate3d(-0.6%, -0.4%, 0); }
    to   { transform: scale(1.06) translate3d(0.6%, 0.4%, 0); }
}

/* ── Top corner labels ──────────────────────────────────────── */
.welcome-corner {
    position: absolute;
    top: 36px;
    font-family: 'Albert Sans', -apple-system, system-ui, sans-serif;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(251, 248, 242, 0.85);
}
.welcome-corner--tl { left: 48px; }
.welcome-corner--tr { right: 48px; }

/* ── Bottom corner spec ─────────────────────────────────────── */
.welcome-foot {
    position: absolute;
    left: 50%; bottom: 28px;
    transform: translateX(-50%);
    font-family: 'Albert Sans', -apple-system, system-ui, sans-serif;
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(251, 248, 242, 0.6);
    text-align: center;
    white-space: nowrap;
}

/* ── Central composition ────────────────────────────────────── */
.welcome-stage {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 32px;
}
.welcome-frame {
    position: relative;
    width: min(440px, 88vw);
    padding: 72px 44px 56px;
    border: none;
    text-align: center;
}

/* ── Monogram ───────────────────────────────────────────────── */
.welcome-monogram {
    display: flex; align-items: center; justify-content: center;
    gap: 18px;
    margin-bottom: 42px;
}
.welcome-monogram-tag {
    font-family: 'Cormorant', 'Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 14px;
    color: rgba(251, 248, 242, 0.78);
    letter-spacing: 0.04em;
}
.welcome-monogram-mark {
    width: 60px; height: 60px;
    border: 1px solid rgba(251, 248, 242, 0.6);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 22px;
    color: rgba(251, 248, 242, 0.95);
    letter-spacing: -0.01em;
    line-height: 1;
}

/* ── Display headline ───────────────────────────────────────── */
.welcome-display {
    margin: 0;
    line-height: 1.05;
    text-align: center;
    color: #FBF8F2;
}
.welcome-display .row-the {
    display: block;
    font-family: 'Italianno', 'Sacramento', 'Cormorant', cursive;
    font-style: italic;
    font-weight: 400;
    font-size: 38px;
    line-height: 1;
    margin-bottom: -4px;
    letter-spacing: 0.01em;
    color: rgba(251, 248, 242, 0.95);
}
.welcome-display .row-name {
    display: block;
    font-family: 'Italianno', 'Sacramento', cursive;
    font-style: italic;
    font-weight: 400;
    font-size: 88px;
    line-height: 1.05;
    letter-spacing: 0;
    color: #FBF8F2;
    text-shadow: 0 1px 32px rgba(0,0,0,0.18);
}
.welcome-display .row-amp {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 300;
    font-size: 28px;
    line-height: 1.2;
    margin: 8px 0;
    color: rgba(251, 248, 242, 0.85);
}
.welcome-display .row-sub {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: 26px;
    letter-spacing: 0.06em;
    line-height: 1.15;
    color: rgba(251, 248, 242, 0.95);
}

/* ── Tagline ────────────────────────────────────────────────── */
.welcome-tagline {
    margin: 38px auto 0;
    max-width: 320px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(251, 248, 242, 0.88);
}

/* ── Guest name slot (filled by JS via #nama-tamu) ──────────── */
.welcome-guest {
    margin-top: 28px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 300;
    font-size: 15px;
    color: rgba(251, 248, 242, 0.78);
    min-height: 1px;
}
.welcome-guest p, .welcome-guest h2, .welcome-guest div { color: inherit; }

/* ── CTA — quiet rule + small caps link ─────────────────────── */
.welcome-cta-wrap {
    margin-top: 44px;
    display: flex; flex-direction: column;
    align-items: center; gap: 14px;
}
.welcome-cta-rule {
    width: 1px; height: 36px;
    background: rgba(251, 248, 242, 0.5);
    border: 0; margin: 0;
}
.welcome-cta {
    display: inline-block;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(251, 248, 242, 0.85);
    color: #FBF8F2;
    padding: 6px 0 4px;
    font-family: 'Albert Sans', -apple-system, system-ui, sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 200ms ease, letter-spacing 300ms ease;
}
.welcome-cta:hover {
    opacity: 0.7;
    letter-spacing: 0.36em;
    color: #FBF8F2;
}
.welcome-cta:disabled { opacity: 0.55; cursor: default; }

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .welcome-corner { top: 22px; font-size: 9.5px; letter-spacing: 0.28em; }
    .welcome-corner--tl { left: 22px; }
    .welcome-corner--tr { right: 22px; }
    .welcome-foot { bottom: 18px; font-size: 9px; letter-spacing: 0.28em; }
    .welcome-stage { padding: 60px 18px; }
    .welcome-frame {
        width: min(360px, 92vw);
        padding: 56px 28px 44px;
        border-radius: 10px;
    }
    .welcome-monogram { margin-bottom: 32px; gap: 14px; }
    .welcome-monogram-mark { width: 48px; height: 48px; font-size: 18px; }
    .welcome-monogram-tag { font-size: 12px; }
    .welcome-display .row-the { font-size: 30px; }
    .welcome-display .row-name { font-size: 64px; line-height: 1; }
    .welcome-display .row-amp { font-size: 22px; }
    .welcome-display .row-sub { font-size: 20px; }
    .welcome-tagline { font-size: 14.5px; margin-top: 28px; max-width: 260px; }
    .welcome-cta-wrap { margin-top: 34px; }
    .welcome-cta-rule { height: 28px; }
    .welcome-cta { font-size: 10px; letter-spacing: 0.28em; }
}


/* ═══════════════════════════════════════════════════════════════
   Floating-glass bottom navbar
   Light, semi-transparent, backdrop blur, hairline border, follows
   scroll. Overrides Bootstrap .bg-dark/.navbar-dark/.fixed-bottom
   that the markup may still carry — single source of truth lives
   here. Scroll-aware behaviour is wired in static/js/app.js.
   ═══════════════════════════════════════════════════════════════ */
.navbar-invitation {
    position: fixed !important;
    left: 50% !important;
    bottom: 24px !important;
    right: auto !important;
    top: auto !important;
    transform: translateX(-50%) translateY(0);
    z-index: 1030;

    width: auto;
    max-width: 720px;
    min-width: 320px;
    padding: 6px 14px !important;

    background-color: rgba(253, 244, 235, 0.55) !important;
    -webkit-backdrop-filter: saturate(160%) blur(22px);
    backdrop-filter: saturate(160%) blur(22px);
    border-radius: 28px !important;
    border: 1px solid rgba(94, 74, 53, 0.18);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 10px 30px rgba(31, 27, 20, 0.10),
        0 2px 8px rgba(31, 27, 20, 0.06);

    /* Hidden until JS marks it ready, then fades up into place. */
    opacity: 0;
    transform: translateX(-50%) translateY(28px);
    transition:
        opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
        background-color 350ms ease,
        box-shadow 350ms ease,
        padding 350ms ease;
}
.navbar-invitation.is-ready {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* When scrolled past the first viewport, the bar tightens slightly
   and the cream tint deepens — a subtle "I'm following you" signal. */
.navbar-invitation.is-scrolled {
    padding: 4px 8px !important;
    background-color: rgba(253, 244, 235, 0.72) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 14px 36px rgba(31, 27, 20, 0.13),
        0 2px 8px rgba(31, 27, 20, 0.06);
}
.navbar-invitation .navbar-nav { width: 100%; gap: 4px; }
.navbar-invitation .nav-item { flex: 1; }
.navbar-invitation .nav-link {
    color: #5E4A35 !important;
    padding: 10px 14px !important;
    border-radius: 22px;
    text-align: center;
    font-family: 'Albert Sans', -apple-system, system-ui, sans-serif !important;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 200ms ease, color 200ms ease;
}
.navbar-invitation .nav-link i { display: none !important; }
.navbar-invitation .nav-link span {
    font-size: 0.78rem !important;
    line-height: 1;
    letter-spacing: 0.06em;
    display: inline !important;
}
.navbar-invitation .nav-link:hover {
    color: #1F1B14 !important;
    background-color: rgba(94, 74, 53, 0.08);
}
.navbar-invitation .nav-link.active {
    color: #1F1B14 !important;
    background-color: rgba(94, 74, 53, 0.14);
}

/* Push content above the floating navbar so the last section stays
   above its glass plate while scrolled to the bottom. */
.invitation-wrapper { padding-bottom: 120px; }

@media (max-width: 575.98px) {
    .navbar-invitation {
        bottom: 14px;
        left: 12px;
        right: 12px;
        max-width: none;
        transform: translateY(28px);
        padding: 4px 6px !important;
    }
    .navbar-invitation.is-ready { transform: translateY(0); }
    .navbar-invitation.is-scrolled { padding: 3px 5px !important; }
    .navbar-invitation .nav-link span { font-size: 0.68rem !important; }
}


/* ═══════════════════════════════════════════════════════════════
   RSVP form — Aesop-themed
   Cream background · hairline bottom-border inputs · cocoa text ·
   square corners · no shadows · sepia accents · editorial labels
   ═══════════════════════════════════════════════════════════════ */
.signup-form {
    --rsvp-cream:    #FDF4EB;
    --rsvp-paper:    #FFFFFF;
    --rsvp-cocoa:    #1F1B14;
    --rsvp-cocoa-2:  #2B241B;
    --rsvp-sepia:    #5E4A35;
    --rsvp-taupe:    #A89A7C;
    --rsvp-rule:     rgba(94, 74, 53, 0.25);
    --rsvp-rule-soft: rgba(94, 74, 53, 0.12);
}
.signup-form .form-label {
    font-family: 'Albert Sans', -apple-system, system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rsvp-sepia);
    margin-bottom: 6px;
}
.signup-form .form-label .text-danger {
    color: var(--rsvp-taupe) !important;
    font-weight: 400;
    margin-left: 4px;
}
.signup-form .form-control,
.signup-form input.form-control,
.signup-form textarea.form-control,
.signup-form select.form-control {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--rsvp-rule) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 10px 0 12px !important;
    font-family: 'Cormorant Garamond', 'Garamond Premier Pro', Georgia, serif;
    font-size: 1.05rem !important;
    font-weight: 400;
    color: var(--rsvp-cocoa) !important;
    letter-spacing: 0;
    transition: border-color 200ms ease;
}
.signup-form .form-control:focus {
    border-bottom-color: var(--rsvp-cocoa) !important;
    box-shadow: none !important;
    outline: 0;
}
.signup-form .form-control::placeholder {
    color: var(--rsvp-taupe);
    font-style: italic;
}
.signup-form .form-control:disabled {
    background: transparent !important;
    color: var(--rsvp-cocoa) !important;
    opacity: 0.7;
}
.signup-form textarea.form-control { min-height: 110px; resize: vertical; }
.signup-form select.form-control { appearance: auto; }

/* Checkboxes — square, hairline */
.signup-form .form-check { padding-left: 1.6rem; margin-top: 4px; }
.signup-form .form-check-input {
    width: 1rem; height: 1rem;
    background-color: transparent;
    border: 1px solid var(--rsvp-rule);
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-left: -1.6rem; margin-top: 4px;
    cursor: pointer;
}
.signup-form .form-check-input:checked {
    background-color: var(--rsvp-sepia);
    border-color: var(--rsvp-sepia);
}
.signup-form .form-check-input:focus {
    box-shadow: none !important;
    border-color: var(--rsvp-cocoa);
}
.signup-form .form-check-label {
    font-family: 'Albert Sans', -apple-system, system-ui, sans-serif;
    font-weight: 400;
    font-size: 0.88rem;
    color: var(--rsvp-cocoa-2);
    letter-spacing: 0.01em;
    cursor: pointer;
}

/* Submit — Aesop underline link, full-width */
.signup-form .btn,
.signup-form button[type="submit"] {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--rsvp-cocoa) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--rsvp-cocoa) !important;
    font-family: 'Albert Sans', -apple-system, system-ui, sans-serif !important;
    font-weight: 500;
    font-size: 0.7rem !important;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 8px 0 6px !important;
    margin-top: 24px;
    transition: opacity 200ms ease;
}
.signup-form .btn:hover,
.signup-form button[type="submit"]:hover {
    opacity: 0.55;
    background: transparent !important;
    color: var(--rsvp-cocoa) !important;
}
.signup-form .btn:disabled,
.signup-form button[type="submit"]:disabled {
    opacity: 0.45; cursor: not-allowed;
}

.signup-form .signup-rule {
    height: 1px;
    background: var(--rsvp-rule);
    border: 0;
    margin: 28px 0 24px;
}
.signup-form .signup-eyebrow {
    font-family: 'Albert Sans', -apple-system, system-ui, sans-serif;
    font-weight: 400;
    font-size: 0.68rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--rsvp-sepia);
    text-align: center;
    margin-bottom: 18px;
    display: block;
}

@keyframes scroll {
    0% {
        opacity: 0;
    }

    10% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(1rem);
        opacity: 0;
    }
}

.mouse-animation>.scroll-animation {
    width: 0.25rem;
    height: 0.625rem;
    border-radius: 25%;
    background-color: #373737;
    animation-name: scroll;
    animation-duration: 2.5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes spin-icon {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spin-button {
    animation: spin-icon 5s linear infinite;
}

@keyframes love {
    50% {
        transform: translateY(1rem);
    }
}

.animate-love {
    animation: love 5s ease-in-out infinite;
}

.dark-section {
    background-color: #EDDFD2 !important;
    margin-top: -0.5rem;
    margin-bottom: -0.5rem;
}

footer {
    background-color: #EDDFD2 !important;
    margin-top: -0.5rem;
    padding-bottom: 5rem;
}


@media(max-width:600px){
    body {
        font-size: 1.1rem;
    }
    .img-crop {
        width: 9em;
        height: 9em;
    }

    .text-header{
        font-size: 2.3rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    .embed-responsive video {
        max-width: 100%;
    }

}
@media(max-width:375px){
    body {
        font-size: 0.9rem;
    }
    .img-crop {
        width: 7em;
        height: 7em;
    }
    .text-header {
        font-size: 2rem;
    }
     h1 {
        font-size: 1.4rem;
    }
}
