/**
 * Taskora Group LLC - Responsive Layout Overrides & Breakpoint System
 * 
 * Ensures robust display across 320px, 375px, 414px, 576px, 768px, 992px, 1200px, 1600px+.
 */

/* Prevent any possible horizontal overflow across all devices */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Tablet & Mobile Grid Tweaks (max-width: 991.98px) */
@media (max-width: 991.98px) {
    .taskora-header {
        height: auto;
        padding-block: 0.75rem;
    }

    .dropdown-menu-mega {
        display: none !important; /* Managed via mobile offcanvas */
    }

    .pricing-card.highlight {
        transform: none;
    }

    .footer-legal-links {
        justify-content: flex-start;
        margin-top: 1rem;
        flex-wrap: wrap;
    }
}

/* Small Devices (max-width: 767.98px) */
@media (max-width: 767.98px) {
    .btn-wrap-responsive {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .btn-wrap-responsive .btn {
        width: 100%;
    }

    .role-card-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .role-card-actions .btn {
        width: 100%;
    }

    .stat-block {
        padding: 1.25rem 1rem;
    }

    .roles-filter-bar {
        padding: 1rem;
    }

    .roles-filter-bar .d-flex {
        flex-wrap: wrap;
    }

    .service-workflow-step {
        gap: 0.85rem;
    }
}

/* Extra Small Devices (320px - 414px) */
@media (max-width: 414px) {
    .container {
        padding-inline: 1rem;
    }

    .taskora-card,
    .service-card,
    .role-card,
    .taskora-form-wrap,
    .legal-content-card {
        padding: 1.25rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
        margin-right: 0.5rem;
    }

    .brand-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .cta-banner {
        padding: 2rem 1.25rem;
    }
}

/* Ultra-wide Screens (min-width: 1600px) */
@media (min-width: 1600px) {
    .container {
        max-width: 1320px;
    }
}
