/* ============================================
   Sazón de mi Tierra — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: rgba(212, 168, 67, 0.3);
    color: #f3f4f6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050D1A;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 67, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 67, 0.5);
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement — content visible
   by default, animated via JS only.
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        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);
    }
    
    /* These classes are added by JS for progressive enhancement */
    .reveal-animated {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-animated.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(2, 6, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 168, 67, 0.1);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #D4A843, #E8C97A);
    transition: width 0.3s ease;
}

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

/* ============================================
   Gold gradient text utility
   ============================================ */
.text-gold-gradient {
    background: linear-gradient(135deg, #E8C97A 0%, #D4A843 50%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Image hover effects
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Button ripple effect (subtle)
   ============================================ */
button, a {
    cursor: pointer;
}

/* ============================================
   Focus styles for accessibility
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #D4A843;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.2;
    }
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    #navbar,
    #back-to-top,
    .reveal-animated {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
