/* ============================================
   Baptist Medical Group Berryhill Road
   Custom Styles — Vibrant Modern + Midnight Blue & Mint
   ============================================ */

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

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

body {
    background-color: #060a14;
}

/* ---- Navigation ---- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3fd07a;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar glass effect on scroll */
.navbar-scrolled {
    background: rgba(6, 10, 20, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(61, 208, 122, 0.1);
}

.navbar-scrolled .nav-link {
    color: #d4dce6 !important;
}

/* ---- Hero Section ---- */
#hero {
    position: relative;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1db85d, #3fd07a, #7de4a5);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 2rem 2rem 0 0;
}

.service-card:hover::before {
    opacity: 1;
}

/* ---- Scroll Reveal Animations (progressive enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s 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; }
}

/* ---- Decorative Background Shapes ---- */
.shape-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
    background: radial-gradient(circle, rgba(29, 184, 93, 0.06) 0%, transparent 70%);
}

.shape-2 {
    width: 400px;
    height: 400px;
    bottom: 10%;
    left: -100px;
    background: radial-gradient(circle, rgba(29, 184, 93, 0.04) 0%, transparent 70%);
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 20%;
    background: radial-gradient(circle, rgba(125, 228, 165, 0.05) 0%, transparent 70%);
}

.shape-rect {
    position: absolute;
    pointer-events: none;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 5%;
    background: rgba(29, 184, 93, 0.03);
    border-radius: 24px;
    transform: rotate(45deg);
}

.shape-rect-2 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 8%;
    background: rgba(45, 74, 107, 0.3);
    border-radius: 16px;
    transform: rotate(20deg);
}

/* ---- Mobile Menu ---- */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #3fd07a;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 60%;
}

/* ---- Contact Form ---- */
select option {
    background: #142238;
    color: #d4dce6;
}

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

::-webkit-scrollbar-track {
    background: #060a14;
}

::-webkit-scrollbar-thumb {
    background: #1e3450;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d4a6b;
}

/* ---- Selection ---- */
::selection {
    background: rgba(29, 184, 93, 0.3);
    color: #f0fdf6;
}

/* ---- Focus Visible ---- */
:focus-visible {
    outline: 2px solid #3fd07a;
    outline-offset: 2px;
}

/* ---- Responsive Tweaks ---- */
@media (max-width: 767px) {
    .shape-1 {
        width: 300px;
        height: 300px;
    }
    
    .shape-2 {
        width: 200px;
        height: 200px;
    }
}
