/* Custom styles for St. Elizabeth Dearborn Physical Therapy */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfbf7;
}
::-webkit-scrollbar-thumb {
    background: #c42748;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a11736;
}

/* Hero content animation - only for below-fold elements, hero stays visible */
.hero-content {
    opacity: 1;
    animation: heroFadeIn 1s ease-out forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal animations - progressive enhancement, content is visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation transitions */
#navbar.scrolled {
    background: rgba(61, 7, 20, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

/* Mobile menu transitions */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

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

/* Button hover effects */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #a11736;
    outline-offset: 2px;
}

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

/* Print styles */
@media print {
    #navbar, #mobileMenu, .reveal {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-burgundy-950, .bg-burgundy-800 {
        background: #333 !important;
        color: #fff !important;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Large screen optimizations */
@media (min-width: 1280px) {
    .hero-content h1 {
        font-size: 4rem;
    }
}

/* Subtle hover lift for cards */
.group:hover {
    transform: translateY(-4px);
}

/* Image hover zoom */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.6s ease;
}

.rounded-2xl.overflow-hidden:hover img {
    transform: scale(1.03);
}

/* Input focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(161, 23, 54, 0.1);
}

/* Selection color */
::selection {
    background: rgba(161, 23, 54, 0.2);
    color: #6c132b;
}
