/* ===== Custom Styles for The Dental Place ===== */

/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #121418;
    color: #e2e3e5;
}

/* Selection color */
::selection {
    background: #ff6b2f;
    color: #fff;
}

/* ===== Floating animation for hero cards ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 3.5s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite 0.8s;
}

/* ===== Scroll reveal (progressive enhancement) ===== */
@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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* For reduced motion, ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== Navbar scroll state ===== */
.navbar-scrolled {
    background: rgba(18, 20, 24, 0.95) !important;
    backdrop-filter: blur(20px) !important;
}

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

::-webkit-scrollbar-track {
    background: #1f2228;
}

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

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

/* ===== Focus styles ===== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #ff6b2f;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Button ripple effect ===== */
button, a {
    position: relative;
    overflow: visible;
}

/* ===== Smooth image loading ===== */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ===== Mobile menu transitions ===== */
#mobileMenu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobileMenu.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#mobileMenu:not(.hidden) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ===== Service card hover glow ===== */
.group:hover .group-hover\:bg-coral-500\/20 {
    background-color: rgba(255, 107, 47, 0.2);
}

/* ===== Form focus states ===== */
input:focus, textarea:focus {
    background-color: rgba(63, 69, 78, 0.8) !important;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    .animate-float,
    .animate-float-delayed {
        display: none;
    }
}

/* ===== Print styles ===== */
@media print {
    nav, #contactForm, button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
