/* =========================================================
   ISTOREA EXPERIENCE WIDGETS — v1.1.0
   Created and Designed by Kshitiz Jain
   ========================================================= */

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

.iwc-section {
    --iwc-gold:#DDB54B;
    --iwc-heading:#F4EFE7;
    --iwc-body:#858997;
    --iwc-bg:#030303;
    --iwc-transition:1100ms;

    position:relative;
    width:100%;
    overflow:hidden;
    background:var(--iwc-bg);
    color:var(--iwc-heading);
    padding:58px 0 62px;
}

.iwc-inner {
    width:min(1180px, calc(100% - 48px));
    margin:0 auto;
}

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


/* =========================================================
   VISUAL
   ========================================================= */

.iwc-visual {
    position:relative;
    width:100%;
    min-width:0;
}

.iwc-slider {
    position:relative;
    width:100%;
    aspect-ratio:1.02 / 1;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.08);
    border-radius:15px;
    background:#050505;
}

.iwc-slide {
    position:absolute;
    inset:0;
    margin:0;
    opacity:0;
    visibility:hidden;
    transform:scale(1.045);
    transition:
        opacity var(--iwc-transition) cubic-bezier(.2,.7,.2,1),
        visibility var(--iwc-transition) linear;
}

.iwc-slide.is-active {
    opacity:1;
    visibility:visible;
    z-index:2;
}

.iwc-slide img {
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    object-position:center;
    transform:scale(1.03);
    filter:saturate(.94) contrast(1.03);
    transition:transform 7s cubic-bezier(.2,.6,.2,1);
}

.iwc-slide.is-active[data-effect="1"] img {
    transform:scale(1.105) translate3d(-1.1%,0,0);
}

.iwc-slide.is-active[data-effect="2"] img {
    transform:scale(1.11) translate3d(1.2%,-.6%,0);
}

.iwc-slide.is-active[data-effect="3"] img {
    transform:scale(1.115) translate3d(0,1%,0);
}

.iwc-slider::after {
    content:"";
    position:absolute;
    inset:0;
    z-index:4;
    pointer-events:none;
    background:
        linear-gradient(180deg, rgba(0,0,0,.02), transparent 58%, rgba(0,0,0,.16)),
        radial-gradient(circle at 50% 50%, transparent 55%, rgba(0,0,0,.12) 100%);
}

.iwc-placeholder {
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:30px;
    text-align:center;
    color:rgba(244,239,231,.52);
    font:600 11px/1.6 Arial,Helvetica,sans-serif;
    letter-spacing:.10em;
    text-transform:uppercase;
}

.iwc-slide-progress {
    position:absolute;
    z-index:6;
    left:20px;
    bottom:18px;
    display:flex;
    align-items:center;
    gap:6px;
}

.iwc-slide-progress span {
    width:5px;
    height:5px;
    border-radius:50%;
    background:rgba(255,255,255,.35);
    transition:width .35s ease, background .35s ease, border-radius .35s ease;
}

.iwc-slide-progress span.is-active {
    width:24px;
    border-radius:99px;
    background:var(--iwc-gold);
}


/* =========================================================
   BADGE
   ========================================================= */

.iwc-badge {
    position:absolute;
    z-index:8;
    right:-22px;
    bottom:-22px;

    width:134px;
    min-height:122px;

    padding:22px 22px 18px;

    display:flex;
    flex-direction:column;
    justify-content:center;

    border:1px solid var(--iwc-gold);
    border-radius:16px;

    background:#0A0A09;

    box-shadow:
        0 16px 40px rgba(0,0,0,.42),
        inset 0 1px 0 rgba(255,255,255,.018);
}

.iwc-badge strong {
    display:block;
    margin:0 0 6px;
    color:var(--iwc-gold);
    font-family:Georgia,"Times New Roman",serif;
    font-size:35px;
    line-height:.95;
    font-weight:400;
}

.iwc-badge span {
    display:block;
    margin:0 0 6px;
    color:var(--iwc-heading);
    font-family:Georgia,"Times New Roman",serif;
    font-size:12px;
    line-height:1.2;
    font-weight:700;
    letter-spacing:.05em;
    text-transform:uppercase;
}

.iwc-badge small {
    display:block;
    color:rgba(133,137,151,.95);
    font-family:Arial,Helvetica,sans-serif;
    font-size:8px;
    line-height:1.3;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
}


/* =========================================================
   CONTENT
   ========================================================= */

.iwc-content {
    min-width:0;
    padding-right:6px;
}

.iwc-eyebrow {
    display:flex;
    align-items:center;
    gap:16px;
    margin:0 0 17px;
}

.iwc-eyebrow i {
    display:block;
    width:46px;
    height:1px;
    flex:0 0 46px;
    background:var(--iwc-gold);
}

.iwc-eyebrow span {
    color:var(--iwc-gold);
    font-family:Arial,Helvetica,sans-serif;
    font-size:10px;
    line-height:1;
    font-weight:700;
    letter-spacing:.34em;
    text-transform:uppercase;
}

