@import url("common.css");
@import url("animation.css");

@font-face {
    font-family: 'AmsterdamOne';
    src: url('../assets/fonts/AmsterdamOne.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.with-scrollbar {
    scrollbar-width: auto !important;
    -ms-overflow-style: auto !important;
}

.font-esthetic {
    font-family: 'Sacramento', cursive !important;
}

.font-amsterdam {
    font-family: 'AmsterdamOne', cursive !important;
}

.font-allura {
    font-family: 'Allura', cursive !important;
}

.font-euphoria {
    font-family: 'Euphoria Script', cursive !important;
}

.font-courgette {
    font-family: 'Courgette', cursive !important;
}

.font-style-script {
    font-family: 'Style Script', cursive !important;
}

.font-rouge {
    font-family: 'Rouge Script', cursive !important;
}

.font-rochester {
    font-family: 'Rochester', cursive !important;
}

.font-arabic {
    font-family: 'Noto Naskh Arabic', serif !important;
}

.img-center-crop {
    width: 13rem;
    height: 13rem;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

html[data-bs-theme="dark"] .btn-transparent {
    background-color: rgba(var(--bs-dark-rgb), 0.5) !important;
    backdrop-filter: blur(0.5rem);
}

html[data-bs-theme="light"] .btn-transparent {
    background-color: rgba(var(--bs-light-rgb), 0.5) !important;
    backdrop-filter: blur(0.5rem);
}

.loading-page {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1056;
}

html[data-bs-theme="light"] .color-theme-svg {
    /* Wave fill matches warm-cream sections */
    color: #fdf2f2;
    background-color: var(--bs-light);
}

html[data-bs-theme="dark"] .color-theme-svg {
    color: rgb(0, 0, 0);
    background-color: var(--bs-dark);
}

html[data-bs-theme="light"] .bg-light-dark {
    background-color: #eebbbb;
}

html[data-bs-theme="dark"] .bg-light-dark {
    background-color: rgb(var(--bs-dark-rgb));
}

html[data-bs-theme="light"] .bg-white-black {
    /* Warm blush-cream replaces pure white */
    background-color: #fdf2f2;
}

html[data-bs-theme="dark"] .bg-white-black {
    background-color: rgb(var(--bs-black-rgb));
}

.bg-cover-home {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(0.5turn, transparent, black 40%, black 60%, transparent);
}

/* Hero background image — more visible than Bootstrap's opacity-25 */
#home .bg-cover-home {
    opacity: 0.5 !important;
}

/* Hero: 100% of the visible viewport height, with fallback for older browsers */
.home-hero {
    min-height: 100vh;
    min-height: 100dvh; /* adjusts dynamically as mobile browser chrome shows/hides */
}

/* Wave separator background must match Hero color to avoid hard cut */
html[data-bs-theme="light"] .svg-wrapper:has(+ #bride),
html[data-bs-theme="light"] .hero-wave-wrapper {
    background-color: #eebbbb;
}

html[data-bs-theme="dark"] .hero-wave-wrapper {
    background-color: rgb(var(--bs-dark-rgb));
}


.width-loading {
    width: 25%;
}

.cursor-pointer {
    cursor: pointer;
}

@media screen and (max-width: 992px) {
    .width-loading {
        width: 50%;
    }
}

@media screen and (max-width: 576px) {
    .width-loading {
        width: 75%;
    }
}

/* Scrollable navbar */

#navbar-list {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#navbar-list::-webkit-scrollbar {
    display: none;
}

#navbar-list .nav-item {
    flex-shrink: 0;
}

#navbar-list .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.6rem 0.5rem;
    line-height: 1.2;
    min-height: 3.5rem;
    margin: 0.25rem 0.15rem;
    border-radius: 1rem;
    position: relative;
    transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

#navbar-list .nav-link i {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.15rem;
    transition: transform 0.25s ease;
}

#navbar-list .nav-link.active i {
    transform: scale(1.15);
}

#navbar-list .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0.15rem;
    left: 50%;
    width: 1.1rem;
    height: 3px;
    border-radius: 2px;
    transform: translateX(-50%);
    background: currentColor;
    opacity: 0.85;
}

svg {
    display: block;
    line-height: 0;
    shape-rendering: geometricPrecision;
    backface-visibility: hidden;
}

.svg-wrapper {
    overflow: hidden !important;
    transform: translateZ(0) !important;
}

.no-gap-bottom {
    margin-bottom: -0.75rem !important;
}

/* ===== WELCOME PAGE ===== */

