/* ========================================
   Paleteria La Reina — Custom Styles
   Deep Navy + Warm Gold | Minimalist
   ======================================== */

/* --- Base & Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #0a1f3f;
    color: #ffffff;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a1f3f;
}
::-webkit-scrollbar-thumb {
    background: #C8A45E;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e8c96e;
}

/* --- Selection --- */
::selection {
    background: #C8A45E;
    color: #0a1f3f;
}

/* --- Hero Image Animation --- */
@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.hero-img {
    animation: heroZoom 2s ease-out forwards;
}

/* --- Scroll Line Animation --- */
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
    transform-origin: top;
}

/* --- Marquee --- */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    animation: marquee 30s linear infinite;
}
.animate-marquee:hover {
    animation-play-state: paused;
}

/* --- Reveal Animations (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal.delay-1 { transition-delay: 0.1s; }
    .reveal.delay-2 { transition-delay: 0.2s; }
    .reveal.delay-3 { transition-delay: 0.3s; }
}

/* Fallback: ensure content is visible even without JS */
.no-js .reveal,
.js-enabled .reveal {
    /* JS will add .revealed class */
}

/* --- Navbar --- */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    background: transparent;
    transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(6, 15, 31, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(200, 164, 94, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C8A45E;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #C8A45E !important;
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

#mobile-menu.closed {
    opacity: 0 !important;
    pointer-events: none !important;
}

.mobile-link {
    font-size: 1.1rem;
}

/* Hamburger animation */
#menu-icon.active #bar1 {
    transform: translateY(4px) rotate(45deg);
}
#menu-icon.active #bar2 {
    opacity: 0;
    transform: scaleX(0);
}
#menu-icon.active #bar3 {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}

/* --- Button Hover Effects --- */
a[href="#menu"],
a[href="#about"],
a[href="#gallery"],
a[href="#visit"] {
    text-decoration: none;
}

/* --- Image Hover --- */
.group img {
    will-change: transform;
}

/* --- Smooth Focus --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C8A45E;
    outline-offset: 4px;
    border-radius: 2px;
}

/* --- Back to Top --- */
#back-to-top.visible {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* --- Print Styles --- */
@media print {
    #navbar, #back-to-top, .scroll-line {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
