/* =========================================
   VARIÁVEIS GLOBAIS E RESET
========================================= */
:root {
    --primary: #006837;
    --primary-dark: #004d29;
    --primary-light: #e8f5ed;
    --secondary: #3a3a3a;
    --text: #26342e;
    --text-muted: #65736c;
    --bg: #f8faf9;
    --white: #ffffff;
    --border: rgba(0, 104, 55, 0.1);
    
    --shadow-sm: 0 4px 6px rgba(0, 77, 41, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 77, 41, 0.08);
    --shadow-lg: 0 24px 70px rgba(0, 70, 37, 0.14);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   TYPOGRAPHY
========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    line-height: 1.2;
    font-weight: 700;
}

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 104, 55, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 104, 55, 0.3);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* =========================================
   HEADER
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    padding: 15px 0;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 80px;
    transition: var(--transition);
}

.header.scrolled .logo-img {
    height: 65px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.nav-btn {
    background: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 104, 55, 0.2);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 10% 15%, rgba(0, 104, 55, 0.05), transparent 40%),
                radial-gradient(circle at 90% 85%, rgba(0, 104, 55, 0.03), transparent 40%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--primary);
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    position: relative;
}

.hero-img {
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    height: 550px;
    width: 100%;
}

.floating-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border);
    animation: float 6s ease-in-out infinite;
}

.floating-card .icon {
    font-size: 2rem;
}

.floating-card strong {
    display: block;
    color: var(--primary-dark);
    font-family: var(--font-heading);
}

.floating-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   SERVICES SECTION
========================================= */
.services {
    padding: 100px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
    background: var(--white);
}

.service-img-wrapper {
    height: 200px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    max-width: 400px;
}

.footer-title {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-address {
    font-style: normal;
    display: flex;
    gap: 10px;
    line-height: 1.8;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* =========================================
   SOBRE NÓS
========================================= */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #164027 0%, #25633e 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.about::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -50px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    z-index: 1;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
}

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

.about-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.8;
}

/* =========================================
   EQUIPE
========================================= */
.team {
    padding: 100px 0;
    background-color: var(--bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.team-card {
    text-align: center;
}

.team-img {
    width: 280px;
    height: 380px;
    object-fit: cover;
    object-position: top;
    margin: 0 auto 24px;
    border-radius: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.team-name {
    font-size: 1.35rem;
    color: var(--secondary);
    margin-bottom: 8px;
}

.team-role {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.team-crm {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* =========================================
   CONVÊNIOS E HOSPITAIS
========================================= */
.partners {
    padding: 100px 0;
    background-color: var(--white);
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.partners-grid img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
}

.hospitals-grid img {
    max-width: 180px;
    max-height: 100px;
}

.hospitals-grid img.logo-sm,
.hospitals-partner-card img.logo-sm,
img.logo-sm {
    max-width: 120px !important;
    max-height: 60px !important;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-desc {
        margin: 0 auto 40px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .floating-card {
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        animation: none;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-image-wrapper {
        min-height: 250px;
    }
    
    .about-content {
        padding: 40px 24px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        transition: var(--transition);
        padding: 40px 24px;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }
    
    .nav-list li {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .nav-btn {
        display: block;
        margin-top: 20px;
    }
    
    .header.scrolled .main-nav {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .partners-grid {
        gap: 20px;
    }

    .partners-grid img {
        max-width: 120px;
        max-height: 60px;
    }
    
    .hospitals-grid img {
        max-width: 140px;
        max-height: 80px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ==========================================================================
   Internal Pages Styles
   ========================================================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #008a48 100%);
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    pointer-events: none;
}

.page-header .page-title {
    color: var(--white);
    font-size: 3.2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    position: relative;
    z-index: 2;
    margin: 0;
    letter-spacing: -1px;
}

.page-header .page-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.125rem;
    margin-top: 16px;
    position: relative;
    z-index: 2;
}

.page-header .hero-bg-shapes {
    z-index: 1;
}

/* Breadcrumb */
.page-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    position: relative;
    z-index: 2;
}

.page-breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.page-breadcrumb a:hover {
    color: var(--white);
}

.page-breadcrumb span {
    color: rgba(255,255,255,0.5);
}

/* Common Page Container */
.page-content {
    padding: 100px 0;
}

.page-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Stats Banner */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin: 60px 0 0;
}

.stat-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Quem Somos Layout */
.about-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-page-image {
    position: relative;
}

.about-page-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.about-page-image::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    right: 16px;
    bottom: 16px;
    border: 3px solid var(--primary);
    border-radius: 24px;
    opacity: 0.2;
    z-index: -1;
}

.about-page-content .badge {
    margin-bottom: 20px;
}

.about-page-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

/* Contact Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-info-card .contact-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
}

.contact-info-card p, .contact-info-card address {
    font-size: 1rem;
    font-style: normal;
    color: var(--secondary);
    font-weight: 600;
    line-height: 1.6;
}

.contact-map {
    margin-top: 24px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 48px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.contact-form-wrapper h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: var(--secondary);
}

.contact-form-wrapper > p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 104, 55, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

/* Accordion for Exams */
.exams-list {
    max-width: 860px;
    margin: 0 auto;
}

.exam-item {
    margin-bottom: 16px;
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.exam-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 104, 55, 0.2);
}

.exam-header {
    background: var(--primary-light);
    padding: 22px 32px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 16px;
}

.exam-header::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.exam-item.open .exam-header::after {
    transform: rotate(45deg);
}

.exam-body {
    padding: 0 32px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

.exam-item.open .exam-body {
    max-height: 500px;
    padding: 24px 32px 32px;
}

/* Clinic Gallery */
.clinic-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    inset: 0;
    background: rgba(0, 77, 41, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Convenios cards */
.partners-section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.75rem;
    color: var(--secondary);
    margin-bottom: 40px;
}

.partners-section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 32px;
    background: var(--primary);
    border-radius: 4px;
}

.partners-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 70px 0;
}

.partner-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    min-height: 100px;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 104, 55, 0.25);
}

.partner-card img {
    max-width: 140px;
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: var(--transition);
}

.partner-card:hover img {
    filter: grayscale(0%);
}

.hospitals-partner-card img {
    max-width: 170px;
    max-height: 90px;
}

.partners-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

/* nav-link active state */
.nav-link.active {
    color: var(--primary);
}

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

/* Mobile Responsiveness for internal pages */
@media (max-width: 992px) {
    .about-page-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header .page-title {
        font-size: 2.4rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .partners-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .about-page-content h2 {
        font-size: 2rem;
    }
}

/* =========================================
   WHATSAPP FLOATING BUTTON
========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: whatsapp-pulse 2s ease-out infinite;
}

@keyframes whatsapp-pulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    70%  { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(1.7); opacity: 0; }
}

.whatsapp-float:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 12px 36px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.whatsapp-float-tooltip {
    position: absolute;
    right: 70px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-family: var(--font-body);
}

.whatsapp-float-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right: none;
    border-left-color: #1a1a1a;
}

.whatsapp-float:hover .whatsapp-float-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
    }
    .whatsapp-float-tooltip {
        display: none;
    }
}

/* =========================================
   INSTAGRAM FLOATING BUTTON (LEFT SIDE)
========================================= */
.instagram-float {
    position: fixed;
    bottom: 32px;
    left: 32px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 6px 24px rgba(214, 36, 159, 0.45);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    text-decoration: none;
}

.instagram-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(214, 36, 159, 0.35);
    animation: instagram-pulse 2s ease-out infinite;
}

@keyframes instagram-pulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    70%  { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(1.7); opacity: 0; }
}

.instagram-float:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 12px 36px rgba(214, 36, 159, 0.6);
}

