/**
 * Bhairav Page / Post Generator
 * Frontend: Standard Corporate CTA
 *
 * Visual language: gold, black, graphite, white and engineering graphics.
 */

.bams-ppg-cta {
    --ppg-gold: #c79a3b;
    --ppg-gold-deep: #a9791f;
    --ppg-black: #111111;
    --ppg-graphite: #292929;
    --ppg-gray: #6c6c6c;
    --ppg-line: #d9d7d1;
    --ppg-paper: #f6f5f1;
    --ppg-white: #ffffff;

    width: 100%;
    margin: 68px 0 0;
    padding: 0;
    box-sizing: border-box;
}

.bams-ppg-cta-shell {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 18px;
    box-sizing: border-box;
}

.bams-ppg-cta-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    align-items: center;
    min-height: 250px;
    padding: 54px 58px 54px 68px;
    box-sizing: border-box;
    overflow: hidden;
    isolation: isolate;
    background: var(--ppg-white);
    border: 1px solid var(--ppg-line);
    border-left: 6px solid var(--ppg-gold);
    box-shadow: 0 18px 42px rgba(17, 17, 17, 0.08);
}

/* Engineering drawing plate on the right */
.bams-ppg-cta-panel::before {
    content: "";
    position: absolute;
    z-index: -2;
    width: 620px;
    height: 620px;
    right: -205px;
    top: -185px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 50%;
    background:
        radial-gradient(circle at center,
            transparent 0 19%,
            rgba(17,17,17,.08) 19.15% 19.35%,
            transparent 19.5% 38%,
            rgba(199,154,59,.30) 38.15% 38.45%,
            transparent 38.6% 57%,
            rgba(17,17,17,.07) 57.15% 57.35%,
            transparent 57.5%),
        linear-gradient(90deg, transparent 49.8%, rgba(17,17,17,.12) 50%, transparent 50.2%),
        linear-gradient(0deg, transparent 49.8%, rgba(17,17,17,.12) 50%, transparent 50.2%);
    opacity: .9;
}

/* Gold/black engineering datum bands */
.bams-ppg-cta-panel::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -70px;
    bottom: -110px;
    width: 650px;
    height: 230px;
    transform: rotate(-13deg);
    background:
        linear-gradient(135deg,
            transparent 0 28%,
            rgba(199,154,59,.18) 28% 31%,
            transparent 31% 41%,
            rgba(17,17,17,.055) 41% 43%,
            transparent 43% 53%,
            rgba(199,154,59,.72) 53% 57%,
            transparent 57% 67%,
            rgba(17,17,17,.10) 67% 70%,
            transparent 70%);
    pointer-events: none;
}

/* Fine blueprint grid */
.bams-ppg-cta-grid {
    position: absolute;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    opacity: .52;
    background-image:
        linear-gradient(rgba(17,17,17,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17,17,17,.035) 1px, transparent 1px);
    background-size: 30px 30px;
    -webkit-mask-image: linear-gradient(90deg, black 0%, black 54%, transparent 88%);
    mask-image: linear-gradient(90deg, black 0%, black 54%, transparent 88%);
}

/* Gold datum marker */
.bams-ppg-cta-accent {
    position: absolute;
    left: 0;
    top: 28px;
    width: 38px;
    height: 1px;
    background: var(--ppg-gold);
    box-shadow:
        0 8px 0 rgba(199,154,59,.55),
        0 16px 0 rgba(199,154,59,.25);
    z-index: 3;
}

.bams-ppg-cta-accent::after {
    content: "";
    position: absolute;
    left: 38px;
    top: 8px;
    width: 9px;
    height: 9px;
    border: 1px solid var(--ppg-gold);
    transform: rotate(45deg);
    background: var(--ppg-white);
}

.bams-ppg-cta-content {
    position: relative;
    z-index: 2;
    max-width: 790px;
    padding-right: 52px;
}

.bams-ppg-cta-content::before {
    content: "TECHNICAL CAPABILITY  /  INDUSTRY  /  IMPACT";
    display: block;
    margin: 0 0 17px;
    color: var(--ppg-gold-deep);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .20em;
}