html[data-bs-theme="light"] .welcome-page {
    background: radial-gradient(ellipse at 50% 30%, #fdf2f2 0%, #f5d5d5 45%, #eebbbb 100%);
}

html[data-bs-theme="dark"] .welcome-page {
    background: radial-gradient(ellipse at 50% 30%, #2a1010 0%, #3d1c1c 45%, #4d2222 100%);
}

/* Floating petals */
.welcome-petals {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.petal {
    position: absolute;
    border-radius: 50% 0 50% 0;
    opacity: 0;
    animation: petalDrift linear infinite;
}

html[data-bs-theme="light"] .petal { background: rgba(160, 60, 60, 0.18); }
html[data-bs-theme="dark"]  .petal { background: rgba(238, 187, 187, 0.18); }

.petal-1 { left:  7%; width: 8px;  height: 8px;  animation-duration:  9s; animation-delay:  0.0s; }
.petal-2 { left: 18%; width: 11px; height: 11px; animation-duration: 12s; animation-delay:  1.8s; }
.petal-3 { left: 29%; width: 14px; height: 14px; animation-duration: 10s; animation-delay:  3.5s; }
.petal-4 { left: 41%; width:  9px; height:  9px; animation-duration: 13s; animation-delay:  0.9s; }
.petal-5 { left: 53%; width: 12px; height: 12px; animation-duration: 11s; animation-delay:  2.6s; }
.petal-6 { left: 65%; width:  7px; height:  7px; animation-duration:  9.5s; animation-delay: 4.2s; }
.petal-7 { left: 76%; width: 13px; height: 13px; animation-duration: 12.5s; animation-delay: 1.2s; }
.petal-8 { left: 88%; width: 10px; height: 10px; animation-duration: 10.5s; animation-delay: 3.0s; }

/* Content card */
.welcome-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.75rem 2rem;
    max-width: 400px;
    width: 92%;
    margin: 1.5rem auto;
}

@media (max-width: 360px) {
    .welcome-card {
        width: 98%;
        padding: 2rem 1rem 1.5rem;
    }
}


/* SVG flourish ornaments */
.welcome-flourish {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

html[data-bs-theme="light"] .welcome-flourish { color: #c07070; }
html[data-bs-theme="dark"]  .welcome-flourish { color: #e8b0b0; }

/* Tagline */
.welcome-quote {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0.2rem 0;
}

html[data-bs-theme="light"] .welcome-quote { color: #7a4040; }
html[data-bs-theme="dark"]  .welcome-quote { color: #f0c0c0; }

.welcome-quote-sub {
    font-style: italic;
    text-transform: none;
    letter-spacing: 0.03em;
    font-size: 0.78rem;
    margin-bottom: 0.4rem;
}

/* Divider */
.welcome-divider {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    max-width: 240px;
    margin: 0.65rem auto;
}

.welcome-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4a0a0, transparent);
}

html[data-bs-theme="dark"] .welcome-line {
    background: linear-gradient(90deg, transparent, #7a4545, transparent);
}

.welcome-heart-icon {
    font-size: 0.7rem;
    animation: welcomeHeartbeat 2.8s ease-in-out infinite;
}

html[data-bs-theme="light"] .welcome-heart-icon { color: #d4a0a0; }
html[data-bs-theme="dark"]  .welcome-heart-icon { color: #e8b0b0; }

/* Photo */
.welcome-photo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0.7rem auto;
}

.welcome-photo-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1.5px solid rgba(238, 187, 187, 0.55);
    animation: welcomeRingPulse 3s ease-in-out infinite;
    pointer-events: none;
}

.welcome-photo-glow::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(238, 187, 187, 0.25);
}

html[data-bs-theme="dark"] .welcome-photo-glow {
    border-color: rgba(238, 187, 187, 0.35);
}

html[data-bs-theme="dark"] .welcome-photo-glow::before {
    border-color: rgba(238, 187, 187, 0.15);
}

.welcome-photo {
    width: 10.5rem;
    height: 10.5rem;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.welcome-photo:hover {
    transform: scale(1.06);
}

html[data-bs-theme="light"] .welcome-photo {
    border: 2.5px solid rgba(238, 187, 187, 0.85);
    box-shadow: 0 0 28px rgba(238, 187, 187, 0.45), 0 8px 24px rgba(0,0,0,0.1);
}

html[data-bs-theme="light"] .welcome-photo:hover {
    box-shadow: 0 0 42px rgba(238, 187, 187, 0.7), 0 12px 32px rgba(0,0,0,0.14);
}

html[data-bs-theme="dark"] .welcome-photo {
    border: 2.5px solid rgba(238, 187, 187, 0.4);
    box-shadow: 0 0 28px rgba(238, 187, 187, 0.15), 0 8px 24px rgba(0,0,0,0.4);
}

html[data-bs-theme="dark"] .welcome-photo:hover {
    box-shadow: 0 0 42px rgba(238, 187, 187, 0.28), 0 12px 32px rgba(0,0,0,0.55);
}

/* Names */
.welcome-names {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0.4rem 0 0.75rem;
}

html[data-bs-theme="light"] .welcome-names { color: #5c2d2d; }
html[data-bs-theme="dark"]  .welcome-names { color: #f5d0d0; }

/* Date */
.welcome-date {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0.1rem 0 0.4rem;
}

html[data-bs-theme="light"] .welcome-date { color: #8b5050; }
html[data-bs-theme="dark"]  .welcome-date { color: #d4a8a8; }

/* Guest name section */
.welcome-guest {
    font-size: 0.875rem;
    margin: 0.1rem 0 1.4rem;
}

html[data-bs-theme="light"] .welcome-guest { color: #7a4545; }
html[data-bs-theme="dark"]  .welcome-guest { color: #e8c0c0; }

/* CTA button */
.welcome-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.72rem 2.1rem;
    border: none;
    border-radius: 3rem;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.88rem;
    letter-spacing: 0.09em;
    cursor: pointer;
    margin-top: 0.4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html[data-bs-theme="light"] .welcome-btn {
    background: linear-gradient(130deg, #d4a0a0, #eebbbb 50%, #d4a0a0);
    background-size: 200% 100%;
    color: #4d2020;
    box-shadow: 0 4px 22px rgba(212, 160, 160, 0.55), 0 2px 8px rgba(0,0,0,0.07);
}

html[data-bs-theme="dark"] .welcome-btn {
    background: linear-gradient(130deg, #7a3535, #b06060 50%, #7a3535);
    background-size: 200% 100%;
    color: #ffe8e8;
    box-shadow: 0 4px 22px rgba(176, 96, 96, 0.45), 0 2px 8px rgba(0,0,0,0.3);
}

.welcome-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 45%;
    height: 200%;
    background: rgba(255, 255, 255, 0.28);
    transform: skewX(-18deg);
    animation: welcomeShimmer 3.5s ease-in-out infinite;
}

.welcome-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

html[data-bs-theme="light"] .welcome-btn:hover:not(:disabled) {
    box-shadow: 0 6px 30px rgba(212, 160, 160, 0.7), 0 4px 12px rgba(0,0,0,0.09);
}

html[data-bs-theme="dark"] .welcome-btn:hover:not(:disabled) {
    box-shadow: 0 6px 30px rgba(176, 96, 96, 0.6), 0 4px 12px rgba(0,0,0,0.35);
}

.welcome-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.97);
}

.welcome-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

/* Entrance animation */
.welcome-anim {
    opacity: 0;
    animation: welcomeFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--d, 0s);
}

/* Exit animation — triggered by JS adding .welcome-exit to #welcome */
#welcome.welcome-exit .welcome-card {
    animation: welcomeCardExit 0.85s cubic-bezier(0.4, 0, 0.6, 1) both;
}

#welcome.welcome-exit .petal {
    animation-play-state: paused;
}

/* ================================================================
   LIGHT THEME — PREMIUM WARM PALETTE
   ────────────────────────────────────────────────────────────────
   Cream   #fdf2f2  — warm near-white (sections, body, loading)
   Ivory   #faf0ee  — warm panels & cards  (bg-theme-auto)
   Blush   #f5d5d5  — section gradient top
   Rose    #eebbbb  — main accent (sections, navbar, borders)
   Deep    #d4a0a0  — borders, muted shadows
   Wine    #8b5050  — text accents, icons
   ================================================================ */

/* --- Body ---------------------------------------------------- */

html[data-bs-theme="light"] body {
    background-color: #fdf2f2;
}

/* --- Cards & panels ----------------------------------------- */

html[data-bs-theme="light"] .bg-theme-auto {
    background: linear-gradient(145deg, #faf5f0 0%, #faf0ee 100%) !important;
}

/* --- Shadows (warm rose tint) -------------------------------- */

html[data-bs-theme="light"] .shadow {
    box-shadow: 0 4px 20px rgba(212, 160, 160, 0.22), 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

html[data-bs-theme="light"] .shadow-sm {
    box-shadow: 0 2px 10px rgba(212, 160, 160, 0.18), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* --- Borders ------------------------------------------------- */

html[data-bs-theme="light"] .border {
    border-color: rgba(212, 160, 160, 0.35) !important;
}

html[data-bs-theme="light"] .border-top,
html[data-bs-theme="light"] .border-bottom {
    border-color: rgba(212, 160, 160, 0.35) !important;
}

html[data-bs-theme="light"] .border-secondary {
    border-color: rgba(196, 140, 140, 0.4) !important;
}

/* --- HR dividers --------------------------------------------- */

html[data-bs-theme="light"] hr {
    border-color: rgba(212, 160, 160, 0.3);
    opacity: 1;
}

/* --- Bottom navbar ------------------------------------------- */

html[data-bs-theme="light"] #navbar-menu {
    background: linear-gradient(
        135deg,
        rgba(255, 245, 245, 0.55) 0%,
        rgba(252, 232, 232, 0.45) 100%
    ) !important;
    border-color: rgba(238, 187, 187, 0.38) !important;
    border-top-width: 1px !important;
    backdrop-filter: blur(18px) saturate(1.6) brightness(1.08) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.6) brightness(1.08) !important;
    box-shadow:
        0 -1px 0 rgba(255, 255, 255, 0.55) inset,
        0 -6px 28px rgba(212, 140, 140, 0.16),
        0 -2px 8px rgba(212, 140, 140, 0.10) !important;
}

/* Subtle inner top highlight line */
html[data-bs-theme="light"] #navbar-menu::before {
    content: '';
    position: absolute;
    top: 0; left: 1.5rem; right: 1.5rem;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8) 30%,
        rgba(255, 255, 255, 0.8) 70%,
        transparent
    );
    pointer-events: none;
    border-radius: 1px;
}

/* Nav links — ensure contrast on glass */
html[data-bs-theme="light"] #navbar-list .nav-link {
    color: #6b3a3a;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

html[data-bs-theme="light"] #navbar-list .nav-link:hover {
    color: #4d1f1f;
    background: rgba(212, 140, 140, 0.14);
}

html[data-bs-theme="light"] #navbar-list .nav-link.active {
    color: #4d1f1f;
    font-weight: 600;
    background: rgba(212, 140, 140, 0.28);
    box-shadow: 0 2px 10px rgba(212, 140, 140, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    text-shadow: none;
}

/* --- Bottom navbar (dark) ------------------------------------ */

html[data-bs-theme="dark"] #navbar-list .nav-link:hover {
    color: #f0d0d0;
    background: rgba(238, 187, 187, 0.1);
}

html[data-bs-theme="dark"] #navbar-list .nav-link.active {
    color: #f5dcdc;
    font-weight: 600;
    background: rgba(238, 187, 187, 0.18);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}


/* --- Outline & primary buttons ------------------------------- */

html[data-bs-theme="light"] .btn-outline-auto {
    --bs-btn-color: #7a3d3d;
    --bs-btn-border-color: #c08080;
    --bs-btn-hover-color: #fff8f8;
    --bs-btn-hover-bg: #c08080;
    --bs-btn-hover-border-color: #c08080;
    --bs-btn-focus-shadow-rgb: 192, 128, 128;
    --bs-btn-active-color: #fff8f8;
    --bs-btn-active-bg: #a86060;
    --bs-btn-active-border-color: #a86060;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.1);
    --bs-btn-disabled-color: #c08080;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #c08080;
    --bs-gradient: none;
}

html[data-bs-theme="light"] .btn-primary {
    --bs-btn-color: #fff8f8;
    --bs-btn-bg: #c07878;
    --bs-btn-border-color: #c07878;
    --bs-btn-hover-color: #fff8f8;
    --bs-btn-hover-bg: #a86262;
    --bs-btn-hover-border-color: #a86262;
    --bs-btn-focus-shadow-rgb: 192, 120, 120;
    --bs-btn-active-color: #fff8f8;
    --bs-btn-active-bg: #9e5e5e;
    --bs-btn-active-border-color: #9e5e5e;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.1);
}

/* --- Floating action buttons (theme / audio) ----------------- */

html[data-bs-theme="light"] .btn-transparent {
    background-color: rgba(253, 242, 242, 0.88) !important;
    backdrop-filter: blur(0.5rem);
    border-color: rgba(212, 160, 160, 0.35) !important;
    color: #8b5050;
}

/* --- Form controls ------------------------------------------- */

html[data-bs-theme="light"] .form-control,
html[data-bs-theme="light"] .form-select {
    background-color: #fdf6f4;
    border-color: #e0b8b8;
    color: #3a1818;
}

html[data-bs-theme="light"] .form-control::placeholder {
    color: #c09090;
    opacity: 1;
}

html[data-bs-theme="light"] .form-control:focus,
html[data-bs-theme="light"] .form-select:focus {
    background-color: #fdfaf9;
    border-color: #d4a0a0;
    box-shadow: 0 0 0 0.25rem rgba(238, 187, 187, 0.35);
    color: #3a1818;
}

html[data-bs-theme="light"] .form-select option {
    background-color: #fdf6f4;
    color: #3a1818;
}

/* --- Progress bars ------------------------------------------- */

html[data-bs-theme="light"] .progress {
    background-color: #f0d0d0;
}

html[data-bs-theme="light"] .progress-bar {
    background: linear-gradient(90deg, #d4a0a0, #eebbbb);
}

/* --- Countdown box ------------------------------------------- */

html[data-bs-theme="light"] #countdown .rounded-pill.border {
    background: rgba(253, 248, 248, 0.82);
    box-shadow: 0 4px 22px rgba(212, 160, 160, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* ===== COUNTDOWN GRID ===== */

/* --- Home section names & date ------------------------------ */

.home-names {
    font-size: 2.5rem;
    line-height: 1.3;
    color: #3a1010;
    margin-bottom: 0.6rem;
}

html[data-bs-theme="dark"] .home-names {
    color: #f5d0d0;
}

.home-date {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #3a1010;
}

html[data-bs-theme="dark"] .home-date {
    color: #d4a8a8;
}

/* --- Bride section ------------------------------------------ */

.bride-role {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #8b5050;
    opacity: 0.8;
}

html[data-bs-theme="dark"] .bride-role {
    color: #d4a8a8;
}

.bride-ampersand-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.25rem 0;
}

.bride-amp-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,160,160,0.5), transparent);
    max-width: 5rem;
}

.bride-amp-char {
    font-size: 3rem;
    line-height: 1;
    color: #c08080;
    opacity: 0.7;
}

html[data-bs-theme="dark"] .bride-amp-char {
    color: #e0b0b0;
}

.home-tagline {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    font-style: italic;
    color: #8b5050;
    opacity: 0.8;
    max-width: 22rem;
}

html[data-bs-theme="dark"] .home-tagline {
    color: #d4b0b0;
}

/* --- Scroll Down indicator ---------------------------------- */

html[data-bs-theme="light"] .scroll-indicator {
    border: 2px solid rgba(0, 0, 0, 0.6) !important;
}

html[data-bs-theme="dark"] .scroll-indicator {
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
}

html[data-bs-theme="light"] .scroll-indicator-dot {
    background-color: rgba(0, 0, 0, 0.6);
}

html[data-bs-theme="dark"] .scroll-indicator-dot {
    background-color: rgba(255, 255, 255, 0.6);
}

html[data-bs-theme="light"] .scroll-indicator-text {
    color: rgba(0, 0, 0, 0.8);
}

html[data-bs-theme="dark"] .scroll-indicator-text {
    color: rgba(255, 255, 255, 0.8);
}

.section-heading-ornament {
    display: flex;
    flex-direction: column;
    align-items: center;
}

html[data-bs-theme="light"] .section-heading-ornament svg {
    color: #a85050;
}

html[data-bs-theme="dark"] .section-heading-ornament svg {
    color: #e8b0b0;
}

.section-heading-title {
    font-size: 2.25rem;
    line-height: 1.15;
    color: #3a1010;
}

html[data-bs-theme="dark"] .section-heading-title {
    color: #f5d0d0;
}

/* Hero — larger heading with contrast over rose background */
#home .section-heading-title {
    font-size: 3rem;
    color: #3a1010;
    text-shadow:
        0 1px 8px rgba(255, 245, 245, 0.55),
        0 2px 16px rgba(255, 235, 235, 0.35);
}

