/* =========================================================
   BLOOOW CONTACT / AGENT DIRECTORY
   Simple public list of active BLOOOW agents.
========================================================= */

.contact-page .site-main {
    min-height: 62vh;
}

.agents-directory {
    width: min(calc(100% - 28px), 1280px);
    margin: 0 auto;
    padding: 36px 0 56px;
}

.agents-directory-heading {
    max-width: 760px;
    padding-bottom: 24px;
}

.agents-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--page-text);
    font-size: 0.67rem;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.agents-directory-heading h1 {
    margin: 0;
    color: var(--page-text);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.8rem, 6vw, 5.1rem);
    font-weight: 700;
    line-height: 0.9;
}

.agents-directory-heading p {
    max-width: 640px;
    margin: 18px 0 0;
    color: var(--page-text);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.6;
    opacity: 0.7;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.agent-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--page-text);
    border-radius: 12px;
    background: var(--page-bg);
    color: var(--page-text);
}

.agent-card-brand {
    min-height: 190px;
    padding: 20px;
    display: grid;
    place-items: center;
    border-bottom: 1px solid var(--page-text);
    background: #ffffff;
    color: #000000;
}

.agent-card-logo {
    width: min(100%, 210px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.agent-card-portrait {
    width: 78px;
    height: 112px;
    display: block;
    object-fit: contain;
}

.agent-card-wordmark {
    width: min(120px, 55%);
    height: auto;
    display: block;
    object-fit: contain;
    filter: none;
}

.agent-card-body {
    padding: 17px;
    background: var(--page-bg);
    color: var(--page-text);
}

.agent-card h2 {
    margin: 0 0 15px;
    color: currentColor;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.25;
    text-align: center;
}

.agent-call-button {
    min-height: 46px;
    width: 100%;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--page-text);
    border-radius: 9px;
    background: var(--page-text);
    color: var(--page-bg);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 850;
    white-space: nowrap;
}

.agent-call-button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.agent-call-button:hover,
.agent-call-button:focus-visible {
    outline: none;
    background: var(--page-bg);
    color: var(--page-text);
}

.agent-card:focus-within .agent-card-body,
.agent-card:hover .agent-card-body {
    background: var(--page-text);
    color: var(--page-bg);
}

.agent-card:hover .agent-call-button,
.agent-card:focus-within .agent-call-button {
    border-color: var(--page-bg);
    background: var(--page-bg);
    color: var(--page-text);
}

.agent-card:hover .agent-call-button:hover,
.agent-card:focus-within .agent-call-button:focus-visible {
    background: var(--page-text);
    color: var(--page-bg);
}

.agents-empty {
    padding: 34px;
    border: 1px solid var(--page-text);
    border-radius: 12px;
    color: var(--page-text);
    text-align: center;
}

.agents-empty strong {
    display: block;
    margin-bottom: 6px;
}

.agents-empty p {
    margin: 0;
    opacity: 0.65;
}

@media (max-width: 1080px) {
    .agents-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .agents-directory {
        padding-top: 28px;
    }

    .agents-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .agents-directory {
        width: calc(100% - 18px);
        padding: 22px 0 40px;
    }

    .agents-directory-heading {
        padding-bottom: 18px;
    }

    .agents-directory-heading h1 {
        font-size: clamp(2.7rem, 15vw, 4rem);
    }

    .agents-grid {
        gap: 9px;
    }

    .agent-card-brand {
        min-height: 148px;
        padding: 14px;
    }

    .agent-card-logo {
        width: min(100%, 170px);
        gap: 5px;
    }

    .agent-card-portrait {
        width: 58px;
        height: 88px;
    }

    .agent-card-wordmark {
        width: min(95px, 56%);
    }

    .agent-card-body {
        padding: 12px;
    }

    .agent-card h2 {
        margin-bottom: 11px;
        font-size: 0.86rem;
    }

    .agent-call-button {
        min-height: 42px;
        padding: 0 8px;
        gap: 6px;
        font-size: 0.72rem;
    }

    .agent-call-button svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 360px) {
    .agents-grid {
        grid-template-columns: 1fr;
    }

    .agent-card-brand {
        min-height: 175px;
    }
}

/* =========================================================
   BLOOOW-BOT
========================================================= */

.bot-offline-notice {
    margin: 0 0 18px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--page-text);
    border-radius: 10px;
    background: var(--page-text);
    color: var(--page-bg);
    font-size: 0.78rem;
}

.bot-offline-notice span {
    opacity: 0.72;
}

.agent-card-bot {
    border-width: 2px;
}

.agent-card-meta {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: currentColor;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.agent-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.agent-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.agent-status.offline {
    opacity: 0.45;
}

.agent-card-description {
    min-height: 54px;
    margin: -2px 0 14px;
    color: currentColor;
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.45;
    opacity: 0.7;
}

.agent-bot-button {
    justify-content: space-between;
}

.agent-button-disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.agent-card-offline {
    opacity: 0.72;
}

.agent-card-offline:hover .agent-card-body,
.agent-card-offline:focus-within .agent-card-body {
    background: var(--page-bg);
    color: var(--page-text);
}

@media (max-width: 560px) {
    .bot-offline-notice {
        align-items: flex-start;
        flex-direction: column;
    }

    .agent-card-description {
        min-height: 0;
    }
}

.agent-button-disabled:hover,
.agent-button-disabled:focus-visible {
    background: var(--page-text);
    color: var(--page-bg);
}
