/* ==========================================================================
   Health Paradise BD — Main Stylesheet
   Medical event management — Bootstrap 5 extension layer
   ========================================================================== */

:root {
    --mb-primary: #0b5ed7;
    --mb-primary-dark: #084298;
    --mb-secondary: #198754;
    --mb-secondary-light: #d1e7dd;
    --mb-accent: #20c997;
    --mb-light: #f8fafb;
    --mb-dark: #1a2b3c;
    --mb-muted: #6c757d;
    --mb-gradient: linear-gradient(135deg, #0b5ed7 0%, #198754 100%);
    --mb-shadow: 0 0.5rem 1.5rem rgba(11, 94, 215, 0.12);
    --mb-shadow-lg: 0 1rem 2.5rem rgba(26, 43, 60, 0.15);
    --mb-radius: 0.75rem;
    --mb-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--mb-dark);
    background-color: #fff;
    overflow-x: hidden;
}

/* AOS fallback: keep content visible on mobile / when JS disables animations */
body.aos-disabled [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

html.aos-mobile-off [data-aos],
@media (max-width: 991.98px) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--mb-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar-medbridge {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    transition: var(--mb-transition);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    z-index: 1030;
}

.navbar-medbridge.scrolled {
    box-shadow: var(--mb-shadow);
}

/* Brand lockup: logo + site name */
.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    margin-right: 0;
    padding: 0;
}

.brand-lockup .brand-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.2;
    color: var(--mb-primary-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-logo-nav {
    height: 42px;
    width: auto;
    max-width: 96px;
    max-height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-logo {
    height: auto;
    max-height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

/* Menu toggle button */
.navbar-medbridge .navbar-toggler-custom {
    flex-shrink: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 2px solid var(--mb-primary);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--mb-primary);
}

.navbar-medbridge .navbar-toggler-bars {
    font-size: 1.5rem;
    line-height: 1;
    pointer-events: none;
}

.navbar-medbridge .navbar-toggler-custom:focus {
    box-shadow: 0 0 0 0.2rem rgba(11, 94, 215, 0.25);
}

.navbar-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    color: var(--mb-primary-dark) !important;
}

/* ----- Mobile & tablet (< 992px) ----- */
@media (max-width: 991.98px) {
    .navbar-medbridge > .container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .navbar-medbridge .navbar-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        width: 100%;
        min-height: 52px;
        padding-right: 0.5rem;
    }

    .navbar-medbridge .navbar-top-row .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        margin-right: 0;
    }

    .navbar-medbridge .navbar-toggler-custom {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-right: 0.25rem;
    }

    .navbar-medbridge .navbar-collapse {
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.5rem 0.75rem 1rem;
        background: #fff;
        border-radius: var(--mb-radius);
        box-shadow: var(--mb-shadow);
    }

    .brand-lockup .brand-name {
        font-size: clamp(0.9rem, 3.2vw, 1.05rem);
    }
}

/* Small phones */
@media (max-width: 400px) {
    .brand-lockup {
        gap: 0.5rem;
    }

    .brand-logo-nav {
        height: 38px;
        max-height: 38px;
        max-width: 80px;
    }

    .brand-lockup .brand-name {
        font-size: 0.85rem;
    }
}

/* ----- Desktop (>= 992px) ----- */
@media (min-width: 992px) {
    .navbar-medbridge > .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .navbar-medbridge .navbar-top-row {
        display: contents;
    }

    .navbar-medbridge .navbar-top-row .navbar-brand {
        margin-right: 1rem;
    }

    .navbar-medbridge .navbar-toggler-custom {
        display: none !important;
    }

    .navbar-medbridge .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        background: transparent;
        box-shadow: none;
        margin-top: 0;
        padding: 0;
    }

    .brand-lockup .brand-name {
        font-size: 1.15rem;
    }
}

.brand-logo-footer {
    max-height: 56px;
    max-width: 240px;
    filter: brightness(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--mb-dark) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: var(--mb-transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--mb-primary) !important;
    background: rgba(11, 94, 215, 0.08);
}

.btn-nav-cta {
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
}

/* Hero */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(11, 94, 215, 0.92) 0%, rgba(25, 135, 84, 0.88) 100%),
        url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?w=1920&q=80') center/cover no-repeat;
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.hero-title {
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    max-width: 540px;
    line-height: 1.7;
}

.btn-hero {
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    border-radius: 2rem;
    transition: var(--mb-transition);
}

.btn-hero-primary {
    background: #fff;
    color: var(--mb-primary-dark);
    border: none;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: #fff;
    color: var(--mb-primary-dark);
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat strong {
    display: block;
    font-size: 1.75rem;
    color: #fff;
    font-weight: 800;
}

.hero-stat span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* Section utilities */
.section-padding {
    padding: 5rem 0;
}

.section-padding-sm {
    padding: 3.5rem 0;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mb-secondary);
    margin-bottom: 0.75rem;
}

