﻿/* ==========================================================================
   FACILITYRF MODERN OPERATING SYSTEM DESIGN SYSTEM (ASP.NET CORE 10)
   ========================================================================== */

/* 1. GLOBAL VARIABLES & BASE RESET */
:root {
    --rf-primary: #06b6d4;
    --rf-primary-hover: #0891b2;
    --rf-secondary: #3b82f6;
    --rf-dark: #0f172a;
    --rf-slate: #475569;
    --rf-light-bg: #f8fafc;
    --rf-border: #e2e8f0;
    --rf-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --rf-shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --rf-shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --rf-font-main: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    font-family: var(--rf-font-main);
    color: var(--rf-dark);
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   NAVBAR & LOGO CONFIGURATION (Height: 72px)
   ========================================================================== */
.navbar {
    padding: 6px 0 !important; /* Thu gọn padding navbar để nhường không gian tối đa cho logo 72px */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0 !important;
    margin: 0 !important;
}

.facility-logo {
    height: 72px !important; /* Ép chiều cao cố định đúng chuẩn 72px */
    max-height: 72px !important; /* Ngăn chặn mọi rule CSS khác bóp méo kích thước */
    width: auto !important; /* Tự động co giãn chiều rộng theo tỷ lệ gốc của ảnh */
    object-fit: contain;
    display: block;
}

.btn-nav {
    font-weight: 600;
    color: var(--rf-slate);
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-size: 15px;
    transition: color 0.2s ease;
}

    .btn-nav:hover, .btn-nav:focus {
        color: var(--rf-primary);
    }

.btn-login1 {
    background-color: #f1f5f9;
    color: var(--rf-dark);
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 18px;
    border: 1px solid var(--rf-border);
    transition: all 0.2s ease;
}

    .btn-login1:hover {
        background-color: #e2e8f0;
        color: var(--rf-dark);
    }

.btn-login2 {
    background-color: var(--rf-primary);
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 20px;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

    .btn-login2:hover {
        background-color: var(--rf-primary-hover);
        color: #ffffff;
        transform: translateY(-1px);
    }

/* 3. MOBILE OFFCANVAS NAVIGATION */
.menu-toggle {
    background: transparent;
    border: 1px solid var(--rf-border);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

    .menu-toggle .icon-bar {
        width: 22px;
        height: 2px;
        background-color: var(--rf-dark);
        transition: all 0.3s ease;
    }

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }

.offcanvas-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    z-index: 1050;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

    .offcanvas-menu.show {
        right: 0;
    }

.offcanvas-header {
    padding: 20px;
    border-bottom: 1px solid var(--rf-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--rf-dark);
}

    .offcanvas-header .close-btn {
        background: transparent;
        border: none;
        font-size: 28px;
        line-height: 1;
        color: var(--rf-slate);
        cursor: pointer;
    }

.offcanvas-body {
    padding: 20px;
    overflow-y: auto;
}

.menu-group {
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 0;
}

.menu-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--rf-dark);
    cursor: pointer;
    padding: 6px 0;
}

    .menu-title .arrow::after {
        content: "\F282";
        font-family: "bootstrap-icons";
        font-size: 14px;
        transition: transform 0.3s ease;
    }

.menu-group.active .menu-title .arrow::after {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0 5px 15px;
}

.menu-group.active .submenu {
    display: flex;
}

.submenu a {
    color: var(--rf-slate);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

    .submenu a:hover {
        color: var(--rf-primary);
    }

/* 4. HERO SECTION */
.hero {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--rf-dark);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-desc {
    font-size: 18px;
    color: var(--rf-slate);
    margin-bottom: 24px;
}

.btn-demo {
    background-color: var(--rf-primary);
    color: #ffffff;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.25);
    transition: all 0.25s ease;
}

    .btn-demo:hover {
        background-color: var(--rf-primary-hover);
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 14px 24px rgba(6, 182, 212, 0.35);
    }

.bnt-ROI {
    border-radius: 10px;
    font-weight: 600;
    padding: 14px 24px;
    border: 1px solid #cbd5e1;
}

.rf-roi-images {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.roi-item img {
    width: 100%;
    max-width: 170px;
    border-radius: 14px;
    box-shadow: var(--rf-shadow-md);
    transition: transform 0.3s ease;
}

    .roi-item img:hover {
        transform: translateY(-5px);
    }

/* 5. STATS SECTION */
.rf-stats-section {
    padding: 60px 0;
    background: #ffffff;
    border-top: 1px solid var(--rf-border);
    border-bottom: 1px solid var(--rf-border);
}

.rf-stat-card {
    padding: 20px;
    border-radius: 12px;
    background: #ffffff;
}

.rf-stat-icon {
    font-size: 32px;
    color: var(--rf-primary);
    margin-bottom: 8px;
}

.rf-stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--rf-dark);
}

.rf-stat-label {
    color: var(--rf-slate);
    font-size: 15px;
    margin-top: 4px;
}

/* 6. OUTCOMES SECTION */
.rf-outcomes-section {
    padding: 90px 0;
    background: var(--rf-light-bg);
}

