/* ============================================
   Popular ChiroCare — Custom Styles
   ============================================ */

/* Base */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection */
::selection {
    background: #99f6e4;
    color: #134e4a;
}

/* Blob animation for hero */
@keyframes blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(15px, 10px) scale(1.02); }
}

.animate-blob {
    animation: blob 8s ease-in-out infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Floating cards */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-card {
    animation-duration: 4s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.card-1 { animation-name: float-1; }
.card-2 { animation-name: float-2; animation-delay: 1s; }
.card-3 { animation-name: float-3; animation-delay: 2s; }

/* Scroll reveal — progressive enhancement:
   Default state is visible. JS adds .is-visible.
   If JS is disabled or fails, content stays visible.
   Reduced motion: no animation, content stays visible. */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
    .scroll-reveal.reveal-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar */
#navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Button hover glow */
a[href="tel:17139225917"]:hover,
button[type="submit"]:hover {
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.3) !important;
}

/* Map container */
iframe[src*="google.com/maps"] {
    filter: saturate(0.8) contrast(1.05);
    transition: filter 0.3s ease;
}
iframe[src*="google.com/maps"]:hover {
    filter: saturate(1) contrast(1);
}

/* Focus visible for keyboard nav */
:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 8px;
}

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

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