/* site.css - OrchestratR Portal Mobile Styles */

/* Base Body Style */
body {
    background-color: #ffffff;
    color: #212529;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.section-banner {
    background: linear-gradient(90deg, #0a2540 0%, #2b72a5 100%);
    border-radius: 8px;
    text-align: center;
    color: white;
}

/* Hero Banner Responsive Section */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hero-banner h1,
    .hero-banner p,
    .hero-banner ul {
        text-shadow: 0 0 8px #000;
    }

    .hero-banner ul {
        padding-left: 0;
        margin: 0 auto;
        font-size: 1.15rem;
        text-align: left;
    }

        .hero-banner ul li {
            margin-bottom: 0.7rem;
            font-weight: 500;
            letter-spacing: 0.01em;
            color: #fff;
        }

.btn-primary {
    background: linear-gradient(90deg, #0a2540 0%, #2b72a5 100%) !important;
    border: none !important;
    color: white !important;
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active {
        background: linear-gradient(90deg, #2b72a5 0%, #0a2540 100%) !important;
        color: #fff !important;
        border: none !important;
    }

.btn-outline-primary {
    color: #2b72a5 !important;
    border: 1px solid #2b72a5 !important;
    background: transparent !important;
    transition: all 0.3s ease-in-out;
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus,
    .btn-outline-primary:active {
        color: #fff !important;
        background: linear-gradient(90deg, #0a2540 0%, #2b72a5 100%) !important;
        border-color: #2b72a5 !important;
    }

/* Hero Banner Mobile/Tablet Tweaks */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 24vh;
        padding: 0.75rem 0.3rem;
        flex-direction: column;
    }

        .hero-banner .container {
            padding: 0 !important;
        }

        .hero-banner h1 {
            font-size: 1.08rem;
            margin-bottom: 0.8rem;
        }

        .hero-banner p {
            font-size: 0.96rem;
            margin-bottom: 0.8rem;
        }

        .hero-banner ul {
            font-size: 0.85rem;
            max-width: 100%;
            margin-top: 0.5rem;
        }

            .hero-banner ul li {
                margin-bottom: 0.48rem;
                word-break: break-word;
            }
}

/* Cards: Mobile Padding and Full-Width Columns */
@media (max-width: 575.98px) {
    .card, .card-body {
        padding: 1rem !important;
    }

    .feature-box {
        padding: 1rem !important;
    }

    .list-group-item {
        padding: 0.65rem 0.7rem !important;
        font-size: 0.98em !important;
    }

    .btn-wide {
        min-width: 120px !important;
        padding-left: 0.6rem !important;
        padding-right: 0.6rem !important;
        font-size: 0.98rem !important;
    }

    .card-title {
        font-size: 1.08rem !important;
    }

    .fs-3 {
        font-size: 1.5rem !important;
    }

    .mb-3, .mb-4 {
        margin-bottom: 1rem !important;
    }
}

/* Fix row/col layout on mobile so cards never overflow */
@media (max-width: 480px) {
    .row-cols-1 > .col,
    .row-cols-md-2 > .col,
    .row-cols-lg-3 > .col {
        min-width: 0 !important;
        flex-basis: 100% !important;
        max-width: 100% !important;
    }
}

/* Responsive fixes for pricing cards and bundles */
@media (max-width: 991.98px) {
    .card-body.d-flex.flex-lg-row,
    .card-body.d-flex.flex-lg-row.align-items-start.gap-4 {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1.5rem 1rem !important;
        align-items: stretch !important;
    }

    .pe-lg-5 {
        padding-right: 0 !important;
    }

    .flex-grow-1[style*="flex-basis"] {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }
}

/* Section alert & spacing */
.hero-section .alert {
    font-size: 0.98rem !important;
    padding: 0.7rem 1rem !important;
}

.hero-section {
    padding-top: 1.2rem !important;
    padding-bottom: 1.2rem !important;
}

/* Position submenu to the right */
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0.1rem;
    border-radius: 0.5rem;
    min-width: 220px;
    display: none; /* Hide by default */
    position: absolute;
}

/* Show submenu on hover (desktop) */
.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu:focus-within > .dropdown-menu {
    display: block;
}

/* Blue background for all levels */
.navbar-blue-dropdown {
    background: #1565c0;
    color: #fff;
    border-radius: 0.5rem;
}

    .navbar-blue-dropdown .dropdown-item {
        color: #fff;
    }

        .navbar-blue-dropdown .dropdown-item:hover,
        .navbar-blue-dropdown .dropdown-item:focus {
            background: #0d47a1;
            color: #fff;
        }
