:root {
    /* Global Design System - Elite Medical Framework */
    --primary-color: #0A2647;
    /* Deep Medical Blue */
    --accent-color: #2DD4BF;
    /* Clinical Teal */
    --bg-light: #F7F9FC;
    /* Premium Soft Background */
    --bg-white: #FFFFFF;
    --dark-section: #0F172A;
    /* Deep Professional Dark */
    --text-main: #1E293B;
    /* Slate Text */
    --text-muted: #64748B;
    --white: #FFFFFF;
    --silver: #E2E8F0;
    --success: #10B981;
    --error: #EF4444;

    /* 8px Spacing Scale - Compact */
    --space-xs: 6px;
    --space-sm: 12px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 60px;

    /* Typography Hierarchy - Compact */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Manrope', 'Inter', sans-serif;

    --h1-size: 40px;
    --h2-size: 28px;
    --h3-size: 20px;
    --body-size: 16px;
    --small-size: 12px;

    /* UI Elements */
    --border-radius: 16px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-layered: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    --container-width: 1440px;

    --card-padding: 64px;
}

@media (max-width: 992px) {
    :root {
        --card-padding: 48px;
    }
}

@media (max-width: 768px) {
    :root {
        --card-padding: 32px;
    }
}

@media (max-width: 480px) {
    :root {
        --card-padding: 24px;
    }
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: var(--body-size);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: var(--h1-size);
}

h2 {
    font-size: var(--h2-size);
}

h3 {
    font-size: var(--h3-size);
}

a {
    text-decoration: none;
    transition: var(--transition);
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--border-radius);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-sm);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-sm);
    }
}

/* Sections */
section {
    padding: var(--space-xl) 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-lg);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

/* Grid System */
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-md);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 10px;
    white-space: nowrap;
}

.btn-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

@media (max-width: 576px) {
    .btn {
        width: 100%;
        padding: 14px 24px;
        /* Larger tap target */
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(10, 38, 71, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 38, 71, 0.35);
    background-color: #144272;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
}

/* Announcement Bar */
.announcement-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.announcement-bar a {
    color: var(--accent-color);
    margin-left: 10px;
    text-decoration: underline;
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header.scrolled {
    background: #FFFFFF;
    box-shadow: var(--shadow-soft);
    height: 56px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 20px;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links li a {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-main);
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-cta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

@media (max-width: 992px) {
    .nav-cta a.btn-outline {
        display: none;
        /* Hide portal btn on mobile to save space */
    }

    .mobile-menu-toggle {
        display: block;
    }

    .logo-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .nav-cta {
        display: none;
        /* Hide all nav CTAs on very small screens, use mobile menu */
    }
}

/* Hero Section */
.hero {
    background-color: var(--bg-white);
    position: relative;
    padding: var(--space-xl) 0;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.05) 0%, rgba(10, 38, 71, 0.05) 100%);
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: var(--h1-size);
    margin-bottom: var(--space-sm);
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    max-width: 540px;
}

.certification-row {
    margin-top: var(--space-md);
    display: flex;
    gap: 32px;
    opacity: 0.6;
}

.hero-image-box {
    position: relative;
}

.hero-image-box img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-layered);
}

.stats-card {
    position: absolute;
    bottom: 32px;
    left: -32px;
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-layered);
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Quick Actions */
.quick-actions {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.action-card {
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-layered);
}

.action-card i {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: var(--space-sm);
}

/* Service Cards */
.service-card {
    background: var(--white);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-layered);
    border-color: var(--accent-color);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(45, 212, 191, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: var(--space-sm);
}

/* Timeline */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
    position: relative;
}

.timeline-step {
    text-align: center;
    position: relative;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 20px;
    color: var(--primary-color);
}

/* CTA Banner */
.cta-banner-elite {
    background: var(--dark-section);
    color: var(--white);
    text-align: center;
    padding: var(--space-lg) 0;
    border-radius: var(--border-radius);
    margin: var(--space-md) 0;
}

.cta-banner-elite h2 {
    color: var(--white);
    font-size: 32px;
    margin-bottom: var(--space-sm);
}

/* Footer */
footer {
    background: var(--white);
    padding: var(--space-xl) 0 32px;
    border-top: 1px solid var(--silver);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-col h4 {
    margin-bottom: var(--space-md);
    font-size: 18px;
}

.footer-col ul li {
    margin-bottom: 16px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--silver);
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
}

@keyframes loaderSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes loaderPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Tweaks */
@media (max-width: 992px) {

    .grid-12,
    .grid-3,
    .footer-grid,
    .hero-grid,
    .actions-grid,
    .timeline {
        grid-template-columns: 1fr !important;
        gap: var(--space-md);
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        margin-inline: auto;
    }

    .hero-content .btn-group {
        justify-content: center;
    }

    .certification-row {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .quick-actions {
        margin-top: 0;
        padding-top: 0;
    }

    .hero-image-box {
        margin-top: var(--space-lg);
    }

    .hero-image-box img {
        height: 350px !important;
    }

    .stats-card {
        left: 20px;
        bottom: 20px;
        padding: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .contact-info-col {
        padding-left: 0 !important;
        margin-top: var(--space-lg);
    }
}

@media (max-width: 768px) {
    :root {
        --h1-size: 32px;
        --h2-size: 24px;
        --space-xl: 48px;
    }

    section {
        padding: var(--space-lg) 0;
    }

    .cta-banner-elite {
        padding: var(--space-lg) var(--space-md);
    }

    .cta-banner-elite h2 {
        font-size: 24px;
    }

    .service-card {
        padding: 24px !important;
    }

    .filter-tab {
        white-space: nowrap;
        font-size: 14px;
    }

    .footer-col {
        padding-left: 0 !important;
    }
}



/* Floating Elements */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
}

.sticky-mobile-booking {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

@media (max-width: 768px) {
    .sticky-mobile-booking {
        display: block;
    }
}