/* ==========================================================================
   ANAZ — Inner Banner widget (Monks Logistics)
   Derived from html/css/inner-banner.css by renaming every class into the
   `monks-inner-banner` block; the rules are otherwise unchanged.
   WordPress / Elementor additions are in the last section of this file.
   Requires base.css (font, reset).

   Layout
     ≥768px  text on the left; angular photo composition absolutely
             positioned on the right, overlapping the centre line slightly.
     <768px  text first, then the composition as a block below it.

   The composition (.monks-inner-banner__visual) is a box in which every layer is
   cut with clip-path polygons in the same percentage space, so all
   diagonals share one slope (≈32% of the width per 100% of the height)
   and stay parallel at any size.

   Modifiers (for future dynamic use)
     .monks-inner-banner--no-accent  hides the orange bar
     .monks-inner-banner--tint       pale blue background variant
   ========================================================================== */

.monks-inner-banner {
    --ib-navy: #0B2948;
    --ib-navy-deep: #082440;
    --ib-orange: #FF6508;
    --ib-orange-soft: #FF9A4D;
    --ib-bg: #F8FAFC;
    --ib-text: #536781;
    --ib-white: #FFFFFF;
    --ib-container: 1370px;
    --ib-gutter: clamp(20px, 4.5vw, 64px);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: clamp(420px, 32vw, 560px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, rgba(226, 235, 245, 0.55) 100%),
        linear-gradient(100deg, var(--ib-white) 0%, var(--ib-bg) 55%, #EEF3F9 100%);
    color: var(--ib-text);
}

.monks-inner-banner *,
.monks-inner-banner *::before,
.monks-inner-banner *::after {
    box-sizing: border-box;
}

/* Soft diagonal shapes in the background (low contrast) */
.monks-inner-banner::before,
.monks-inner-banner::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.monks-inner-banner::before {
    left: -6%;
    bottom: 0;
    width: 46%;
    height: 38%;
    background: linear-gradient(90deg, rgba(225, 234, 244, 0.6), rgba(225, 234, 244, 0));
    clip-path: polygon(0 40%, 100% 100%, 0 100%);
}

.monks-inner-banner::after {
    top: 0;
    left: 36%;
    width: 22%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%);
}

.monks-inner-banner.monks-inner-banner--tint {
    background: linear-gradient(100deg, #F3F7FC 0%, #E9F0F8 100%);
}

/* ---- Text ---------------------------------------------------------------- */

.monks-inner-banner__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: calc(var(--ib-container) + 2 * var(--ib-gutter));
    margin: 0 auto;
    padding: 0 var(--ib-gutter);
}

.monks-inner-banner__content {
    max-width: 46%;
    padding: 48px 0;
}

.monks-inner-banner__eyebrow {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: clamp(14px, 1.6vw, 22px);
}

.monks-inner-banner__eyebrow-line {
    flex: 0 0 auto;
    width: clamp(40px, 4vw, 64px);
    height: 2px;
    background: var(--ib-orange);
}

.monks-inner-banner__eyebrow-text {
    color: var(--ib-navy);
    font-size: clamp(13px, 1.05vw, 17px);
    font-weight: 500;
    letter-spacing: 0.22em;
    line-height: 1.2;
    text-transform: uppercase;
}

.monks-inner-banner__title {
    margin: 0;
    color: var(--ib-navy);
    font-size: clamp(2.4rem, 1rem + 4.3vw, 5.4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.035em;
}

.monks-inner-banner__highlight {
    color: var(--ib-orange);
}

.monks-inner-banner__description {
    max-width: 23em;
    margin: clamp(16px, 1.8vw, 24px) 0 0;
    font-size: clamp(17px, 1.35vw, 24px);
    line-height: 1.5;
}

/* ---- Angular photo composition -------------------------------------------- */

.monks-inner-banner__visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 42%;
    z-index: 1;
    pointer-events: none;
}

.monks-inner-banner__shape,
.monks-inner-banner__photo {
    position: absolute;
    inset: 0;
}

/* Translucent pale panels left of the photo (light streaming in) */
/* Both panels run past the box edge, so they fade out before reaching it */
.monks-inner-banner__shape--panel,
.monks-inner-banner__shape--panel-soft {
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 14%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 14%);
}

.monks-inner-banner__shape--panel {
    z-index: 1;
    background: linear-gradient(180deg, rgba(232, 239, 247, 0.85), rgba(232, 239, 247, 0.15));
    clip-path: polygon(14% 0, 30% 0, -2% 100%, -18% 100%);
}

.monks-inner-banner__shape--panel-soft {
    z-index: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.2));
    clip-path: polygon(22% 8%, 31% 8%, 5% 90%, -4% 90%);
}

/* Photo: parallelogram, faded into the background on its left / lower-left */
.monks-inner-banner__photo {
    z-index: 2;
    overflow: hidden;
    clip-path: polygon(32% 0, 100% 0, 100% 34%, 68% 100%, 3% 100%);
    background: linear-gradient(135deg, #C9D6E3, #EEF3F8); /* shown if the image fails */
    -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0) 4%, rgba(0, 0, 0, 0.75) 26%, #000 40%);
    mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0) 4%, rgba(0, 0, 0, 0.75) 26%, #000 40%);
}

