/**
 * Bhairav PPG — Standard Corporate Hero
 * 75% content / 25% visual.
 * The visual is deliberately fused into the content with layered phases,
 * rather than presented as an isolated box. No SVG icon dependency.
 */

.bams-ppg-hero {
    --ppg-charcoal: #252a30;
    --ppg-text: #56616a;
    --ppg-muted: #687078;
    --ppg-gold: #b4872d;
    --ppg-gold-light: #d8bd82;
    --ppg-warm: #f6f5f2;
    --ppg-white: #fff;
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--ppg-white);
    box-sizing: border-box;
}

.bams-ppg-hero * { box-sizing: border-box; }

.bams-ppg-hero-inner {
    position: relative;
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 75%) minmax(0, 25%);
    align-items: stretch;
}

.bams-ppg-hero-layout-full_width .bams-ppg-hero-inner,
.bams-ppg-hero-layout-contained .bams-ppg-hero-inner {
    grid-template-columns: minmax(0, 75%) minmax(0, 25%);
}

.bams-ppg-hero-layout-contained .bams-ppg-hero-inner {
    max-width: 1240px;
    margin: 0 auto;
}

.bams-ppg-hero-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    min-height: 390px;
    padding: clamp(42px, 4.2vw, 64px) clamp(26px, 4.5vw, 76px) clamp(42px, 4vw, 58px);
    overflow: visible;
    background:
        linear-gradient(115deg, #fff 0%, #fbfaf8 64%, #f3f1eb 100%);
}

/* Layered phased fusion: no hard separator between content and visual. */
.bams-ppg-hero-content::before {
    content: "";
    position: absolute;
    top: 0;
    right: -110px;
    width: 250px;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    transform: skewX(-16deg);
    background:
        linear-gradient(90deg,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,.75) 34%,
            rgba(216,189,130,.14) 58%,
            rgba(180,135,45,.10) 66%,
            rgba(255,255,255,0) 100%);
}

.bams-ppg-hero-content::after {
    content: "";
    position: absolute;
    top: 0;
    right: -52px;
    width: 5px;
    height: 100%;
    z-index: 6;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 0 14%, rgba(180,135,45,.58) 14% 86%, transparent 86%);
    transform: skewX(-16deg);
}

.bams-ppg-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 15px;
    color: var(--ppg-muted);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.bams-ppg-hero-eyebrow::before {
    content: "";
    width: 42px;
    height: 2px;
    flex: 0 0 42px;
    background: var(--ppg-gold);
}

.bams-ppg-hero-title {
    position: relative;
    z-index: 7;
    width: 100%;
    max-width: 900px;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--ppg-charcoal) !important;
    font-size: clamp(34px, 3.7vw, 58px) !important;
    line-height: 1.045 !important;
    font-weight: 760 !important;
    letter-spacing: -.045em;
    text-wrap: balance;
}

/* Gold underline under title, matching the reference composition. */
.bams-ppg-hero-title::after {
    content: "";
    display: block;
    width: 58px;
    height: 3px;
    margin-top: 18px;
    background: var(--ppg-gold);
}

.bams-ppg-hero-introduction {
    position: relative;
    z-index: 7;
    width: 100%;
    max-width: 860px;
    margin: 20px 0 0;
    color: var(--ppg-text);
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.62;
    font-weight: 400;
}

.bams-ppg-hero-introduction p { margin: 0 0 9px; }
.bams-ppg-hero-introduction p:last-child { margin-bottom: 0; }

/* Four feature items use CSS-built icons; no SVG files are required. */
.bams-ppg-hero-features {
    position: relative;
    z-index: 7;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    max-width: 880px;
    margin: 28px 0 0;
}

.bams-ppg-hero-feature {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 47px;
    padding: 0 18px;
    color: #343b41;
    font-size: 13px;
    line-height: 1.28;
    font-weight: 500;
    border-left: 1px solid #ddd9d0;
}

.bams-ppg-hero-feature:first-child {
    padding-left: 0;
    border-left: 0;
}

.bams-ppg-hero-icon {
    position: relative;
    display: inline-block;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin-right: 10px;
    color: var(--ppg-gold);
}

/* Gear */
.bams-ppg-icon-gear::before {
    content: "⚙";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 34px;
    line-height: 1;
    font-family: Arial, sans-serif;
}

