/* ========================================
   Lane Dental — Custom Styles
   Bold Editorial | Deep Navy + Warm Gold
   ======================================== */

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

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

/* --- Hero Animations (above the fold — always visible) --- */
.hero-eyebrow {
    animation: fadeInDown 0.8s ease-out both;
}

.hero-headline {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subheadline {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Scroll Reveal (below the fold only) --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.reveal-left {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(0);
}

/* Reduced motion — disable animations */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal-up,
    .reveal-left,
    .reveal-right {
        transition: none;
    }
    
    .hero-eyebrow,
    .hero-headline,
    .hero-subheadline,
    .hero-ctas {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* --- Navbar Transition --- */
.nav-scrolled {
    background-color: rgba(10, 25, 47, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* --- Mobile Menu --- */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #d4af37;
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
    width: 100%;
}

/* --- Input Autofill Styling --- */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #112240 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5s ease-in-out 0s;
}

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

::-webkit-scrollbar-track {
    background: #0a192f;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #c5a028;
}

/* --- Selection Color --- */
::selection {
    background-color: #d4af37;
    color: #0a192f;
}

/* --- Image Aspect Ratios --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* --- Button Hover Lift --- */
button, a {
    transition: all 0.3s ease;
}

/* --- Print Styles --- */
@media print {
    nav, .hero-eyebrow, .hero-headline, .hero-subheadline, .hero-ctas {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .reveal-up, .reveal-left, .reveal-right {
        opacity: 1 !important;
        transform: none !important;
    }
}
