﻿/* =========================================================
   PXM SOFTWARE SOLUTIONS
   Layout Styles

   File: pxm-layout.css

   Purpose:
   Global page structure, section spacing, navigation,
   hero layout, containers, and footer layout.
   ========================================================= */


/* =========================================================
   Main Content
   ========================================================= */

main {
    display: block;
}


/* =========================================================
   Shared Section Structure
   ========================================================= */

.pxm-section {
    position: relative;
    padding-top: 7rem;
    padding-bottom: 7rem;
    overflow: hidden;
}


/* =========================================================
   Section Backgrounds

   Homepage rhythm:
   Dark Blue
   Light Blue
   White
   Light Blue
   White
   Dark Blue
   ========================================================= */

.pxm-section-dark {
    color: #ffffff;
    background: linear-gradient( 135deg, var(--pxm-navy-deep) 0%, var(--pxm-navy) 55%, var(--pxm-navy-light) 100% );
}


.pxm-section-light-blue {
    background: linear-gradient( 180deg, var(--pxm-light-blue) 0%, var(--pxm-light-blue-deep) 100% );
}


.pxm-section-white {
    background: var(--pxm-white);
}


/* =========================================================
   Shared Section Heading
   ========================================================= */

.pxm-section-header {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
    text-align: center;
}


    .pxm-section-header h2 {
        margin-bottom: 1.25rem;
    }


    .pxm-section-header p {
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
        font-size: 1.05rem;
    }


/* =========================================================
   Dark Section Typography
   ========================================================= */

.pxm-section-dark h1,
.pxm-section-dark h2,
.pxm-section-dark h3,
.pxm-section-dark h4,
.pxm-section-dark h5,
.pxm-section-dark h6 {
    color: #ffffff;
}


.pxm-section-dark p {
    color: var(--pxm-text-light);
}


.pxm-section-dark .pxm-eyebrow {
    color: #8eb4ff;
}


/* =========================================================
   Site Header
   ========================================================= */

.pxm-site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: var(--pxm-navy-deep);
}


/* =========================================================
   Navigation
   ========================================================= */

.pxm-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    min-height: 100px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(2, 11, 28, 0.20);
    transition: background-color var(--pxm-transition), box-shadow var(--pxm-transition), backdrop-filter var(--pxm-transition);
}


    .pxm-navbar .container {
        position: relative;
        z-index: 2;
    }


/* ---------------------------------------------------------
   Logo
   --------------------------------------------------------- */

.pxm-navbar-brand {
    display: inline-flex;
    align-items: center;
    margin-right: 2rem;
}


.pxm-navbar-logo {
    width: 110px;
    height: auto;
    display: block;
}


/* ---------------------------------------------------------
   Navigation Links
   --------------------------------------------------------- */

.pxm-navbar .navbar-nav {
    gap: 0.15rem;
}


.pxm-navbar .nav-link {
    position: relative;
    padding: 0.65rem 0.85rem !important;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color var(--pxm-transition-fast);
}


    .pxm-navbar .nav-link:hover,
    .pxm-navbar .nav-link:focus {
        color: #ffffff;
    }


    /* ---------------------------------------------------------
   Active Link Indicator
   --------------------------------------------------------- */

    .pxm-navbar .nav-link::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0.25rem;
        width: 0;
        height: 2px;
        transform: translateX(-50%);
        border-radius: 2px;
        background: var(--pxm-blue-bright);
        transition: width var(--pxm-transition-fast);
    }


    .pxm-navbar .nav-link:hover::after,
    .pxm-navbar .nav-link:focus::after,
    .pxm-navbar .nav-link.active::after {
        width: 24px;
    }


/* ---------------------------------------------------------
   Navbar Scroll State

   JavaScript will toggle pxm-navbar-scrolled.
   --------------------------------------------------------- */

.pxm-navbar.pxm-navbar-scrolled {
    background: rgba(2, 11, 28, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   Hero Layout
   ========================================================= */

.pxm-hero {
    position: relative;
    min-height: 780px;
    color: #ffffff;
    overflow: hidden;
    background: radial-gradient( circle at 75% 40%, rgba(37, 99, 235, 0.22), transparent 30% ), radial-gradient( circle at 85% 65%, rgba(59, 130, 246, 0.10), transparent 25% ), linear-gradient( 135deg, var(--pxm-navy-deep) 0%, var(--pxm-navy) 58%, var(--pxm-navy-light) 100% );
}


    /* ---------------------------------------------------------
   Subtle Background Grid
   --------------------------------------------------------- */

    .pxm-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: 0.06;
        background-image: linear-gradient( rgba(255, 255, 255, 0.08) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px );
        background-size: 64px 64px;
    }


    /* ---------------------------------------------------------
   Hero Vignette
   --------------------------------------------------------- */

    .pxm-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient( 90deg, rgba(2, 11, 28, 0.15) 0%, transparent 45%, rgba(2, 11, 28, 0.10) 100% );
    }


