/* T4tech project call to action
   Sits at the foot of a project write-up and hands the reader over to the
   contact page. Dark panel so it reads as a deliberate break from the article. */

.t4pc {
    --t4pc-green: #37ca8a;
    --t4pc-green-dark: #2db377;
    --t4pc-ink: #ffffff;

    /* Layout only. On a boxed column this is a no-op; on the full-width
       Projects template it keeps the panel in line with the cards above. */
    box-sizing: border-box;
    max-width: 1140px;
    margin: 64px auto 56px;
    clear: both;
}

/* Full-width templates have no column padding of their own. */
.t4pc--wide {
    max-width: 1180px;
    padding: 0 20px;
}

.t4pc__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px 40px;
    padding: 42px 46px;
    border: 1px solid transparent;
    border-radius: 14px;
    /* Dark panel inside a hairline gradient frame. */
    background-image:
        radial-gradient(90% 130% at 100% 0%, rgba(55, 202, 138, 0.16) 0%, rgba(55, 202, 138, 0) 55%),
        linear-gradient(160deg, #14303c 0%, #0f2029 55%, #0c191f 100%),
        linear-gradient(135deg, rgba(55, 202, 138, 0.55) 0%, rgba(55, 202, 138, 0.08) 42%, rgba(255, 255, 255, 0.10) 100%);
    background-origin: padding-box, padding-box, border-box;
    background-clip: padding-box, padding-box, border-box;
    box-shadow: 0 18px 40px -24px rgba(12, 26, 33, 0.55);
}

/* Wraps the actions onto their own line once the panel itself gets narrow,
   which is what matters here - the column width, not the viewport width. */
.t4pc__copy {
    flex: 1 1 360px;
    min-width: 0;
}

.t4pc__eyebrow {
    margin: 0 0 10px;
    color: var(--t4pc-green);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1.3;
}

.t4pc .t4pc__title {
    margin: 0 0 12px;
    padding: 0;
    color: var(--t4pc-ink);
    font-size: clamp(23px, 2.4vw, 30px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.01em;
}

.t4pc .t4pc__title::after {
    content: none; /* some themes hang a rule off headings */
}

.t4pc__text {
    margin: 0;
    max-width: 52ch;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15.5px;
    line-height: 1.65;
}

.t4pc__actions {
    flex: 0 0 auto;
    text-align: center;
}

.t4pc .t4pc__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: 0;
    border-radius: 999px;
    background: var(--t4pc-green);
    color: #06231a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 24px -10px rgba(55, 202, 138, 0.75);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.t4pc .t4pc__btn:hover,
.t4pc .t4pc__btn:focus {
    background: var(--t4pc-green-dark);
    color: #06231a;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -12px rgba(55, 202, 138, 0.85);
    text-decoration: none;
}

.t4pc .t4pc__btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.t4pc__arrow {
    transition: transform 0.2s ease;
}

.t4pc .t4pc__btn:hover .t4pc__arrow,
.t4pc .t4pc__btn:focus .t4pc__arrow {
    transform: translateX(4px);
}

.t4pc__alt {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13.5px;
    line-height: 1.4;
}

.t4pc .t4pc__alt a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.t4pc .t4pc__alt a:hover,
.t4pc .t4pc__alt a:focus {
    color: var(--t4pc-green);
    border-bottom-color: var(--t4pc-green);
}

/* Phones: tighten the panel and let the button own the full line. */
@media (max-width: 600px) {
    .t4pc {
        margin-top: 44px;
        margin-bottom: 40px;
    }

    .t4pc__inner {
        gap: 24px;
        padding: 30px 24px;
    }

    .t4pc__actions {
        width: 100%;
    }

    .t4pc .t4pc__btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .t4pc__inner {
        padding: 26px 20px;
    }

    .t4pc .t4pc__btn {
        padding: 14px 20px;
        font-size: 14.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .t4pc .t4pc__btn,
    .t4pc__arrow {
        transition: none;
    }

    .t4pc .t4pc__btn:hover,
    .t4pc .t4pc__btn:focus {
        transform: none;
    }

    .t4pc .t4pc__btn:hover .t4pc__arrow,
    .t4pc .t4pc__btn:focus .t4pc__arrow {
        transform: none;
    }
}
