/*
Theme Name: BPRTool
Theme URI: https://test.bprtool.com
Author: BPRTool
Description: Custom WordPress theme for BPRTool.
Version: 1.0
Text Domain: bprtool
*/

/* =========================================================
   RESET / BASE
========================================================= */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f6f8fb;
    color: #1f2937;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.bpr-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* =========================================================
   HEADER
========================================================= */

.bpr-header {
    background: #ffffff;
    border-bottom: 1px solid #e3e8ef;
    position: relative;
    z-index: 10;
}

.bpr-header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.bpr-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.bpr-logo-main {
    font-size: 1.9rem;
    font-weight: 800;
    color: #15345b;
    letter-spacing: -0.5px;
}

.bpr-logo-tagline {
    margin-top: 5px;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #778396;
}

.bpr-navigation {
    display: flex;
    align-items: center;
}

.bpr-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.bpr-menu li {
    margin: 0;
    padding: 0;
}

.bpr-menu a {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
}

.bpr-menu a:hover {
    color: #1c6fb8;
}


/* =========================================================
   RESOURCES PAGE
========================================================= */

.bpr-page-hero {
    background: linear-gradient(
        120deg,
        #102d50 0%,
        #194a79 60%,
        #2f78b7 100%
    );
    color: #ffffff;
    padding: 72px 0;
}

.bpr-page-hero h1 {
    margin: 0;
    max-width: 800px;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.bpr-page-hero p {
    max-width: 760px;
    margin: 22px 0 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #dce8f4;
}


/* Resource Cards */

.bpr-resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.bpr-resource-card {
    background: #ffffff;
    padding: 34px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 35, 60, 0.06);
}

.bpr-resource-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9f1f9;
    color: #1d5d96;
    border-radius: 8px;
    font-weight: 800;
    margin-bottom: 22px;
}

.bpr-resource-card h2 {
    margin: 0;
    color: #173456;
    font-size: 1.45rem;
}

.bpr-resource-card p {
    margin: 14px 0 20px;
    color: #667085;
    line-height: 1.7;
}

.bpr-text-link {
    color: #1d5d96;
    font-weight: 800;
}

.bpr-text-link:hover {
    color: #102d50;
}


/* Resources CTA */

.bpr-resource-cta {
    background: #ffffff;
    border-top: 1px solid #e4e9ef;
    padding: 68px 0;
}

.bpr-resource-cta h2 {
    margin: 0;
    color: #173456;
    font-size: clamp(2rem, 4vw, 3rem);
}

.bpr-resource-cta p {
    max-width: 680px;
    margin: 14px 0 0;
    color: #667085;
}


/* Resources Responsive */

@media (max-width: 800px) {

    .bpr-resource-grid {
        grid-template-columns: 1fr;
    }

    .bpr-page-hero {
        padding: 55px 0;
    }
}
/* =========================================================
   HOMEPAGE HERO
========================================================= */

.bpr-hero {
    background:
        linear-gradient(
            120deg,
            #102d50 0%,
            #194a79 55%,
            #2f78b7 100%
        );
    color: #ffffff;
    padding: 88px 0;
    position: relative;
    overflow: hidden;
}

.bpr-hero::after {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    right: -120px;
    top: -140px;
}

.bpr-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 70px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.bpr-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f0b844;
    margin-bottom: 16px;
}

.bpr-hero h1 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -2px;
    max-width: 760px;
}

.bpr-hero-copy > p {
    max-width: 680px;
    margin: 28px 0 0;
    font-size: 1.14rem;
    line-height: 1.75;
    color: #dce8f4;
}

.bpr-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.bpr-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 7px;
    background: #f0b844;
    color: #102d50;
    font-weight: 800;
    font-size: 0.95rem;
    border: 2px solid #f0b844;
}

.bpr-button:hover {
    background: #f7c965;
    border-color: #f7c965;
}

.bpr-button-secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}

.bpr-button-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
}

.bpr-hero-panel {
    display: flex;
    justify-content: flex-end;
}

.bpr-hero-card {
    width: 100%;
    max-width: 420px;
    padding: 34px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}

.bpr-card-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #f0b844;
    margin-bottom: 14px;
}

.bpr-hero-card h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
}

.bpr-hero-card p {
    margin: 18px 0 0;
    color: #dbe6ef;
    line-height: 1.7;
}


/* =========================================================
   HOMEPAGE CONTENT SECTION
========================================================= */

.bpr-section {
    padding: 84px 0;
    background: #f6f8fb;
}

.bpr-section-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.bpr-section-heading h2 {
    margin: 0;
    color: #173456;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -1px;
}

.bpr-section-heading p {
    margin: 18px 0 0;
    font-size: 1.05rem;
    color: #667085;
}


/* =========================================================
   HOMEPAGE FEATURE CARDS
========================================================= */

.bpr-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bpr-feature-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 35, 60, 0.06);
}

