/* Custom Styles for Brandon Outpatient Surgery Center */

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

body {
    font-family: 'Montserrat', sans-serif;
}

.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

/* Hero Animations */
.hero-content {
    animation: fadeInUp 1s ease-out forwards;
}

.hero-image {
    animation: fadeInRight 1s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Reveal Animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .section-header {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .section-header.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .service-card {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .service-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .about-content {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .about-content.revealed {
        opacity: 1;
        transform: translateX(0);
    }

    .about-image {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .about-image.revealed {
        opacity: 1;
        transform: translateX(0);
    }

    .facility-card {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .facility-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .insurance-content {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .insurance-content.revealed {
        opacity: 1;
        transform: translateX(0);
    }

    .insurance-image {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .insurance-image.revealed {
        opacity: 1;
        transform: translateX(0);
    }

    .cta-content {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .cta-content.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .contact-info {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .contact-info.revealed {
        opacity: 1;
        transform: translateX(0);
    }

    .contact-form-container {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .contact-form-container.revealed {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9A4B36;
}

/* Testimonial Transitions */
.testimonial-slide {
    transition: opacity 0.5s ease-in-out;
}

.testimonial-slide:not(.active) {
    display: none;
}

/* Button Focus States */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #B85D44;
    outline-offset: 2px;
}

/* Input Focus States */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(184, 93, 68, 0.1);
}

/* Print Styles */
@media print {
    nav,
    #backToTop,
    .facility-card,
    .service-card {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-content {
        animation: fadeInUp 0.8s ease-out forwards;
    }

    .hero-image {
        animation: fadeInUp 0.8s ease-out 0.2s forwards;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !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;
    }
}