.rf-outcome-card {
    background: #ffffff;
    padding: 35px 28px;
    border-radius: 16px;
    border: 1px solid var(--rf-border);
    box-shadow: var(--rf-shadow-sm);
    transition: all 0.3s ease;
}

    .rf-outcome-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--rf-shadow-md);
        border-color: var(--rf-primary);
    }

.rf-outcome-icon {
    font-size: 36px;
    color: var(--rf-primary);
    margin-bottom: 16px;
}

.rf-outcome-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* 7. TRUSTED LOGOS SECTION */
.rf-trusted-section {
    padding: 80px 0;
    background: #ffffff;
}

.rf-trusted-label {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000;
    margin-bottom: 40px;
}

.rf-logo-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 85px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
}

/* TRẠNG THÁI MẶC ĐỊNH (CHƯA RÊ CHUỘT): HIỂN THỊ MÀU THẬT 100%, SẮC NÉT */
.rf-logo-card {
    transition: all 0.3s ease;
    /* Không để opacity 0.7 ở đây */
}

    .rf-logo-card img {
        max-height: 48px;
        max-width: 100%;
        filter: none; /* Giữ nguyên màu sắc thật, không bị xám */
        opacity: 1; /* Hiển thị rõ nét tuyệt đối */
        transition: all 0.3s ease;
    }

    /* TRẠNG THÁI KHI RÊ CHUỘT (HOVER): NỔI BẬT LÊN */
    .rf-logo-card:hover {
        box-shadow: var(--rf-shadow-sm);
        border-color: var(--rf-border);
        transform: translateY(-2px); /* Hiệu ứng nổi lên nhẹ cực kỳ sang trọng */
    }

        .rf-logo-card:hover img {
            filter: none;
            opacity: 1;
        }
.boder-01 {
    border: none !important;
    outline: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
/* 8. FEATURES SECTION */
.rf-features-section {
    padding: 90px 0;
    background: #ffffff;
}

.rf-feature-card {
    background: #ffffff;
    border: 1px solid var(--rf-border);
    border-radius: 18px;
    padding: 35px 28px;
    box-shadow: var(--rf-shadow-sm);
    transition: all 0.3s ease;
}

    .rf-feature-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--rf-shadow-md);
        border-color: var(--rf-primary);
    }

.rf-feature-icon {
    width: 60px;
    height: 60px;
    background: #ecfeff;
    color: var(--rf-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.rf-feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.rf-feature-desc {
    color: var(--rf-slate);
    font-size: 15px;
    margin-bottom: 18px;
}

.rf-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .rf-feature-list li {
        font-size: 14px;
        color: var(--rf-slate);
        padding: 4px 0;
        position: relative;
        padding-left: 20px;
    }

        .rf-feature-list li::before {
            content: "✓";
            position: absolute;
            left: 0;
            color: var(--rf-primary);
            font-weight: bold;
        }

/* 9. BLUEPRINT WORKLOADING SECTION */
.rf-blueprint-section {
    padding: 90px 0;
    background: var(--rf-light-bg);
}

.rf-blueprint-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.rf-blueprint-desc {
    font-size: 18px;
    color: var(--rf-slate);
    margin-bottom: 30px;
}

.rf-workflow-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: var(--rf-shadow-md);
    border: 1px solid var(--rf-border);
}

.rf-workflow-divider {
    height: 1px;
    background: var(--rf-border);
    margin: 20px 0;
}

/* 10. ESTIMATE YOUR ROI & COMMAND CENTER CARD */
.rf-roi-section {
    padding: 100px 0;
    background: #ffffff;
}

.rf-roi-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--rf-dark);
}

.rf-roi-desc {
    font-size: 17px;
    line-height: 1.7;
    color: var(--rf-slate);
    max-width: 520px;
    margin-bottom: 25px;
}

.hero-img {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--rf-shadow-lg);
    border: 1px solid var(--rf-border);
    transition: transform .3s ease, box-shadow .3s ease;
}

    .hero-img:hover {
        transform: translateY(-6px);
        box-shadow: 0 35px 70px rgba(0, 0, 0, 0.12);
    }

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.hero-status {
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.hero-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--rf-primary);
    margin-bottom: 10px;
}

.hero-progress {
    height: 8px;
    border-radius: 10px;
    margin-bottom: 18px;
    background-color: #f1f5f9;
}

.hero-task-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.hero-task {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

    .hero-task:last-child {
        border-bottom: none;
    }

.hero-task-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #334155;
}

    .hero-task-left i {
        font-size: 1.1rem;
        color: var(--rf-primary);
    }

.hero-task-badge {
    background: #e0f2fe;
    color: #0284c7;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 20px;
    min-width: 30px;
    text-align: center;
}

/* 11. INDUSTRIES SERVED SECTION */
.rf-industries {
    background: var(--rf-light-bg);
    padding: 100px 0;
}

.rf-section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--rf-dark);
    margin-bottom: 12px;
}

