/* Custom styles for Dr. Larry Wee DMD website */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

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

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

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

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

/* Selection color */
::selection {
    background-color: #c6dfca;
    color: #1f3323;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #4a7a52;
    outline-offset: 2px;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 122, 82, 0.2);
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu-btn,
    #mobile-menu,
    #contact-form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-forest-900,
    .bg-forest-950 {
        background: #fff !important;
        color: #000 !important;
    }
}

/* 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;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-forest-800\/80 {
        opacity: 1;
    }
    
    .border-forest-200 {
        border-width: 2px;
    }
}

/* Hover effects for cards */
.group:hover .group-hover\:bg-forest-600 {
    background-color: #386040;
}

.group:hover .group-hover\:bg-forest-800\/50 {
    background-color: rgba(45, 77, 51, 0.5);
}

.group:hover .group-hover\:border-forest-500 {
    border-color: #6d9d76;
}

/* Button hover effects */
button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(45, 77, 51, 0.3);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Image hover effects */
img {
    transition: transform 0.3s ease;
}

/* Smooth transitions for all interactive elements */
a,
button,
input,
select,
textarea {
    transition: all 0.2s ease-in-out;
}

/* Loading state for form submission */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Custom focus ring for buttons */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #4a7a52;
    outline-offset: 2px;
}

/* Table of contents styling if needed */
.toc {
    background: #f9f7f2;
    border-left: 4px solid #4a7a52;
    padding: 1rem;
    margin: 1rem 0;
}

/* Callout boxes */
.callout {
    background: #e3efe6;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Highlight text */
mark {
    background: #c6dfca;
    color: #1f3323;
    padding: 0.1em 0.2em;
    border-radius: 2px;
}
