/* ============================================
   Bilh Urgent Care — Custom Styles
   ============================================ */

/* ── Base / Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: #5EEAD4;
    color: #0A2540;
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Navbar Scroll State ── */
#navbar.scrolled {
    background: rgba(4, 18, 32, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

#navbar.scrolled .logo-text span:first-child {
    color: #ffffff;
}

/* ── Hero ── */
#hero {
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* ── Service Cards ── */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0A2540, #2fbf80);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ── Insurance Cards ── */
.insurance-card {
    position: relative;
}

.insurance-card:hover .w-16 {
    background: #0A2540;
    transition: background 0.3s ease;
}

.insurance-card:hover .w-16 svg {
    stroke: #5EEAD4;
    transition: stroke 0.3s ease;
}

/* ── Contact Form ── */
#contactForm input:focus,
#contactForm textarea:focus {
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.15);
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
    color: #a3b5cc;
}

/* ── Scroll Reveal Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

    .service-card::before,
    .service-card .w-14,
    .insurance-card .w-16,
    #hero a,
    #contactForm button {
        transition: none;
    }
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    #hero h1 {
        font-size: clamp(2.5rem, 10vw, 4.5rem);
    }
}

/* ── Focus Visible ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #5EEAD4;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Print Styles ── */
@media print {
    #navbar,
    #hero::before,
    #hero::after {
        display: none;
    }

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