/**
 * About widget — Style 5.
 *
 * Everything is scoped to `.goxom-ab`, which only this widget outputs, and the
 * tunable parts are custom properties so the Style tab can reach them without
 * the stylesheet knowing what the panel will send.
 *
 * Colours fall back to the theme's tokens where they exist, so a fresh widget
 * already looks like the site rather than like a default.
 */

.goxom-ab--v5 {
    --ab-ink: var(--color-black, #0C2338);
    --ab-body: var(--color-body, #5A7387);
    --ab-brand: var(--color-primary, #1273C4);
    --ab-brand-soft: rgba(18, 115, 196, 0.1);
    --ab-line: var(--color-border, #D5E3EF);
    --ab-surface: var(--color-tint, #F0F6FC);
    --ab-white: #fff;

    --ab-shot-r: 26px;
    --ab-arch-from: rgba(18, 115, 196, 0.14);
    --ab-arch-to: rgba(14, 155, 168, 0.06);
    --ab-divider: var(--color-border, #D5E3EF);
    --ab-rule: var(--color-primary, #1273C4);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(64px, 8vw, 120px) 0;
    font-family: inherit;
}

.goxom-ab--v5 *,
.goxom-ab--v5 *::before,
.goxom-ab--v5 *::after {
    box-sizing: border-box;
}

.goxom-ab__inner {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.goxom-ab__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 72px;
}

/* ───────────────────────────────────────── decorative backdrop */

.goxom-ab__arch {
    position: absolute;
    top: -12%;
    left: -8%;
    width: min(760px, 62%);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--ab-arch-from) 0%, var(--ab-arch-to) 45%, transparent 72%);
    pointer-events: none;
    z-index: -1;
}

.goxom-ab--media-right .goxom-ab__arch {
    left: auto;
    right: -8%;
}

.goxom-ab__dots {
    position: absolute;
    right: 3%;
    bottom: 6%;
    width: 220px;
    height: 220px;
    background-image: radial-gradient(currentColor 1.6px, transparent 1.6px);
    background-size: 18px 18px;
    color: rgba(18, 115, 196, 0.22);
    -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

.goxom-ab--media-right .goxom-ab__dots {
    right: auto;
    left: 3%;
}

/* ───────────────────────────────────────── collage */

.goxom-ab__stage {
    position: relative;
    /* Room for the inset photo and the badge, both of which hang past the
       main photo's edges. */
    padding: 0 0 46px 0;
}

.goxom-ab__shot {
    position: relative;
    margin: 0;
    aspect-ratio: 0.86;
    overflow: hidden;
    border-radius: var(--ab-shot-r);
    background-color: var(--ab-surface);
    box-shadow: 0 30px 60px -28px rgba(6, 23, 38, 0.42);
}

.goxom-ab__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.goxom-ab__shot:hover .goxom-ab__img {
    transform: scale(1.05);
}

.goxom-ab__inset {
    position: absolute;
    right: -6%;
    bottom: 0;
    width: 46%;
    aspect-ratio: 1.12;
    margin: 0;
    overflow: hidden;
    border: 6px solid var(--ab-white);
    border-radius: calc(var(--ab-shot-r) * 0.72);
    background-color: var(--ab-surface);
    box-shadow: 0 24px 44px -20px rgba(6, 23, 38, 0.38);
}

.goxom-ab--media-right .goxom-ab__inset {
    right: auto;
    left: -6%;
}

.goxom-ab__emblem {
    position: absolute;
    top: 22px;
    right: 22px;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    padding: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 26px rgba(6, 23, 38, 0.18);
}

.goxom-ab__emblem img {
    display: block;
    max-width: 100%;
    height: auto;
}

.goxom-ab__badge {
    position: absolute;
    left: -10px;
    bottom: 34px;
    display: grid;
    gap: 2px;
    max-width: 230px;
    padding: 18px 22px;
    border-radius: 18px;
    background-color: var(--ab-white);
    box-shadow: 0 22px 44px -18px rgba(6, 23, 38, 0.4);
}

.goxom-ab--media-right .goxom-ab__badge {
    left: auto;
    right: -10px;
}

.goxom-ab__badge::before {
    /* A brand rule down the edge, so the card reads as part of the system. */
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background-color: var(--ab-brand);
}

.goxom-ab__badge-num {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ab-ink);
}

.goxom-ab__badge-note {
    font-size: 14px;
    line-height: 1.45;
    color: var(--ab-body);
}

/* ───────────────────────────────────────── text column */

.goxom-ab__col {
    min-width: 0;
}

.goxom-ab__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 16px 7px 12px;
    border-radius: 999px;
    background-color: var(--ab-brand-soft);
    color: var(--ab-brand);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.goxom-ab__eyebrow-ico {
    display: block;
    width: auto;
    max-height: 20px;
}

.goxom-ab__eyebrow .goxom-ab__spark {
    width: 16px;
    height: 16px;
    flex: none;
}

.goxom-ab__title {
    margin: 0 0 18px;
    font-size: clamp(30px, 3.2vw, 48px);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.02em;
    color: var(--ab-ink);
}

/* The masked word reveal needs a line box it can slide inside. */
.goxom-ab__w {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.goxom-ab__w > span {
    display: inline-block;
}

.goxom-ab__desc {
    margin: 0;
    font-size: 17px;
    line-height: 1.75;
    color: var(--ab-body);
}

.goxom-ab__promise {
    position: relative;
    margin-top: 26px;
    padding: 20px 24px 20px 26px;
    border-radius: 16px;
    background-color: var(--ab-surface);
}

.goxom-ab__promise::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background-color: var(--ab-rule);
}

.goxom-ab__promise-title {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ab-ink);
}

.goxom-ab__promise-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ab-body);
}

/* ───────────────────────────────────────── highlights */

.goxom-ab__feats {
    --ab-feat-cols: 2;

    display: grid;
    grid-template-columns: repeat(var(--ab-feat-cols), minmax(0, 1fr));
    gap: 14px 25px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.goxom-ab__feat {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.goxom-ab__feat-mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--ab-brand-soft);
    color: var(--ab-brand);
}

.goxom-ab__feat-mark svg {
    width: 14px;
    height: 14px;
}

.goxom-ab__feat-mark i {
    font-size: 12px;
    line-height: 1;
}

.goxom-ab__feat-text {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--ab-ink);
}

/* ───────────────────────────────────────── stat rail */

.goxom-ab__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 34px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--ab-divider);
}

