/* ==========================================
   CSS RESET & VARIABLES
   ========================================== */
:root {
    /* Colors - Healthcare Theme (White + Teal/Blue) */
    --primary: #0F766E; /* Teal 600 */
    --primary-light: #CCFBF1; /* Teal 50 */
    --primary-dark: #0F766E; /* Teal 700 */
    --secondary: #0369A1; /* Sky 700 */
    --accent: #0EA5E9; /* Sky 500 */
    
    --bg-main: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-dark: #0F172A;
    
    --text-main: #334155;
    --text-heading: #0F172A;
    --text-light: #64748B;
    
    --success: #10B981;
    --whatsapp: #25D366;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Shadows & Effects */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
    --shadow-hover: 0 20px 25px -5px rgba(15, 118, 110, 0.1), 0 10px 10px -5px rgba(15, 118, 110, 0.04);
    
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* ==========================================
   UTILITIES
   ========================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-center { text-align: center; }
.text-white { color: #fff; }
.text-primary { color: var(--primary); }

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }
.bg-primary-light { background-color: var(--primary-light); }

.mt-4 { margin-top: 1.5rem; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--bg-light);
    color: var(--text-heading);
}

.btn-outline:hover {
    background: var(--bg-light);
}

.whatsapp-btn {
    border-color: #E2E8F0;
    color: var(--text-heading);
    background: white;
    box-shadow: var(--shadow-sm);
}

.whatsapp-btn i {
    color: var(--whatsapp);
    font-size: 1.2rem;
}

.whatsapp-btn:hover {
    border-color: var(--whatsapp);
    color: var(--whatsapp);
    background: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

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

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

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

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

.nav a:not(.btn) {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav a:not(.btn):hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-heading);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.7));
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-main), transparent);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 24px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9);
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-heading);
    margin-bottom: 40px;
    max-width: 700px;
    margin-inline: auto;
    text-shadow: 0 1px 5px rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==========================================
   TRUSTED BY (SLIDER)
   ========================================== */
.trusted-by {
    padding: 80px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: var(--bg-main);
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 50px;
}

.logo-slider {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.logo-slider::before,
.logo-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-main), transparent);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-main), transparent);
}

.logo-slide-track {
    display: inline-flex;
    align-items: center;
    animation: scroll 30s linear infinite;
    gap: 60px;
    padding: 0 30px;
}

.logo-slide-track img {
    height: 70px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: var(--transition);
}

.logo-slide-track img:hover {
    filter: grayscale(0%) opacity(1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 10)); /* Adjust based on num logos */ }
}

/* ==========================================
   WHO WE HELP / SERVICES
   ========================================== */
.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.help-card, .service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.help-card::before, .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.05), rgba(3, 105, 161, 0.05));
    z-index: -1;
    transition: var(--transition);
}

.help-card:hover, .service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.help-card:hover::before, .service-card:hover::before {
    height: 100%;
}

.icon-box, .service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

.help-card:hover .icon-box, .service-card:hover .service-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.help-card h3, .service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.help-card p, .service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==========================================
   RESULTS / STATS
   ========================================== */
.results {
    background: linear-gradient(135deg, var(--bg-dark), #1E293B);
    position: relative;
}

.stats-grid {
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 10px;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
}

/* ==========================================
   WHY CHOOSE US
   ========================================== */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-list {
    list-style: none;
    margin-top: 30px;
}

.feature-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.feature-list i {
    font-size: 1.5rem;
    margin-top: 4px;
}

.feature-list strong {
    display: block;
    color: var(--text-heading);
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.feature-list span {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Mockup UI */
.glass-card-large {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.chart-mockup {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.chart-header {
    margin-bottom: 24px;
}

.chart-title {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.chart-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 150px;
}

.bar {
    flex: 1;
    background: var(--primary-light);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-out;
}

.bar:last-child {
    background: var(--primary);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    bottom: -20px;
    left: -20px;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    color: var(--accent);
}

.floating-card strong {
    display: block;
    font-size: 1.25rem;
    color: var(--text-heading);
}

.floating-card span {
    font-size: 0.85rem;
    color: var(--text-light);
}

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

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonial-slider-container {
    position: relative;
    padding: 0 60px;
}

.testimonial-slider {
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
    min-width: 100%;
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.stars {
    color: #FBBF24;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.quote {
    font-size: 1.25rem;
    color: var(--text-heading);
    font-style: italic;
    margin-bottom: 30px;
}

.author strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-heading);
}

.author span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* ==========================================
   FINAL CTA
   ========================================== */
.final-cta {
    background: var(--bg-main);
}

.cta-box {
    background: linear-gradient(135deg, var(--bg-dark), #1E293B);
    border-radius: var(--radius-xl);
    padding: 80px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.4) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-box h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-box p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.cta-actions {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.contact-link {
    color: rgba(255,255,255,0.8);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.contact-link:hover {
    color: white;
}

.contact-link.whatsapp {
    color: var(--whatsapp);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--bg-dark);
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* ==========================================
   STICKY WHATSAPP
   ========================================== */
.sticky-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    animation: pulse 2s infinite;
    transition: var(--transition);
}

.sticky-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================
   ANIMATIONS (SCROLL REVEAL)
   ========================================== */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}
.fade-in.in-view {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-left.in-view {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
    .split-image {
        order: -1;
    }
    .hero {
        padding: 150px 0 80px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none; /* simple mobile menu hiding for now */
    }
    .mobile-menu-btn {
        display: block;
    }
    .section-padding {
        padding: 60px 0;
    }
    .testimonial-slider-container {
        padding: 0;
    }
    .slider-btn {
        display: none; /* Hide buttons on mobile, allow touch scroll */
    }
    .testimonial-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    .testimonial-slide {
        scroll-snap-align: center;
    }
    .hero-ctas {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
    .cta-box {
        padding: 40px 20px;
    }
    .contact-methods {
        flex-direction: column;
        gap: 15px;
    }
    .contact-link {
        font-size: 0.95rem;
    }
    .footer {
        padding-bottom: 90px;
    }
    .sticky-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 1.6rem;
    }
}