.instagram-float svg {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.instagram-float-tooltip {
    position: absolute;
    left: 70px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-family: var(--font-body);
}

.instagram-float-tooltip::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left: none;
    border-right-color: #1a1a1a;
}

.instagram-float:hover .instagram-float-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .instagram-float {
        bottom: 20px;
        left: 20px;
        width: 54px;
        height: 54px;
    }
    .instagram-float-tooltip {
        display: none;
    }
}

/* =========================================
   DOCTOR BIO MODAL
========================================= */
.team-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.team-card .team-img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover .team-img {
    box-shadow: 0 12px 30px rgba(0, 51, 102, 0.18);
}

.team-card-badge {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary, #0066cc);
    background: rgba(0, 102, 204, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

.team-card:hover .team-card-badge {
    background: var(--primary, #0066cc);
    color: #ffffff;
}

.doctor-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.65);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.doctor-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.doctor-modal-card {
    background: #ffffff;
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.92);
    transition: transform 0.3s ease;
}

.doctor-modal-overlay.active .doctor-modal-card {
    transform: scale(1);
}

.doctor-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.doctor-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.doctor-modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.doctor-modal-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.doctor-modal-header-info h3 {
    font-size: 1.35rem;
    color: var(--secondary, #0a2540);
    margin-bottom: 4px;
}

.doctor-modal-role {
    font-size: 0.92rem;
    color: #64748b;
    margin-bottom: 10px;
}

.doctor-modal-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.doctor-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
}

.doctor-badge-rqe {
    background: #f0fdf4;
    color: #15803d;
    border-color: #dcfce7;
}

.doctor-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doctor-cv-section {
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px 18px;
    border: 1px solid #f1f5f9;
}

.doctor-cv-section h4 {
    font-size: 0.92rem;
    color: var(--primary, #0066cc);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.doctor-cv-section p {
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 576px) {
    .doctor-modal-header {
        flex-direction: column;
        text-align: center;
    }
    .doctor-modal-badges {
        justify-content: center;
    }
    .doctor-modal-card {
        padding: 24px 18px;
    }
}

/* =========================================
   ABOUT CAROUSEL
========================================= */
.about-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* =========================================
   LIGHTBOX GALLERY
========================================= */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lightboxImg {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox-caption {
    color: #fff;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    border-radius: 50%;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-close {
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    font-size: 30px;
}

.lightbox-prev, .lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    font-size: 24px;
}
.lightbox-prev:hover, .lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

@media (max-width: 768px) {
    .lightbox-prev { left: 10px; width: 40px; height: 40px; font-size: 18px; }
    .lightbox-next { right: 10px; width: 40px; height: 40px; font-size: 18px; }
    .lightbox-close { top: 15px; right: 15px; width: 40px; height: 40px; font-size: 24px; }
}
