:root {
    /* Colors */
    --medical-blue: #0098dc;
    /* used as primary blue */
    --medical-blue-2: #0077cc;
    /* gradient stop */
    --vida-green: #00a859;
    --this-green: #aace45;
    --alert-red: #e63946;
    --logo-green: #28a745;
    --logo-blue: #0d6efd;

    /* Tokens */
    --transition-time: 0.3s;
    --navbar-height: 60px;

    /* Spacing scale */
    --space-xs: 6px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    /* Radii & shadow */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-xs: 0 2px 6px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.12);
}

/* ===== Base / reset adjustments ===== */
html,
body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* ===== Utility / tiny components ===== */
.emergency-header {
    background-color: var(--alert-red);
    color: #fff;
    padding: 8px 0;
    font-size: 0.9rem;
}

/* Logo / brand */
.logo-text {
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    line-height: 1.1;
}

.logo-text .lavida {
    font-size: 2.5rem;
    font-weight: 700;
    white-space: nowrap;
}

.logo-text .lavida .logo-green {
    color: var(--logo-green);
}

.logo-text .lavida .logo-blue {
    color: var(--logo-blue);
}

.logo-text .medical {
    font-size: 1em;
    font-weight: 450;
    color: #3498db;
    display: block;
}

/* ===== Hero ===== */
.hero-section {
    background: linear-gradient(135deg, var(--medical-blue) 0%, var(--medical-blue-2) 100%);
    color: #fff;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    background: url('https://images.unsplash.com/photo-1666887360726-f55472d96c34') center/cover;
    opacity: 0.25;
    position: absolute;
    top: -300px;
    /* intentional offset you had */
    left: 0;
    right: -100px;
    /* keep previous horizontal shift */
    bottom: 0;
    z-index: 0;
}

/* ===== Cards ===== */
.card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-xs);
}

/* Service card (consolidated repeated rules) */
.service-card {
    border: 1px solid #e9ecef;
    /* default border */
    border-top: 3px solid var(--vida-green);
    /* preserved accent */
    border-radius: 0.5rem;
    padding: 30px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    transition: transform var(--transition-time) ease, box-shadow var(--transition-time) ease, border-color var(--transition-time) ease;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--medical-blue);
}

/* Icon variants */
.service-icon {
    font-size: 2.5rem;
    color: var(--medical-blue);
    margin-bottom: 15px;
}

/* Content helper */
.service-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Team card */
.team-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-time) ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
}

/* Section title underline */
.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--vida-green);
}

/* ===== Status badges & pulse (consolidated) ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}

.status-open {
    background-color: var(--vida-green);
}

.status-closed {
    background-color: var(--alert-red);
}

/* Pulse dot (uses currentColor or explicit white depending on use) */
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: currentColor;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* ===== Buttons / CTAs ===== */
.btn-vida,
.btn-outline-vida,
.btn-cta {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition-time) ease, box-shadow var(--transition-time) ease, background var(--transition-time) ease;
}

.btn-vida {
    background-color: var(--vida-green);
    color: #fff;
    border: 0;
}

.btn-outline-vida {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.btn-cta {
    font-size: 1.1rem;
    margin: 0 10px 15px;
}

/* ===== CTA section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--vida-green) 0%, var(--this-green) 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

/* ===== Social icons ===== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    transition: transform var(--transition-time) ease, background var(--transition-time) ease, color var(--transition-time) ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #fff;
    color: var(--medical-blue);
    transform: translateY(-3px);
}

/* ===== Contact section ===== */
.contact-section {
    background-color: #f8fafc;
    padding: 4rem 0;
}

.contact-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 1rem;
    box-shadow: var(--shadow-xs);
    padding: 1.5rem 1.75rem;
    transition: transform var(--transition-time) ease, box-shadow var(--transition-time) ease;
    cursor: pointer;
    text-decoration: none;
    color: #212529;
    min-height: 110px;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1rem 1.5rem rgba(0, 0, 0, 0.12);
}

.contact-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 15px;
}

.contact-card .text-wrap {
    flex: 1;
    min-width: 0;
}

.contact-card small {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.contact-card span {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover tints for bootstrap-like bg-* classes (kept behavior) */
.contact-card:hover .contact-icon.bg-danger {
    background-color: #dc3545cc !important;
}

.contact-card:hover .contact-icon.bg-primary {
    background-color: #0d6efdcc !important;
}

.contact-card:hover .contact-icon.bg-success {
    background-color: #198754cc !important;
}

.contact-card:hover .contact-icon.bg-warning {
    background-color: #ffc107cc !important;
}

/* Map frame */
.map-frame {
    border: 0;
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 0 0 var(--radius-md) 0;
}

/* Equal spacing helper for top row */
.contact-section .row.g-4 {
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 2rem;
}

/* ===== Navbar / responsive ===== */
.navbar {
    min-height: var(--navbar-height);
}

.navbar-nav .nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    transition: color var(--transition-time) ease;
}

/* Active link */
.nav-item.active .nav-link {
    color: #0d6efd !important;
    font-weight: 600;
}

.nav-item.active .nav-link::after {
    content: '';
    display: block;
    width: 70%;
    height: 2px;
    background: currentColor;
    margin: 4px auto 0;
    opacity: 0.7;
}

/* Logo color helpers (consolidated) */
.logo-green {
    color: var(--logo-green);
}

.logo-blue {
    color: var(--logo-blue);
}

.medical {
    color: #333;
}

/* Navbar toggler visuals */
.navbar-toggler {
    border: 1px solid var(--logo-blue);
    border-radius: 6px;
    padding: 0.75rem;
    transition: transform var(--transition-time);
}

.navbar-toggler:not([aria-expanded="true"]) {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* hamburger icon */
.navbar-toggler-icon,
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    height: 2px;
    background: var(--logo-blue);
    transition: all var(--transition-time);
}

.navbar-toggler-icon {
    width: 26px;
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 26px;
    left: 0;
}

.navbar-toggler-icon::before {
    transform: translateY(-8px);
}

.navbar-toggler-icon::after {
    transform: translateY(8px);
}

[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
}

[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
}

[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
}

/* ===== Responsive menu (mobile) ===== */
@media (max-width: 992px) {
    .navbar {
        position: relative;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 0 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .navbar-collapse.show {
        max-height: 500px;
    }

    .navbar-nav {
        padding: 1rem 0;
    }

    .nav-item {
        padding: 0.75rem 0;
        border-bottom: 1px solid #f8f9fa;
    }

    .navbar .container {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.5rem 1rem;
    }
}

/* ===== Small tweaks ===== */
@media (max-width: 576px) {
    .contact-card {
        padding: 1.25rem;
    }
}