/* =================================
   Hero
================================= */

#hero .bg-primary-subtle {
    background-color: var(--brand-blue-soft) !important;
}

#hero .border-primary-subtle {
    border-color: var(--brand-blue-border) !important;
}

/* =================================
   Problems
================================= */

.home-problems-section {
    background-color: var(--brand-light);
}

.home-problems-description {
    max-width: 860px;
    margin-right: auto;
    margin-left: auto;

    color: rgba(15, 23, 42, 0.68);
}


/* =================================
   Problem cards
================================= */

.home-problem-card {
    min-height: 260px;

    color: var(--brand-dark);
    background-color: var(--brand-white);

    border: 1px solid var(--brand-border);

    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.05);

    transition: transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.home-problem-card:hover {
    transform: translateY(-4px);

    border-color: var(
            --home-accent-border,
            var(--brand-blue-border)
    );

    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05),
    0 16px 34px rgba(15, 23, 42, 0.09);
}


/* =================================
   Problem icons
================================= */

.home-problem-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;
    flex-shrink: 0;

    color: var(
            --home-accent,
            var(--brand-blue)
    );

    background-color: var(
            --home-accent-soft,
            var(--brand-blue-soft)
    );

    font-size: 30px;
    line-height: 1;

    transition: transform 180ms ease;
}

.home-problem-card:hover .home-problem-icon {
    transform: scale(1.04);
}


/* =================================
   Card text
================================= */

.home-problem-text {
    color: rgba(15, 23, 42, 0.68);

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


/* =================================
   Responsive
================================= */

@media (max-width: 767.98px) {
    .home-problem-card {
        min-height: auto;
    }

    .home-problem-icon {
        width: 58px;
        height: 58px;

        font-size: 27px;
    }
}


/* =================================
   Reduced motion
================================= */

@media (prefers-reduced-motion: reduce) {
    .home-problem-card,
    .home-problem-icon {
        transition: none;
    }

    .home-problem-card:hover,
    .home-problem-card:hover .home-problem-icon {
        transform: none;
    }
}

/* =================================
   Directions
================================= */

.home-directions-description {
    max-width: 860px;
    margin-right: auto;
    margin-left: auto;

    color: rgba(15, 23, 42, 0.68);
}


/* =================================
   Direction card
================================= */

.home-direction-card {
    min-height: 380px;
}


/* =================================
   Link
================================= */

.home-direction-link {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    color: var(
            --home-accent,
            var(--brand-blue)
    );

    font-weight: 600;
    text-decoration: none;

    transition: color 160ms ease;
}


.home-direction-link:hover {
    color: var(--brand-dark);
}


/* =================================
   Responsive
================================= */

@media (max-width: 1199.98px) {
    .home-direction-card {
        min-height: 360px;
    }
}


@media (max-width: 767.98px) {
    .home-direction-card {
        min-height: auto;
    }

    .home-direction-icon {
        width: 64px;
        height: 64px;

        font-size: 1.8rem;
    }
}


/* =================================
   Homepage solutions
================================= */

.home-solutions-description {
    max-width: 760px;
}


/* Cards */

.home-solution-card {
    min-height: 300px;

    border-color: var(--brand-border) !important;

    background-color: var(--brand-white);

    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03),
    0 8px 24px rgba(15, 23, 42, 0.05);

    transition: transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}


.home-solution-card:hover {
    transform: translateY(-3px);

    border-color: var(
            --home-accent-border,
            var(--brand-blue-border)
    ) !important;

    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05),
    0 14px 30px rgba(15, 23, 42, 0.08);
}


/* Badge */

.home-solution-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.45rem;

    padding: 0.4rem 0.65rem;

    color: var(
            --home-accent,
            var(--brand-blue)
    );

    background-color: var(
            --home-accent-soft,
            var(--brand-blue-soft)
    );

    border-radius: 0.5rem;

    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1;
}


/* Link */

.home-solution-link {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    color: var(
            --home-accent,
            var(--brand-blue)
    );

    font-weight: 500;
    text-decoration: none;
}


.home-solution-link:hover {
    color: var(--brand-dark);
}


.home-solution-link i {
    transition: transform 160ms ease;
}


.home-solution-link:hover i {
    transform: translateX(4px);
}


/* =================================
   Tabs
================================= */

.home-solutions-tabs {
    border-color: var(--brand-border) !important;

    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}


.home-solutions-tabs .nav {
    scrollbar-width: none;
}


.home-solutions-tabs .nav::-webkit-scrollbar {
    display: none;
}


.home-solutions-tabs .nav-link {
    min-height: 48px;

    padding: 0.75rem 1rem;

    color: var(--brand-dark);

    background-color: transparent;

    border: 1px solid transparent;
    border-radius: 0.75rem;

    font-weight: 500;

    white-space: nowrap;
}