.bg-medical-light {
    background-color: var(--mb-light);
}

/* Cards */
.card-medical {
    border: none;
    border-radius: var(--mb-radius);
    box-shadow: var(--mb-shadow);
    transition: var(--mb-transition);
    overflow: hidden;
    height: 100%;
}

.card-medical:hover {
    transform: translateY(-6px);
    box-shadow: var(--mb-shadow-lg);
}

.card-medical .card-img-top {
    height: 220px;
    object-fit: cover;
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.icon-box-primary {
    background: rgba(11, 94, 215, 0.1);
    color: var(--mb-primary);
}

.icon-box-success {
    background: rgba(25, 135, 84, 0.1);
    color: var(--mb-secondary);
}

/* Event cards */
.event-card .event-meta {
    font-size: 0.875rem;
    color: var(--mb-muted);
}

.event-card .badge-category {
    background: rgba(11, 94, 215, 0.1);
    color: var(--mb-primary);
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
}

/* CTA Banner */
.cta-banner {
    background: var(--mb-gradient);
    border-radius: 1.25rem;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-banner::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta-banner h3,
.cta-banner p {
    color: #fff;
    position: relative;
    z-index: 1;
}

/* Stats counters */
.stat-counter {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-counter .counter-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--mb-primary);
    line-height: 1;
}

.stat-counter .counter-label {
    color: var(--mb-muted);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    border-radius: var(--mb-radius);
    padding: 2rem;
    box-shadow: var(--mb-shadow);
    height: 100%;
}

.testimonial-card .quote-icon {
    font-size: 2.5rem;
    color: var(--mb-primary);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--mb-secondary-light);
}

/* Partners */
.partner-logo-card {
    background: #fff;
    border-radius: var(--mb-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: var(--mb-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.partner-logo-card:hover {
    box-shadow: var(--mb-shadow);
    transform: translateY(-4px);
}

.partner-logo-card img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

/* Gallery */
.gallery-item {
    position: relative;
    border-radius: var(--mb-radius);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--mb-transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 94, 215, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--mb-transition);
    color: #fff;
    font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-filter .btn {
    border-radius: 2rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
}

/* Page headers */
.page-header {
    background: var(--mb-gradient);
    padding: 8rem 0 4rem;
    margin-bottom: 0;
    color: #fff;
}

.page-header h1 {
    color: #fff;
}

.breadcrumb-medical {
    --bs-breadcrumb-divider: '›';
}

.breadcrumb-medical .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.breadcrumb-medical .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.65);
}

/* Forms */
.form-medical .form-control,
.form-medical .form-select {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border-color: #dee2e6;
}

.form-medical .form-control:focus {
    border-color: var(--mb-primary);
    box-shadow: 0 0 0 0.2rem rgba(11, 94, 215, 0.15);
}

.subscribe-card {
    border-radius: 1.25rem;
    box-shadow: var(--mb-shadow-lg);
    border: none;
    overflow: hidden;
}

.subscribe-card .card-header {
    background: var(--mb-gradient);
    color: #fff;
    padding: 2rem;
    border: none;
}

/* Footer */
.footer-medbridge {
    background: var(--mb-dark);
    color: rgba(255, 255, 255, 0.75);
    padding-top: 4rem;
}

.footer-medbridge h5 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-medbridge a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--mb-transition);
}

.footer-medbridge a:hover {
    color: var(--mb-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--mb-transition);
}

.social-link:hover {
    background: var(--mb-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 1050;
    transition: var(--mb-transition);
}

.whatsapp-float:hover {
    transform: scale(1.08);
    color: #fff;
}

/* Offer cards */
.offer-card {
    border: none;
    border-radius: var(--mb-radius);
    padding: 2rem;
    height: 100%;
    background: #fff;
    box-shadow: var(--mb-shadow);
    transition: var(--mb-transition);
    border-top: 4px solid var(--mb-primary);
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mb-shadow-lg);
}

.offer-highlight {
    display: inline-block;
    background: var(--mb-secondary-light);
    color: var(--mb-secondary);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

/* Timeline / process */
.process-step {
    position: relative;
    padding-left: 3rem;
}

.process-step::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--mb-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

/* Lightbox modal */
.lightbox-modal .modal-content {
    background: transparent;
    border: none;
}

.lightbox-modal .modal-body {
    padding: 0;
}

.lightbox-modal img {
    width: 100%;
    border-radius: var(--mb-radius);
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--mb-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition: var(--mb-transition);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--mb-primary-dark);
    color: #fff;
}

/* Smooth scroll offset for sticky nav */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding-top: 5.5rem;
        padding-bottom: 2.5rem;
    }

    .hero-stats {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
        gap: 1rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .section-padding-sm {
        padding: 2rem 0;
    }
}
