/* ==========================================================================
   Home: closing call-to-action (24 Nov 2026 redesign). Markup: home-partitions/section3.blade.php (.gw-cta)
   Navy band: heading + two buttons on the left, a small sample chat that plays once on the right.
   Colours only from gateway-theme.css variables. Compact.
   ========================================================================== */
.gw-cta { padding: 48px 0 64px; font-family: var(--gw-font); }
.gw-cta-box {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 36px;
    align-items: center;
    padding: 40px 48px;
    border-radius: 28px;
    background: radial-gradient(circle at 100% 0%, var(--gw-navy-light), var(--gw-navy) 62%);
    border: 1px solid rgba(var(--gw-gold-rgb), .4);
    box-shadow: 0 24px 54px rgba(var(--gw-navy-rgb), .24);
    color: var(--gw-white);
}
.gw-cta-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(var(--gw-gold-rgb), .2) 1.3px, transparent 1.6px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(circle at 0% 100%, #000, transparent 60%);
    mask-image: radial-gradient(circle at 0% 100%, #000, transparent 60%);
    pointer-events: none;
}
.gw-cta-copy, .gw-cta-chat { position: relative; }

.gw-cta-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gw-gold); }
.gw-cta-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--gw-gold); box-shadow: 0 0 0 4px rgba(var(--gw-gold-rgb), .25); animation: gwCtaBlink 1.8s ease-in-out infinite; }
@keyframes gwCtaBlink { 50% { box-shadow: 0 0 0 8px rgba(var(--gw-gold-rgb), 0); } }
.gw-cta .gw-cta-title { margin: 0 0 12px; font-size: clamp(28px, 3vw, 42px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--gw-white); }
.gw-cta-sub { margin: 0 0 22px; max-width: 520px; font-size: 16px; line-height: 1.6; color: var(--gw-white); }
.gw-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.gw-cta .gw-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 13px 26px 12px;
    border-radius: 999px;
    font-family: var(--gw-font);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.gw-cta .gw-cta-btn--gold { border: 0; background: var(--gw-gold-shine); box-shadow: var(--gw-gold-glow); color: var(--gw-navy); }
.gw-cta .gw-cta-btn--gold span { display: inline-block; transition: transform .2s ease; }
.gw-cta .gw-cta-btn--gold:hover { transform: translateY(-2px); color: var(--gw-navy); }
.gw-cta .gw-cta-btn--gold:hover span { transform: translateX(4px); }
.gw-cta .gw-cta-btn--ghost { border: 1.5px solid var(--gw-gold); background: transparent; color: var(--gw-gold); }
.gw-cta .gw-cta-btn--ghost:hover { background: rgba(var(--gw-gold-rgb), .16); color: var(--gw-gold); transform: translateY(-2px); }
.gw-cta .gw-cta-btn:focus-visible { outline: 3px solid var(--gw-gold); outline-offset: 3px; }

