/* Barista Hire CTA — split cards matching brand mock */

.barista-cta {
    --cta-brown: #B77211;
    --cta-brown-dark: #9a5f0e;
    --cta-sage: #B77211;
    --cta-sage-dark: #9a5f0e;
    --cta-cream: #f7f1e8;
    --cta-mist: #eef1f4;
    --cta-ink: #1a1a1a;
}

.barista-cta > .row {
    align-items: stretch;
}

.barista-cta > .row > [class*="col-"] {
    display: flex;
}

.barista-cta .barista-cta-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    flex: 1 1 auto;
    width: 100%;
    min-height: 340px;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    isolation: isolate;
}

.barista-cta .barista-cta-card--owner {
    background: var(--cta-cream);
}

.barista-cta .barista-cta-card--barista {
    background: var(--cta-mist);
}

.barista-cta .barista-cta-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 20px 36px 32px;
    max-width: 28rem;
}

.barista-cta .barista-cta-title {
    margin: 0 0 18px;
    color: var(--cta-ink);
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.barista-cta .barista-cta-list {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.barista-cta .barista-cta-list li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 1.55rem;
    color: #3a3a3a;
    line-height: 1.35;
    white-space: nowrap;
}

.barista-cta .barista-cta-list li:last-child {
    margin-bottom: 0;
}

.barista-cta .barista-cta-list li::before {
    content: "";
    position: absolute;
    top: 0.28em;
    left: 0;
    width: 0.95rem;
    height: 0.95rem;
    background-repeat: no-repeat;
    background-size: contain;
}

.barista-cta .barista-cta-card--owner .barista-cta-list li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='7.25' stroke='%23B77211' stroke-width='1.4'/%3E%3Cpath d='M4.6 8.2l2.1 2.1 4.7-4.7' stroke='%23B77211' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.barista-cta .barista-cta-card--barista .barista-cta-list li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='7.25' stroke='%23B77211' stroke-width='1.4'/%3E%3Cpath d='M4.6 8.2l2.1 2.1 4.7-4.7' stroke='%23B77211' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.barista-cta .barista-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    margin: 0;
    padding: 0.72rem 1.15rem;
    border: none;
    border-radius: 10px;
    color: #fff !important;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.barista-cta .barista-cta-card--owner .barista-cta-btn {
    background: var(--cta-brown) !important;
}

.barista-cta .barista-cta-card--owner .barista-cta-btn:hover {
    background: var(--cta-brown-dark) !important;
    color: #fff !important;
}

.barista-cta .barista-cta-card--barista .barista-cta-btn {
    background: var(--cta-sage) !important;
}

.barista-cta .barista-cta-card--barista .barista-cta-btn:hover {
    background: var(--cta-sage-dark) !important;
    color: #fff !important;
}

.barista-cta .barista-cta-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58%;
    z-index: 0;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Nudge portraits left so arms/shoulders aren’t clipped on the right */
.barista-cta .barista-cta-card--owner .barista-cta-media {
    background-position: 68% center;
    mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 100%);
}

.barista-cta .barista-cta-card--barista .barista-cta-media {
    background-position: 62% center;
    mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 100%);
}

.barista-cta .barista-cta-card--owner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        var(--cta-cream) 0%,
        var(--cta-cream) 38%,
        rgba(247, 241, 232, 0.72) 52%,
        rgba(247, 241, 232, 0) 68%
    );
}

.barista-cta .barista-cta-card--barista::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        var(--cta-mist) 0%,
        var(--cta-mist) 38%,
        rgba(238, 241, 244, 0.72) 52%,
        rgba(238, 241, 244, 0) 68%
    );
}

@media (max-width: 991.98px) {
    .barista-cta .barista-cta-card {
        min-height: 320px;
    }

    .barista-cta .barista-cta-body {
        max-width: 22rem;
        padding: 28px 16px 28px 22px;
    }

    .barista-cta .barista-cta-media {
        width: 50%;
    }
}

@media (max-width: 575.98px) {
    .barista-cta .barista-cta-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .barista-cta .barista-cta-title {
        white-space: nowrap;
    }

    .barista-cta .barista-cta-list li {
        white-space: normal;
    }

    .barista-cta .barista-cta-body {
        max-width: none;
        padding: 24px 20px 18px;
    }

    .barista-cta .barista-cta-media {
        position: relative;
        width: 100%;
        height: 220px;
        mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 100%);
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 100%);
    }

    .barista-cta .barista-cta-card--owner::after,
    .barista-cta .barista-cta-card--barista::after {
        background: none;
    }

    .barista-cta .barista-cta-card {
        display: flex;
        flex-direction: column;
    }

    .barista-cta .barista-cta-media {
        order: -1;
    }
}
