/* Custom styles for Mc Creight Dana J DDS website */

/* Smooth scroll padding for fixed nav */
section {
    scroll-margin-top: 80px;
}

/* Custom cursor for interactive elements */
a, button {
    cursor: pointer;
}

/* Focus visible styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Improve text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fff;
}

/* Reduced motion for accessibility */
@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 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, .animate-bounce, button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-gradient, section > div:first-child {
        display: none !important;
    }
}

/* Mobile responsiveness tweaks */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.2;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .gold-gradient {
        background: ButtonFace;
        border: 2px solid ButtonText;
    }
}

/* Ensure form inputs have proper dark theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px #0f0f1a inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Subtle parallax-like effect on hero */
#hero {
    will-change: transform;
}

/* Card hover effects */
.service-card, .card-shine {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Ensure map has proper dark theme */
iframe[src*="google.com/maps"] {
    opacity: 0.9;
}

/* Mobile menu transition */
#mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