.monks-inner-banner__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 60%;
}

/* Warm golden-hour glow from the left */
.monks-inner-banner__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(45% 70% at 24% 70%, rgba(255, 176, 90, 0.45) 0%, rgba(255, 176, 90, 0) 70%),
        linear-gradient(90deg, rgba(255, 214, 160, 0.18) 0%, rgba(255, 214, 160, 0) 50%);
    mix-blend-mode: screen;
}

/* Navy block over the photo's upper-right */
.monks-inner-banner__shape--navy {
    z-index: 3;
    background: linear-gradient(160deg, var(--ib-navy) 0%, var(--ib-navy-deep) 100%);
    opacity: 0.94;
    clip-path: polygon(66% 0, 94% 0, 84% 31%, 56% 31%);
}

/* White angular band cutting the photo's right edge */
.monks-inner-banner__shape--band {
    z-index: 4;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 245, 250, 0.96));
    clip-path: polygon(98% 0, 100% 0, 100% 100%, 66% 100%, 68% 94%, 80.4% 56%);
}

/* Orange slanted accent bar */
.monks-inner-banner__shape--accent {
    z-index: 5;
    background: linear-gradient(180deg, var(--ib-orange) 0%, var(--ib-orange-soft) 100%);
    clip-path: polygon(92% 18%, 99% 18%, 82.4% 72%, 75.4% 72%);
}

.monks-inner-banner--no-accent .monks-inner-banner__shape--accent {
    display: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* iPad landscape */
@media (max-width: 1199px) {
    .monks-inner-banner__content {
        max-width: 48%;
    }

    .monks-inner-banner__visual {
        left: 42%;
    }
}

/* iPad portrait: balanced split, smaller type */
@media (max-width: 1023px) {
    .monks-inner-banner {
        min-height: 380px;
    }

    .monks-inner-banner__content {
        max-width: 52%;
    }

    .monks-inner-banner__title {
        font-size: clamp(3rem, 6.6vw, 3.75rem);
    }

    .monks-inner-banner__description {
        font-size: 17px;
    }

    .monks-inner-banner__visual {
        left: 46%;
    }

    .monks-inner-banner__shape--panel {
        clip-path: polygon(18% 0, 30% 0, 2% 100%, -10% 100%);
    }
}

/* Mobile: stacked — text, then the composition */
@media (max-width: 767px) {
    .monks-inner-banner {
        display: block;
        min-height: 0;
    }

    .monks-inner-banner__content {
        max-width: none;
        padding: 40px 0 28px;
    }

    .monks-inner-banner__eyebrow {
        gap: 14px;
    }

    .monks-inner-banner__eyebrow-line {
        width: 36px;
    }

    .monks-inner-banner__title {
        font-size: clamp(2.25rem, 10.5vw, 2.9rem);
    }

    .monks-inner-banner__description {
        font-size: 16px;
    }

    .monks-inner-banner__visual {
        position: relative;
        left: auto;
        height: clamp(200px, 62vw, 280px);
    }

    /* Simplified geometry: photo, navy corner and orange bar only */
    .monks-inner-banner__shape--panel,
    .monks-inner-banner__shape--panel-soft {
        display: none;
    }

    .monks-inner-banner__photo {
        clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
        -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0) 0%, #000 30%);
        mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0) 0%, #000 30%);
    }

    .monks-inner-banner__shape--navy {
        clip-path: polygon(70% 0, 100% 0, 100% 24%, 63% 24%);
    }

    .monks-inner-banner__shape--band {
        clip-path: polygon(100% 30%, 100% 100%, 76% 100%);
    }

    .monks-inner-banner__shape--accent {
        clip-path: polygon(93% 26%, 99% 26%, 87% 80%, 81% 80%);
    }
}

@media (max-width: 359px) {
    .monks-inner-banner__eyebrow-text {
        letter-spacing: 0.16em;
    }
}

/* ==========================================================================
   WordPress / Elementor additions
   ========================================================================== */

/* Elementor resets `.elementor img { height: auto; max-width: 100% }`, which
   would stop the photo filling its angular frame. */
.elementor .monks-inner-banner__photo img {
    height: 100%;
    max-width: none;
}

/* ---- Style-control hooks (defaults reproduce the original) ----------- */

/* "Image Focal Point" */
.monks-inner-banner__photo img {
    object-position: var(--mib-pos-x, 62%) var(--mib-pos-y, 60%);
}

/* "Text Alignment" */
.monks-inner-banner__content {
    text-align: var(--mib-text-align, inherit);
}

.monks-inner-banner__eyebrow {
    justify-content: var(--mib-justify, normal);
}

.monks-inner-banner__description {
    margin-left: var(--mib-desc-ml, 0);
    margin-right: var(--mib-desc-mr, 0);
}

/* ---- Content toggles -------------------------------------------------- */

.monks-inner-banner--no-glow .monks-inner-banner__photo::after {
    display: none;
}

/* "Composition Starts At" (desktop / tablet only; mobile stacks it) */
@media (min-width: 1024px) {
    .monks-inner-banner__visual {
        left: var(--mib-visual-left, 42%);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .monks-inner-banner__visual {
        left: var(--mib-visual-left, 46%);
    }
}
