/* Custom CSS for Mikkelsen Anesthesia Website - UW-Madison Theme */

/* UW-Madison Colors */
:root {
    --uw-red: #c5050c;
    --uw-dark-red: #9b0a12;
    --uw-black: #000000;
    --uw-gray: #5a5a5a;
    --uw-light-gray: #f7f7f7;
}

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

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Enhanced button hover effects */
.btn-primary {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

/* Card hover effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Navigation enhancements */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--uw-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Form styling improvements */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--uw-red);
    box-shadow: 0 0 0 3px rgba(197, 5, 12, 0.1);
}

/* Hero section gradient overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(197, 5, 12, 0.9), rgba(155, 10, 18, 0.9));
}

/* Testimonial card styling */
.testimonial-card {
    background: linear-gradient(135deg, #f7f7f7, #ffffff);
    border-left: 4px solid var(--uw-red);
}

/* Emergency contact styling */
.emergency-contact {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 2px solid var(--uw-red);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 5, 12, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(197, 5, 12, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(197, 5, 12, 0);
    }
}

/* UW-Madison specific styling */
.uw-red-bg {
    background-color: var(--uw-red) !important;
}

.uw-red-text {
    color: var(--uw-red) !important;
}

.uw-black-text {
    color: var(--uw-black) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--uw-red);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
.focus-visible:focus {
    outline: 2px solid var(--uw-red);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}
