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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #e05525;
    color: white;
}

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

::-webkit-scrollbar-track {
    background: #FDF8F3;
}

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

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

/* Navbar */
.navbar-scrolled {
    background: rgba(253, 248, 243, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.navbar-scrolled .nav-logo {
    color: #1c1917;
}

.navbar-scrolled .nav-link {
    color: #57534e;
}

.navbar-scrolled .nav-link:hover {
    color: #c43e1b;
}

/* Hero animations */
.hero-headline {
    animation: slideUp 0.8s ease-out forwards;
}

.hero-subtitle {
    animation: slideUp 0.8s ease-out 0.15s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-ctas {
    animation: slideUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-trust {
    animation: slideUp 0.8s ease-out 0.45s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-eyebrow {
    animation: slideUp 0.8s ease-out 0.1s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-image-wrapper {
    animation: floatIn 1s ease-out 0.3s forwards;
    opacity: 0;
    transform: translateX(30px);
}

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

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reveal animations (below fold only) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Mobile menu */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

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

/* Image hover */
.group:hover .group-hover\:rotate-1 {
    transform: rotate(1deg);
}

/* Print styles */
@media print {
    nav, #appointment, .reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .hero-headline,
    .hero-subtitle,
    .hero-ctas,
    .hero-trust,
    .hero-eyebrow,
    .hero-image-wrapper {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid #e05525;
    outline-offset: 2px;
}

/* Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