.iwc-title {
    margin:0;
    color:var(--iwc-heading);
    font-family:Georgia,"Times New Roman",serif;
    font-size:clamp(40px,3.5vw,56px);
    line-height:.96;
    font-weight:700;
    letter-spacing:-.035em;
    text-transform:uppercase;
}

.iwc-description {
    margin-top:25px;
    max-width:570px;
    color:var(--iwc-body);
    font-family:Georgia,"Times New Roman",serif;
    font-size:15px;
    line-height:1.68;
    font-weight:400;
}

.iwc-description p {
    margin:0;
}

.iwc-description p + p {
    margin-top:10px;
}


/* =========================================================
   FEATURES
   ========================================================= */

.iwc-features {
    margin-top:38px;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:32px;
    row-gap:26px;
}

.iwc-feature {
    position:relative;
    min-height:64px;
    padding:0 28px 0 15px;
    border-left:1px solid rgba(221,181,75,.52);
    display:block;
    color:inherit !important;
    text-decoration:none !important;
    cursor:default;
    background:transparent;
    transition:
        border-color .28s ease,
        background .28s ease,
        transform .28s ease;
}

.iwc-feature__inner {
    display:block;
}

.iwc-feature__arrow {
    position:absolute;
    right:5px;
    top:2px;
    color:var(--iwc-gold);
    font-family:Arial,Helvetica,sans-serif;
    font-size:13px;
    line-height:1;
    opacity:0;
    transform:translate(-5px,5px);
    transition:
        opacity .25s ease,
        transform .3s cubic-bezier(.16,1,.3,1);
}

.iwc-feature h3 {
    margin:0 0 8px;
    color:var(--iwc-heading);
    font-family:Georgia,"Times New Roman",serif;
    font-size:17px;
    line-height:1.15;
    font-weight:700;
}

.iwc-feature--gold h3 {
    color:var(--iwc-gold);
}

.iwc-feature p {
    margin:0;
    color:var(--iwc-body);
    font-family:Georgia,"Times New Roman",serif;
    font-size:12px;
    line-height:1.48;
    font-weight:400;
}


/* =========================================================
   CTA
   ========================================================= */

.iwc-cta {
    position:relative;
    width:max-content;
    margin-top:38px;
    padding:0 1px 10px;

    display:inline-flex;
    align-items:center;
    gap:12px;

    color:var(--iwc-heading) !important;
    text-decoration:none !important;

    font-family:Georgia,"Times New Roman",serif;
    font-size:15px;
    line-height:1;
    font-weight:700;
}

.iwc-cta::after {
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:1px;
    background:var(--iwc-gold);
    transform-origin:left center;
    transition:transform .35s ease;
}

.iwc-cta b {
    color:var(--iwc-heading);
    font-size:17px;
    font-weight:400;
    transition:transform .28s ease;
}


/* =========================================================
   FEATURE HIGHLIGHT BEHAVIOUR
   Default gold item returns when pointer leaves.
   Hovering another item temporarily moves the gold state.
   Features are visual only, not clickable.
   ========================================================= */

@media (hover:hover) and (pointer:fine) {
    .iwc-features:hover .iwc-feature--gold:not(:hover) h3 {
        color:var(--iwc-heading);
    }

    .iwc-features:hover .iwc-feature--gold:not(:hover) {
        border-left-color:rgba(221,181,75,.52);
        background:transparent;
        transform:none;
    }

    .iwc-feature:hover {
        border-left-color:var(--iwc-gold);
        background:linear-gradient(90deg, rgba(221,181,75,.055), transparent 72%);
        transform:translateX(3px);
    }

    .iwc-feature:hover h3 {
        color:var(--iwc-gold);
    }

    .iwc-feature:hover .iwc-feature__arrow {
        opacity:1;
        transform:translate(0,0);
    }
}