/* ---- the sample chat ---- */
.gw-cta-chat { width: 100%; max-width: 430px; margin-left: auto; border-radius: 22px; background: var(--gw-white); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); overflow: hidden; }
.gw-cta-chathead { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--gw-ice); border-bottom: 1px solid rgba(var(--gw-navy-rgb), .1); }
.gw-cta-avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gw-navy); font-size: 16px; font-weight: 800; color: var(--gw-gold); }
.gw-cta-chathead b { display: block; font-size: 14px; font-weight: 700; line-height: 1.2; color: var(--gw-navy); }
.gw-cta-chathead small { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--gw-navy); }
.gw-cta-chathead small i { width: 7px; height: 7px; border-radius: 50%; background: var(--gw-success); }
.gw-cta-chathead em { margin-left: auto; padding: 3px 9px 2px; border-radius: 999px; background: rgba(var(--gw-gold-rgb), .3); font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gw-navy); }
.gw-cta-msgs { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 252px; padding: 16px 16px 18px; }
.gw-msg { margin: 0; max-width: 82%; padding: 9px 14px 8px; font-size: 14px; line-height: 1.45; opacity: 0; }
.gw-msg--you { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--gw-gold); color: var(--gw-navy); font-weight: 600; }
.gw-msg--us { align-self: flex-start; border-radius: 16px 16px 16px 4px; background: var(--gw-navy); color: var(--gw-white); }
.gw-msg--typing { position: absolute; left: 16px; top: 74px; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--gw-ice); }
.gw-msg--typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--gw-navy); animation: gwCtaDot 1s ease-in-out infinite; }
.gw-msg--typing span:nth-child(2) { animation-delay: .15s; }
.gw-msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes gwCtaDot { 50% { transform: translateY(-4px); opacity: .5; } }
.gw-cta-box.is-in .gw-msg:not(.gw-msg--typing) { animation: gwCtaPop .45s cubic-bezier(.2, .8, .2, 1) var(--d) both; }
.gw-cta-box.is-in .gw-msg--typing { animation: gwCtaType 1.4s ease var(--d) both; }
@keyframes gwCtaPop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes gwCtaType { 0% { opacity: 0; } 15%, 85% { opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 991.98px) {
    .gw-cta { padding: 32px 0 48px; }
    .gw-cta-box { grid-template-columns: 1fr; gap: 26px; padding: 30px 24px; border-radius: 24px; }
    .gw-cta-chat { margin: 0 auto; max-width: 460px; }
}
@media (max-width: 575.98px) {
    .gw-cta-box { padding: 26px 18px; }
    .gw-cta-btns { flex-direction: column; }
    .gw-cta .gw-cta-btn { justify-content: center; }
    .gw-cta-msgs { min-height: 236px; }
}
@media (prefers-reduced-motion: reduce) {
    .gw-msg { opacity: 1 !important; animation: none !important; }
    .gw-msg--typing { display: none; }
    .gw-cta-kicker i { animation: none; }
}

/* v2: smaller and cuter (24 Nov 2026) */
.gw-cta { padding: 28px 0 40px; }
.gw-cta-box { gap: 28px; padding: 26px 38px; border-radius: 24px; }
.gw-cta-kicker { margin-bottom: 8px; font-size: 11.5px; }
.gw-cta .gw-cta-title { margin-bottom: 8px; font-size: clamp(24px, 2.4vw, 32px); }
.gw-cta-sub { margin-bottom: 16px; max-width: 460px; font-size: 14.5px; line-height: 1.55; }
.gw-cta .gw-cta-btn { padding: 11px 22px 10px; font-size: 14.5px; }
.gw-cta-chat { max-width: 380px; border-radius: 18px; }
.gw-cta-chathead { padding: 9px 14px; }
.gw-cta-avatar { width: 30px; height: 30px; font-size: 14px; }
.gw-cta-chathead b { font-size: 13px; }
.gw-cta-chathead small { font-size: 11px; }
.gw-cta-msgs { gap: 6px; min-height: 196px; padding: 12px 12px 14px; }
.gw-msg { max-width: 86%; padding: 7px 12px 6px; font-size: 12.5px; line-height: 1.4; }
.gw-msg--typing { top: 56px; padding: 9px 12px; }
@media (max-width: 991.98px) { .gw-cta { padding: 22px 0 36px; } .gw-cta-box { padding: 24px 20px; } }

/* v3 phone: much shorter. Buttons side by side, and the sample chat shows just the first exchange. */
@media (max-width: 575.98px) {
    .gw-cta { padding: 18px 0 30px; }
    .gw-cta-box { gap: 18px; padding: 20px 16px; border-radius: 20px; }
    .gw-cta-kicker { margin-bottom: 6px; font-size: 10.5px; }
    .gw-cta .gw-cta-title { margin-bottom: 6px; font-size: 22px; }
    .gw-cta-sub { margin-bottom: 14px; font-size: 13.5px; line-height: 1.5; }
    .gw-cta-btns { flex-direction: row; gap: 8px; }
    .gw-cta .gw-cta-btn { flex: 1 1 0; justify-content: center; padding: 10px 10px 9px; font-size: 13.5px; }
    .gw-cta .gw-cta-btn span { display: none; }
    .gw-cta-chat { max-width: none; border-radius: 16px; }
    .gw-cta-chathead { padding: 8px 12px; }
    .gw-cta-chathead em { display: none; }
    .gw-cta-msgs { min-height: 0; gap: 6px; padding: 10px 10px 12px; }
    /* only the first question and its answer on a phone */
    .gw-msg:nth-of-type(n+4) { display: none; }
    .gw-msg--typing { top: 52px; }
}

/* Phones: no sample chat (it made the block feel crowded): just the heading, one line and the two buttons. */
@media (max-width: 767.98px) {
    .gw-cta-chat { display: none; }
    .gw-cta-box { gap: 0; padding: 22px 18px 24px; }
}

/* v4 (all screens): no sample chat. A slim, centred band: kicker, heading, one line, two buttons. */
.gw-cta-chat { display: none; }
.gw-cta-box { grid-template-columns: 1fr; gap: 0; padding: 28px 40px 30px; text-align: center; justify-items: center; }
.gw-cta-copy { width: 100%; max-width: 820px; }
.gw-cta-kicker { justify-content: center; margin-bottom: 8px; }
.gw-cta .gw-cta-title { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 8px; }
.gw-cta-sub { margin: 0 auto 16px; max-width: 640px; font-size: 15px; }
.gw-cta-btns { justify-content: center; }
.gw-cta-box::before { -webkit-mask-image: radial-gradient(circle at 50% 100%, #000, transparent 65%); mask-image: radial-gradient(circle at 50% 100%, #000, transparent 65%); }
@media (max-width: 767.98px) {
    .gw-cta-box { padding: 22px 18px 24px; }
    .gw-cta-btns { flex-direction: row; }
}
.gw-cta-sub { max-width: 780px; }
@media (max-width: 767.98px) { .gw-cta-sub { max-width: none; } }
