/* ================================================
   ESPRESSIMO PRODUCT BRAND STORY WIDGET Proto V1
   ================================================ */

.elementor-widget-espressimo_product_brand_story_proto_v1,
.elementor-widget-espressimo_product_brand_story_proto_v1 .elementor-widget-container {
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
}

.esp-bs {
    background: #f6ede3;
    border-bottom: 1px solid #e6dad4;
    display: flex;
    align-items: stretch;
    direction: rtl;
}

/* ── Left: Image Panel ── */
.esp-bs__img-panel {
    width: 45%;
    flex-shrink: 0;
    background: #e8d9ce;
    overflow: hidden;
    position: relative;
}

.esp-bs__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    mix-blend-mode: multiply;
    padding: 64px;
    box-sizing: border-box;
    display: block;
}

.esp-bs__watermark-year {
    position: absolute;
    bottom: 32px;
    right: 40px;
    font-family: 'Dialect PM', sans-serif;
    font-size: 100px;
    font-weight: bold;
    line-height: 1;
    color: #8B3A00;
    opacity: 0.15;
    user-select: none;
    direction: ltr;
}

.esp-bs__watermark-logo {
    position: absolute;
    bottom: 32px;
    left: 32px;
    height: 80px !important;
    width: auto !important;
    max-width: 160px !important;
    opacity: 0.15;
}

/* An image-optimization plugin wraps the logo <img> in a <picture>, so the height
   rule above lands on the <picture> and the inner <img> keeps its natural aspect
   (~160x162) — overflowing the 80px box and getting clipped by the panel's
   overflow:hidden. Force the inner <img> to the box height so the logo shows in
   full and its bottom lines up with the year watermark. height:inherit auto-tracks
   the mobile 56px override. (When no <picture> wrapper exists this selector simply
   matches nothing and the rule above styles the bare <img>.) */
.esp-bs__watermark-logo img {
    height: inherit !important;
    width: auto !important;
    max-width: 160px !important;
    display: block;
}

/* ── Right: Content Panel ── */
.esp-bs__content {
    flex: 1;
    padding: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    border-right: 1px solid #e6dad4;
}

.esp-bs__label {
    font-family: 'Dialect PM', sans-serif;
    font-size: 16px;
    color: #c46500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
    margin: 0;
}

.esp-bs__heading {
    font-family: 'Dialect PM', sans-serif;
    font-size: 44px;
    font-weight: bold;
    color: #522c25;
    letter-spacing: 0.03em;
    line-height: 1.15;
    margin: 0;
}

.esp-bs__body {
    font-family: 'Dialect PM', sans-serif;
    font-size: 20px;
    line-height: 34px;
    color: #522c25;
    opacity: 0.7;
    margin: 0;
}

/* ── Stats Strip ── */
.esp-bs__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #e6dad4;
    border-radius: 16px;
    overflow: hidden;
}

.esp-bs__stat {
    padding: 20px 24px;
    text-align: center;
    border-right: 1px solid #e6dad4;
}

.esp-bs__stat:first-child {
    border-right: none;
}

.esp-bs__stat-value {
    font-family: 'Dialect PM', sans-serif;
    font-size: 34px;
    font-weight: bold;
    color: #8B3A00;
    line-height: 1;
    display: block;
    direction: ltr;
}

.esp-bs__stat-label {
    font-family: 'Dialect PM', sans-serif;
    font-size: 16px;
    color: #75605a;
    opacity: 1;
    margin-top: 4px;
    display: block;
}

/* ── CTA Button ── */
.esp-bs__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(82, 44, 37, 0.25);
    color: #522c25;
    font-family: 'Dialect PM', sans-serif;
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    width: fit-content;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.esp-bs__cta:hover {
    border-color: #8B3A00;
    color: #8B3A00;
    background: rgba(139, 58, 0, 0.05);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    /* Stack image panel on top, content below */
    .esp-bs {
        flex-direction: column;
    }
    .esp-bs__img-panel {
        width: 100%;
        min-height: 360px;
    }
    .esp-bs__img {
        max-width: 100%;
        padding: 40px;
    }
    .esp-bs__watermark-year {
        font-size: 72px;
    }
    .esp-bs__content {
        padding: 40px 24px;
        border-right: none;
        border-top: 1px solid #e6dad4;
    }
    .esp-bs__heading {
        font-size: 34px;
    }
    .esp-bs__body {
        font-size: 19px;
        line-height: 31px;
    }
}

@media (max-width: 560px) {
    .esp-bs__img-panel {
        min-height: 260px;
    }
    .esp-bs__img {
        padding: 28px;
    }
    .esp-bs__watermark-year {
        font-size: 52px;
        bottom: 20px;
        right: 24px;
    }
    .esp-bs__watermark-logo {
        height: 56px !important;
        bottom: 20px;
    }
    .esp-bs__content {
        padding: 28px 16px;
        gap: 20px;
    }
    .esp-bs__heading {
        font-size: 27px;
    }
    /* Stats 3 cols → stack to single column */
    .esp-bs__stats {
        grid-template-columns: 1fr;
    }
    .esp-bs__stat {
        border-right: none;
        border-bottom: 1px solid #e6dad4;
    }
    .esp-bs__stat:last-child {
        border-bottom: none;
    }
    /* P10 — enlarge the small stat font on mobile. */
    .esp-bs__stat-value {
        font-size: 38px;
    }
    .esp-bs__stat-label {
        font-size: 18px;
    }
}
