/* ============================================
   Ramos Ricardo MD — Custom Styles
   ============================================ */

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

/* Prevent FOUC on hero content */
.hero-content {
    opacity: 1;
    transform: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5eb;
}
::-webkit-scrollbar-thumb {
    background: #d4a088;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B85D48;
}

/* Selection color */
::selection {
    background: #B85D48;
    color: #fefdfb;
}

/* Scroll reveal base styles — progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        transition-duration: 0.01ms !important;
    }
}

/* Active nav link styling */
.nav-link.active {
    color: #fefdfb !important;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu.open {
    max-height: 500px;
}

/* Service card hover effect */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Image lazy loading fade-in */
img[loading="lazy"] {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Subtle parallax for hero (enhancement) */
@media (prefers-reduced-motion: no-preference) {
    #hero {
        will-change: background-position;
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #B85D48;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button press effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

button:active, a:active {
    transform: scale(0.98);
}

/* Print styles */
@media print {
    nav, #hero, .reveal, #contact-form, iframe {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    .font-serif {
        color: #000;
    }
}