.home-solutions-tabs .nav-link:hover {
    background-color: var(--brand-light);

    border-color: var(--brand-border);
}


.home-solutions-tabs .nav-link.active {
    color: var(--brand-blue);

    background-color: var(--brand-blue-soft);

    border-color: var(--brand-blue-border);
}


/* Responsive */

@media (max-width: 767.98px) {
    .home-solution-card {
        min-height: auto;
    }
}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .home-solution-card,
    .home-solution-link i {
        transition: none;
    }

    .home-solution-card:hover {
        transform: none;
    }
}

/* =================================
   Process
================================= */

.home-process-section {
    background-color: var(--brand-dark-deep);
}


/* =================================
   Step
================================= */

.home-process-step {
    padding-right: 1.5rem;
}


/* =================================
   Icon
================================= */

.home-process-icon {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;
    flex: 0 0 64px;

    background-color: var(--brand-dark);

    border: 1px solid rgba(203, 213, 225, 0.28);
    border-radius: 50%;

    box-shadow: 0 0 0 5px var(--brand-dark-deep);

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


/* =================================
   Connecting line
================================= */

.home-process-line {
    height: 1px;

    margin-left: 0.75rem;

    background-color: rgba(96, 165, 250, 0.28);
}


/* =================================
   Desktop
================================= */

@media (min-width: 1200px) {
    .home-process-step {
        padding-right: 1rem;
    }

    .home-process-flow {
        min-height: 64px;
    }
}


/* =================================
   Tablet / mobile
================================= */

@media (max-width: 1199.98px) {
    .home-process-step {
        padding: 1.5rem;

        background-color: var(--brand-dark);

        border: 1px solid rgba(203, 213, 225, 0.16);
        border-radius: 1rem;
    }

    .home-process-icon {
        box-shadow: none;
    }
}

/* =================================
   Existing systems / integration
================================= */

.home-integration-panel,
.home-integration-layer {
    min-width: 0;
}


/* Icon */

.home-integration-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    flex: 0 0 42px;

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


/* Middle block */

.home-integration-layer {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.07);
}


/* Desktop */

@media (min-width: 1200px) {
    .home-integration-panel,
    .home-integration-layer {
        min-height: 100%;
    }
}

/* =================================
   Principles
================================= */

.home-principle {
    max-width: 310px;
}


/* Icon */

.home-principle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;

    color: var(
            --home-accent,
            var(--brand-blue)
    );

    background-color: var(
            --home-accent-soft,
            var(--brand-blue-soft)
    );

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


/* Desktop */

@media (min-width: 1200px) {
    .home-principle {
        padding-right: 1.5rem;
    }
}


/* Mobile */

@media (max-width: 767.98px) {
    .home-principle {
        max-width: none;
    }
}

/* =================================
   Price directions
================================= */

.home-price-direction {
    min-height: 160px;

    border-color: var(--brand-border) !important;

    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03),
    0 8px 24px rgba(15, 23, 42, 0.05);

    transition: transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}


.home-price-direction:hover {
    transform: translateY(-3px);

    border-color: var(--brand-blue-border) !important;

    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05),
    0 14px 30px rgba(15, 23, 42, 0.08);
}


/* Icon */

.home-price-direction-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

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


/* Mobile */

@media (max-width: 575.98px) {
    .home-price-direction {
        min-height: 145px;

        padding: 1rem !important;
    }
}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .home-price-direction {
        transition: none;
    }

    .home-price-direction:hover {
        transform: none;
    }
}

/* =================================
   About
================================= */

.home-about-card {
    min-height: 230px;

    border-color: var(--brand-border) !important;

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}


.home-about-card:hover {
    transform: translateY(-3px);

    background-color: var(--brand-white) !important;

    border-color: var(--brand-blue-border) !important;
}


.home-about-card-icon {
    width: 52px;
    height: 52px;

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


.home-about-card .bi-arrow-right {
    transition: transform 160ms ease;
}


.home-about-card:hover .bi-arrow-right {
    transform: translateX(4px);
}


/* =================================
   Final CTA
================================= */

.home-final-section {
    color: var(--brand-light);

    background-color: var(--brand-dark-deep);
}


.home-final-action {
    background-color: var(--brand-dark);

    border-color: rgba(203, 213, 225, 0.18) !important;
}


/* =================================
   Mobile
================================= */

@media (max-width: 767.98px) {
    .home-about-card {
        min-height: auto;
    }
}


/* =================================
   Reduced motion
================================= */

@media (prefers-reduced-motion: reduce) {
    .home-about-card,
    .home-about-card .bi-arrow-right {
        transition: none;
    }

    .home-about-card:hover {
        transform: none;
    }
}