.bpr-feature-number {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e9f1f9;
    color: #1d5d96;
    font-weight: 800;
    margin-bottom: 22px;
}

.bpr-feature-card h3 {
    margin: 0;
    color: #173456;
    font-size: 1.32rem;
}

.bpr-feature-card p {
    margin: 14px 0 0;
    color: #667085;
}


/* =========================================================
   HOMEPAGE CTA
========================================================= */

.bpr-cta {
    background: #ffffff;
    border-top: 1px solid #e4e9ef;
    padding: 68px 0;
}

.bpr-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.bpr-cta h2 {
    margin: 0;
    color: #173456;
    font-size: clamp(2rem, 4vw, 3rem);
}

.bpr-cta p {
    max-width: 700px;
    margin: 14px 0 0;
    color: #667085;
}


/* =========================================================
   HOMEPAGE RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .bpr-hero-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .bpr-hero-panel {
        justify-content: flex-start;
    }

    .bpr-feature-grid {
        grid-template-columns: 1fr;
    }

    .bpr-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {

    .bpr-hero {
        padding: 62px 0;
    }

    .bpr-hero h1 {
        font-size: 2.8rem;
    }

    .bpr-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bpr-button {
        width: 100%;
    }
}

.bpr-login-link {
    margin-left: 24px;
    font-size: .95rem;
    font-weight: 700;
    color: #334155;
}

.bpr-login-link:hover {
    color: #1c6fb8;
}

/* =========================================================
   LOGIN / LOGOUT NAVIGATION
========================================================= */

.bpr-navigation {
    display: flex;
    align-items: center;
    gap: 24px;
}

.bpr-user-nav {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.bpr-user-nav a {
    font-size: .95rem;
    font-weight: 700;
    color: #334155;
}

.bpr-user-nav a:hover {
    color: #1c6fb8;
}

/* =========================================================
   ABOUT PAGE - BARRY / BPRTOOL GRAPHIC
========================================================= */

.bpr-about-intro {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.bpr-about-copy {
    max-width: 760px;
}

.bpr-about-graphic {
    text-align: center;
}

.bpr-about-graphic img {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}

/* NSS Resources Graphic */
body.page-resources .bpr-about-graphic {
    align-self: start;
}

body.page-resources .bpr-about-graphic img {
    margin-top: -15px;
}

/* =========================================================
   HOME PAGE HERO GRAPHIC
========================================================= */

.bpr-hero-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bpr-hero-graphic img {
    display: block;
    width: 100%;
    max-width: 650px;
    height: auto;
    border-radius: 12px;
}

/* Mobile */
@media (max-width: 800px) {

    .bpr-hero-graphic {
        margin-top: 30px;
    }

    .bpr-hero-graphic img {
        max-width: 600px;
    }
}

/* =========================================================
   HOME HERO GRAPHIC - LARGER
========================================================= */

.bpr-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
}

.bpr-hero-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bpr-hero-panel img {
    width: 125%;
    max-width: 650px;
    height: auto;
    display: block;
}

/* Home hero graphic alignment */
.bpr-hero-graphic {
    align-self: start;
    margin-top: 115px;
}

.bpr-hero-graphic img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
}

/* =========================================================
   HOME HERO GRAPHIC - FINAL SIZE
========================================================= */

.bpr-hero-graphic {
    align-self: start;
    margin-top: 90px;
}

.bpr-hero-graphic img {
    width: 135%;
    max-width: none;
    height: auto;
    display: block;
}

/* =========================================================
   RESOURCES PAGE - TIGHTER SPACING
========================================================= */

body.page-resources .bpr-section {
    padding-top: 55px;
    padding-bottom: 55px;
}

body.page-resources .bpr-cta {
    padding-top: 55px;
    padding-bottom: 55px;
}

/* =========================================================
   RESOURCES PAGE - COMPACT SECTION SPACING
========================================================= */

body.page-template-page-resources .bpr-section {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
}

/* Remove unnecessary space below grids */
body.page-template-page-resources .bpr-feature-grid {
    margin-bottom: 0 !important;
}

/* Compact section headings */
body.page-template-page-resources .bpr-section-heading {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

/* Remove excess paragraph spacing at section bottoms */
body.page-template-page-resources .bpr-section p:last-child {
    margin-bottom: 0 !important;
}

/* Prevent empty vertical space between consecutive sections */
body.page-template-page-resources .bpr-section + .bpr-section {
    margin-top: 0 !important;
}

/* =========================================================
   NSS COMPACT SECTIONS
========================================================= */

.bpr-nss-compact {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

/* =========================================================
   NSS RESOURCE CARD IMAGES
========================================================= */

.bpr-resource-image {
    height: 95px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}

.bpr-resource-image img {
    width: 110px;
    height: 95px;
    object-fit: contain;
    object-position: left center;
    border-radius: 8px;
}