/* =============================================
   La Rockita — Custom Styles
   ============================================= */

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

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

body {
    overflow-x: hidden;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #7B2D3B;
    color: #FDF8F5;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 100;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Selection */
::selection {
    background: #7B2D3B;
    color: #FDF8F5;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A1A1A;
}
::-webkit-scrollbar-thumb {
    background: #7B2D3B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a11532;
}

/* =============================================
   Header & Navigation
   ============================================= */
#header {
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#header.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

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

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

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

.mobile-nav-link {
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-nav-link:hover {
    color: #F5E6D3;
    transform: translateX(4px);
}

/* 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);
}

/* =============================================
   Hero Scroll Line
   ============================================= */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* =============================================
   Marquee
   ============================================= */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-track {
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* =============================================
   Reveal Animations
   ============================================= */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   Form Styles
   ============================================= */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(123, 45, 59, 0.1);
}

/* =============================================
   Focus Visible
   ============================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* =============================================
   Responsive Adjustments
   ============================================= */
@media (max-width: 767px) {
    .scroll-line {
        display: none;
    }
}

@media (min-width: 768px) {
    .reveal-up {
        transform: translateY(50px);
    }
}

/* =============================================
   Print Styles
   ============================================= */
@media print {
    #header, .marquee-strip, .scroll-line {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
