@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700;800&display=swap');

/* Premium Medical Agency Theme - Modern Teal/Emerald & Dark Navy */
:root {
    --bg-main: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #f0fdfa;
    --text-primary: #0f172a;
    /* Slate 900 */
    --text-secondary: #334155;
    /* Slate 700 */
    --text-muted: #64748b;
    /* Slate 500 */

    /* Primary Colors */
    --accent-primary: #0d9488;
    /* Teal 600 */
    --accent-secondary: #14b8a6;
    /* Teal 500 */
    --accent-dark: #115e59;
    /* Teal 800 */

    /* Supporting Colors */
    --accent-gold: #f59e0b;
    --accent-success: #10b981;
    --accent-purple: #7c3aed;

    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);

    --gradient-primary: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    /* Premium Dark */
    --gradient-accent: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    /* Teal Pop */
    --gradient-surface: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-primary);
}

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

/* Navigation - Modern Glass */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Mobile Toggle Hidden on Desktop */
.mobile-menu-btn {
    display: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
}

/* Hero Section - Immersive & Premium */
.hero {
    padding: 100px 0 80px;
    background: radial-gradient(circle at 50% 0%, rgba(13, 148, 136, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

/* Abstract Background Shapes */
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(40px, 5vw, 72px);
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: clamp(18px, 2vw, 20px);
    max-width: 640px;
    color: var(--text-secondary);
    margin: 0 auto 40px;
    line-height: 1.6;
    font-weight: 400;
}

.serif-italic {
    font-family: 'Playfair Display', serif;
    /* Would need import, falling back to serif for now if not imp */
    font-family: 'Montserrat', sans-serif;
    /* Stick to Montserrat italic for consistency if Playfair not added */
    font-style: italic;
    font-weight: 600;
    color: var(--accent-primary);
    /* Removed gradient text for cleaner premium look, or keep subtle */
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Improved CTA Group */
.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
}

/* Trust Badges - Clean Row */
.trust-badges {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 32px 48px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 100px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    margin-top: 40px;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.trust-badge-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.trust-badge-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Buttons - refined */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--text-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
}

.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: var(--bg-secondary);
}

/* Content Sections */
.section-padding {
    padding: 100px 0;
}

.section-padding-sm {
    padding: 60px 0;
}

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

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-primary);
    display: inline-block;
    margin-bottom: 16px;
    background: rgba(13, 148, 136, 0.1);
    padding: 6px 12px;
    border-radius: 99px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: clamp(18px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 60px;
    line-height: 1.6;
    font-weight: 400;
}

/* Premium Cards */
.premium-card {
    padding: 40px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent-secondary);
}

.premium-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.premium-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
    flex-grow: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 20px;
    color: var(--accent-primary);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1140px;
    margin: 0 auto;
}

.pricing-card {
    padding: 32px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    box-shadow: var(--card-shadow);
    border-radius: 16px;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
    z-index: 2;
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card h2 {
    font-size: 24px;
    margin: 12px 0 8px 0;
    color: var(--text-primary);
    line-height: 1.2;
}

.pricing-card ul {
    list-style: none;
    margin: 24px 0 32px;
    flex-grow: 1;
}

.pricing-card ul li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    line-height: 1.5;
}

.pricing-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 14px;
}

.pricing-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Partners Grid */
.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.partner-logo {
    display: block;
    opacity: 0.4;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

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

.partner-logo img {
    max-height: 60px;
    width: auto;
    max-width: 180px;
}

/* Testimonials */
.testimonial-card {
    padding: 40px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.testimonial-quote {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.testimonial-author-title {
    font-size: 13px;
    color: var(--text-muted);
}

/* Stats Section */
.stats-section {
    background: var(--bg-secondary);
    padding: 60px 0;
    border-radius: 24px;
    margin: 20px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer */
footer {
    background: var(--text-primary);
    color: #ffffff;
    padding: 100px 0 40px;
    margin-top: 100px;
}

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

.footer-brand p {
    color: #94a3b8;
    margin-top: 24px;
    line-height: 1.6;
    max-width: 360px;
    font-size: 14px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 13px;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: var(--text-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.sticky-btn {
    flex: 1;
    text-align: center;
    padding: 20px;
    text-decoration: none;
    font-weight: 700;
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: background 0.3s ease;
}

.sticky-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sticky-btn.whatsapp {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

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

    .pricing-card.featured {
        transform: scale(1);
    }

    footer .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: flex;
    }

    .container {
        padding: 0 20px;
    }

    /* Mobile Nav Toggle */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .mobile-menu-btn span {
        width: 100%;
        height: 3px;
        background-color: var(--text-primary);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Hide CTA by default on mobile, can add to menu if needed */
    nav .nav-cta {
        display: none;
    }

    /* Styles for the links when hidden/shown */
    nav .nav-links {
        display: none;
        /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }

    nav .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero {
        padding: 60px 0;
    }

    .hero .container {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero h1,
    .hero p {
        text-align: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    /* Stack buttons on mobile */
    .cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group .btn {
        width: 100%;
    }

    .pricing-card {
        padding: 24px;
    }

    .trust-badges {
        flex-direction: column;
        gap: 32px;
        padding: 32px;
        border-radius: 24px;
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Animations */
.animate {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

@media (min-width: 769px) {
    .mobile-sticky-cta {
        display: none;
    }
}



/* Utility Classes */
.mb-4 {
    margin-bottom: 24px;
}

.mb-6 {
    margin-bottom: 32px;
}

.mt-8 {
    margin-top: 48px;
}