/* Monitor */
.bams-ppg-icon-screen::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 5px;
    width: 30px;
    height: 21px;
    border: 2px solid currentColor;
    border-radius: 2px;
}
.bams-ppg-icon-screen::after {
    content: "";
    position: absolute;
    left: 13px;
    bottom: 4px;
    width: 10px;
    height: 2px;
    background: currentColor;
    box-shadow: -5px 4px 0 0 currentColor, 5px 4px 0 0 currentColor;
}

/* Simple chart */
.bams-ppg-icon-chart::before {
    content: "";
    position: absolute;
    left: 3px;
    bottom: 5px;
    width: 7px;
    height: 14px;
    border: 2px solid currentColor;
    border-bottom-width: 2px;
    box-shadow: 10px -6px 0 -1px var(--ppg-white), 10px -6px 0 0 currentColor, 20px -14px 0 -1px var(--ppg-white), 20px -14px 0 0 currentColor;
}
.bams-ppg-icon-chart::after {
    content: "↗";
    position: absolute;
    top: -7px;
    right: -1px;
    font-size: 24px;
    font-weight: 700;
}

/* Certificate */
.bams-ppg-icon-certificate::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 3px;
    width: 25px;
    height: 29px;
    border: 2px solid currentColor;
    border-radius: 2px;
}
.bams-ppg-icon-certificate::after {
    content: "✓";
    position: absolute;
    left: 12px;
    top: 7px;
    width: 13px;
    height: 13px;
    border-bottom: 2px solid currentColor;
    color: currentColor;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.bams-ppg-hero-action-row {
    position: relative;
    z-index: 7;
    display: flex;
    align-items: center;
    gap: 26px;
    margin-top: 27px;
}

.bams-ppg-hero-action {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    min-height: 50px;
    padding: 0 25px;
    color: #fff;
    background: linear-gradient(135deg, #b88b2e, #a9791f);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.bams-ppg-hero-action b {
    font-size: 21px;
    line-height: 1;
    font-weight: 400;
}

.bams-ppg-hero-tagline {
    position: relative;
    padding-left: 25px;
    color: #92989c;
    font-size: 11px;
    letter-spacing: .16em;
    white-space: nowrap;
}

.bams-ppg-hero-tagline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 34px;
    transform: translateY(-50%);
    background: #cfcac0;
}

/* ---------------------------------------------------------
 * Right visual — only 25%, fused into the composition.
 * --------------------------------------------------------- */

.bams-ppg-hero-media {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    min-height: 390px;
    overflow: hidden;
    margin: 0;
}

.bams-ppg-hero-media-standard {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, #eeeDE9 0%, #f8f7f4 58%, #ece9e2 100%);
    clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}

.bams-ppg-hero-media-standard::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(125deg, transparent 0 28%, rgba(180,135,45,.12) 28.5% 33%, transparent 33.5%),
        linear-gradient(125deg, transparent 0 47%, rgba(37,42,48,.06) 47.5% 53%, transparent 53.5%);
}

.bams-ppg-hero-media-standard::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--ppg-gold) 0 16%, transparent 16% 84%, var(--ppg-gold) 84% 100%);
}

.bams-ppg-hero-drafting {
    position: relative;
    z-index: 3;
    width: min(260px, 90%);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 9%;
}

.bams-ppg-hero-drafting::before,
.bams-ppg-hero-drafting::after,
.bams-ppg-drafting-circle {
    position: absolute;
    border-radius: 50%;
}

.bams-ppg-hero-drafting::before {
    content: "";
    inset: 5%;
    border: 1px solid rgba(104,112,120,.20);
}

.bams-ppg-hero-drafting::after {
    content: "";
    inset: 22%;
    border: 1px dashed rgba(180,135,45,.28);
}

.bams-ppg-drafting-circle-one { inset: 0; border: 1px solid rgba(104,112,120,.14); }
.bams-ppg-drafting-circle-two { inset: 31%; border: 1px solid rgba(180,135,45,.18); }

.bams-ppg-drafting-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(104,112,120,.16);
}
.bams-ppg-drafting-line-two { transform: rotate(90deg); }

