/*
Theme Name: Preferred Urgent Care V2
Theme URI: http://prefferedurgentcare.com
Author: Surulere Chris Abiye
Author URI: http://prefferedurgentcare.com
Description: A custom theme based on an HTML file.
Version: 2.0
*/

/* ===== Global Typography ===== */
:root {
    --bs-body-font-family: 'Inter', sans-serif;
    --bs-body-font-size: 1.125rem;
    /* 18px for better readability */
    --bs-body-line-height: 1.6;
    --primary: #045798;
    --secondary: #D30B35;
}

.text-secondary {
    color: var(--secondary) !important;
}

body {
    font-family: var(--bs-body-font-family);
    font-size: var(--bs-body-font-size);
    line-height: var(--bs-body-line-height);
    color: #374151;
    /* Softer dark gray */
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    /* No color set here - let headings inherit from their context */
}

h1,
.h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
}

h2,
.h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.2;
}

h3,
.h3 {
    font-size: 1.75rem;
    line-height: 1.3;
}

h4,
.h4 {
    font-size: 1.5rem;
}

h5,
.h5 {
    font-size: 1.25rem;
}

h6,
.h6 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #4b5563;
}

/* ===== Strategic Outfit Applications ===== */
/* Buttons and CTAs - Bold and attention-grabbing */
.btn,
button:not(.navbar-toggler):not(.accordion-button),
.checkin-btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Card Titles - Make service/feature cards stand out */
.card-title,
.service-title,
.benefit-card h5,
.services-card h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* Section Titles - Extra emphasis for major sections */
.section-title,
.category-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Banner/Hero Content - Maximum impact */
.banner-title,
.hero-title,
.page-banner h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

/* Footer Section Headings - Subtle but distinct */
footer h5,
footer h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ===== Jump Link - Back to Top Button ===== */
.jump-link {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #0666b8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.jump-link:hover {
    background: linear-gradient(135deg, #0666b8, var(--primary));
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.jump-link.visible {
    opacity: 1;
    visibility: visible;
}

.jump-link i {
    transition: transform 0.3s ease;
}

.jump-link:hover i {
    transform: translateY(-3px);
}

/* Remove old ::before pseudo-element if it exists */
.jump-link::before {
    content: none !important;
    font-family: inherit !important;
}

.jump-link i {
    display: block !important;
    transition: transform 0.3s ease;
}

@media (max-width: 767.98px) {
    .jump-link {
        bottom: 5rem;
        /* Adjusted to sit above mobile bottom bar */
        right: 1rem;
        width: 3rem;
        height: 3rem;
        font-size: 1rem;
    }
}

/* ========================================
   NAVIGATION ENHANCEMENTS
   ======================================== */

/* Search Button in Nav */
.nav-search-btn {
    color: var(--primary);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.nav-search-btn:hover,
.nav-search-btn:focus {
    color: var(--secondary);
    transform: scale(1.1);
}

/* Enhanced Active State - Make it MUCH more visible */
.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0.75rem;
    left: 1rem;
    right: 1rem;
    height: 3px;
    /* Thicker underline */
    background: var(--secondary);
    border-radius: 2px;
    animation: none;
    /* Remove pulse, keep solid */
}

.navbar .nav-link.active {
    font-weight: 800;
    color: var(--primary) !important;
}

/* Search Modal Styling */
#searchModal .modal-header {
    background: linear-gradient(135deg, var(--primary), #0666b8);
    color: white;
}

#searchModal .modal-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

#searchModal .btn-close {
    filter: brightness(0) invert(1);
}

#searchModal .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(4, 87, 152, 0.25);
}

/* Mobile Sticky Bottom Bar */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1030;
    border-top: 2px solid var(--primary);
}

.bottom-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    text-decoration: none;
    color: #6c757d;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    border-right: 1px solid #dee2e6;
}

.bottom-bar-item:last-child {
    border-right: none;
}

.bottom-bar-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.bottom-bar-item span {
    font-weight: 600;
}

.bottom-bar-item:hover,
.bottom-bar-item:focus {
    background: var(--primary);
    color: #fff;
}

.bottom-bar-item.active {
    background: var(--primary);
    color: #fff;
}

.bottom-bar-item.active i {
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Add padding to body to prevent content from being hidden behind mobile bottom bar */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 70px;
    }
}

/* Responsive adjustments for gap */
@media (max-width: 991.98px) {
    .navbar .d-flex.gap-3 {
        gap: 1rem !important;
    }
}

/* Tablet Stacked Layout (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .main.navbar .container {
        flex-wrap: wrap;
        /* Allow wrapping */
        justify-content: space-between;
    }

    /* Row 1: Logo (Left) and Actions (Right) */
    .navbar-brand {
        margin-right: auto;
    }

    .d-lg-flex.align-items-center {
        order: 2;
        /* Move actions to right of logo */
    }

    /* Row 2: Navigation Menu (Full Width Below) */
    .navbar-collapse {
        order: 3;
        width: 100%;
        flex-basis: 100%;
        margin-top: 1rem;
        border-top: 1px solid #eee;
        padding-top: 0.5rem;
    }

    .navbar-nav {
        flex-direction: row;
        /* Keep horizontal */
        justify-content: center;
        /* Center the menu items */
        width: 100%;
        gap: 1.5rem;
    }

    .navbar-nav .nav-item {
        margin-right: 0;
        /* Reset margins */
    }

    /* Ensure dropdowns work correctly in stacked mode */
    .dropdown-menu {
        position: absolute;
    }
}

