/* ── Custom styles for TCC Unique Boutique & Lounge ── */

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #faf5f7; }
::-webkit-scrollbar-thumb { background: #a45478; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8b3f60; }

/* Selection */
::selection { background: #fde68a; color: #502538; }

/* ── Navbar transitions ── */
#navbar.scrolled {
    background: rgba(250, 245, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(80, 37, 56, 0.08);
}

#navbar.scrolled .nav-logo {
    color: #502538;
}

#navbar.scrolled .mobile-link {
    color: #502538;
}

/* ── Mobile menu ── */
.mobile-link {
    color: #502538;
}

/* ── Hero animations ── */
.hero-eyebrow {
    animation: slideUp 0.8s ease forwards;
}

.hero-title {
    animation: slideUp 0.8s 0.15s ease forwards;
    opacity: 0;
}

.hero-desc {
    animation: slideUp 0.8s 0.3s ease forwards;
    opacity: 0;
}

.hero-ctas {
    animation: slideUp 0.8s 0.45s ease forwards;
    opacity: 0;
}

.hero-accent {
    animation: slideUp 0.8s 0.6s ease forwards;
    opacity: 0;
}

.hero-image-col {
    animation: fadeIn 1s 0.3s ease forwards;
    opacity: 0;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Scroll-reveal (below-fold only, progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ── Specialty cards ── */
.specialty-card {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .specialty-card[data-reveal] {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
}

/* ── Gallery items ── */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(43, 17, 28, 0);
    transition: background 0.4s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    background: rgba(43, 17, 28, 0.15);
}

.gallery-item {
    position: relative;
}

/* ── Divider star ── */
svg[fill="currentColor"] {
    animation: pulse-star 3s ease-in-out infinite;
}

@keyframes pulse-star {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* ── Back to top ── */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ── Mobile menu active state ── */
body.menu-open {
    overflow: hidden;
}

body.menu-open #menu-toggle .menu-line-1 {
    transform: rotate(45deg) translate(5px, 5px);
}

body.menu-open #menu-toggle .menu-line-2 {
    opacity: 0;
}

body.menu-open #menu-toggle .menu-line-3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

body.menu-open #mobile-menu {
    transform: translateX(0);
}

/* ── Select dropdown arrow ── */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d1b39c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ── Utility ── */
@media (max-width: 767px) {
    .hero-image-col {
        margin-top: 0;
        margin-bottom: 1.5rem;
    }

    .hero-image-col .relative {
        height: 45vh !important;
    }

    .floating-card {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: 1rem;
        max-width: 100% !important;
    }
}

/* ── Focus visible for accessibility ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}
