/* ============================================
   ISABEL MEDRANO BARBER — Custom Styles
   ============================================ */

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

/* --- Navbar Transition --- */
.nav-scrolled #navbar {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-text {
    color: #1e293b !important;
}

.nav-scrolled .nav-subtext {
    color: #0d9488 !important;
}

.nav-scrolled #nav-logo-icon {
    color: #0d9488 !important;
}

.nav-scrolled .mobile-link {
    color: #1e293b !important;
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    transform: translateX(0) !important;
}

/* --- Hamburger Animation --- */
#menu-btn.active #bar1 {
    transform: translateY(7px) rotate(45deg);
}

#menu-btn.active #bar2 {
    opacity: 0;
}

#menu-btn.active #bar3 {
    transform: translateY(-7px) rotate(-45deg);
    width: 1.5rem;
}

/* --- Service Cards --- */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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);
    }

    .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; }
}

/* --- Selection Color --- */
::selection {
    background: #0d9488;
    color: #fff;
}

/* --- Image Placeholder Fallback --- */
img {
    background: linear-gradient(135deg, #e7e5e4 0%, #d6d3d1 100%);
}

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

::-webkit-scrollbar-track {
    background: #f5f5f4;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* --- Focus Styles --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* --- Form Button Loading State --- */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
