/* Custom Styles for Professional Dental */

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

body {
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Cormorant Garamond', serif;
}

/* Hero Animation */
@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.animate-slow-zoom {
    animation: slowZoom 20s linear infinite alternate;
}

/* Hero Content Animation */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease-out forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.3s; }
.hero-anim:nth-child(3) { animation-delay: 0.5s; }
.hero-anim:nth-child(4) { animation-delay: 0.7s; }

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

/* Scroll Reveal Animations */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 1; /* Always visible by default for accessibility */
    transition: all 0.8s ease-out;
}

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

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

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

/* Only apply hidden state if user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }
    
    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* Vertical Text */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.2em;
}

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

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

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

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

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

/* Mobile Menu Transitions */
#mobile-menu {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

#mobile-menu.close {
    opacity: 0;
    visibility: hidden;
}

/* Navbar Scroll State */
.nav-scrolled #nav-bg {
    opacity: 1;
}

.nav-scrolled #navbar > div {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Date Input Styling */
input[type="date"] {
    color: rgb(248 250 252);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(3) hue-rotate(10deg);
    cursor: pointer;
}
