/* Custom styles for Dr. Annie Hoang DDS website */

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

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Custom color palette */
:root {
    --midnight-950: #020610;
    --midnight-900: #040B18;
    --midnight-800: #0A1628;
    --midnight-700: #0F2139;
    --midnight-600: #162D4D;
    --midnight-500: #1E3A5F;
    --midnight-400: #2D5A8A;
    --midnight-300: #5A8AB5;
    --midnight-200: #9BBDD4;
    --midnight-100: #C8DCE8;
    --midnight-50: #E8F2F8;
    
    --mint-700: #043935;
    --mint-600: #0A5C55;
    --mint-500: #0F7F77;
    --mint-400: #1AB5A8;
    --mint-300: #5EEABF;
    --mint-200: #A8F5DB;
    --mint-100: #D4FAF0;
    --mint-50: #EFF8F5;
    --mint-50-bg: #F7FCFA;
}

/* Navbar scroll state */
.navbar-scrolled #navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(4, 11, 24, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #020610;
}

.navbar-scrolled .nav-logo-sub {
    color: #5A8AB5;
}

/* Mobile menu */
.mobile-menu-link {
    font-family: 'Playfair Display', serif;
}

/* Scroll reveal base - content is visible by default */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    
    .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; }
}

/* Selection color */
::selection {
    background: #0A5C55;
    color: #EFF8F5;
}

/* Smooth focus outlines */
*:focus-visible {
    outline: 2px solid #0F7F77;
    outline-offset: 2px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5A8AB5;
}

/* Service card hover - text contrast fix */
.group:hover .group-hover\:text-mint-50 {
    color: #EFF8F5;
}

/* Ensure all service card text is readable on hover state */
.group:hover {
    background-color: #040B18;
}

.group:hover h3,
.group:hover .font-serif {
    color: #EFF8F5 !important;
}

.group:hover p {
    color: #C8DCE8 !important;
}

/* Button hover states */
.bg-midnight-950:hover {
    background-color: #0A5C55 !important;
}

/* Map filter for branding */
iframe[src*="google.com/maps"] {
    filter: saturate(0.7) contrast(1.05);
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A8AB5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Image hover zoom */
.group img {
    transition: transform 0.6s ease;
}

.group:hover img {
    transform: scale(1.03);
}

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