/**
 * Bhairav Page / Post Generator
 * Frontend Hero
 *
 * Matches frontend/sections/hero/hero-render.php
 */


/* =========================================================
   HERO BASE
========================================================= */

.bams-ppg-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 1440px;
    min-width: 0;
    margin: 0 auto;
    overflow: hidden;
    background: #061f43;
}

.bams-ppg-hero-inner {
    position: relative;
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 420px;
}


/* =========================================================
   LAYOUT — FULL WIDTH
========================================================= */

.bams-ppg-hero-layout-full_width
.bams-ppg-hero-inner {
    grid-template-columns: 1fr;
}


/* =========================================================
   LAYOUT — CONTAINED
========================================================= */

.bams-ppg-hero-layout-contained
.bams-ppg-hero-inner {
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================================
   LAYOUT — SPLIT
========================================================= */

.bams-ppg-hero-layout-split_left
.bams-ppg-hero-inner,

.bams-ppg-hero-layout-split_right
.bams-ppg-hero-inner {
    grid-template-columns: 50% 50%;
}


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

.bams-ppg-hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 70px 60px;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 75% 45%,
            rgba(42, 137, 202, 0.16),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #031a38 0%,
            #082c59 100%
        );
}


/* Engineering grid */

.bams-ppg-hero-content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .18;

    background-image:
        linear-gradient(
            90deg,
            rgba(255,255,255,.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            rgba(255,255,255,.08) 1px,
            transparent 1px
        );

    background-size: 42px 42px;
}


/* Subtle navigation arc */

.bams-ppg-hero-content::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -100px;
    top: 50%;
    width: 420px;
    height: 280px;

    border: 1px solid rgba(55,163,218,.20);
    border-radius: 50%;

    transform:
        translateY(-50%)
        rotate(-16deg);

    box-shadow:
        0 0 0 30px rgba(55,163,218,.035),
        0 0 0 60px rgba(242,169,0,.025);
}


/* =========================================================
   EYEBROW
========================================================= */

.bams-ppg-hero-eyebrow {
    position: relative;
    z-index: 5;

    width: fit-content;
    margin: 0 0 18px;
    padding: 7px 12px;

    border: 1px solid rgba(242,169,0,.70);
    border-radius: 999px;

    color: #f2a900;

    background: rgba(242,169,0,.045);

    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}


/* =========================================================
   TITLE
========================================================= */

.bams-ppg-hero-title {
    position: relative;
    z-index: 5;

    max-width: 700px;

    margin: 0 !important;
    padding: 0 !important;

    color: #ffffff !important;

    font-size: clamp(32px, 4vw, 50px) !important;
    line-height: 1.08 !important;
    font-weight: 800 !important;
    letter-spacing: -.035em;

    text-wrap: balance;
}


/* Gold rule */

.bams-ppg-hero-title::after {
    content: "";

    display: block;

    width: 54px;
    height: 3px;

    margin-top: 19px;

    border-radius: 3px;

    background: #f2a900;
}


/* =========================================================
   INTRODUCTION
========================================================= */

.bams-ppg-hero-introduction {
    position: relative;
    z-index: 5;

    max-width: 620px;

    margin-top: 18px;

    color: rgba(255,255,255,.82);

    font-size: 16px;
    line-height: 1.65;
}

.bams-ppg-hero-introduction p {
    margin: 0 0 10px;
}

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


/* =========================================================
   DECORATIVE RULE
========================================================= */

.bams-ppg-hero-rule {
    position: relative;
    z-index: 5;

    display: block;

    width: 70px;
    height: 1px;

    margin-top: 25px;

    background: rgba(255,255,255,.28);
}


/* =========================================================
   IMAGE PANEL
========================================================= */

.bams-ppg-hero-media {
    position: relative;

    width: 100%;
    height: 100%;
    min-height: 420px;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: #0a315c;
}


/* Image */

.bams-ppg-hero-image {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover;
    object-position: center;
}


/* =========================================================
   SPLIT LEFT
   Content LEFT / Image RIGHT
========================================================= */

.bams-ppg-hero-layout-split_left
.bams-ppg-hero-content {
    order: 1;
}

.bams-ppg-hero-layout-split_left
.bams-ppg-hero-media {
    order: 2;
}


/* =========================================================
   SPLIT RIGHT
   Image LEFT / Content RIGHT
========================================================= */

.bams-ppg-hero-layout-split_right
.bams-ppg-hero-media {
    order: 1;
}

