/* ============================================
   SPLASH / ENTRY GATE — Melody Furniture
   ============================================ */

.splash-page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 48px 20px;
    background:
        linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 45%, var(--navy-dark) 100%);
    font-family: var(--font-body);
}

/* Background photo slider (Ken Burns crossfade) */
.splash-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #0c1226;
}
.splash-bg-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    animation-name: splashCrossfade;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    will-change: opacity;
}
.splash-bg-slide.is-static { opacity: 1; animation: none; }
.splash-bg-slide-img {
    position: absolute;
    inset: -6%;
    background-size: cover;
    background-position: center;
    animation-name: splashZoom;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    will-change: transform;
}
@keyframes splashZoom {
    0%   { transform: scale(1); }
    100% { transform: scale(1.14); }
}

/* Tint overlay so text stays legible over photos */
.splash-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Decorative glow blobs */
.splash-page::before,
.splash-page::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 2;
}
.splash-page::before {
    width: 560px;
    height: 560px;
    top: -220px;
    right: -160px;
    background: radial-gradient(circle, rgba(201,168,76,0.32) 0%, rgba(201,168,76,0) 70%);
}
.splash-page::after {
    width: 640px;
    height: 640px;
    bottom: -260px;
    left: -200px;
    background: radial-gradient(circle, rgba(74,122,155,0.35) 0%, rgba(74,122,155,0) 70%);
}

/* Fine dot-grid texture */
.splash-grid {
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 0%, transparent 75%);
            mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 0%, transparent 75%);
}

.splash-inner {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 920px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Logo badge */
.splash-logo-badge {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    border-radius: 100px;
    padding: 14px 28px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    animation: splashUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}
.splash-logo-badge img {
    height: 34px;
    width: auto;
    display: block;
}

.splash-eyebrow {
    margin-top: 26px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold-light);
    opacity: 0;
    animation: splashUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.splash-title {
    margin-top: 14px;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.4vw, 3.1rem);
    font-weight: 700;
    line-height: 1.16;
    color: #fff;
    opacity: 0;
    animation: splashUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}
.splash-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--gold-light);
}

.splash-subtitle {
    margin-top: 14px;
    max-width: 480px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.62);
    opacity: 0;
    animation: splashUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

/* Cards */
.splash-cards {
    margin-top: 44px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    opacity: 0;
    animation: splashUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

.splash-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 34px 28px;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    border: 1px solid transparent;
    transition: var(--transition);
    overflow: hidden;
}
.splash-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201,168,76,0.08), transparent 55%);
    opacity: 0;
    transition: var(--transition);
}
.splash-card:hover,
.splash-card:focus-visible {
    transform: translateY(-8px);
    box-shadow: 0 26px 60px rgba(10,16,38,0.38);
    border-color: var(--gold);
}
.splash-card:hover::after,
.splash-card:focus-visible::after { opacity: 1; }
.splash-card:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }

.splash-card-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--cream);
    padding: 4px 10px;
    border-radius: 100px;
}

.splash-card-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.45rem;
    margin-bottom: 20px;
    color: var(--white);
    background: linear-gradient(135deg, var(--navy-light), var(--navy));
}
.splash-card--store .splash-card-icon {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--navy-dark);
}

.splash-card-title {
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.splash-card-desc {
    font-size: 0.86rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.splash-card-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--charcoal);
}
.splash-card-cta i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.splash-card:hover .splash-card-cta i,
.splash-card:focus-visible .splash-card-cta i { transform: translateX(5px); }

/* Footer strip */
.splash-footer {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.76rem;
    color: rgba(255,255,255,0.4);
    opacity: 0;
    animation: splashUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}
.splash-footer .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.3); }

@keyframes splashUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .splash-logo-badge, .splash-eyebrow, .splash-title,
    .splash-subtitle, .splash-cards, .splash-footer {
        animation: none;
        opacity: 1;
    }
    .splash-bg-slide, .splash-bg-slide-img {
        animation: none;
        opacity: 1;
    }
}

@media (max-width: 767.98px) {
    .splash-cards { grid-template-columns: 1fr; gap: 16px; }
    .splash-card { padding: 28px 22px; }
    .splash-page { padding: 36px 18px; }
}
