/*!
 * Homepage "Our Expertise" — steel frame with 3 hotspots + description popups.
 * Shree Umiya Structure Pvt. Ltd.   v1.0.0
 * Scoped to .sxe. Plain CSS values only (no clamp(), calc() or var()).
 * Popups: hover (mouse), tap (touch) or Tab + Enter/Space (keyboard); one at a time.
 * JS (js/suspl-expertise.js) places each popup on the side with room; ≤767 px they open inline.
 * Palette: navy #00163F · yellow #F4B400 · blue accent #1A4FB5 · light #F5F7FA
 */

section.sxe {
    position: relative;
    overflow: hidden;
    padding: 70px 0 56px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f6fa 100%);
    color: #3f4756;
    font-family: 'Poppins', 'Space Grotesk', sans-serif;
}

.sxe *,
.sxe *::before,
.sxe *::after {
    box-sizing: border-box;
}

.sxe__sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.sxe svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sxe a:focus-visible,
.sxe button:focus-visible {
    outline: 3px solid #f4b400;
    outline-offset: 3px;
}

.sxe__wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 92%;
    max-width: 1320px;
    margin: 0 auto;
}

/* ======================================================================
   Introduction (left)
   ====================================================================== */
.sxe__intro {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 36%;
}

.sxe__head {
    padding-left: 22px;
    border-left: 4px solid #f4b400;
}

.sxe p.sxe__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: #5b6474;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 3px;
    text-align: left;
    text-transform: uppercase;
}

.sxe__eyebrow span {
    display: block;
    width: 18px;
    height: 2px;
    background: #f4b400;
}

.sxe h2.sxe__title {
    margin: 0;
    color: #00163f;
    font-family: 'Poppins', 'Space Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -1px;
}

.sxe h2.sxe__title em {
    color: #1a4fb5;
    font-style: normal;
}

.sxe p.sxe__lead {
    max-width: 380px;
    margin: 22px 0 30px;
    color: #4a5363;
    font-size: 16.5px;
    line-height: 1.65;
    text-align: left;
}

.sxe a.sxe__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 30px;
    border-radius: 50px;
    background: #f4b400;
    box-shadow: 0 10px 24px rgba(244, 180, 0, 0.28);
    color: #00163f;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.sxe a.sxe__btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
    transition: transform 0.3s ease;
}

.sxe a.sxe__btn:hover,
.sxe a.sxe__btn:focus-visible {
    background: #00163f;
    box-shadow: 0 10px 24px rgba(0, 22, 63, 0.25);
    color: #ffffff;
}

.sxe a.sxe__btn:hover svg,
.sxe a.sxe__btn:focus-visible svg {
    transform: translateX(4px);
}

/* ======================================================================
   Steel frame + hotspots (right)
   ====================================================================== */
.sxe__stage {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
}

.sxe__art {
    position: relative;
}

.sxe .sxe__img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000000 14%, #000000 92%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000000 14%, #000000 92%, rgba(0, 0, 0, 0) 100%);
}

/* yellow "+" markers on the structure (positions match the rendered frame) */
.sxe__dot {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #f4b400;
    box-shadow: 0 4px 12px rgba(0, 22, 63, 0.25);
    color: #00163f;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.sxe__dot::after {
    content: "";
    position: absolute;
    top: -9px;
    right: -9px;
    bottom: -9px;
    left: -9px;
    border: 2px solid rgba(244, 180, 0, 0.55);
    border-radius: 50%;
    animation: sxe-pulse 2.4s ease-out infinite;
    pointer-events: none;
}

@keyframes sxe-pulse {
    0% { opacity: 0.9; transform: scale(0.6); }
    80%, 100% { opacity: 0; transform: scale(1.35); }
}