.goxom-ab__stat {
    position: relative;
    min-width: 0;
    padding-right: 34px;
}

.goxom-ab__stat:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    right: 0;
    width: 1px;
    background-color: var(--ab-divider);
}

.goxom-ab__stat:last-child {
    padding-right: 0;
}

.goxom-ab__stat-num {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ab-ink);
    font-variant-numeric: tabular-nums;
}

.goxom-ab__stat-suffix {
    color: var(--ab-brand);
}

.goxom-ab__stat-label {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ab-body);
}

/* ───────────────────────────────────────── actions */

.goxom-ab__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    margin-top: 34px;
}

.goxom-ab__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 999px;
    background-color: var(--ab-brand);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 14px 30px -12px rgba(18, 115, 196, 0.66);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.goxom-ab__btn:hover,
.goxom-ab__btn:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 20px 38px -14px rgba(18, 115, 196, 0.72);
}

.goxom-ab__btn-arrow {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.goxom-ab__btn-arrow svg {
    width: 100%;
    height: 100%;
}

.goxom-ab__btn:hover .goxom-ab__btn-arrow {
    transform: translateX(4px);
}

.goxom-ab__phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.goxom-ab__phone-ico {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--ab-brand-soft);
    color: var(--ab-brand);
    font-size: 17px;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.goxom-ab__phone-ico svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.goxom-ab__phone:hover .goxom-ab__phone-ico {
    transform: translateY(-2px);
}

.goxom-ab__phone-text {
    display: grid;
    gap: 1px;
}

.goxom-ab__phone-note {
    font-size: 13px;
    line-height: 1.3;
    color: var(--ab-body);
}

.goxom-ab__phone-num {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ab-ink);
}

/* ───────────────────────────────────────── motion gate

   Only the JS-driven build hides anything up front: without GSAP, or with
   reduced motion, `goxom-ab--js` is never added and everything paints as
   normal rather than waiting for a tween that is not coming. */

.goxom-ab--js .goxom-ab__eyebrow,
.goxom-ab--js .goxom-ab__desc,
.goxom-ab--js .goxom-ab__promise,
.goxom-ab--js .goxom-ab__feat,
.goxom-ab--js .goxom-ab__stat,
.goxom-ab--js .goxom-ab__actions,
.goxom-ab--js .goxom-ab__stage,
.goxom-ab--js .goxom-ab__inset,
.goxom-ab--js .goxom-ab__badge,
.goxom-ab--js .goxom-ab__emblem {
    opacity: 0;
}

/* ───────────────────────────────────────── responsive */

@media (max-width: 1199px) {
    .goxom-ab__grid {
        gap: 48px;
    }

    .goxom-ab__title {
        font-size: clamp(28px, 3.6vw, 40px);
    }
}

@media (max-width: 991px) {
    .goxom-ab__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }

    /* The collage led the markup so it reads first; on one column the order
       controls from the panel have nothing left to swap. */
    .goxom-ab__stage {
        order: 0 !important;
        max-width: 640px;
        margin: 0 auto;
    }

    .goxom-ab__arch,
    .goxom-ab__dots {
        display: none;
    }
}

@media (max-width: 575px) {
    .goxom-ab__stage {
        padding-bottom: 0;
    }

    /* Stacked rather than overlapped: at this width the inset and the badge
       cover the photo instead of decorating it. */
    .goxom-ab__inset {
        position: static;
        width: 100% !important;
        margin-top: 14px;
        border-width: 0;
    }

    .goxom-ab__badge {
        position: static;
        max-width: none;
        margin-top: 14px;
        box-shadow: 0 14px 30px -18px rgba(6, 23, 38, 0.4);
    }

    .goxom-ab__emblem {
        width: 62px;
        height: 62px;
        top: 14px;
        right: 14px;
    }

    .goxom-ab__stats {
        gap: 18px 24px;
    }

    .goxom-ab__stat {
        padding-right: 24px;
    }

    .goxom-ab__stat-num {
        font-size: 26px;
    }

    .goxom-ab__actions {
        gap: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .goxom-ab--v5 .goxom-ab__img,
    .goxom-ab--v5 .goxom-ab__btn,
    .goxom-ab--v5 .goxom-ab__btn-arrow,
    .goxom-ab--v5 .goxom-ab__phone-ico {
        transition: none;
    }
}
