/*
 * CTA strip (inc/cta.php): an Ink Black strip inside a light or terracotta section,
 * with a short heading, one line and a hire-orange button (Ink Black label, 5.1:1).
 * Self-contained, with token fallbacks.
 */

.tr-cta-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    margin: clamp(24px, 3vw, 36px) 0 0;
    padding: clamp(18px, 2.5vw, 28px) clamp(20px, 3vw, 32px);
    color: var(--tr-cream, #FFFDF7);
    background-color: var(--tr-black, #1C1C1C);
    border-radius: var(--tr-radius-card, 12px);
}

.tr-cta-strip :focus-visible {
    outline: 3px solid var(--tr-tan, #C8A87A);
    outline-offset: 3px;
}

.tr-cta-strip__text {
    flex: 1 1 22rem;
    min-width: 0;
}

/* Selectors carry .tr-page so the content pages' heading and paragraph rules don't win */
.tr-cta-strip .tr-cta-strip__title,
.tr-page .tr-cta-strip .tr-cta-strip__title {
    margin: 0;
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--tr-cream, #FFFDF7);
    text-wrap: balance;
}

.tr-cta-strip .tr-cta-strip__line,
.tr-page .tr-cta-strip .tr-cta-strip__line {
    margin: 6px 0 0;
    max-width: 60ch;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--tr-cream, #FFFDF7);
}

.tr-cta-strip .tr-cta-strip__button,
.tr-cta-strip .tr-cta-strip__button:visited,
.tr-cta-strip .tr-cta-strip__button:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 48px;
    padding: 12px 22px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    color: var(--tr-black, #1C1C1C);
    background-color: var(--tr-hire-orange, #E8632A);
    border-radius: var(--tr-radius-field, 8px);
    transition: background-color 180ms ease, transform 180ms var(--tr-ease-out, ease-out);
}

.tr-cta-strip .tr-cta-strip__button:hover {
    color: var(--tr-black, #1C1C1C);
    background-color: var(--tr-hire-hover, #F07A45);
}

.tr-cta-strip .tr-cta-strip__button:active {
    transform: translateY(1px);
}

/* The closing form card the buttons jump to: clear of the sticky header */
#discovery-call-form {
    scroll-margin-top: calc(var(--tr-header-height, 85px) + 16px);
}

@media (max-width: 719px) {
    .tr-cta-strip .tr-cta-strip__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tr-cta-strip .tr-cta-strip__button {
        transition-property: background-color;
    }

    .tr-cta-strip .tr-cta-strip__button:active {
        transform: none;
    }
}

/* --- R7: comparison table with one column lifted (tr-table--versus) ---
   The picked column (inc/content-page.php adds tr-col-pick) sits on Ink Black with
   cream text and a Rope Tan header; the row labels in the left-hand column are bold. */

.tr-page .tr-table--versus .tr-col-pick {
    color: var(--tr-cream, #FFFDF7);
    background-color: var(--tr-black, #1C1C1C);
    border-color: var(--tr-black, #1C1C1C);
}

.tr-page .tr-table--versus thead .tr-col-pick {
    color: var(--tr-tan, #C8A87A);
    border-radius: var(--tr-radius-card, 12px) var(--tr-radius-card, 12px) 0 0;
}

.tr-page .tr-table--versus tbody tr + tr > .tr-col-pick {
    border-top-color: rgba(255, 253, 247, 0.18);
}

.tr-page .tr-table--versus tbody tr:last-child .tr-col-pick {
    border-radius: 0 0 var(--tr-radius-card, 12px) var(--tr-radius-card, 12px);
}

.tr-page .tr-table--versus tbody td:first-child {
    font-weight: 700;
}

.tr-page .tr-table--versus .tr-col-pick a {
    color: var(--tr-cream, #FFFDF7);
    text-decoration-color: var(--tr-tan, #C8A87A);
}

@media (max-width: 719px) {
    /* Stacked cards on phones: the picked cell keeps its panel, with its label in tan */
    .tr-page .tr-table--versus tbody tr .tr-col-pick,
    .tr-page .tr-table--versus tbody tr:last-child .tr-col-pick {
        border-radius: var(--tr-radius-field, 8px);
    }

    .tr-page .tr-table--versus td.tr-col-pick[data-label]::before {
        color: var(--tr-tan, #C8A87A);
    }
}
