/* ========================================
   El Nuevo Amanecer — Custom Styles
   Premium Dark Luxury · Navy + Gold
======================================== */

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

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

body {
    margin: 0;
    background-color: #0a1628;
    color: #ffffff;
}

::selection {
    background: rgba(200, 164, 78, 0.3);
    color: #ffffff;
}

img {
    display: block;
    max-width: 100%;
}

/* ---------- Gold Text Gradient ---------- */
.gold-text-reveal {
    background: linear-gradient(135deg, #e2c06a 0%, #c8a44e 40%, #b8892e 70%, #e2c06a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Hero ---------- */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    will-change: transform;
}

.hero-overlay {
    background:
        linear-gradient(to bottom,
            rgba(3, 13, 26, 0.55) 0%,
            rgba(10, 22, 40, 0.65) 50%,
            rgba(3, 13, 26, 0.92) 100%
        );
}

/* ---------- CTA Section ---------- */
.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-overlay {
    background:
        linear-gradient(to right,
            rgba(3, 13, 26, 0.88) 0%,
            rgba(3, 13, 26, 0.72) 50%,
            rgba(3, 13, 26, 0.88) 100%
        ),
        linear-gradient(to bottom,
            rgba(3, 13, 26, 0.4) 0%,
            rgba(3, 13, 26, 0.2) 50%,
            rgba(3, 13, 26, 0.6) 100%
        );
}

/* ---------- Navbar ---------- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(3, 13, 26, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(200, 164, 78, 0.08);
    padding-top: 0;
    padding-bottom: 0;
}

#navbar.scrolled nav {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-link {
    position: relative;
}

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

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

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

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

.mobile-link {
    font-size: 1.125rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ---------- Reveal Animations ---------- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        transform: translateY(32px);
        opacity: 0;
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .reveal-left {
        transform: translateX(-32px);
        opacity: 0;
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .reveal-right {
        transform: translateX(32px);
        opacity: 0;
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        transform: translate(0);
        opacity: 1;
    }

    .gold-text-reveal {
        background-size: 200% 200%;
        animation: goldShimmer 4s ease-in-out infinite;
    }
}

@keyframes goldShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---------- Parallax (desktop only) ---------- */
@media (prefers-reduced-motion: no-preference) {
    @media (hover: hover) and (pointer: fine) {
        .hero-bg img {
            transform: scale(1.1);
            transition: transform 0.1s linear;
        }
    }
}

/* ---------- Button Focus ---------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c8a44e;
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- Mobile adjustments ---------- */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
}