.bams-ppg-hero-layout-split_right
.bams-ppg-hero-content {
    order: 2;
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.bams-ppg-hero-overlay-light
.bams-ppg-hero-media::after,

.bams-ppg-hero-overlay-medium
.bams-ppg-hero-media::after,

.bams-ppg-hero-overlay-strong
.bams-ppg-hero-media::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;
}


.bams-ppg-hero-overlay-light
.bams-ppg-hero-media::after {
    background: rgba(6,31,67,.12);
}


.bams-ppg-hero-overlay-medium
.bams-ppg-hero-media::after {
    background: rgba(6,31,67,.28);
}


.bams-ppg-hero-overlay-strong
.bams-ppg-hero-media::after {
    background: rgba(6,31,67,.45);
}


/* =========================================================
   HEIGHTS
========================================================= */

.bams-ppg-hero-height-auto
.bams-ppg-hero-inner {
    min-height: 0;
}

.bams-ppg-hero-height-auto
.bams-ppg-hero-media {
    min-height: 320px;
}


.bams-ppg-hero-height-compact
.bams-ppg-hero-inner {
    min-height: 320px;
}

.bams-ppg-hero-height-compact
.bams-ppg-hero-media {
    min-height: 320px;
}


.bams-ppg-hero-height-standard
.bams-ppg-hero-inner {
    min-height: 420px;
}

.bams-ppg-hero-height-standard
.bams-ppg-hero-media {
    min-height: 420px;
}


.bams-ppg-hero-height-large
.bams-ppg-hero-inner {
    min-height: 520px;
}

.bams-ppg-hero-height-large
.bams-ppg-hero-media {
    min-height: 520px;
}


/* =========================================================
   ALIGNMENT
========================================================= */

.bams-ppg-hero-align-left
.bams-ppg-hero-content {
    text-align: left;
    align-items: flex-start;
}


.bams-ppg-hero-align-center
.bams-ppg-hero-content {
    text-align: center;
    align-items: center;
}


/* =========================================================
   NO IMAGE
========================================================= */

.bams-ppg-hero:not(.bams-ppg-hero-has-image)
.bams-ppg-hero-inner {
    grid-template-columns: 1fr;
}

.bams-ppg-hero:not(.bams-ppg-hero-has-image)
.bams-ppg-hero-content {
    min-height: 360px;
}


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

@media (max-width: 1000px) {

    .bams-ppg-hero-content {
        padding: 55px 40px;
    }

    .bams-ppg-hero-title {
        font-size: 38px !important;
    }

    .bams-ppg-hero-introduction {
        font-size: 15px;
    }

    .bams-ppg-hero-height-standard
    .bams-ppg-hero-inner,
    .bams-ppg-hero-height-standard
    .bams-ppg-hero-media {
        min-height: 380px;
    }

    .bams-ppg-hero-height-large
    .bams-ppg-hero-inner,
    .bams-ppg-hero-height-large
    .bams-ppg-hero-media {
        min-height: 460px;
    }
}


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

@media (max-width: 700px) {

    .bams-ppg-hero {
        width: 100%;
        border-radius: 0;
    }

    .bams-ppg-hero-inner {
        display: flex !important;
        flex-direction: column;
        min-height: 0 !important;
    }

    .bams-ppg-hero-content {
        order: 1 !important;

        min-height: 300px;
        padding: 48px 24px 40px;

        text-align: left;
        align-items: flex-start;
    }

    .bams-ppg-hero-eyebrow {
        margin-bottom: 16px;
    }

    .bams-ppg-hero-title {
        max-width: 100%;
        font-size: 31px !important;
        line-height: 1.12 !important;
    }

    .bams-ppg-hero-introduction {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.6;
    }

    .bams-ppg-hero-media {
        order: 2 !important;

        min-height: 230px !important;
        height: 230px;
    }

    .bams-ppg-hero-image {
        height: 230px !important;
    }

    .bams-ppg-hero-content::after {
        right: -170px;
    }
}


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

@media (max-width: 480px) {

    .bams-ppg-hero-content {
        min-height: 280px;
        padding: 40px 20px 34px;
    }

    .bams-ppg-hero-title {
        font-size: 27px !important;
    }

    .bams-ppg-hero-introduction {
        font-size: 14px;
    }

    .bams-ppg-hero-media {
        min-height: 200px !important;
        height: 200px;
    }

    .bams-ppg-hero-image {
        height: 200px !important;
    }
}