@media (hover:hover) and (pointer:fine) {

    .iwc-cta:hover::after {
        transform:scaleX(.72);
    }

    .iwc-cta:hover b {
        transform:translateX(5px);
    }

    .iwc-slider:hover .iwc-slide.is-active img {
        transform:scale(1.12);
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width:1024px) and (min-width:768px) {
    .iwc-inner {
        width:min(960px, calc(100% - 36px));
    }

    .iwc-grid {
        gap:38px;
    }

    .iwc-badge {
        right:-14px;
        bottom:-18px;
        width:122px;
        min-height:112px;
        padding:18px;
    }

    .iwc-title {
        font-size:42px;
    }

    .iwc-description {
        margin-top:20px;
        font-size:14px;
        line-height:1.6;
    }

    .iwc-features {
        margin-top:30px;
        gap:22px 24px;
    }

    .iwc-feature h3 {
        font-size:15px;
    }

    .iwc-feature p {
        font-size:11px;
    }
}


/* =========================================================
   MOBILE — REFERENCE-PROPORTION LOCK
   ========================================================= */

@media (max-width:767px) {

    /*
     * The reference begins directly with the image.
     * No unnecessary black gap above it.
     */
    .iwc-section {
        padding:0 0 46px;
        overflow:hidden;
    }

    .iwc-inner {
        width:100%;
        margin:0;
    }

    .iwc-grid {
        display:block;
    }


    /* =====================================================
       IMAGE / CINEMATIC SLIDER
       ===================================================== */

    .iwc-visual {
        width:calc(100% - 16px);
        margin:0 auto;
    }

    .iwc-slider {
        width:100%;
        aspect-ratio:1.38 / 1;
        border-radius:14px;
        border-color:rgba(255,255,255,.07);
    }

    /*
     * The reference does not visibly show slider navigation.
     * Slider still changes automatically with the cinematic
     * crossfade / pan effect.
     */
    .iwc-slide-progress {
        display:none !important;
    }


    /* =====================================================
       OVERLAPPING #1 BADGE
       ===================================================== */

    .iwc-badge {
        right:0;
        bottom:-40px;

        width:126px;
        min-height:112px;

        padding:19px 20px 16px;

        border-radius:17px;

        background:#0A0A09;

        box-shadow:
            0 17px 38px rgba(0,0,0,.42),
            inset 0 1px 0 rgba(255,255,255,.018);
    }

    .iwc-badge strong {
        margin:0 0 7px;
        font-size:34px;
        line-height:.95;
    }

    .iwc-badge span {
        margin:0 0 6px;
        font-size:12px;
        line-height:1.18;
    }

    .iwc-badge small {
        font-size:8px;
        line-height:1.25;
    }


    /* =====================================================
       CONTENT
       ===================================================== */

    .iwc-content {
        /*
         * Image badge extends ~40px below the image.
         * This creates the same compact breathing room shown
         * in the supplied mobile reference.
         */
        padding:58px 14px 0;
    }

    .iwc-eyebrow {
        gap:15px;
        margin:0 0 21px;
    }

    .iwc-eyebrow i {
        width:42px;
        flex:0 0 42px;
    }

    .iwc-eyebrow span {
        font-size:9px;
        line-height:1;
        letter-spacing:.31em;
    }

    .iwc-title {
        font-size:clamp(32px,8.8vw,36px);
        line-height:.98;
        letter-spacing:-.034em;
        white-space:nowrap;
    }

    .iwc-description {
        max-width:none;
        margin-top:24px;

        font-size:14px;
        line-height:1.64;

        color:var(--iwc-body);
    }


    /* =====================================================
       2 × 2 FEATURE GRID
       ===================================================== */

    .iwc-features {
        margin-top:38px;

        grid-template-columns:
            repeat(2,minmax(0,1fr));

        column-gap:18px;
        row-gap:28px;
    }

    .iwc-feature {
        min-height:104px;

        padding:
            0
            9px
            0
            14px;

        border-left:
            1px solid
            rgba(221,181,75,.55);

        background:transparent !important;

        transform:none !important;
    }

    /*
     * Mobile has no hover state. Keep only the configured
     * default gold feature, matching the reference.
     */
    .iwc-feature__arrow {
        display:none !important;
    }

    .iwc-feature h3 {
        margin:0 0 10px;

        font-size:16px;
        line-height:1.26;

        letter-spacing:-.015em;
    }

    .iwc-feature p {
        font-size:13px;
        line-height:1.48;
    }


    /* =====================================================
       EXPLORE MORE
       ===================================================== */

    .iwc-cta {
        margin-top:38px;

        padding:
            0 1px 10px;

        gap:12px;

        font-size:14px;
        line-height:1;
    }

    .iwc-cta b {
        font-size:17px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width:390px) {

    .iwc-section {
        padding-bottom:42px;
    }

    .iwc-visual {
        width:calc(100% - 14px);
    }

    .iwc-content {
        padding:
            56px
            13px
            0;
    }

    .iwc-badge {
        width:122px;
        min-height:109px;
        padding:18px 18px 15px;
    }

    .iwc-badge strong {
        font-size:32px;
    }

    .iwc-title {
        font-size:32px;
    }

    .iwc-description {
        font-size:13.5px;
        line-height:1.63;
    }

    .iwc-features {
        column-gap:15px;
        row-gap:27px;
    }

    .iwc-feature {
        min-height:101px;
        padding-left:13px;
        padding-right:6px;
    }

    .iwc-feature h3 {
        font-size:15.5px;
    }

    .iwc-feature p {
        font-size:12.5px;
    }

    .iwc-cta {
        margin-top:36px;
        font-size:14px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion:reduce) {
    .iwc-slide,
    .iwc-slide img,
    .iwc-slide-progress span,
    .iwc-cta::after,
    .iwc-cta b {
        transition:none !important;
        animation:none !important;
    }
}
