/* ==========================================================================
   Velyncr RCM Global | Premium Full-Width Enterprise Architecture
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    /* Vastu-Aligned Color Palette */
    --navy: #0F2027;    /* Water/North: Trust, Stability, Career Growth */
    --teal: #008080;    /* Wood/East: Networking, New Beginnings */
    --gold: #D4AF37;    /* Fire/Earth: Wealth, Action, Prosperity */
    
    --text-dark: #2D3748;
    --text-light: #4A5568;
    --bg-white: #FFFFFF;
    --bg-gray: #F7FAFC;
    --shadow-soft: 0 15px 35px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Open Sans', sans-serif; color: var(--text-dark); background-color: var(--bg-white); line-height: 1.8; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: var(--navy); line-height: 1.3; }
a { text-decoration: none; transition: all 0.3s ease; }
img { max-width: 100%; display: block; border-radius: 8px; }

/* --- Top Navigation Bar --- */
header { background-color: var(--navy); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.logo a { display: flex; align-items: center; gap: 12px; }
.logo span { color: var(--bg-white); font-size: 24px; font-weight: 800; letter-spacing: 0.5px; }
.logo img { height: 45px; border-radius: 0; }

.nav-links ul { display: flex; list-style: none; gap: 35px; align-items: center; }
.nav-links a { color: var(--bg-white); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover { color: var(--gold); }

.btn-gold { background-color: var(--gold); color: var(--navy) !important; padding: 12px 28px; border-radius: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; display: inline-block; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4); }

.mobile-menu-btn { display: none; font-size: 28px; color: var(--bg-white); background: none; border: none; cursor: pointer; }

/* --- Hero Sections --- */
.hero { position: relative; padding: 120px 5%; background-color: var(--navy); background-size: cover; background-position: center; background-blend-mode: overlay; color: var(--bg-white); text-align: center; }
.hero-content { max-width: 1000px; margin: 0 auto; position: relative; z-index: 2; }
.hero h1 { color: var(--bg-white); font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 20px; }
.hero p { font-size: 1.3rem; margin-bottom: 30px; opacity: 0.9; }
.tagline { color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 1rem; margin-bottom: 15px; display: block; }

/* --- Full-Width Layouts --- */
.section-container { max-width: 1300px; margin: 0 auto; padding: 100px 5%; }
.bg-teal-light { background-color: var(--bg-gray); border-top: 1px solid #E2E8F0; border-bottom: 1px solid #E2E8F0; }
.split-layout { display: flex; flex-wrap: wrap; gap: 60px; align-items: center; }
.split-text { flex: 1.5; min-width: 300px; }
.split-image { flex: 1; min-width: 300px; box-shadow: var(--shadow-soft); }

.section-title { font-size: 2.8rem; margin-bottom: 25px; }
.content-text { font-size: 1.15rem; color: var(--text-light); margin-bottom: 20px; line-height: 1.9; }

/* --- Grids & Bento Boxes --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; margin-top: 50px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px; }
.trust-card { background: var(--bg-white); padding: 40px; border-radius: 8px; box-shadow: var(--shadow-soft); border-top: 4px solid var(--teal); transition: transform 0.3s ease; }
.trust-card:hover { transform: translateY(-8px); }
.trust-card h3 { color: var(--navy); font-size: 1.5rem; margin-bottom: 15px; }

/* --- EHR Ecosystem Logos --- */
.ehr-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin-top: 40px; align-items: center; }
.ehr-logos span { font-size: 1.5rem; font-weight: 800; color: #A0AAB2; }

/* --- Form Styles --- */
.audit-form { background: var(--bg-white); padding: 50px; border-radius: 8px; box-shadow: var(--shadow-soft); border-top: 6px solid var(--gold); }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #CBD5E0; border-radius: 6px; font-family: inherit; font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--teal); }

/* --- Universal Trust Footer (Sleek & Refined) --- */
.trust-banner { 
    background-color: var(--teal); 
    color: var(--bg-white); 
    padding: 20px 5%; 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 40px; 
}
.trust-badge { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-weight: 700; 
    font-size: 1rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: var(--bg-white); 
}
.trust-badge svg { 
    width: 24px; 
    height: 24px; 
    fill: var(--gold); 
}

footer { 
    background-color: var(--navy); 
    color: var(--bg-white); 
    padding: 50px 5% 20px 5%; 
}
.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 40px; 
    max-width: 1300px; 
    margin: 0 auto; 
}
.footer-grid h3 { 
    color: var(--gold); 
    margin-bottom: 20px; 
    font-size: 1.15rem; 
}
.footer-grid a { 
    color: #A0AAB2; 
    display: block; 
    margin-bottom: 8px; 
    font-size: 1rem; 
}
.footer-grid a:hover { 
    color: var(--bg-white); 
}
.footer-bottom { 
    text-align: center; 
    margin-top: 40px; 
    padding-top: 20px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    color: #718096; 
    font-size: 0.9rem; 
}
/* --- VFX --- */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .mobile-menu-btn { display: block; }
    .nav-links { position: fixed; top: 75px; left: 0; width: 100%; background-color: var(--navy); flex-direction: column; text-align: center; overflow: hidden; max-height: 0; transition: max-height 0.4s ease; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
    .nav-links.active { max-height: 500px; }
    .nav-links ul { flex-direction: column; gap: 0; padding: 20px 0; }
    .nav-links ul li { width: 100%; }
    .nav-links a { display: block; padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .hero { padding: 80px 5%; }
    .section-title { font-size: 2.2rem; }
}

/* STICKY SIDEBAR CORE PROCESS MATRIX */
html {
    scroll-behavior: smooth;
}

.services-container {
    display: flex;
    gap: 60px; 
    max-width: 1400px; 
    margin: 80px auto;
    padding: 0 5%;
    align-items: flex-start;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
}

/* The Frozen Left Menu */
.sticky-sidebar {
    flex: 0 0 280px; 
    position: sticky;
    top: 120px; 
    background-color: var(--bg-white, #FFFFFF);
    padding: 25px 20px; 
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--teal, #1A759F);
}

.sticky-sidebar h3 {
    font-size: 1.25rem; 
    color: var(--navy, #0F2027);
    margin-bottom: 20px;
    font-weight: 800;
}

.sidebar-link {
    display: block;
    padding: 10px 0;
    color: var(--text-light, #4A5568);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem; 
    border-bottom: 1px solid #E2E8F0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.sidebar-link:last-child {
    border-bottom: none;
}

.sidebar-link:hover {
    color: var(--teal, #1A759F);
    transform: translateX(5px);
}

/* The Scrollable Right Side */
.scroll-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 100px; 
}

.content-section {
    padding-top: 120px;
    margin-top: -120px;
}

/* =========================================
   TABLET & MOBILE RESPONSIVE LAYOUTS
   ========================================= */

@media (max-width: 992px) {
    .services-container {
        display: block !important; /* Forces a standard block layout instead of flex */
        padding: 20px !important;
    }
    .sticky-sidebar {
        position: relative !important;
        width: 100% !important;
        margin-bottom: 40px !important;
        top: 0 !important;
    }
}

@media (max-width: 768px) {
    /* 1. FIX THE BLANK PAGE (Forces dimensions and disables invisible VFX) */
    .services-container, .scroll-content { 
        width: 100% !important;
        height: auto !important;
        overflow: visible !important; 
        margin: 20px auto !important;
    }

    /* DISABLE SCROLL ANIMATIONS ON MOBILE (Prevents the text from being stuck at opacity 0) */
    .fade-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* 2. ALIGN THE TRUST BADGES */
    .trust-banner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; 
        gap: 20px !important;
    }
    
    .trust-badge {
        width: 290px !important; 
        justify-content: flex-start !important;
        margin: 0 !important;
    }
}