/* ==========================================
   Bayer Dental Laboratory — Custom Styles
   ========================================== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #6d2323;
    color: #fdf8f6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8f6;
}
::-webkit-scrollbar-thumb {
    background: #c86464;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a33d3d;
}

/* ==========================================
   Navbar
   ========================================== */
#navbar {
    background: rgba(253, 248, 246, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(109, 35, 35, 0.08);
}

#navbar.scrolled {
    background: rgba(253, 248, 246, 0.97);
    box-shadow: 0 1px 20px rgba(109, 35, 35, 0.08);
}

/* ==========================================
   Hero Animations
   ========================================== */
.hero-subtitle {
    animation: slideUp 0.8s ease-out forwards;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Service Cards
   ========================================== */
.service-card {
    transition: transform 0.4s ease, background-color 0.5s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(109, 35, 35, 0.15);
}

/* ==========================================
   Process Steps
   ========================================== */
.process-step {
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
}

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

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

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

/* ==========================================
   Scroll Reveal Animations
   (progressive enhancement — content visible without JS)
   ========================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s 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; }
}

/* ==========================================
   Form Focus States
   ========================================== */
input:focus,
textarea:focus {
    outline: none;
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {
    nav, #contact-form, button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