.bams-ppg-cta-title {
    margin: 0;
    color: var(--ppg-black);
    font-size: 34px;
    line-height: 1.16;
    font-weight: 750;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.bams-ppg-cta-description {
    max-width: 750px;
    margin: 17px 0 0;
    color: var(--ppg-gray);
    font-size: 17px;
    line-height: 1.68;
    overflow-wrap: anywhere;
}

.bams-ppg-cta-description p {
    margin: 0 0 1em;
}

.bams-ppg-cta-description p:last-child {
    margin-bottom: 0;
}

.bams-ppg-cta-action {
    position: relative;
    z-index: 3;
    justify-self: end;
    width: 100%;
    max-width: 360px;
}

.bams-ppg-cta-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    width: 100%;
    min-height: 66px;
    padding: 16px 22px 16px 27px;
    box-sizing: border-box;
    color: var(--ppg-black);
    background: var(--ppg-gold);
    border: 1px solid var(--ppg-gold-deep);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 750;
    letter-spacing: .005em;
    box-shadow: 8px 8px 0 rgba(17,17,17,.075);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.bams-ppg-cta-button::before,
.bams-ppg-cta-button::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.bams-ppg-cta-button::before {
    left: 0;
    bottom: 0;
    width: 70px;
    height: 1px;
    background: rgba(17,17,17,.30);
}

.bams-ppg-cta-button::after {
    right: 48px;
    top: 0;
    height: 100%;
    width: 1px;
    background: rgba(17,17,17,.14);
}

.bams-ppg-cta-button:hover {
    color: var(--ppg-black);
    background: #d2a546;
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0 rgba(17,17,17,.10);
}

.bams-ppg-cta-button:focus-visible {
    outline: 2px solid var(--ppg-black);
    outline-offset: 4px;
}

.bams-ppg-cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(17,17,17,.30);
    font-size: 19px;
    line-height: 1;
    transition: transform .2s ease;
}

.bams-ppg-cta-button:hover .bams-ppg-cta-arrow {
    transform: translateX(4px);
}

/* Legacy style options remain functional but use the same design system. */
.bams-ppg-cta-style-compact .bams-ppg-cta-panel {
    min-height: 215px;
    padding-top: 42px;
    padding-bottom: 42px;
}

.bams-ppg-cta-style-compact .bams-ppg-cta-title {
    font-size: 29px;
}

.bams-ppg-cta-style-prominent .bams-ppg-cta-panel {
    min-height: 285px;
    padding: 64px 64px 64px 74px;
}

.bams-ppg-cta-style-prominent .bams-ppg-cta-title {
    font-size: 38px;
}

@media (max-width: 900px) {
    .bams-ppg-cta {
        margin-top: 52px;
    }

    .bams-ppg-cta-panel,
    .bams-ppg-cta-style-prominent .bams-ppg-cta-panel {
        grid-template-columns: 1fr;
        gap: 32px;
        min-height: 0;
        padding: 48px 42px 50px 48px;
    }

    .bams-ppg-cta-content {
        max-width: 100%;
        padding-right: 0;
    }

    .bams-ppg-cta-action {
        justify-self: start;
        max-width: 390px;
    }

    .bams-ppg-cta-title,
    .bams-ppg-cta-style-prominent .bams-ppg-cta-title {
        font-size: 30px;
    }
}

@media (max-width: 600px) {
    .bams-ppg-cta {
        margin-top: 40px;
    }

    .bams-ppg-cta-shell {
        padding: 0 10px;
    }

    .bams-ppg-cta-panel,
    .bams-ppg-cta-style-prominent .bams-ppg-cta-panel {
        gap: 26px;
        padding: 38px 24px 40px 28px;
        border-left-width: 4px;
    }

    .bams-ppg-cta-content::before {
        font-size: 9px;
        letter-spacing: .14em;
    }

    .bams-ppg-cta-title,
    .bams-ppg-cta-style-prominent .bams-ppg-cta-title {
        font-size: 26px;
        line-height: 1.22;
    }

    .bams-ppg-cta-description {
        margin-top: 14px;
        font-size: 16px;
        line-height: 1.62;
    }

    .bams-ppg-cta-action {
        width: 100%;
        max-width: none;
    }

    .bams-ppg-cta-button {
        min-height: 60px;
        font-size: 15px;
    }

    .bams-ppg-cta-grid {
        background-size: 24px 24px;
    }
}