html[data-bs-theme="dark"] #home .section-heading-title {
    color: #f5d0d0;
    text-shadow:
        0 1px 8px rgba(80, 20, 20, 0.4),
        0 2px 16px rgba(60, 10, 10, 0.3);
}

#home .home-tagline {
    color: #4a1c1c;
    opacity: 1;
    text-shadow: 0 1px 6px rgba(255, 240, 240, 0.5);
}

html[data-bs-theme="dark"] #home .home-tagline {
    color: #f5d0d0;
    text-shadow: 0 1px 6px rgba(80, 20, 20, 0.35);
}

.countdown-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    padding: 0.9rem 0.5rem 0.65rem;
    border-radius: 1.1rem;
    position: relative;
    overflow: hidden;
}

.countdown-unit::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.1rem;
    pointer-events: none;
}

html[data-bs-theme="light"] .countdown-unit {
    background: linear-gradient(160deg, #fdf6f4 0%, #faf0ee 100%);
    border: 1px solid rgba(212, 160, 160, 0.3);
    box-shadow: 0 6px 22px rgba(212, 160, 160, 0.25), 0 2px 6px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

html[data-bs-theme="light"] .countdown-unit::before {
    background: linear-gradient(160deg, rgba(255,255,255,0.45) 0%, transparent 60%);
}

html[data-bs-theme="dark"] .countdown-unit {
    background: rgba(var(--bs-dark-rgb), 0.6);
    border: 1px solid rgba(238, 187, 187, 0.15);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
}

.countdown-value {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    min-width: 2ch;
    text-align: center;
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-bs-theme="light"] .countdown-value {
    color: #7a3d3d;
}

html[data-bs-theme="dark"] .countdown-value {
    color: #f5d0d0;
}

.countdown-value.tick {
    transform: scale(1.18);
}

.countdown-label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-top: 0.3rem;
    line-height: 1;
}

html[data-bs-theme="light"] .countdown-label {
    color: #b07878;
}

html[data-bs-theme="dark"] .countdown-label {
    color: #d4a0a0;
}

.countdown-sep {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 1rem;
    animation: countdownBlink 2s ease-in-out infinite;
}

html[data-bs-theme="light"] .countdown-sep {
    color: #d4a0a0;
}

html[data-bs-theme="dark"] .countdown-sep {
    color: #8b5050;
}

@keyframes countdownBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
    .countdown-sep { animation: none; }
    .countdown-value.tick { transform: none; }
}

