/* Custom styles for El Primo de Monterrey */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: rgba(255, 107, 53, 0.3);
    color: #f7f7f7;
}

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

#navbar.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

/* Scroll reveal base state — always visible by default */
.reveal {
    /* Default: visible, no animation */
}

/* Scroll reveal animation — only applied when JS adds the class */
.reveal.revealed {
    animation: revealUp 0.8s ease forwards;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image hover effects */
.rounded-xl.overflow-hidden img,
.rounded-2xl.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Button focus states */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
    border-radius: 4px;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #434343;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6b35;
}

/* Map styling override */
iframe {
    filter: grayscale(30%) contrast(1.1);
    transition: filter 0.3s ease;
}

iframe:hover {
    filter: grayscale(0%) contrast(1);
}

/* Form styles */
input, textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #434343;
    color: #f7f7f7;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #ff6b35;
    background-color: rgba(255, 107, 53, 0.05);
}

input::placeholder, textarea::placeholder {
    color: #818181;
}

/* Success message */
.form-success {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 107, 53, 0.05));
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: #ffb082;
    padding: 16px 24px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.5s ease;
}

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