/* =========================================
   E-DIGIT SYSTEMS RESPONSIVE STYLES
========================================= */

/* =========================================
   LARGE TABLETS AND SMALL LAPTOPS
   1200px and below
========================================= */

@media (max-width: 1199.98px) {


    /* -------------------------------------
       Hero
    ------------------------------------- */

    .hero-container {
        padding-top: 95px;
        padding-bottom: 135px;
    }

    .hero-title {
        font-size: clamp(2.8rem, 4.6vw, 4.5rem);
    }

    .hero-text {
        max-width: 570px;
    }

    .hero-dashboard-frame {
        padding: 1rem;
    }

    .dashboard-kpis {
        gap: 0.6rem;
    }

    .dashboard-kpi {
        padding: 0.7rem;
    }

    .dashboard-content {
        grid-template-columns:
            minmax(0, 1.5fr)
            minmax(135px, 0.75fr);
    }

    .pipeline-step {
        padding: 0.46rem 0.48rem;
    }

    .hero-status-card {
        right: -8px;
    }
}


/* =========================================
   TABLETS
   991.98px and below
========================================= */

@media (max-width: 991.98px) {

    /* -------------------------------------
       Hero
    ------------------------------------- */

    .hero {
        min-height: auto;
        align-items: flex-start;
        padding-bottom: 85px;
    }

    .hero-container {
        padding-top: 90px;
        padding-bottom: 125px;
    }

    .hero-content {
        max-width: 720px;
        margin: 0 auto;

        text-align: center;
    }

    .hero-eyebrow {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-title {
        max-width: 780px;
        margin-right: auto;
        margin-left: auto;

        font-size: clamp(3rem, 7vw, 4.8rem);
    }

    .hero-text {
        max-width: 680px;
        margin-right: auto;
        margin-left: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-capabilities {
        justify-content: center;
    }

    .hero-visual {
        max-width: 720px;

        margin: 3rem auto 0;
        padding-bottom: 2.5rem;
    }

    .hero-dashboard-frame {
        transform: none;
    }

    .mega-menu,
    .main-navbar .nav-link,
    .mega-link-list a,
    .nav-cta,
    .nav-cta-outline,
    .mega-footer-cta {
        transition: none;
    }

    .hero-status-card {
        right: 10px;
        bottom: 0;
    }

    .hero::after {
        -webkit-mask-image:
            linear-gradient(
                180deg,
                transparent 0%,
                rgba(0, 0, 0, 0.38) 40%,
                rgba(0, 0, 0, 0.72) 100%
            );

        mask-image:
            linear-gradient(
                180deg,
                transparent 0%,
                rgba(0, 0, 0, 0.38) 40%,
                rgba(0, 0, 0, 0.72) 100%
            );
    }

    /* -------------------------------------
       General sections
    ------------------------------------- */

    .process-line::before {
        display: none;
    }

    .project-visual {
        min-height: 400px;
        margin-bottom: 40px;
    }

    .section-space {
        padding: 80px 0;
    }
}


/* =========================================
   MOBILE AND SMALL TABLETS
   767.98px and below
========================================= */

@media (max-width: 767.98px) {

    /* -------------------------------------
       Hero
    ------------------------------------- */

    .hero {
        min-height: auto;
        padding-bottom: 70px;
    }

    .hero-container {
        padding-top: 72px;
        padding-bottom: 105px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-eyebrow {
        margin-bottom: 1.15rem;
        padding: 0.48rem 0.8rem;

        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }

    .hero-title {
        font-size: clamp(2.45rem, 10vw, 3.7rem);
        line-height: 1.05;
        letter-spacing: -0.035em;
    }

    .hero-title span {
        margin-top: 0.12rem;
    }

    .hero-text {
        margin-top: 1.25rem;

        font-size: 1rem;
        line-height: 1.65;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;

        width: 100%;
        max-width: 460px;

        margin: 1.8rem auto 0;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
        min-height: 54px;
    }

    .hero-capabilities {
        justify-content: center;
        gap: 0.7rem 1rem;

        margin-top: 1.6rem;
    }

    .hero-capabilities li {
        font-size: 0.82rem;
    }

    /* -------------------------------------
       Dashboard
    ------------------------------------- */

    .hero-visual {
        max-width: 600px;

        margin-top: 2.4rem;
        padding: 1rem 0 1.5rem;
    }

    .hero-dashboard-frame {
        padding: 0.9rem;

        border-radius: 16px;
    }

    .dashboard-header {
        margin-bottom: 0.8rem;
    }

    .dashboard-header strong {
        font-size: 0.95rem;
    }

    .dashboard-kpis {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .dashboard-kpi {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            auto;
        grid-template-areas:
            "label value"
            "detail detail";

        align-items: center;
        column-gap: 1rem;

        padding: 0.75rem 0.8rem;
    }

    .dashboard-kpi span {
        grid-area: label;
        margin-bottom: 0;
    }

    .dashboard-kpi strong {
        grid-area: value;
        margin-bottom: 0;

        font-size: 1.2rem;
    }

    .dashboard-kpi small {
        grid-area: detail;
        margin-top: 0.28rem;
    }

    .dashboard-content {
        grid-template-columns: 1fr;
    }

    .dashboard-pipeline {
        display: none;
    }

    .chart-bars {
        height: 125px;
    }

    .hero-status-card {
        display: none;
    }

    /* -------------------------------------
       Other page sections
    ------------------------------------- */

    .solution-categories {
        width: 100%;
        flex-direction: column;
    }

    .solution-category {
        text-align: center;
    }

    .project-visual {
        min-height: 300px;
    }

    .section-space {
        padding: 65px 0;
    }
}


/* =========================================
   SMALL MOBILE DEVICES
   575.98px and below
========================================= */

@media (max-width: 575.98px) {


    /* -------------------------------------
       Hero
    ------------------------------------- */

    .hero {
        padding-bottom: 55px;
    }

    .hero-container {
        padding-top: 58px;
        padding-bottom: 92px;
    }

    .hero-eyebrow {
        max-width: 100%;

        padding: 0.45rem 0.7rem;

        font-size: 0.62rem;
        line-height: 1.35;
        text-align: left;
    }

    .hero-title {
        font-size: clamp(2.2rem, 11vw, 3rem);
        letter-spacing: -0.025em;
    }

    .hero-text {
        font-size: 0.96rem;
        line-height: 1.6;
    }

    .hero-actions {
        gap: 0.75rem;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        min-height: 52px;
        padding: 0.82rem 1.15rem;

        font-size: 0.8rem;
    }

    .hero-capabilities {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        max-width: 420px;
        margin-right: auto;
        margin-left: auto;

        text-align: left;
    }

    .hero-capabilities li {
        align-items: flex-start;

        font-size: 0.78rem;
    }

    /* -------------------------------------
       Dashboard
    ------------------------------------- */

    .hero-visual {
        margin-top: 2rem;
        padding-top: 0.5rem;
    }

    .hero-dashboard-frame {
        padding: 0.75rem;

        border-radius: 14px;
    }

    .dashboard-label {
        font-size: 0.62rem;
    }

    .dashboard-header strong {
        font-size: 0.88rem;
    }

    .dashboard-status {
        padding: 0.28rem 0.48rem;

        font-size: 0.62rem;
    }

    .dashboard-kpi {
        padding: 0.65rem;
    }

    .dashboard-kpi span {
        font-size: 0.64rem;
    }

    .dashboard-kpi strong {
        font-size: 1.1rem;
    }

    .dashboard-kpi small {
        font-size: 0.58rem;
    }

    .dashboard-chart {
        padding: 0.72rem;
    }

    .chart-heading {
        gap: 0.5rem;
    }

    .chart-heading strong {
        font-size: 0.74rem;
    }

    .chart-heading span {
        font-size: 0.57rem;
    }

    .chart-bars {
        height: 105px;
        gap: 0.32rem;

        margin-top: 0.8rem;
    }

    .chart-bars span {
        min-width: 5px;
    }

    .hero-divider svg {
        height: 65px;
    }
}


/* =========================================
   EXTRA-SMALL MOBILE DEVICES
   399.98px and below
========================================= */

@media (max-width: 399.98px) {

    .hero-container {
        padding-top: 48px;
        padding-bottom: 82px;
    }

    .hero-title {
        font-size: 2.05rem;
    }

    .hero-eyebrow span {
        white-space: normal;
    }

    .hero-capabilities {
        grid-template-columns: 1fr;

        width: fit-content;
    }

    .dashboard-status {
        display: none;
    }

    .dashboard-header {
        align-items: flex-start;
    }

    .chart-bars {
        height: 90px;
        gap: 0.25rem;
    }

    .hero-divider svg {
        height: 55px;
    }
}


/* =========================================
   TOUCH DEVICES
========================================= */

@media (hover: none) and (pointer: coarse) {

    .btn-primary-custom:hover,
    .btn-secondary-custom:hover,
    .mega-footer-cta:hover {
        transform: none;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        min-height: 48px;
    }
}


/* =========================================
   REDUCED MOTION ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .hero-dashboard-frame {
        transform: none;
    }

    .btn-primary-custom:hover,
    .btn-secondary-custom:hover,
    .btn-primary-custom:hover i {
        transform: none;
    }
}


/* =========================================
   HIGH-CONTRAST PREFERENCE
========================================= */

@media (prefers-contrast: more) {

    .hero-text,
    .hero-capabilities li {
        color: #ffffff;
    }

    .hero-eyebrow {
        border-color: #ffffff;
    }

    .btn-secondary-custom {
        border-color: #ffffff;
    }

    .dashboard-kpi,
    .dashboard-chart,
    .dashboard-pipeline {
        border-color: #64748b;
    }
}
