
/* =========================================================
   DWY — IN60 FINAL CTA
   File: assets/css/pages/dwy/cta.css
   ========================================================= */

.dwy-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 9vw, 9rem) 0;
    background: var(--bcc-color-background, #F5F1F7);
    color: var(--bcc-color-primary, #0D2230);
}

.dwy-cta *,
.dwy-cta *::before,
.dwy-cta *::after {
    box-sizing: border-box;
}

.dwy-cta__container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
    width: min(100% - 3rem, 1440px);
    margin-inline: auto;
}

/* Content */

.dwy-cta__content {
    max-width: 760px;
}

.dwy-cta__eyebrow {
    margin: 0 0 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.5;
    text-transform: uppercase;
}

.dwy-cta__title {
    margin: 0;
    font-size: clamp(3rem, 6vw, 6.25rem);
    font-weight: 650;
    letter-spacing: -0.08em;
    line-height: 0.98;
}

.dwy-cta__description {
    max-width: 580px;
    margin: 1.75rem 0 0;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.8;
    opacity: 0.75;
}

/* Actions */

.dwy-cta__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
    margin-top: 2.25rem;
}

.dwy-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 58px;
    padding: 1rem 1.5rem;
    border: 1px solid var(--bcc-color-primary, #0D2230);
    background: var(--bcc-color-primary, #0D2230);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition:
        background-color 220ms ease,
        color 220ms ease,
        border-color 220ms ease;
}

.dwy-cta__button:hover {
    border-color: var(--bcc-color-accent, #f4d738);
    background: var(--bcc-color-accent, #f4d738);
    color: var(--bcc-color-primary, #0D2230);
}

.dwy-cta__button:focus-visible,
.dwy-cta__secondary:focus-visible {
    outline: 3px solid var(--bcc-color-accent, #f4d738);
    outline-offset: 4px;
}

.dwy-cta__button > span {
    font-size: 1.3rem;
    transition: transform 220ms ease;
}

.dwy-cta__button:hover > span {
    transform: translateX(4px);
}

.dwy-cta__secondary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    color: var(--bcc-color-primary, #0D2230);
    font-size: 0.9rem;
    line-height: 1.7;
    text-decoration: none;
}

.dwy-cta__secondary > span:nth-child(2) {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.dwy-cta__secondary > span:last-child {
    font-size: 1.15rem;
    transition: transform 220ms ease;
}

.dwy-cta__secondary:hover > span:last-child {
    transform: translateX(4px);
}

/* IN60 visual panel */

.dwy-cta__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 420px;
    padding: clamp(2rem, 4vw, 3.5rem);
    overflow: hidden;
    background: var(--bcc-color-accent, #f4d738);
    color: var(--bcc-color-primary, #0D2230);
}

.dwy-cta__visual::before {
    position: absolute;
    top: -5rem;
    right: -5rem;
    width: 17rem;
    height: 17rem;
    border: 1px solid rgb(13 34 48 / 20%);
    border-radius: 50%;
    content: "";
}

.dwy-cta__visual::after {
    position: absolute;
    right: -2rem;
    bottom: -7rem;
    width: 21rem;
    height: 21rem;
    border: 1px solid rgb(13 34 48 / 15%);
    border-radius: 50%;
    content: "";
}

.dwy-cta__visual-top,
.dwy-cta__visual-number,
.dwy-cta__visual-bottom,
.dwy-cta__visual-line {
    position: relative;
    z-index: 1;
}

.dwy-cta__visual-top {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.dwy-cta__visual-number {
    margin: 2rem 0 1.5rem -0.07em;
    font-size: clamp(5.5rem, 10vw, 9rem);
    font-weight: 800;
    letter-spacing: -0.105em;
    line-height: 0.8;
}

.dwy-cta__visual-bottom {
    max-width: 260px;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.4;
}

.dwy-cta__visual-line {
    width: 100%;
    height: 1px;
    margin-top: 2.5rem;
    background: rgb(13 34 48 / 30%);
}

/* Tablet */

@media (max-width: 1024px) {
    .dwy-cta__container {
        grid-template-columns: minmax(0, 1fr);
        gap: 3rem;
    }

    .dwy-cta__content {
        max-width: 800px;
    }

    .dwy-cta__visual {
        min-height: 320px;
    }

    .dwy-cta__visual-number {
        font-size: clamp(6rem, 16vw, 10rem);
    }
}

/* Mobile */

@media (max-width: 600px) {
    .dwy-cta {
        padding: 4.5rem 0;
    }

    .dwy-cta__container {
        width: min(100% - 2rem, 560px);
        gap: 2.5rem;
    }

    .dwy-cta__title {
        font-size: clamp(2.8rem, 11vw, 4rem);
    }

    .dwy-cta__description {
        margin-top: 1.25rem;
        font-size: 1rem;
        line-height: 1.75;
    }

    .dwy-cta__actions {
        gap: 1.5rem;
        margin-top: 1.75rem;
    }

    .dwy-cta__button {
        width: 100%;
    }

    .dwy-cta__secondary {
        align-items: baseline;
    }

    .dwy-cta__visual {
        min-height: 300px;
        padding: 2rem 1.5rem;
    }

    .dwy-cta__visual-number {
        font-size: clamp(6rem, 25vw, 9rem);
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .dwy-cta__button,
    .dwy-cta__button > span,
    .dwy-cta__secondary > span:last-child {
        transition: none;
    }
}
