/**
 * Bhairav Page / Post Generator
 * Frontend: CTA
 *
 * Premium maritime / shipbuilding presentation.
 */

/* =========================================================
   CTA WRAPPER
========================================================= */

.bams-ppg-cta {
    --bams-cta-navy: #082b49;
    --bams-cta-navy-deep: #041d33;
    --bams-cta-blue: #0b3b62;
    --bams-cta-gold: #e7ad22;
    --bams-cta-white: #ffffff;
    --bams-cta-muted: rgba(255, 255, 255, 0.78);

    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 64px 0 0;
    padding: 0;
    overflow: hidden;
}

/* =========================================================
   SHELL
========================================================= */

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

/* =========================================================
   MAIN PANEL
========================================================= */

.bams-ppg-cta-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 250px;
    padding: 56px 64px 56px 72px;
    box-sizing: border-box;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 88% 22%, rgba(33, 101, 145, 0.38), transparent 30%),
        linear-gradient(115deg, var(--bams-cta-navy-deep) 0%, var(--bams-cta-navy) 55%, var(--bams-cta-blue) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 45px rgba(4, 29, 51, 0.16);
}

.bams-ppg-cta-panel::before,
.bams-ppg-cta-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

/* Large technical arc */
.bams-ppg-cta-panel::before {
    width: 520px;
    height: 520px;
    right: -150px;
    top: -180px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    box-shadow:
        0 0 0 34px rgba(255, 255, 255, 0.025),
        0 0 0 70px rgba(255, 255, 255, 0.018);
}

/* Fine shipyard-style baseline */
.bams-ppg-cta-panel::after {
    width: 48%;
    height: 1px;
    right: 7%;
    bottom: 38px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16));
}

/* =========================================================
   TECHNICAL GRID
========================================================= */

.bams-ppg-cta-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.32;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, transparent 0%, black 48%, black 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 48%, black 100%);
}

/* =========================================================
   GOLD ACCENT
========================================================= */

.bams-ppg-cta-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--bams-cta-gold);
    box-shadow: 0 0 24px rgba(231, 173, 34, 0.18);
}

.bams-ppg-cta-accent::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 40px;
    width: 34px;
    height: 1px;
    background: var(--bams-cta-gold);
    box-shadow: 0 9px 0 rgba(231, 173, 34, 0.55), 0 18px 0 rgba(231, 173, 34, 0.28);
}

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

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

.bams-ppg-cta-title {
    margin: 0;
    color: var(--bams-cta-white);
    font-size: 34px;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.bams-ppg-cta-description {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--bams-cta-muted);
    font-size: 17px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

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

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

/* =========================================================
   ACTION
========================================================= */

.bams-ppg-cta-action {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.bams-ppg-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-width: 188px;
    min-height: 56px;
    padding: 14px 20px 14px 26px;
    box-sizing: border-box;
    color: var(--bams-cta-navy-deep);
    background: var(--bams-cta-gold);
    border: 1px solid var(--bams-cta-gold);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition:
        transform 0.22s ease,
        background-color 0.22s ease,
        box-shadow 0.22s ease;
}

.bams-ppg-cta-button:hover {
    color: var(--bams-cta-navy-deep);
    background: #f2bd35;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.20);
}

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

.bams-ppg-cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.22s ease;
}

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

/* =========================================================
   COMPACT
========================================================= */

.bams-ppg-cta-style-compact .bams-ppg-cta-panel {
    min-height: 205px;
    padding-top: 42px;
    padding-bottom: 42px;
}

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

/* =========================================================
   PROMINENT
========================================================= */

.bams-ppg-cta-style-prominent .bams-ppg-cta-panel {
    min-height: 290px;
    padding: 68px 72px 68px 80px;
}

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

.bams-ppg-cta-style-prominent .bams-ppg-cta-button {
    min-height: 60px;
    min-width: 205px;
}

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

@media (max-width: 900px) {

    .bams-ppg-cta {
        margin-top: 48px;
    }

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

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

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

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

    .bams-ppg-cta-action {
        justify-self: start;
    }
}

@media (max-width: 600px) {

    .bams-ppg-cta {
        margin-top: 38px;
    }

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

    .bams-ppg-cta-panel,
    .bams-ppg-cta-style-prominent .bams-ppg-cta-panel {
        gap: 24px;
        padding: 38px 26px 42px 30px;
    }

    .bams-ppg-cta-accent {
        width: 4px;
    }

    .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.65;
    }

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

    .bams-ppg-cta-button,
    .bams-ppg-cta-style-prominent .bams-ppg-cta-button {
        width: 100%;
        min-width: 0;
    }

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