/* ---------------------------------------------------------
   Hero Content Wrapper
   --------------------------------------------------------- */

.pxm-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 6rem;
    padding-bottom: 7rem;
}


/* ---------------------------------------------------------
   Hero Text Column
   --------------------------------------------------------- */

.pxm-hero-copy {
    max-width: 760px;
}

.pxm-hero-title {
    margin-bottom: 1.5rem;
    color: #ffffff;
}


    .pxm-hero-title span {
        display: block;
        color: var(--pxm-blue-bright);
    }


.pxm-hero-description {
    max-width: 640px;
    margin-bottom: 0;
    color: rgba(223, 235, 251, 0.80);
    font-size: clamp( 1.05rem, 1.5vw, 1.2rem );
    line-height: 1.8;
}


/* ---------------------------------------------------------
   Hero Action Area
   --------------------------------------------------------- */

.pxm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}


/* ---------------------------------------------------------
   Hero Proof / Trust Area
   --------------------------------------------------------- */

.pxm-hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-top: 3.5rem;
}


.pxm-proof-item {
    display: flex;
    flex-direction: column;
    max-width: 170px;
}


    .pxm-proof-item strong {
        margin-bottom: 0.1rem;
        color: #ffffff;
        font-size: 0.95rem;
        font-weight: 800;
    }


    .pxm-proof-item span {
        color: rgba(255, 255, 255, 0.50);
        font-size: 0.72rem;
        line-height: 1.4;
    }


/* =========================================================
   Two Column Content Layout
   ========================================================= */

.pxm-split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 5rem;
}


.pxm-split-content {
    max-width: 600px;
}


    .pxm-split-content h2 {
        margin-bottom: 1.5rem;
    }


    .pxm-split-content p {
        font-size: 1.02rem;
    }


/* =========================================================
   Full Width Content Block
   ========================================================= */

.pxm-content-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   Featured Content Shell
   ========================================================= */

.pxm-feature-shell {
    position: relative;
    padding: 4rem;
    border: 1px solid rgba(81, 123, 181, 0.15);
    border-radius: var(--pxm-radius-xl);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: var(--pxm-shadow-sm);
}


/* =========================================================
   Section Divider

   Used sparingly when two similar backgrounds need
   separation.
   ========================================================= */

.pxm-section-divider {
    width: 100%;
    height: 1px;
    background: var(--pxm-border-light);
}


/* =========================================================
   Page Hero

   Used on inner pages such as About, Services,
   Case Studies, and Contact.
   ========================================================= */

.pxm-page-hero {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 6rem;
    color: #ffffff;
    overflow: hidden;
    background: radial-gradient( circle at 80% 40%, rgba(37, 99, 235, 0.18), transparent 30% ), linear-gradient( 135deg, var(--pxm-navy-deep), var(--pxm-navy-light) );
}

    .pxm-page-hero h1 {
        max-width: 850px;
        margin-bottom: 1.5rem;
        color: #ffffff;
    }


    .pxm-page-hero p {
        max-width: 760px;
        color: rgba(222, 234, 250, 0.78);
        font-size: 1.1rem;
    }


/* =========================================================
   Footer Layout
   ========================================================= */

.pxm-footer {
    position: relative;
    padding-top: 5rem;
    padding-bottom: 2rem;
    color: rgba(255, 255, 255, 0.65);
    background: var(--pxm-navy-deep);
}


/* ---------------------------------------------------------
   Footer Branding
   --------------------------------------------------------- */

.pxm-footer-brand {
    max-width: 360px;
}


.pxm-footer-logo {
    width: 135px;
    margin-bottom: 1.5rem;
}


.pxm-footer-brand p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}


/* ---------------------------------------------------------
   Footer Headings
   --------------------------------------------------------- */

.pxm-footer h2 {
    margin-bottom: 1.2rem;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   Footer Navigation
   --------------------------------------------------------- */

.pxm-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}


.pxm-footer li {
    margin-bottom: 0.55rem;
}


.pxm-footer a {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.83rem;
}


    .pxm-footer a:hover,
    .pxm-footer a:focus {
        color: #ffffff;
    }


/* ---------------------------------------------------------
   Footer Address
   --------------------------------------------------------- */

.pxm-footer address {
    margin: 0;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.83rem;
    font-style: normal;
}


/* ---------------------------------------------------------
   Footer Bottom Bar
   --------------------------------------------------------- */

.pxm-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.72rem;
}


/* =========================================================
   Sticky Header Compensation

   Used later if page anchors are linked directly.
   ========================================================= */

[id] {
    scroll-margin-top: 100px;
}

/* =========================================================
   Large Desktop Container

   Gives the PXM site a wider, more cinematic layout on
   large desktop monitors.
   ========================================================= */

@media (min-width: 1400px) {

    .container {
        max-width: 1440px;
    }
}