/* ============================================
   Florida Hospital Dade City Medical Group
   Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(42, 176, 125, 0.15);
    color: #0d1c2b;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #a8b8cc;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7c94b2;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168, 184, 204, 0.2);
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(8, 15, 24, 0.06);
}

/* Mobile menu button animation */
#menuBtn[aria-expanded="true"] .menu-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
#menuBtn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn[aria-expanded="true"] .menu-line:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* Mobile menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    transition: opacity 0.3s ease;
}

/* ============================================
   Hero
   ============================================ */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border: 1px solid rgba(78, 201, 154, 0.3);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1a8a61;
    background: rgba(242, 250, 248, 0.8);
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    transition: background-color 0.5s ease;
}

.service-card:hover {
    background-color: #152a3e;
}

.service-card:hover .service-icon {
    background-color: rgba(42, 176, 125, 0.15);
}

.service-card:hover .service-icon svg {
    stroke: #89ddb9;
}

/* ============================================
   Approach Items
   ============================================ */
.approach-item {
    opacity: 1;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ============================================
   Scroll Reveal (Progressive Enhancement)
   ============================================ */
.js-scroll-enabled .reveal {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.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; }

/* ============================================
   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;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

@media (min-width: 768px) and (max-width: 1023px) {
    /* Tablet adjustments if needed */
}

/* ============================================
   Print
   ============================================ */
@media print {
    #navbar, #mobileMenu {
        display: none;
    }
    body {
        color: #0d1c2b;
        background: white;
    }
    .bg-midnight-700, .bg-midnight-800 {
        background: white !important;
        color: #0d1c2b !important;
    }
}