/* --- Loading page -------------------------------------------- */

html[data-bs-theme="light"] #loading {
    background-color: #fdf2f2 !important;
}

/* --- Padres / Cortejo / Saludos — glass card on rose bg ------ */

html[data-bs-theme="light"] .padres-card {
    background: rgba(255, 248, 248, 0.52);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.65) !important;
    box-shadow: 0 8px 32px rgba(212, 160, 160, 0.22),
                inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

html[data-bs-theme="dark"] .padres-card {
    background: rgba(30, 18, 18, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(238, 187, 187, 0.12) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

/* --- Event detail cards ------------------------------------- */

.event-detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    font-size: 1.1rem;
}

html[data-bs-theme="light"] .event-detail-icon {
    background: rgba(238, 187, 187, 0.35);
    color: #8b5050;
    box-shadow: 0 2px 10px rgba(212, 160, 160, 0.3);
}

html[data-bs-theme="dark"] .event-detail-icon {
    background: rgba(238, 187, 187, 0.12);
    color: #e8b0b0;
}

.event-detail-divider {
    width: 3rem;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #d4a0a0, transparent);
}

/* --- Dress code swatches ------------------------------------ */

.dress-swatch-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.dress-swatch {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    position: relative;
}

html[data-bs-theme="light"] .dress-swatch {
    border: 2px solid rgba(212, 160, 160, 0.45);
}

html[data-bs-theme="dark"] .dress-swatch {
    border: 2px solid rgba(238, 187, 187, 0.2);
}

.dress-swatch::after {
    content: '✕';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: rgba(120, 40, 40, 0.6);
    font-weight: 700;
}

.dress-swatch-label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

/* --- Agradecimiento Final ------------------------------------ */

.thanks-ornament {
    display: flex;
    justify-content: center;
}

html[data-bs-theme="light"] .thanks-ornament svg {
    color: #c07070;
}

html[data-bs-theme="dark"] .thanks-ornament svg {
    color: #e8b0b0;
}

.thanks-heading {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: #5c2d2d;
}

html[data-bs-theme="dark"] .thanks-heading {
    color: #f5d0d0;
}

.thanks-sub {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.88rem;
    line-height: 1.65;
    letter-spacing: 0.02em;
    color: #8b5050;
}

html[data-bs-theme="dark"] .thanks-sub {
    color: #d4a8a8;
}

.thanks-signature {
    font-size: 2.75rem;
    line-height: 1.1;
    margin: 0.25rem 0;
    color: #5c2d2d;
}

html[data-bs-theme="dark"] .thanks-signature {
    color: #f5d0d0;
}

.thanks-date {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0;
    color: #b07878;
}

html[data-bs-theme="dark"] .thanks-date {
    color: #c8a0a0;
}

/* --- Image modal --------------------------------------------- */

html[data-bs-theme="light"] .modal-content {
    background-color: #fdf4f2;
    border-color: rgba(212, 160, 160, 0.2);
}

/* --- Desktop side panel overlay card ------------------------- */

html[data-bs-theme="light"] .bg-overlay-auto.rounded-5 {
    background: rgba(253, 244, 244, 0.82) !important;
    border: 1px solid rgba(238, 187, 187, 0.5) !important;
    box-shadow: 0 8px 32px rgba(212, 160, 160, 0.18) !important;
}

/* --- Carousel indicators ------------------------------------- */

html[data-bs-theme="light"] .carousel-indicators [data-bs-target] {
    background-color: #d4a0a0;
    opacity: 0.6;
}

html[data-bs-theme="light"] .carousel-indicators .active {
    background-color: #8b5050;
    opacity: 1;
}

/* --- QR / recuerdos badge ------------------------------------ */

html[data-bs-theme="light"] .text-bg-dark {
    background: linear-gradient(135deg, #7a4040, #b06060) !important;
    color: #fff8f8 !important;
}

/* --- SweetAlert2 popup warm background ----------------------- */

html[data-bs-theme="light"] .swal-wedding-popup {
    background: #fdf4f2 !important;
}

/* --- Lluvia de Sobres — sobre 3D ----------------------------- */

/*
 * Capas (z-index de menor a mayor):
 *   1. env-back  — fondo interior completo del sobre
 *   2. env-letter — carta que emerge
 *   3. env-body  — tapa frontal SOLO de la mitad inferior (bolsillo)
 *   4. env-seal  — sello de corazón central
 *   5. env-flap-top — solapa superior que se abre al hover
 *
 * La carta (z-2) queda entre el interior (z-1) y el bolsillo (z-3).
 * El bolsillo cubre la parte inferior mientras la carta sube;
 * la solapa cubre la parte superior mientras está cerrada.
 * Juntos ocultan la carta en reposo y la revelan al emerger.
 */

.envelope-scene {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 2rem 0 1rem;
    overflow: visible;
}

.envelope-3d {
    position: relative;
    width: 220px;
    height: 145px;
    cursor: default;
    transform: perspective(800px) rotateX(4deg);
    filter: drop-shadow(0 10px 22px rgba(180, 100, 100, 0.28));
    transition: filter 0.35s ease, transform 0.35s ease;
}

.envelope-3d:hover {
    transform: perspective(800px) rotateX(2deg) translateY(-5px);
    filter: drop-shadow(0 18px 34px rgba(180, 100, 100, 0.4));
}

/* z-1: panel de fondo (interior completo del sobre) */
.env-back {
    position: absolute;
    inset: 0;
    border-radius: 3px 3px 7px 7px;
    border: 1.5px solid;
    z-index: 1;
}

/* z-2: carta — empieza oculta dentro, sube al hover */
.env-letter {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 176px;
    height: 110px;
    border-radius: 3px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: bottom 0.48s cubic-bezier(0.4, 0, 0.2, 1) 0.22s;
}

.envelope-3d:hover .env-letter {
    bottom: 50px;
}

.env-letter-text {
    font-size: 1.3rem;
    opacity: 0;
    transition: opacity 0.3s ease 0.55s;
}

.envelope-3d:hover .env-letter-text {
    opacity: 1;
}

/* z-3: bolsillo frontal — solo la mitad inferior (tapa el interior de la carta) */
.env-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 73px;
    border-radius: 0 0 7px 7px;
    overflow: hidden;
    z-index: 3;
}

/* Triángulos de doblez dentro del bolsillo frontal.
 * El punto central del sobre completo coincide con (50%, 0%) del bolsillo. */
.env-fold-left,
.env-fold-right,
.env-fold-bottom {
    position: absolute;
    inset: 0;
}

.env-fold-left   { clip-path: polygon(0 0, 50% 0, 0 100%); }
.env-fold-right  { clip-path: polygon(100% 0, 50% 0, 100% 100%); }
.env-fold-bottom { clip-path: polygon(0 100%, 50% 0, 100% 100%); }

/* z-4: sello de corazón central */
.env-seal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
    z-index: 4;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.envelope-3d:hover .env-seal {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

/* z-5: solapa superior — se abre en perspectiva 3D al hover */
.env-flap-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 73px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top center;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    border-radius: 3px 3px 0 0;
}

.envelope-3d:hover .env-flap-top {
    transform: perspective(600px) rotateX(-165deg);
}

/* Corazones flotantes */
.env-heart {
    position: absolute;
    bottom: 72px;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%);
    user-select: none;
    z-index: 10;
}

