/* ============================================================
   DG KNITTING — CLOSING CTA BAND
   One shared treatment for the "Ready to build a lasting
   partnership?" block on every page.

   The old version was a flat crimson→orchid gradient with the
   heading inheriting the dark ink colour from the design system,
   so it read as near-black text on red. This replaces it with a
   dark band: brand crimson stays as the accent and the action,
   not as the whole surface.

   Loaded LAST so it wins over the per-page cta rules in
   style.css / about-us.css / strength.css / fabric.css.
   ============================================================ */

.contact-cta-section,
.about-cta-section,
.strength-cta-section,
.fabric-cta-section {
    padding: clamp(48px, 7vw, 88px) 0;
    background: transparent;
}

/* ---------------------------------------------------- the band */
.contact-cta-section .cta-card,
.about-cta-section .cta-card,
.strength-cta-section .cta-card,
.fabric-cta-section .cta-card,
.cta-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(32px, 5vw, 64px);
    border-radius: 28px;
    background: #17110f;
    border: 1px solid rgba(255, 255, 255, .07);
    box-shadow:
        0 4px 12px rgba(23, 17, 15, .12),
        0 28px 64px -24px rgba(23, 17, 15, .45);
    transition: box-shadow .3s var(--ease, ease), transform .3s var(--ease, ease);
}

/* crimson glow, top-right */
.cta-card::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: -40% -30% auto auto;
    width: 70%;
    aspect-ratio: 1;
    background: radial-gradient(circle at 60% 40%, rgba(223, 34, 41, .55) 0%, rgba(223, 34, 41, .18) 45%, transparent 70%);
    pointer-events: none;
}

/* fine diagonal knit ribbing */
.cta-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: repeating-linear-gradient(
        115deg,
        rgba(255, 255, 255, .035) 0px,
        rgba(255, 255, 255, .035) 1px,
        transparent 1px,
        transparent 9px
    );
    mask-image: linear-gradient(105deg, transparent 30%, #000 100%);
    -webkit-mask-image: linear-gradient(105deg, transparent 30%, #000 100%);
    pointer-events: none;
}

.cta-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 16px rgba(23, 17, 15, .16),
        0 36px 80px -28px rgba(23, 17, 15, .55);
}

/* ------------------------------------------------------ layout */
.cta-card .row { position: relative; z-index: 1; }

.cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #ff8a8f;
}

.cta-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--crimson, #df2229);
    box-shadow: 0 0 0 4px rgba(223, 34, 41, .22);
}

/* the fix: the heading was inheriting --ink from the design system */
.contact-cta-section .cta-card h2,
.about-cta-section .cta-card h2,
.strength-cta-section .cta-card h2,
.fabric-cta-section .cta-card h2,
.cta-card h2,
.cta-card .cta-title {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.contact-cta-section .cta-card p,
.about-cta-section .cta-card p,
.strength-cta-section .cta-card p,
.fabric-cta-section .cta-card p,
.cta-card p,
.cta-card .cta-text {
    margin: 0;
    max-width: 54ch;
    color: rgba(255, 255, 255, .74);
    font-size: clamp(.95rem, .9rem + .2vw, 1.06rem);
    line-height: 1.65;
    opacity: 1;
}

/* -------------------------------------------------- trust row */
.cta-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.cta-points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .84rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .62);
}

.cta-points li::before {
    content: "";
    flex: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.2l2.2 2.2 4.6-4.8' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat,
        var(--crimson, #df2229);
}

/* -------------------------------------------------- the actions */
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

@media (min-width: 992px) {
    .cta-actions { justify-content: flex-end; }
}

.contact-cta-section .cta-btn,
.about-cta-section .cta-btn,
.strength-cta-section .cta-btn,
.fabric-cta-section .cta-btn,
.cta-card .cta-btn,
.cta-card .btn.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border: 1.5px solid var(--crimson, #df2229);
    border-radius: 999px;
    background: var(--crimson, #df2229);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.contact-cta-section .cta-btn:hover,
.about-cta-section .cta-btn:hover,
.strength-cta-section .cta-btn:hover,
.fabric-cta-section .cta-btn:hover,
.cta-card .cta-btn:hover {
    background: #ff3a41;
    border-color: #ff3a41;
    color: #fff;
    padding: 15px 30px;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(223, 34, 41, .65);
}

/* secondary / ghost action */
.cta-card .cta-btn-ghost,
.cta-card .cta-btn.cta-btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .28);
    color: rgba(255, 255, 255, .92);
}

.cta-card .cta-btn-ghost:hover,
.cta-card .cta-btn.cta-btn-ghost:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
    box-shadow: none;
}

.cta-card .cta-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ---------------------------------------------------- responsive */
@media (max-width: 991.98px) {
    .contact-cta-section .cta-card,
    .about-cta-section .cta-card,
    .strength-cta-section .cta-card,
    .fabric-cta-section .cta-card,
    .cta-card {
        padding: 34px 26px !important;
        border-radius: 22px;
        text-align: left;
    }

    .cta-card .col-lg-4,
    .cta-card .text-lg-end {
        margin-top: 26px;
        text-align: left !important;
    }

    .cta-actions { justify-content: stretch; }

    .cta-card .cta-btn {
        flex: 1 1 220px;
        width: auto;
        max-width: none;
        margin: 0;
    }
}

@media (max-width: 575.98px) {
    .cta-card .cta-btn { flex: 1 1 100%; }
    .cta-points { gap: 8px 16px; }
    .cta-points li { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .cta-card,
    .cta-card .cta-btn { transition: none; }
    .cta-card:hover,
    .cta-card .cta-btn:hover { transform: none; }
}