.sxe__dot b {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

.sxe__dot i {
    display: none;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.sxe__dot--1 { left: 51.89%; top: 36.59%; }
.sxe__dot--2 { left: 44.46%; top: 75.43%; }
.sxe__dot--3 { left: 83.84%; top: 63.75%; }

.sxe__dot.is-on { transform: scale(1.15); }

/* label cards: each anchored at its marker */
.sxe ul.sxe__spots {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: none;
}

.sxe__spot {
    position: absolute;
    width: 0;
    height: 0;
}

.sxe__spot--1 { left: 51.89%; top: 36.59%; }
.sxe__spot--2 { left: 44.46%; top: 75.43%; }
.sxe__spot--3 { left: 83.84%; top: 63.75%; }

.sxe button.sxe__tag {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 7px 18px 7px 7px;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 22, 63, 0.14);
    color: #00163f;
    font-family: inherit;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* speech-bubble pointer towards the marker */
.sxe button.sxe__tag::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-right: 1px solid #e3e8ef;
    border-bottom: 1px solid #e3e8ef;
    background: #ffffff;
}

/* 01: card above its marker */
.sxe__spot--1 .sxe__tag { bottom: 28px; left: -40px; }
.sxe__spot--1 .sxe__tag::after { bottom: -7px; left: 34px; transform: rotate(45deg); }
/* 02: card below, to the left of its marker */
.sxe__spot--2 .sxe__tag { top: 28px; right: -36px; }
.sxe__spot--2 .sxe__tag::after { top: -7px; right: 30px; transform: rotate(225deg); }
/* 03: card below its marker */
.sxe__spot--3 .sxe__tag { top: 28px; left: -36px; }
.sxe__spot--3 .sxe__tag::after { top: -7px; left: 30px; transform: rotate(225deg); }

.sxe__num {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: #f4b400;
    color: #00163f;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.sxe__label {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.25;
}

.sxe button.sxe__tag.is-on,
.sxe button.sxe__tag:hover {
    border-color: #f4b400;
    box-shadow: 0 16px 34px rgba(0, 22, 63, 0.2);
}

/* ======================================================================
   Description popup
   ====================================================================== */
.sxe__pop {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    width: 300px;
    padding: 18px 20px 16px;
    border: 1px solid #e3e8ef;
    border-top: 3px solid #f4b400;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 24px 50px rgba(0, 22, 63, 0.18);
    color: #4a5363;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.sxe__pop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}

/* invisible bridge between label and popup, so moving the pointer across does not close it */
.sxe__pop::before {
    content: "";
    position: absolute;
    top: -22px;
    right: -22px;
    bottom: -22px;
    left: -22px;
    z-index: -1;
}

.sxe__pop-arrow {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid #e3e8ef;
    background: #ffffff;
    transform: rotate(45deg);
}

.sxe__pop--right .sxe__pop-arrow { left: -8px; border-top: 0; border-right: 0; }
.sxe__pop--left .sxe__pop-arrow { right: -8px; border-bottom: 0; border-left: 0; }
.sxe__pop--top .sxe__pop-arrow { bottom: -8px; border-top: 0; border-left: 0; }
.sxe__pop--bottom .sxe__pop-arrow { top: -9px; border-right: 0; border-bottom: 0; background: #f4b400; border-color: #f4b400; }

.sxe__pop-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.sxe__pop-ico {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff4d1;
    color: #00163f;
}

.sxe__pop-ico svg {
    width: 26px;
    height: 26px;
    stroke-width: 2;
}

.sxe__pop-head small {
    display: block;
    color: #c99400;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.sxe .sxe__pop h3 {
    margin: 2px 0 0;
    color: #00163f;
    font-family: 'Poppins', 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.sxe .sxe__pop p {
    margin: 0 0 12px;
    padding-top: 10px;
    border-top: 1px solid #edf0f5;
    color: #4a5363;
    font-size: 13.5px;
    line-height: 1.6;
    text-align: left;
}

.sxe a.sxe__pop-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a4fb5;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.sxe a.sxe__pop-link svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.2;
    transition: transform 0.25s ease;
}

.sxe a.sxe__pop-link:hover { color: #00163f; }
.sxe a.sxe__pop-link:hover svg { transform: translateX(3px); }

/* call bar kept from the previous section */
.sxe__call {
    width: 92%;
    max-width: 1320px;
    margin: 18px auto 0;
}

/* ======================================================================
   Sizes per screen range
   ====================================================================== */
@media (min-width: 1600px) {
    .sxe__wrap,
    .sxe__call { max-width: 1440px; }
    .sxe h2.sxe__title { font-size: 46px; }
}

@media (min-width: 1920px) {
    section.sxe { padding: 90px 0 70px; }
    .sxe__wrap,
    .sxe__call { max-width: 1640px; }
    .sxe h2.sxe__title { font-size: 54px; }
    .sxe p.sxe__lead { max-width: 440px; font-size: 18px; }
    .sxe p.sxe__eyebrow { font-size: 14px; }
    .sxe__num { width: 46px; height: 46px; font-size: 17px; }
    .sxe__label { font-size: 16px; }
    .sxe__dot { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
    .sxe__pop { width: 340px; padding: 22px 24px 18px; }
    .sxe .sxe__pop h3 { font-size: 19px; }
    .sxe .sxe__pop p { font-size: 14.5px; }
}

@media (min-width: 2560px) {
    section.sxe { padding: 130px 0 100px; }
    .sxe__wrap,
    .sxe__call { max-width: 2200px; }
    .sxe__head { padding-left: 30px; border-left-width: 6px; }
    .sxe h2.sxe__title { font-size: 72px; }
    .sxe p.sxe__lead { max-width: 600px; margin: 30px 0 40px; font-size: 24px; }
    .sxe p.sxe__eyebrow { gap: 14px; font-size: 18px; }
    .sxe__eyebrow span { width: 26px; height: 3px; }
    .sxe a.sxe__btn { gap: 14px; min-height: 70px; padding: 16px 42px; font-size: 20px; }
    .sxe a.sxe__btn svg { width: 24px; height: 24px; }
    .sxe button.sxe__tag { gap: 16px; padding: 10px 24px 10px 10px; border-radius: 16px; }
    .sxe__num { width: 60px; height: 60px; border-radius: 12px; font-size: 22px; }
    .sxe__label { font-size: 21px; }
    .sxe__spot--1 .sxe__tag { bottom: 38px; }
    .sxe__spot--2 .sxe__tag,
    .sxe__spot--3 .sxe__tag { top: 38px; }
    .sxe__dot { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-width: 4px; }
    .sxe__dot b { font-size: 24px; }
    .sxe__pop { width: 450px; padding: 28px 30px 24px; border-radius: 18px; }
    .sxe__pop-ico { width: 56px; height: 56px; }
    .sxe__pop-ico svg { width: 34px; height: 34px; }
    .sxe__pop-head small { font-size: 14px; }
    .sxe .sxe__pop h3 { font-size: 25px; }
    .sxe .sxe__pop p { font-size: 19px; }
    .sxe a.sxe__pop-link { font-size: 18px; }
}

@media (min-width: 3840px) {
    section.sxe { padding: 200px 0 150px; }
    .sxe__wrap,
    .sxe__call { max-width: 3300px; }
    .sxe__head { padding-left: 44px; border-left-width: 9px; }
    .sxe h2.sxe__title { font-size: 108px; }
    .sxe p.sxe__lead { max-width: 900px; margin: 44px 0 60px; font-size: 36px; }
    .sxe p.sxe__eyebrow { gap: 20px; font-size: 27px; }
    .sxe__eyebrow span { width: 40px; height: 4px; }
    .sxe a.sxe__btn { gap: 20px; min-height: 104px; padding: 24px 62px; font-size: 30px; }
    .sxe a.sxe__btn svg { width: 36px; height: 36px; }
    .sxe button.sxe__tag { gap: 24px; padding: 15px 36px 15px 15px; border-radius: 24px; }
    .sxe button.sxe__tag::after { width: 18px; height: 18px; }
    .sxe__num { width: 90px; height: 90px; border-radius: 18px; font-size: 33px; }
    .sxe__label { font-size: 31px; }
    .sxe__spot--1 .sxe__tag { bottom: 56px; left: -60px; }
    .sxe__spot--2 .sxe__tag { top: 56px; right: -54px; }
    .sxe__spot--3 .sxe__tag { top: 56px; left: -54px; }
    .sxe__dot { width: 66px; height: 66px; margin: -33px 0 0 -33px; border-width: 6px; }
    .sxe__dot b { font-size: 36px; }
    .sxe__pop { width: 680px; padding: 42px 46px 36px; border-top-width: 5px; border-radius: 26px; }
    .sxe__pop-arrow { width: 22px; height: 22px; }
    .sxe__pop-ico { width: 84px; height: 84px; }
    .sxe__pop-ico svg { width: 50px; height: 50px; }
    .sxe__pop-head { gap: 18px; margin-bottom: 16px; }
    .sxe__pop-head small { font-size: 21px; }
    .sxe .sxe__pop h3 { font-size: 38px; }
    .sxe .sxe__pop p { margin-bottom: 18px; padding-top: 16px; font-size: 28px; }
    .sxe a.sxe__pop-link { gap: 10px; font-size: 27px; }
    .sxe a.sxe__pop-link svg { width: 26px; height: 26px; }
}

/* smaller desktops / tablet landscape */
@media (max-width: 1199px) {
    .sxe__intro { width: 38%; }
    .sxe h2.sxe__title { font-size: 34px; }
    .sxe p.sxe__lead { font-size: 15.5px; }
    .sxe button.sxe__tag { gap: 9px; padding: 5px 13px 5px 5px; border-radius: 10px; }
    .sxe__num { width: 34px; height: 34px; border-radius: 8px; font-size: 13px; }
    .sxe__label { font-size: 13px; }
    .sxe__spot--1 .sxe__tag { bottom: 24px; left: -34px; }
    .sxe__spot--1 .sxe__tag::after { left: 28px; }
    .sxe__spot--2 .sxe__tag { top: 24px; right: -30px; }
    .sxe__spot--2 .sxe__tag::after { right: 24px; }
    .sxe__spot--3 .sxe__tag { top: 24px; left: -30px; }
    .sxe__spot--3 .sxe__tag::after { left: 24px; }
    .sxe__pop { width: 250px; padding: 14px 16px 12px; }
    .sxe__pop-head { gap: 10px; margin-bottom: 8px; }
    .sxe__pop-ico { width: 36px; height: 36px; }
    .sxe__pop-ico svg { width: 22px; height: 22px; }
    .sxe .sxe__pop h3 { font-size: 15.5px; }
    .sxe .sxe__pop p { margin-bottom: 8px; padding-top: 8px; font-size: 12.5px; line-height: 1.55; }
    .sxe a.sxe__pop-link { font-size: 12.5px; }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .sxe__pop { width: 270px; }
}

/* laptops below 1200 px and tablets: introduction above, the frame full width below */
@media (max-width: 1199px) {
    section.sxe { padding: 60px 0 44px; }
    .sxe__wrap { flex-direction: column; align-items: stretch; }
    .sxe__intro { width: 100%; max-width: 600px; }
    .sxe h2.sxe__title { font-size: 36px; }
    .sxe p.sxe__lead { max-width: 480px; margin: 18px 0 26px; }
    .sxe__stage { margin: 10px 0 0; }
    .sxe .sxe__img {
        -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000000 8%, #000000 92%, rgba(0, 0, 0, 0) 100%);
        mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000000 8%, #000000 92%, rgba(0, 0, 0, 0) 100%);
    }
}

/* phones: numbered markers on the frame, the three labels below it; the description opens inline */
@media (max-width: 767px) {
    section.sxe { padding: 52px 0 36px; }
    .sxe h2.sxe__title { font-size: 30px; letter-spacing: -0.5px; }
    .sxe__head { padding-left: 16px; }
    .sxe p.sxe__lead { font-size: 15px; }
    .sxe__stage { margin: 6px -4% 0; }
    .sxe .sxe__img { -webkit-mask-image: none; mask-image: none; }
    .sxe__dot { width: 30px; height: 30px; margin: -15px 0 0 -15px; border-width: 2px; }
    .sxe__dot b { display: none; }
    .sxe__dot i { display: block; }
    .sxe__dot::after { top: -6px; right: -6px; bottom: -6px; left: -6px; }

    .sxe ul.sxe__spots {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 6px 4% 0;
        pointer-events: auto;
    }
    .sxe__spot,
    .sxe__spot--1,
    .sxe__spot--2,
    .sxe__spot--3 {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        height: auto;
    }
    .sxe .sxe__spot button.sxe__tag {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        min-height: 56px;
        padding: 7px 16px 7px 7px;
        white-space: normal;
    }
    .sxe .sxe__spot button.sxe__tag::after {
        top: 50%;
        right: 18px;
        bottom: auto;
        left: auto;
        width: 9px;
        height: 9px;
        margin-top: -7px;
        border-right: 2px solid #00163f;
        border-bottom: 2px solid #00163f;
        background: none;
        transform: rotate(45deg);
        transition: transform 0.25s ease, margin 0.25s ease;
    }
    .sxe .sxe__spot button.sxe__tag.is-on::after { margin-top: -2px; transform: rotate(225deg); }
    .sxe__label { font-size: 15px; }
    .sxe__num { width: 40px; height: 40px; font-size: 14px; }

    /* inline panel under its label */
    .sxe__pop,
    .sxe__pop.is-open {
        position: relative;
        top: auto !important;
        left: auto !important;
        width: auto;
        margin-top: 0;
        transform: none;
    }
    .sxe__pop {
        display: none;
        margin-top: 8px;
        padding: 16px 16px 14px;
        border-radius: 12px;
        box-shadow: 0 12px 28px rgba(0, 22, 63, 0.10);
    }
    .sxe__pop.is-open {
        display: block;
        margin-top: 8px;
        animation: sxe-in 0.22s ease both;
    }
    .sxe__pop::before,
    .sxe__pop-arrow { display: none; }
}

@keyframes sxe-in {
    0% { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 374px) {
    .sxe h2.sxe__title { font-size: 26px; }
    .sxe__dot { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
    .sxe__dot i { font-size: 10px; }
}

/* ======================================================================
   Reduced motion
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
    .sxe *,
    .sxe *::before,
    .sxe *::after {
        animation: none !important;
        transition: none !important;
    }
}
