/***************************************************
    FIRST LEXINGTON MEDICAL CENTER - Custom CSS
    Updated by ChatGPT | 2025 Edition
    "...Where God restores health"
****************************************************/

/* ---------------- Root Variables ---------------- */
:root {
    --primary: #c52429;       /* Red from logo */
    --secondary: #157a2d;     /* Green from “Medical Centre” text */
    --light: #f9fafb;         /* Clean white-gray */
    --dark: #1a2b47;          /* Deep navy/charcoal for text */
    --accent: #0464be;        /* Optional subtle blue accent */
    --transition: all 0.4s ease;
    --radius: 16px;
    --shadow: 0 6px 20px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.08);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Nunito', sans-serif;
}

/* ---------------- Base Styles ---------------- */
body {
    font-family: var(--font-secondary);
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--dark);
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* ---------------- Buttons ---------------- */
.btn {
    font-weight: 700;
    border-radius: 8px;
    transition: var(--transition);
}

.btn:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background-color: var(--primary);
    border: none;
}

.btn-primary:hover {
    background-color: var(--secondary);
}

.btn-square, .btn-sm-square, .btn-lg-square {
    text-align: center;
    padding: 0;
}

.btn-square { width: 36px; height: 36px; }
.btn-sm-square { width: 28px; height: 28px; }
.btn-lg-square { width: 46px; height: 46px; }

/* ---------------- Navbar ---------------- */
.navbar-light .navbar-nav .nav-link {
    font-family: var(--font-primary);
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 4px;
        background: var(--primary);
        transition: var(--transition);
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }
}

/* ---------------- Hero Header ---------------- */
.hero-header {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
                url('../img/flmc-building.jpg') center center/cover no-repeat;
    color: #fff;
    padding: 180px 0 120px;
    text-align: center;
}

.hero-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}

/* ---------------- Section Titles ---------------- */
.section-title {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--dark);
    border-left: 5px solid var(--primary);
    padding-left: 10px;
    margin-bottom: 30px;
}

/* ---------------- Service Cards ---------------- */
.service-item {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    padding: 40px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-height: 350px;
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-item .service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 32px;
    transform: rotate(-14deg);
    transition: var(--transition);
}

.service-item:hover .service-icon {
    background: var(--secondary);
    transform: rotate(0deg);
}

.service-item h5 {
    margin-top: 15px;
    color: var(--dark);
    font-weight: 700;
}

/* ---------------- Team Section ---------------- */
.team-carousel .owl-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 45px;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

/* ---------------- Testimonials ---------------- */
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    width: 16px;
    height: 16px;
    margin: 0 5px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 50%;
    transition: var(--transition);
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    width: 20px;
    height: 20px;
}

/* ---------------- Feature & Footer Backgrounds ---------------- */
.feature {
    background: linear-gradient(rgba(197, 36, 41, 0.5), rgba(21, 122, 45, 0.5)),
                url('../img/flmc-staff-group.jpg') center center/cover no-repeat;
}

.bg-search {
    background: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .3)),
                url('../img/flmc-reception.jpg') center center/cover no-repeat;
}

.bg-foot {
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)),
                url('../img/flmc-building.jpg') center center/cover no-repeat;
    background-size: cover;
    color: #fff;
}

/* ---------------- Back to Top ---------------- */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: none;
    border-radius: 50%;
    z-index: 99;
    background: var(--primary);
    color: #fff;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--secondary);
}

/* ---------------- Footer ---------------- */
.footer {
    background-color: var(--dark);
    color: #fff;
    padding: 60px 0;
}

.footer a {
    color: #fff;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--secondary);
}

/* ---------------- Responsiveness ---------------- */
@media (max-width: 768px) {
    .hero-header {
        padding: 120px 0 80px;
    }

    .hero-header h1 {
        font-size: 2.2rem;
    }

    .navbar-light .navbar-nav .nav-link {
        font-size: 16px;
    }

    .service-item {
        padding: 25px 15px;
    }
}

/* ---------------- Accessibility ---------------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 3px;
}

/* ---------------- Custom Utilities ---------------- */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.rounded-lg { border-radius: var(--radius) !important; }
.shadow-soft { box-shadow: var(--shadow) !important; }

