﻿/* =========================================================
   DAPROM HOME - HERO (COMPACT)
   Only Hero partial styles; no shared Features/Modules styles.
   ========================================================= */

.home-hero {
    padding: .85rem 0 1.5rem;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .75rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #0d6efd;
    font-size: .78rem;
    font-weight: 800;
}

.home-hero-title {
    margin-bottom: 1rem;
    color: #111827;
    font-size: clamp(2rem, 3.1vw, 3rem);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -.04em;
}

.home-hero-description {
    max-width: 600px;
    margin-bottom: 0;
    color: #64748b;
    font-size: .98rem;
    line-height: 1.65;
}

/* Left column: keep actions aligned to the bottom of the blue panel */
.home-hero-left {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home-hero-content {
    flex: 0 0 auto;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin: 1.5rem 0 0;
}

    .home-hero-actions .home-main-btn,
    .home-hero-actions .home-secondary-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 43px;
        padding: .55rem 1.1rem;
        border-radius: 11px;
        font-size: .9rem;
        font-weight: 800;
        line-height: 1.2;
    }

/* Blue ERP panel */
.home-platform-card {
    position: relative;
    padding: 1rem;
    overflow: hidden;
    border-radius: 21px;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.22), transparent 28%), linear-gradient(145deg, #0d6efd 0%, #084298 100%);
    box-shadow: 0 16px 45px rgba(15, 23, 42, .15);
}

    .home-platform-card::before,
    .home-platform-card::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
    }

    .home-platform-card::before {
        width: 190px;
        height: 190px;
        right: -60px;
        top: -60px;
        background: rgba(255,255,255,.10);
    }

    .home-platform-card::after {
        width: 150px;
        height: 150px;
        left: -50px;
        bottom: -50px;
        background: rgba(255,255,255,.08);
    }

    .home-platform-card > * {
        position: relative;
        z-index: 1;
    }

.home-platform-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .7rem;
}

.home-window-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: .2rem;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
}

.home-platform-status {
    padding: .3rem .6rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: .76rem;
    font-weight: 800;
}

/* Override Bootstrap g-3 in the Hero panel only */
.home-platform-card > .row {
    --bs-gutter-x: .55rem;
    --bs-gutter-y: .55rem;
}

/* Hero module tiles (not the large cards in _Modules.cshtml) */
.home-platform-card .home-module-card {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 62px;
    height: 100%;
    min-width: 0;
    padding: .55rem .65rem;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 12px;
    background: rgba(255,255,255,.14);
    color: #fff;
    backdrop-filter: blur(8px);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.home-platform-card a {
    display: block;
    height: 100%;
}

.home-platform-card .home-module-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.23);
    border-color: rgba(255,255,255,.35);
}

.home-platform-card .home-module-card > i {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: .95rem;
    transition: background .2s ease, color .2s ease;
}

.home-platform-card .home-module-card:hover > i {
    background: #fff;
    color: #0d6efd;
}

.home-platform-card .home-module-card > div {
    min-width: 0;
}

.home-platform-card .home-module-card strong {
    display: block;
    overflow-wrap: break-word;
    color: #fff;
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.3;
}

.home-platform-card .home-module-card span {
    display: block;
    margin-top: .15rem;
    color: rgba(255,255,255,.78);
    font-size: .72rem;
}

/* Retain compatibility if the footer is added to Hero again */
.home-platform-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .6rem;
    margin-top: .75rem;
}

    .home-platform-footer > div {
        padding: .65rem;
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 12px;
        background: rgba(255,255,255,.14);
        color: #fff;
    }

    .home-platform-footer small {
        display: block;
        color: rgba(255,255,255,.72);
        font-size: .7rem;
    }

    .home-platform-footer strong {
        display: block;
        margin-top: .2rem;
        font-size: .85rem;
    }

/* Benefits beneath both columns */
.home-hero-bottom {
    margin-top: 1.35rem;
}

    .home-hero-bottom .home-hero-features {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .6rem 1.5rem;
        max-width: 1250px;
        color: #475569;
        font-size: .86rem;
        font-weight: 650;
        line-height: 1.5;
    }

        .home-hero-bottom .home-hero-features > div {
            display: flex;
            align-items: flex-start;
            gap: .5rem;
            min-width: 0;
        }

            .home-hero-bottom .home-hero-features > div i {
                flex-shrink: 0;
                margin-top: .2rem;
                color: #198754;
            }

@media (min-width: 992px) {
    .home-hero-left .home-hero-actions {
        margin-top: auto;
        margin-bottom: 0;
    }
}

@media (max-width: 991.98px) {
    .home-hero {
        padding: 1.5rem 0;
    }

    .home-hero-left .home-hero-actions {
        margin-top: 1.4rem;
    }

    .home-platform-footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .home-hero-title {
        font-size: clamp(1.85rem, 5.5vw, 2.5rem);
    }

    .home-hero-bottom .home-hero-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .home-hero {
        padding: 1rem 0 1.25rem;
    }

    .home-hero-badge {
        margin-bottom: .8rem;
    }

    .home-hero-title {
        font-size: 1.85rem;
    }

    .home-hero-description {
        font-size: .92rem;
        line-height: 1.6;
    }

    .home-hero-actions {
        flex-direction: column;
        gap: .55rem;
    }

        .home-hero-actions .btn {
            width: 100%;
            min-height: 44px;
            font-size: .9rem;
        }

    .home-platform-card {
        padding: .8rem;
        border-radius: 17px;
    }

        .home-platform-card > .row {
            --bs-gutter-x: .45rem;
            --bs-gutter-y: .45rem;
        }

        .home-platform-card .home-module-card {
            gap: .4rem;
            min-height: 64px;
            padding: .45rem;
            border-radius: 10px;
        }

            .home-platform-card .home-module-card > i {
                flex-basis: 28px;
                width: 28px;
                height: 28px;
                font-size: .8rem;
            }

            .home-platform-card .home-module-card strong {
                font-size: .7rem;
                line-height: 1.25;
            }

    .home-hero-bottom {
        margin-top: 1.1rem;
    }

        .home-hero-bottom .home-hero-features {
            gap: .6rem;
            font-size: .82rem;
        }
}