.rf-section-subtitle {
    color: var(--rf-slate);
    font-size: 17px;
}

.rf-industry-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 40px 30px;
    border: 1px solid var(--rf-border);
    height: 100%;
    transition: all .3s ease;
    box-shadow: var(--rf-shadow-sm);
}

    .rf-industry-card a {
        text-decoration: none;
    }

.rf-industry-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #ecfeff;
    color: var(--rf-primary);
    font-size: 30px;
    transition: all .3s ease;
}

.rf-industry-card h5 {
    font-weight: 600;
    color: var(--rf-dark);
    font-size: 18px;
    margin: 0;
}

.rf-industry-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--rf-shadow-md);
    border-color: var(--rf-primary);
}

    .rf-industry-card:hover .rf-industry-icon {
        background: var(--rf-primary);
        color: #ffffff;
    }

/* 12. TESTIMONIALS SECTION */
.rf-testimonial {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    padding: 100px 0;
}

.rf-testimonial-card {
    background: #ffffff;
    padding: 60px 50px;
    border-radius: 20px;
    box-shadow: var(--rf-shadow-md);
    border: 1px solid var(--rf-border);
    position: relative;
    transition: all .35s ease;
}

    .rf-testimonial-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--rf-shadow-lg);
    }

.rf-quote {
    font-size: 80px;
    line-height: 0;
    color: var(--rf-primary);
    font-weight: 700;
    margin-bottom: 25px;
    opacity: 0.8;
}

.rf-testimonial-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--rf-dark);
    margin-bottom: 25px;
}

.rf-testimonial-author {
    font-size: 15px;
    color: var(--rf-slate);
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    display: inline-block;
}

/* 13. CTA BANNER SECTION */
.section.bg-primary {
    background: linear-gradient(120deg, var(--rf-primary), var(--rf-secondary)) !important;
    padding: 90px 0;
}

    .section.bg-primary h3 {
        font-size: 32px;
        font-weight: 800;
    }

    .section.bg-primary p {
        font-size: 18px;
        opacity: 0.95;
        max-width: 550px;
    }

    .section.bg-primary .btn-light {
        font-weight: 700;
        color: var(--rf-dark);
        padding: 14px 32px;
        border-radius: 10px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        transition: all .25s ease;
    }

        .section.bg-primary .btn-light:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
            background: #ffffff;
        }

/* 14. SUB-FOOTER & FOOTER */
.sub-footer {
    background: #0b1324;
    padding: 20px 0;
    border-bottom: 1px solid #1e293b;
}

.footer-copy {
    color: #94a3b8;
    font-size: 14px;
}

.navcc {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

@media (min-width: 768px) {
    .navcc {
        justify-content: flex-end;
    }
}

.navcc a, .navcc .btnLink {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .navcc a:hover, .navcc .btnLink:hover {
        color: var(--rf-primary);
    }

.footer-divider {
    color: #334155;
}

/* 15. SCROLL TO TOP BUTTON */
#scrollToTopButton {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    background: var(--rf-primary);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: all 0.25s ease;
}

    #scrollToTopButton:hover {
        background: var(--rf-primary-hover);
        transform: translateY(-3px);
    }
 
/* Tinh chỉnh riêng cho Carousel Testimonial */
.rf-testimonial-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #94a3b8 !important;
}

.carousel-indicators .active {
    background-color: var(--rf-primary) !important;
    width: 24px;
    border-radius: 5px;
}
/* ==========================================================================
   TINCH INH SEPARATE MOBILE NAVBAR (KHONG ẢNH HƯỞNG GIAO DIỆN KHÁC)
   ========================================================================== */

@media (max-width: 991.98px) {
    /* Ép Logo đạt chuẩn 72px trên mobile theo đúng yêu cầu */
    .facility-logo {
        height: 72px !important;
        max-height: 72px !important;
        width: auto !important;
    }

    /* Thu gọn padding Navbar để không bị tràn chiều cao tổng thể */
    .navbar {
        padding: 4px 0 !important;
        min-height: 80px;
    }

        /* Thu gọn khoảng cách cụm nút bên phải (Request demo + Menu) */
        .navbar .d-flex.align-items-center {
            gap: 6px !important;
        }

    /* Căn chỉnh nút GetDemo gọn gàng bên cạnh Logo 72px */
    .btn-login2.GetDemo {
        padding: 8px 12px !important;
        font-size: 13.5px !important;
        white-space: nowrap;
    }

    /* Tinh chỉnh nút Hamburger Menu (3 gạch) cân đối với Logo 72px */
    .menu-toggle {
        padding: 8px 10px !important;
    }
}

@media (max-width: 575.98px) {
    /* Đảm bảo màn hình điện thoại nhỏ vẫn giữ nguyên 72px mịn đẹp */
    .facility-logo {
        height: 72px !important;
        max-height: 72px !important;
    }

    /* Giảm padding nút GetDemo trên màn hình rất nhỏ để tránh đẩy tràn lề */
    .btn-login2.GetDemo {
        padding: 7px 10px !important;
        font-size: 12.5px !important;
    }
}