/* ===== Custom Styles for Lezcano F Glass ===== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* ===== Navigation ===== */
.nav-logo-color {
    transition: stroke 0.3s ease;
}

.nav-logo-text {
    color: #f8fafc;
    transition: color 0.3s ease;
}

.nav-logo-subtext {
    color: #94a3b8;
    transition: color 0.3s ease;
}

.nav-link {
    color: #cbd5e1;
}

.nav-menu-btn svg {
    stroke: #f8fafc;
}

/* Scrolled state */
nav.scrolled {
    background: rgba(2, 6, 23, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

nav.scrolled .nav-logo-text {
    color: #f8fafc;
}

nav.scrolled .nav-logo-subtext {
    color: #94a3b8;
}

nav.scrolled .nav-link {
    color: #cbd5e1;
}

nav.scrolled .nav-menu-btn svg {
    stroke: #f8fafc;
}

/* ===== Hero ===== */
#hero {
    position: relative;
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, #0d9488, #14b8a6);
    transition: height 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* ===== Gallery ===== */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ===== Scroll Reveal Animations (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ===== Mobile Menu ===== */
.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-menu-link:nth-child(5) { transition-delay: 0.25s; }

/* ===== Utility ===== */
.text-shadow {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #0f766e;
}
