/* ============================================================
   ENTRY BUTTONS (BUSINESS / COMMUNITY / EACHOTHER)
   File: entry-buttons.css
============================================================ */

/* ------------------------------
   BUTTON GRID WRAPPER
------------------------------ */
.connect-entry-buttons {
    position: relative;
    z-index: 10;
}

/* The grid is what needs the negative margin, not the container */
.connect-entry-buttons__grid {
    margin: -180px auto 60px auto; /* HOMEPAGE OVERLAP */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ------------------------------
   BUTTON BASE STYLE
------------------------------ */
.connect-entry-button {
    padding: 30px;
    border-radius: 8px;
    color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.connect-entry-button:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

/* ------------------------------
   BUTTON COLOUR SCHEMES
------------------------------ */
.connect-entry-button--business {
    background: linear-gradient(135deg, var(--connect-blue) 50%, #1a6fd8 100%);
}

.connect-entry-button--community {
    background: linear-gradient(135deg, var(--connect-green) 50%, #2fbf6e 100%);
}

.connect-entry-button--eachother {
    background: linear-gradient(135deg, var(--connect-orange) 50%, #ff8a3d 100%);
}

/* ------------------------------
   BUTTON CONTENT
------------------------------ */
.connect-entry-button__title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 10px;
}

.connect-entry-button__text {
    margin-bottom: 20px;
    text-align: center;
}

/* ------------------------------
   ICON CIRCLE
------------------------------ */
.connect-entry-button__icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    position: relative;
    overflow: visible;
}

.connect-entry-button__icon-circle img {
    width: 150px;
    height: 150px;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

/* ------------------------------
   ACTION BUTTON
------------------------------ */
.connect-entry-button__action {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 1px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
}

.connect-entry-button__action:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Action button colours */
.connect-entry-button--business .connect-entry-button__action {
    background: #0d47a1;
}

.connect-entry-button--community .connect-entry-button__action {
    background: #1e8f4f;
}

.connect-entry-button--eachother .connect-entry-button__action {
    background: #cc5f00;
}

/* ============================================================
   MOBILE (PORTRAIT)
============================================================ */
@media (max-width: 600px) and (orientation: portrait) {

    /* Mobile overlap is smaller */
    .connect-entry-buttons__grid {
        margin: -60px auto 40px auto !important;
        display: block !important;
    }

    .connect-entry-button {
        width: 100% !important;
        padding: 12px !important;
        border-radius: 10px !important;
        margin-bottom: 16px !important;
        display: block !important;
    }

    .connect-entry-button__inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .connect-entry-button__icon-circle {
        width: 48px !important;
        height: 48px !important;
        flex-shrink: 0 !important;
        margin-top: 4px !important;
        position: relative !important;
    }

    .connect-entry-button__icon-circle img {
        width: 64px !important;
        height: 64px !important;
        top: 50% !important;
        left: 50% !important;
        position: absolute !important;
        transform: translate(-50%, -50%) !important;
    }

    .connect-entry-button__content {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .connect-entry-button__title {
        font-size: 18px !important;
        line-height: 1.2 !important;
        margin: 0 0 4px 0 !important;
        text-align: center !important;
    }

    .connect-entry-button__text {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .connect-entry-button__action {
        width: 100% !important;
        display: block !important;
        padding: 1px 1px !important;
        text-align: center !important;
        font-size: 14px !important;
        margin-top: 6px !important;
    }
}