.env-h1 { left: calc(50% - 62px); font-size: 0.7rem; }
.env-h2 { left: calc(50% - 20px); font-size: 1.1rem; }
.env-h3 { left: calc(50% + 8px);  font-size: 0.85rem; }
.env-h4 { left: calc(50% + 44px); font-size: 0.65rem; }
.env-h5 { left: calc(50% - 38px); font-size: 0.78rem; }

.envelope-scene:hover .env-h1 { animation: envHeartFloat 2.4s 0.15s ease-in-out forwards; }
.envelope-scene:hover .env-h2 { animation: envHeartFloat 2.4s 0.55s ease-in-out forwards; }
.envelope-scene:hover .env-h3 { animation: envHeartFloat 2.4s 0.30s ease-in-out forwards; }
.envelope-scene:hover .env-h4 { animation: envHeartFloat 2.4s 0.80s ease-in-out forwards; }
.envelope-scene:hover .env-h5 { animation: envHeartFloat 2.4s 1.05s ease-in-out forwards; }

@keyframes envHeartFloat {
    0%   { opacity: 0;   transform: translateX(-50%) translateY(0)      scale(0.5)  rotate(-8deg); }
    18%  { opacity: 1; }
    75%  { opacity: 0.6; }
    100% { opacity: 0;   transform: translateX(-50%) translateY(-108px)  scale(1.15) rotate(8deg); }
}

