/* ============================================
   Dr. Ricardo Perez MD — Custom Styles
   Bold Editorial • Terracotta & Sand
   ============================================ */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(201, 61, 31, 0.15);
    color: #8a291b;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F3;
}
::-webkit-scrollbar-thumb {
    background: #dbccb4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c4a984;
}

/* Navbar */
#navbar {
    background: rgba(253, 248, 243, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(219, 204, 180, 0.3);
}

#navbar.scrolled {
    background: rgba(253, 248, 243, 0.95);
    box-shadow: 0 1px 20px rgba(94, 74, 53, 0.06);
}

.nav-link {
    position: relative;
}

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

.mobile-link {
    transition: all 0.3s ease;
}

/* Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up:nth-child(2) { transition-delay: 0.1s; }
.reveal-up:nth-child(3) { transition-delay: 0.2s; }
.reveal-up:nth-child(4) { transition-delay: 0.3s; }

/* Service Cards */
.group:hover .group-hover\:bg-terra-600 {
    transition: background-color 0.5s ease;
}

.group:hover .group-hover\:stroke-white {
    transition: stroke 0.5s ease;
}

/* Form Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .reveal-up {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