/* Mobile Split Menu Styles (< 992px) */
@media (max-width: 991.98px) {

    /* Flex container for the list item to hold link + button */
    .navbar-nav .dropdown {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #f8f9fa;
    }

    /* The main link takes available space */
    .navbar-nav .dropdown .nav-link {
        flex: 1;
        border-bottom: none;
        /* Remove border from link itself */
    }

    /* Hide the default Bootstrap arrow on the link */
    .navbar-nav .dropdown .nav-link::after {
        display: none !important;
    }

    /* Style the split toggle button */
    .dropdown-toggle-split-btn {
        padding: 0.5rem 1rem;
        color: var(--primary);
        font-size: 1rem;
        text-decoration: none;
        border: none;
        background: transparent;
        transition: transform 0.3s ease;
    }

    /* Rotate arrow when open */
    .dropdown-toggle-split-btn[aria-expanded="true"] {
        transform: rotate(180deg);
    }

    /* Force dropdown menu to break to new line and take full width */
    .navbar-nav .dropdown-menu {
        width: 100%;
        flex-basis: 100%;
        border: none;
        background-color: #f8f9fa;
        margin-top: 0;
        padding-left: 1.5rem;
        /* Indent sub-items */
    }
}

/* Extra large screens - normal sizing */
@media (min-width: 1200px) {
    .checkin-btn {
        white-space: nowrap;
    }
}

/* Small mobile - compact everything */
@media (max-width: 767.98px) {
    .checkin-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Team images styles */
/* ===== Original Theme Styles ===== */
/* Service Content Area */
.service-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

/* Services Sidebar Card */
.services-card {
    background-color: #004aad;
    /* blue tone */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Sidebar Heading */
.services-card h5 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

/* Services List */
.services-list li {
    margin-bottom: 10px;
}

.services-list li a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out;
}

.services-list li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Check-in Button */
.btn-primary {
    background-color: #004aad;
    border-color: #004aad;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-primary:hover {
    background-color: #003580;
    border-color: #003580;
}

/* Sidebar "All Services" Button */
.services-card .btn-light {
    background-color: #fff;
    color: #004aad;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
}

.services-card .btn-light:hover {
    background-color: #f1f1f1;
    color: #003580;
}


.dropdown-item.active,
.dropdown-item:active {
    background-color: transparent !important;
    /* remove Bootstrap's bg */
    color: var(--bs-dropdown-link-active-color) !important;

    border-left: 4px solid var(--secondary);
    /* or your desired width */
    padding-left: 1.75rem;
    /* spacing to account for border */
}

/* Force consistent image sizes */
.team-img-wrapper {
    aspect-ratio: 1 / 1;
    /* Square format. Change to 3/4 if you prefer portrait. */
    overflow: hidden;
}

.team-img-wrapper img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    transition: transform 0.4s ease;
}

/* Subtle zoom effect */
.team-card:hover img {
    transform: scale(1.05);
}

/* Overlay fade effect */
.hover-overlay {
    transition: opacity 0.4s ease;
}

.team-card:hover .hover-overlay {
    opacity: 1;
}

/* Hero layout & typography overrides */
.hero-section .hero-content-wrapper {
    display: flex;
    align-items: center;
}

.hero-section .hero-content {
    max-width: 560px;
}

.hero-section h1.display-1 {
    font-size: clamp(2.4rem, 3vw + 1rem, 3.5rem);
    line-height: 1.1;
}

.hero-section .lead {
    font-size: 1.1rem;
    color: #444;
    max-width: 560px;
}

.hero-section .d-flex.gap-3 {
    gap: 0.75rem !important;
}

.hero-section .btn.btn-lg {
    border-radius: 999px;
}

.hero-section .btn-link.btn-lg {
    padding-left: 0;
    padding-right: 0;
}

.hero-section .col-md-6.position-relative {
    min-height: 500px;
}

/* Footer Styles */
.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Border utilities */
.border-white-50 {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.hero-section .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero heading size & layout adjustment on small screens */
@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 2.25rem;
        padding-bottom: 2.5rem;
    }

    .hero-section .hero-content-wrapper {
        align-items: flex-start;
        margin-bottom: 1.25rem;
    }

    .hero-section .hero-content {
        max-width: 100%;
    }

    .hero-section h1.display-1 {
        font-size: 2.1rem;
    }

    .hero-section .d-flex.gap-3 {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-section .btn.btn-lg {
        width: 100%;
        justify-content: center;
    }

    .hero-section .btn-link.btn-lg {
        width: auto;
        align-self: flex-start;
    }

    .hero-section .col-md-6.position-relative {
        min-height: 260px;
    }

    .hero-section .hero-image {
        max-height: 300px;
        margin-top: 1.25rem;
    }

    /* Hero stats: move below image and make more legible on small screens */
    .hero-section .hero-stats-container {
        position: static;
        margin: 1rem 0 0;
        width: 100%;
        max-width: none;
    }

    .hero-section .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.5rem;
    }

    .hero-section .hero-stats .stats-number {
        font-size: 1.4rem;
    }

    .hero-section .hero-stats .stats-label {
        font-size: 0.8rem;
    }
}