/* Cardiac Consultants of Central Georgia — Custom Styles */

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

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal base — content is visible by default, JS adds animation */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When JS is enabled and prefers-reduced-motion is off, animate on scroll */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .scroll-reveal:not(.is-visible) {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(128, 24, 64, 0.08);
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card hover effects */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #dc3f6e;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefaf8;
}
::-webkit-scrollbar-thumb {
    background: #f5a8be;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #dc3f6e;
}

/* Form focus ring custom colors */
input:focus,
select:focus,
textarea:focus {
    border-color: #f5a8be !important;
    box-shadow: 0 0 0 3px rgba(245, 168, 190, 0.3) !important;
}

/* Print styles */
@media print {
    header, footer, #contact, #location iframe {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