/* ---- Colores tema claro ---- */
html[data-bs-theme="light"] .env-back {
    background: #f8ece8;
    border-color: rgba(212, 160, 160, 0.45);
}
html[data-bs-theme="light"] .env-body {
    background: #fdf4f0;
}
html[data-bs-theme="light"] .env-fold-left,
html[data-bs-theme="light"] .env-fold-right { background: rgba(200, 140, 140, 0.13); }
html[data-bs-theme="light"] .env-fold-bottom { background: rgba(190, 128, 128, 0.1); }
html[data-bs-theme="light"] .env-flap-top {
    background: #f5e6e2;
}
html[data-bs-theme="light"] .env-seal { color: #c07070; }
html[data-bs-theme="light"] .env-letter {
    background: #fffcf8;
    border: 1px solid rgba(212, 160, 160, 0.35);
    box-shadow: 0 2px 10px rgba(180, 100, 100, 0.12);
}
html[data-bs-theme="light"] .env-letter-text { color: #8b5050; }
html[data-bs-theme="light"] .env-heart        { color: #c88080; }

/* ---- Colores tema oscuro ---- */
html[data-bs-theme="dark"] .env-back {
    background: #200e0e;
    border-color: rgba(238, 187, 187, 0.15);
}
html[data-bs-theme="dark"] .env-body {
    background: #2a1818;
}
html[data-bs-theme="dark"] .env-fold-left,
html[data-bs-theme="dark"] .env-fold-right { background: rgba(238, 187, 187, 0.07); }
html[data-bs-theme="dark"] .env-fold-bottom { background: rgba(200, 148, 148, 0.06); }
html[data-bs-theme="dark"] .env-flap-top {
    background: #3d2222;
}
html[data-bs-theme="dark"] .env-seal { color: #e8b0b0; }
html[data-bs-theme="dark"] .env-letter {
    background: #1e0f0f;
    border: 1px solid rgba(238, 187, 187, 0.18);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
html[data-bs-theme="dark"] .env-letter-text { color: #e8b0b0; }
html[data-bs-theme="dark"] .env-heart        { color: #e8a0a0; }

/* --- Cortejo & Testigos — pestañas de navegación ------------- */

.cortejo-tabs {
    flex-wrap: wrap;
}

.cortejo-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 1.15rem;
    border-radius: 50rem;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1.5px solid;
    background: transparent;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease,
                border-color 0.25s ease, box-shadow 0.25s ease,
                transform 0.12s ease;
}

.cortejo-tab:active {
    transform: scale(0.95);
}

/* Paneles: ocultos por defecto, fade-slide al activarse */
.cortejo-panel {
    display: none;
}

.cortejo-panel.active {
    display: block;
    animation: cortejoFadeIn 0.38s ease forwards;
}

@keyframes cortejoFadeIn {
    from { opacity: 0; transform: translateY(7px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Colores tema claro ---- */
html[data-bs-theme="light"] .cortejo-tab {
    color: #8b5050;
    border-color: rgba(212, 160, 160, 0.5);
}

html[data-bs-theme="light"] .cortejo-tab:hover:not(.active) {
    background: rgba(238, 187, 187, 0.22);
    border-color: rgba(212, 160, 160, 0.75);
}

html[data-bs-theme="light"] .cortejo-tab.active {
    background: rgba(212, 140, 140, 0.26);
    border-color: #c07070;
    color: #6b2f2f;
    box-shadow: 0 3px 12px rgba(212, 140, 140, 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* ---- Colores tema oscuro ---- */
html[data-bs-theme="dark"] .cortejo-tab {
    color: #d4a8a8;
    border-color: rgba(238, 187, 187, 0.18);
}

html[data-bs-theme="dark"] .cortejo-tab:hover:not(.active) {
    background: rgba(238, 187, 187, 0.08);
    border-color: rgba(238, 187, 187, 0.35);
}

html[data-bs-theme="dark"] .cortejo-tab.active {
    background: rgba(238, 187, 187, 0.16);
    border-color: rgba(238, 187, 187, 0.5);
    color: #f0c8c8;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ===== SALUDOS: BOTÓN DE LIKE ===== */

.comment-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 1.05rem;
    line-height: 1;
    background: transparent !important;
    box-shadow: none !important;
    transition: transform 0.15s ease;
}

.comment-like-btn:active:not(:disabled) {
    transform: scale(0.88);
}

.comment-like-btn:disabled {
    opacity: 1;
    cursor: default;
}

.comment-like-count {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 0.6rem;
    text-align: left;
}

html[data-bs-theme="light"] .comment-like-btn i { color: #c88080; }
html[data-bs-theme="light"] .comment-like-count { color: #8b5050; }

html[data-bs-theme="dark"] .comment-like-btn i { color: #e8a0a0; }
html[data-bs-theme="dark"] .comment-like-count { color: #d4a8a8; }

.comment-action-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    background: transparent !important;
    box-shadow: none !important;
    transition: transform 0.15s ease, opacity 0.15s ease;
    opacity: 0.7;
}

.comment-action-btn:hover,
.comment-action-btn:focus-visible {
    opacity: 1;
}

.comment-action-btn:active {
    transform: scale(0.88);
}

html[data-bs-theme="light"] .comment-action-btn { color: #8b6f50; }
html[data-bs-theme="dark"]  .comment-action-btn { color: #d4c0a8; }