/* ========================================
   Fernando Rodriguez-Villa MD
   Custom Styles
======================================== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0eb;
}
::-webkit-scrollbar-thumb {
    background: #c4b5a8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a09080;
}

/* Navbar transition states */
.navbar-scrolled {
    background: rgba(250, 248, 246, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 1px 20px rgba(15, 17, 23, 0.08) !important;
}

.navbar-scrolled .nav-logo-text {
    color: #1a1d27 !important;
}

.navbar-scrolled .nav-logo-sub {
    color: #3a3d4a !important;
}

/* Mobile menu active state */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.menu-active .menu-line:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-active .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-active .menu-line:nth-child(3) {
    width: 1.25rem;
}

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

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

/* Subtle pattern for cream backgrounds */
body {
    background-image: radial-gradient(circle at 1px 1px, rgba(180, 160, 140, 0.08) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Selection color */
::selection {
    background: #ff6f61;
    color: white;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card,
    a,
    button {
        transition: none;
    }
    .service-card:hover {
        transform: none;
    }
}

/* Fade-in animation for scroll reveals */
.fade-in-section {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ensure form select has consistent styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Map container override */
iframe {
    width: 100%;
    height: 100%;
}
