/* Business homepage: keep these styles separate from the portal and project pages. */
.business-home .header-container {
    max-width: 1160px;
}

.business-home .hero-title-main {
    margin-bottom: .65rem;
}

.business-home .hero-title-sub {
    color: #6b6f77;
    font-size: clamp(1.45rem, 2.6vw, 2.15rem);
    font-weight: 500;
    line-height: 1.3;
}

.business-home .header p {
    max-width: 52rem;
    color: #60646c;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

.business-home .grid-container {
    margin-bottom: 3.5rem;
}

.business-home .card {
    min-width: 0;
    min-height: 20.5rem;
    border: 1px solid #e4e5e8;
    box-shadow: 0 1px 2px rgb(0 0 0 / 3%);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.business-home .card:hover {
    border-color: #c9cbd0;
}

.business-home .card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.15rem;
    border-radius: 0;
    background: transparent;
}

.business-home .card-icon img {
    display: block;
    width: 48px;
    height: 48px;
}

.business-home .card h3 {
    min-height: 3.25rem;
    margin-bottom: 1rem;
    color: #111;
    font-size: 1.3rem;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.business-home .card p {
    margin-bottom: 0;
    color: #45484e;
    line-height: 1.5;
}

.business-home .expand-icon {
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border: 1px solid #ececef;
    box-shadow: none;
}

.business-home .expand-icon i {
    color: #45484e;
}

.business-home .card.expanded {
    min-height: 0;
}

.business-home .card.expanded h3 {
    min-height: 0;
}

.integration-logos {
    display: flex;
    align-items: center;
    gap: .85rem;
    width: max-content;
    max-width: 100%;
    margin-top: 1.1rem;
    padding: 0;
    list-style: none;
}

.integration-logos li {
    display: flex;
    align-items: center;
    min-width: 0;
}

.integration-logos li + li {
    border-left: 1px solid #e0e2e6;
    padding-left: .85rem;
}

.integration-logos img {
    display: block;
    max-width: 100%;
    object-fit: contain;
}

.business-home .social a:focus-visible,
.business-home .btn-primary:focus-visible {
    outline: 2px solid #111;
    outline-offset: 5px;
}

@media (min-width: 641px) and (max-width: 1000px) {
    .business-home .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .business-home .header-container {
        padding: 0 1.25rem;
    }

    .business-home .header h1 {
        font-size: clamp(1.7rem, 8.5vw, 2.45rem);
    }

    .business-home .hero-title-sub {
        max-width: 26rem;
        margin-inline: auto;
    }

    .business-home .grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .business-home .card {
        min-height: 0;
        padding: 1.5rem;
    }

    .business-home .card-icon,
    .business-home .card-icon img {
        width: 40px;
        height: 40px;
    }

    .business-home .card h3 {
        min-height: 0;
        margin-bottom: .75rem;
    }

    .business-home .expand-icon {
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }

    .business-home .grid-container {
        margin-bottom: 2.5rem;
    }
}

body.contact-dialog-open {
    overflow: hidden;
}

.contact-loading,
.contact-success {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    margin: auto;
    max-width: calc(100vw - 2rem);
    max-height: calc(100dvh - 2rem);
    border: 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.contact-loading::backdrop,
.contact-success::backdrop {
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(3px);
}

.contact-loading {
    padding: 2rem;
    background: transparent;
    color: #fff;
}

.contact-loading p {
    margin: 1rem 0 0;
    font-weight: 600;
}

.contact-loading p:focus {
    outline: none;
}

.contact-spinner {
    width: 48px;
    height: 48px;
    margin: auto;
    border: 4px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: contact-spin .8s linear infinite;
}

.contact-success {
    width: 440px;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    background: #fff;
    color: #171717;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .2);
}

.contact-success-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: #f1f1f1;
    font-size: 1.75rem;
}

.contact-success h2 {
    margin: 0 0 .75rem;
    font-size: 1.5rem;
}

.contact-success p {
    margin: 0 0 1.75rem;
    line-height: 1.6;
}

.contact-success button {
    padding: .8rem 2rem;
    border: 0;
    border-radius: 4px;
    background: #000;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.contact-success button:focus-visible {
    outline: 2px solid #000;
    outline-offset: 4px;
}

@keyframes contact-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .contact-spinner { animation: none; }
}
