/*
Theme Name: Glavex Health Theme
Theme URI: https://glvexhealth.com
Author: Glavex Health Development Team
Author URI: https://glvexhealth.com
Description: Production-ready WordPress Theme for Glavex Health Revenue Cycle Management & Medical Billing. Built with Elementor integration, custom RCM ROI calculator, and automated lead email notifications to admin@glvexhealth.com.
Version: 1.0.2
License: GNU General Public License v2 or later
Text Domain: glavex-health
*/

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

:root {
    /* Color Palette */
    --bg-dark: #070d19;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    --primary-cyan: #00f0ff;
    --primary-blue: #0072ff;
    --primary-gradient: linear-gradient(135deg, #00f0ff 0%, #0072ff 100%);
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-purple: #8b5cf6;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 240, 255, 0.25);
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.2);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    background: radial-gradient(circle at 50% 0%, #0d1b3e 0%, #070d19 70%);
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select {
    font-family: inherit;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--primary-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-pill .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-cyan);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
    70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
    100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #040914;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.45);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 20px 0;
}

.header.scrolled {
    background: rgba(7, 13, 25, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

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

.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #040914;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: var(--shadow-glow);
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-cyan);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin: 20px 0 24px;
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 48px;
}

.hero-trust-bar {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.stat-item h4 {
    font-size: 1.8rem;
    color: var(--primary-cyan);
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0;
}

.hero-media {
    position: relative;
}

.hero-media-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glow);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 16px;
}

.badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Claim Flow Visualizer (Section 2) */
.flow-section {
    padding: 100px 0;
    background: rgba(15, 23, 42, 0.4);
    border-y: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.4rem;
    margin: 16px 0 14px;
}

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

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

.flow-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    position: relative;
    transition: var(--transition-smooth);
    z-index: 2;
}

.flow-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.flow-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary-cyan);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.flow-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.flow-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Connecting Pulse Line */
.flow-line {
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.flow-pulse {
    position: absolute;
    top: -3px;
    left: 0;
    width: 60px;
    height: 8px;
    border-radius: 4px;
    background: var(--primary-gradient);
    box-shadow: 0 0 15px var(--primary-cyan);
    animation: flowDataMove 4s linear infinite;
}

@keyframes flowDataMove {
    0% { left: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 95%; opacity: 0; }
}

/* Interactive Calculator Section */
.calc-section {
    padding: 100px 0;
}

.calc-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    box-shadow: var(--shadow-soft);
}

.calc-controls {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.control-group label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.control-group label span {
    color: var(--primary-cyan);
    font-weight: 700;
}

.slider-input {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    accent-color: var(--primary-cyan);
    cursor: pointer;
}

.calc-result-card {
    background: linear-gradient(145deg, rgba(0, 114, 255, 0.15) 0%, rgba(0, 240, 255, 0.05) 100%);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.result-val {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary-cyan);
    margin: 16px 0;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* Specialty Switcher Section */
.specialty-section {
    padding: 100px 0;
    background: rgba(15, 23, 42, 0.3);
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.tab-btn {
    padding: 12px 24px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary-gradient);
    color: #040914;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.tab-content-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: none;
}

.tab-content-panel.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.spec-list {
    list-style: none;
    margin-top: 20px;
}

.spec-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.spec-list li i {
    color: var(--accent-emerald);
}

/* Founder & Trust Section */
.trust-section {
    padding: 100px 0;
}

.founder-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.founder-info {
    padding: 48px;
}

.founder-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 24px;
    line-height: 1.5;
}

.founder-meta h4 {
    font-size: 1.2rem;
    color: var(--primary-cyan);
}

.founder-meta p {
    font-size: 0.88rem;
    color: var(--text-dim);
}

/* Testimonial Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: var(--accent-amber);
    margin-bottom: 16px;
    display: flex;
    gap: 4px;
}

.testi-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.testi-author h5 {
    font-size: 1rem;
}

.testi-author span {
    font-size: 0.85rem;
    color: var(--primary-cyan);
}

/* Modal Lead Capture */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 9, 20, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #0f172a;
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Footer */
.footer {
    padding: 80px 0 30px;
    background: #040914;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}

.footer-col h5 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--primary-cyan);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Mobile Navigation & Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Desktop: hamburger is hidden */
.mobile-toggle {
    display: none !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--primary-cyan);
    font-size: 1.3rem;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.mobile-toggle:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--border-glow);
}

/* Toast Notification Pop-up */
.toast-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: #0f172a;
    border: 1px solid var(--border-glow);
    border-left: 4px solid var(--accent-emerald);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), var(--shadow-glow);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 3000;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.active {
    transform: translateX(0);
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.toast-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

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

/* ===== TABLET & MOBILE (<=992px) ===== */
@media (max-width: 992px) {
    /* Show hamburger button */
    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Collapse nav-menu — hidden by default, slides in when .mobile-active is toggled */
    .nav-menu {
        position: fixed !important;
        top: 72px !important;
        left: 0 !important;
        width: 100% !important;
        background: rgba(7, 13, 25, 0.98) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column !important;
        padding: 24px !important;
        gap: 0 !important;
        list-style: none !important;
        transform: translateY(-110%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: transform 0.35s ease, opacity 0.3s ease;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
        z-index: 1001 !important;
    }

    .nav-menu.mobile-active {
        transform: translateY(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Remove the duplicate rule — mobile-active is already declared above */

    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-link {
        font-size: 1.1rem !important;
        width: 100% !important;
        display: block !important;
        padding: 16px 0 !important;
        color: var(--text-main) !important;
    }

    .hero-section {
        padding: 120px 0 60px;
    }

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

    .hero-content h1 {
        font-size: 2.6rem;
    }

    .hero-trust-bar {
        justify-content: space-around;
    }

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

    .flow-line {
        display: none;
    }

    .calc-box {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 32px;
    }

    .tab-content-panel.active {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 20px;
    }

    .founder-card {
        grid-template-columns: 1fr;
    }

    .founder-img {
        max-height: 380px;
    }

    .founder-info {
        padding: 32px 24px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    #navAuditBtn {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-trust-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

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

    .tab-nav {
        gap: 8px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tab-nav::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        white-space: nowrap;
        padding: 10px 18px;
        font-size: 0.85rem;
    }

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

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

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

    .modal-card {
        padding: 28px 20px;
        margin: 0 16px;
    }

    .result-val {
        font-size: 2.4rem;
    }
}
