/* Custom styles for Jackson Surgical Center */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

::-webkit-scrollbar-thumb {
    background: #2C5F7C;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1A3A52;
}

/* Selection color */
::selection {
    background: #C5F5F5;
    color: #04121F;
}

/* Animation classes - Progressive Enhancement */
/* Default state: visible for non-JS environments */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Enhanced state: animated when JS is enabled and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }
    
    .reveal-up.animate,
    .reveal-left.animate,
    .reveal-right.animate {
        opacity: 1;
        transform: none;
    }
}

/* Mobile menu styles */
.mobile-link {
    font-size: 1.5rem;
    font-family: 'Lora', serif;
    color: #0A2338;
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #2C5F7C;
}

/* Smooth transitions for interactive elements */
a, button {
    transition: all 0.3s ease;
}

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

/* Image loading placeholder */
img {
    background-color: #E0FAFA;
}

/* Navbar active state */
.nav-active {
    background-color: rgba(242, 252, 252, 0.98);
    box-shadow: 0 4px 20px rgba(10, 35, 56, 0.1);
}

/* Button hover effects */
.btn-primary {
    background: linear-gradient(135deg, #2C5F7C 0%, #1A3A52 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(10, 35, 56, 0.3);
}

/* Card hover effects */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(10, 35, 56, 0.15);
}

/* Responsive typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
}