.bams-ppg-hero-sketch {
    position: relative;
    z-index: 4;
    width: 72%;
    height: 72%;
    object-fit: contain;
    opacity: .62;
    filter: contrast(1.05);
}

.bams-ppg-hero-side-message {
    position: absolute;
    right: 10px;
    top: 50%;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateY(-50%);
    color: #59636b;
    font-size: 9px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: .16em;
}

.bams-ppg-hero-side-message::before {
    content: "";
    width: 28px;
    height: 2px;
    margin-bottom: 6px;
    background: var(--ppg-gold);
}

/* Featured image keeps the same 25% visual zone and the same fusion. */
.bams-ppg-hero-media-featured {
    background: #e5e1d9;
    clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}

.bams-ppg-hero-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 390px;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    filter: saturate(.88) contrast(1.03);
}

.bams-ppg-hero-media-wash {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(246,245,242,.95) 0%, rgba(246,245,242,.45) 15%, rgba(246,245,242,0) 36%),
        linear-gradient(135deg, transparent 0 35%, rgba(180,135,45,.10) 35.5% 40%, transparent 40.5%);
}

/* Reverse layout retains the 75/25 relationship. */
.bams-ppg-hero-layout-split_right .bams-ppg-hero-media { order: 1; }
.bams-ppg-hero-layout-split_right .bams-ppg-hero-content { order: 2; }
.bams-ppg-hero-layout-split_right .bams-ppg-hero-media-standard,
.bams-ppg-hero-layout-split_right .bams-ppg-hero-media-featured { clip-path: polygon(0 0, 84% 0, 100% 100%, 0 100%); }
.bams-ppg-hero-layout-split_right .bams-ppg-hero-content::before { left: -110px; right: auto; transform: skewX(16deg); }
.bams-ppg-hero-layout-split_right .bams-ppg-hero-content::after { left: -52px; right: auto; transform: skewX(16deg); }

/* Full width / contained still retain the standard 75/25 visual composition. */
.bams-ppg-hero-layout-full_width .bams-ppg-hero-content,
.bams-ppg-hero-layout-contained .bams-ppg-hero-content { min-width: 0; }

/* ---------------------------------------------------------
 * Responsive: remove the visual panel entirely.
 * --------------------------------------------------------- */

@media (max-width: 900px) {
    .bams-ppg-hero-inner {
        display: block;
        width: 100%;
    }

    .bams-ppg-hero-media {
        display: none !important;
    }

    .bams-ppg-hero-content {
        width: 100%;
        min-height: 0;
        padding: 38px 28px 42px;
    }

    .bams-ppg-hero-content::before,
    .bams-ppg-hero-content::after { display: none; }

    .bams-ppg-hero-features {
        max-width: 760px;
    }
}

@media (max-width: 680px) {
    .bams-ppg-hero-content { padding: 32px 20px 36px; }

    .bams-ppg-hero-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 0;
    }

    .bams-ppg-hero-feature:nth-child(3) { border-left: 0; padding-left: 0; }
    .bams-ppg-hero-feature { padding: 0 10px; }

    .bams-ppg-hero-action-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .bams-ppg-hero-tagline { padding-left: 0; }
    .bams-ppg-hero-tagline::before { display: none; }
}

@media (max-width: 460px) {
    .bams-ppg-hero-eyebrow { font-size: 9px; letter-spacing: .10em; }
    .bams-ppg-hero-eyebrow::before { width: 30px; flex-basis: 30px; }
    .bams-ppg-hero-title { font-size: clamp(30px, 9.5vw, 42px) !important; }
    .bams-ppg-hero-introduction { font-size: 15px; line-height: 1.55; }
    .bams-ppg-hero-feature { font-size: 12px; }
    .bams-ppg-hero-icon { flex-basis: 31px; width: 31px; transform: scale(.86); transform-origin: left center; margin-right: 5px; }
}


/* =========================================================
   FIXED CORPORATE ENGINEERING GRAPHIC — ALL POSTS
========================================================= */
.bams-ppg-hero-media-fixed {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #f5f4f1;
}
.bams-ppg-hero-fixed-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
    object-position: right center;
}
.bams-ppg-hero-media-fixed::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.30) 14%, rgba(255,255,255,0) 34%);
}
@media (max-width: 1000px) {
    .bams-ppg-hero-media-fixed { display: none; }
}
