/* ==========================================================================
   Shared Components – PFP Solutions
   ========================================================================== */

/* Reset / Base -------------------------------------------------------- */
html {
    overflow-x: hidden;
}

body.neve-child,
body {
    font-family: var(--pfp-font);
    color: var(--pfp-gray-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Hide Neve's built-in header & footer so our custom ones take over */
.hfg-header,
.hfg-header-wrapper,
.site-header,
#header,
.neve-main ~ footer,
.nv-footer-content,
footer.site-footer {
    display: none !important;
}

/* ── Custom Navbar ─────────────────────────────────────────────────────────── */
.pfp-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background var(--pfp-transition);
}

.pfp-navbar--scrolled {
    background: rgba(13, 17, 23, 0.98);
}

.pfp-navbar__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 84px;
}

.pfp-navbar__logo {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
}

.pfp-navbar__logo-img {
    height: 80px;
    width: auto;
    max-width: 100%;
    display: block;
}

.pfp-navbar__site-name {
    color: var(--pfp-white);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.pfp-navbar__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.pfp-navbar__nav a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--pfp-transition);
}

.pfp-navbar__nav a:hover,
.pfp-navbar__nav a[aria-current="page"] {
    color: var(--pfp-white);
}

.pfp-navbar__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Hamburger toggle (mobile) */
.pfp-navbar__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

.pfp-navbar__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--pfp-white);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* Mobile menu */
.pfp-navbar__mobile {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0 1rem;
}

.pfp-navbar__mobile[hidden] {
    display: none;
}

.pfp-navbar__mobile a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem var(--pfp-container-px, 1.5rem);
    transition: color var(--pfp-transition);
}

.pfp-navbar__mobile a:hover {
    color: var(--pfp-white);
}

@media (max-width: 768px) {
    .pfp-navbar__nav,
    .pfp-navbar__actions {
        display: none;
    }

    .pfp-navbar__toggle {
        display: flex;
    }

    /* .pfp-navbar__inner {
        height: 64px;
    } */

    .pfp-navbar__logo-img {
        height: 44px;
    }

    body {
        padding-top: 64px;
    }

    .pfp-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .pfp-hero__actions .pfp-btn {
        /* width: 100%; */
        /* max-width: 320px; */
        justify-content: center;
    }

    .pfp-section {
        padding: 3rem 0;
    }
}

/* Push page content below fixed navbar — applies globally */
body {
    padding-top: 84px;
}

/* Custom pfp-page wrapper resets the extra padding since body already has it */
.pfp-page {
    padding-top: 0;
}

/* Override Neve's container width for our landing pages */
.pfp-page .nv-content-wrap,
.pfp-page .nv-single-page-wrap {
    max-width: 100%;
    padding: 0;
}

/* --- Container ----------------------------------------------------------- */
.pfp-container {
    margin: 0 auto;
    padding: 0 var(--pfp-section-x);
}

/* --- Section ------------------------------------------------------------- */
.pfp-section {
    padding: var(--pfp-section-y) 0;
}

.pfp-section--dark {
    background: var(--pfp-navy);
    color: var(--pfp-white);
}

.pfp-section--muted {
    background: var(--pfp-gray-50);
}

.pfp-section--gradient {
    background: linear-gradient(135deg, var(--pfp-navy) 0%, var(--pfp-navy-light) 50%, #1e293b 100%);
    color: var(--pfp-white);
}

/* --- Section headings ---------------------------------------------------- */
.pfp-section__eyebrow {
    display: inline-block;
    font-size: .8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--pfp-blue);
    margin-bottom: .75rem;
}

.pfp-section__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem;
}

.pfp-section__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: var(--pfp-gray-500);
    max-width: 640px;
}

.pfp-section--dark .pfp-section__subtitle {
    color: var(--pfp-gray-400);
}

/* --- Buttons ------------------------------------------------------------- */
.pfp-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    font-family: var(--pfp-font);
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.4;
    border-radius: var(--pfp-radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: background var(--pfp-duration) var(--pfp-ease),
                box-shadow var(--pfp-duration) var(--pfp-ease),
                transform var(--pfp-duration) var(--pfp-ease);
    border: none;
}

.pfp-btn:focus-visible {
    outline: 2px solid var(--pfp-blue);
    outline-offset: 2px;
}

.pfp-btn--primary {
    background: var(--pfp-blue);
    color: var(--pfp-white);
}

.pfp-btn--primary:hover {
    background: var(--pfp-blue-hover);
    box-shadow: var(--pfp-shadow-md);
    transform: translateY(-1px);
}

.pfp-btn--outline {
    background: transparent;
    color: var(--pfp-blue);
    box-shadow: inset 0 0 0 2px var(--pfp-blue);
}

.pfp-btn--outline:hover {
    background: var(--pfp-blue);
    color: var(--pfp-white);
}

.pfp-btn--white {
    background: var(--pfp-white);
    color: var(--pfp-navy);
}

.pfp-btn--white:hover {
    background: var(--pfp-gray-100);
    transform: translateY(-1px);
}

/* Outlined button for use on dark/navbar backgrounds */
.pfp-btn--outline-white {
    background: transparent;
    color: var(--pfp-white);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65);
}

.pfp-btn--outline-white:hover {
    background: var(--pfp-white);
    color: var(--pfp-navy);
    box-shadow: inset 0 0 0 2px var(--pfp-white);
}

.pfp-btn--lg {
    padding: 1rem 2.25rem;
    font-size: 1.0625rem;
}

/* --- Cards --------------------------------------------------------------- */
.pfp-card {
    background: var(--pfp-white);
    border-radius: var(--pfp-radius);
    padding: 2rem;
    box-shadow: var(--pfp-shadow);
    transition: box-shadow var(--pfp-duration) var(--pfp-ease),
                transform var(--pfp-duration) var(--pfp-ease);
}

.pfp-card:hover {
    box-shadow: var(--pfp-shadow-lg);
    transform: translateY(-4px);
}

.pfp-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--pfp-radius-sm);
    background: rgba(37, 99, 235, 0.1);
    border: 1.5px solid rgba(37, 99, 235, 0.2);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.pfp-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 .5rem;
}

.pfp-card__text {
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--pfp-gray-600);
    margin: 0;
}

/* --- Grid ---------------------------------------------------------------- */
.pfp-grid {
    display: grid;
    gap: var(--pfp-gap);
}

.pfp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.pfp-grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
    .pfp-grid--2,
    .pfp-grid--3 {
        grid-template-columns: 1fr;
    }
}

/* --- Two-column feature layout ------------------------------------------- */
.pfp-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pfp-feature-row--reversed {
    direction: rtl;
}

.pfp-feature-row--reversed > * {
    direction: ltr;
}

@media (max-width: 768px) {
    .pfp-feature-row,
    .pfp-feature-row--reversed {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 2rem;
    }
}

.pfp-feature-row--no-image {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
}

.pfp-feature-row__visual {
    border-radius: var(--pfp-radius-lg);
    overflow: hidden;
    box-shadow: var(--pfp-shadow-xl);
}

.pfp-feature-row__visual img {
    width: 100%;
    height: auto;
    display: block;
}

.pfp-feature-row__content h3 {
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    font-weight: 700;
    margin: 0 0 1rem;
}

.pfp-feature-row__content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--pfp-gray-600);
    margin: 0 0 1.5rem;
}

.pfp-feature-row__list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.pfp-feature-row__list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: .5rem;
    font-size: .9375rem;
    color: var(--pfp-gray-700);
}

.pfp-feature-row__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--pfp-green);
    font-weight: 700;
}

/* --- Trust bar ----------------------------------------------------------- */
.pfp-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    opacity: .5;
    filter: grayscale(1);
    transition: opacity var(--pfp-duration) var(--pfp-ease);
}

.pfp-trust:hover {
    opacity: .75;
}

.pfp-trust img {
    height: 36px;
    width: auto;
}

/* --- CTA band ------------------------------------------------------------ */
.pfp-cta-band {
    text-align: center;
    padding: 5rem 0;
}

.pfp-cta-band__title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 1rem;
}

.pfp-cta-band__subtitle {
    font-size: 1.125rem;
    margin: 0 0 2rem;
    opacity: .85;
}

.pfp-cta-band__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Scroll reveal animation --------------------------------------------- */
.pfp-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s var(--pfp-ease), transform .6s var(--pfp-ease);
}

.pfp-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- PFP Header override ------------------------------------------------- */
.pfp-header {
    background: var(--pfp-navy) !important;
}

.pfp-header a {
    color: var(--pfp-white) !important;
}

/* --- PFP Footer ---------------------------------------------------------- */
.pfp-footer {
    background: var(--pfp-navy);
    color: var(--pfp-gray-400);
    padding: 4rem 0 2rem;
}

.pfp-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .pfp-footer__grid {
        grid-template-columns: 1fr;
    }
}

.pfp-footer__brand p {
    font-size: .9375rem;
    line-height: 1.6;
    margin: 1rem 0 0;
}

.pfp-footer__col h4 {
    color: var(--pfp-white);
    font-size: .875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 1rem;
}

.pfp-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pfp-footer__col li {
    margin-bottom: .5rem;
}

.pfp-footer__col a {
    color: var(--pfp-gray-400);
    text-decoration: none;
    font-size: .9375rem;
    transition: color var(--pfp-duration) var(--pfp-ease);
}

.pfp-footer__col a:hover {
    color: var(--pfp-white);
}

.pfp-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 1.5rem;
    font-size: .8125rem;
    text-align: center;
}

/* ── Hero section (shared across all pages) ─────────────────────────────── */
.pfp-hero {
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse 90% 60% at 15% 40%, rgba(37,99,235,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 70% 80% at 85% 20%, rgba(17,37,70,0.6) 0%, transparent 55%),
        #0d1117;
    color: var(--pfp-white);
    padding-bottom: 3rem;
}

.pfp-hero .pfp-container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
    width: 100%;
    box-sizing: border-box;
}

.pfp-hero__title {
    font-size: clamp(2rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 1.25rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: break-word;
    word-break: break-word;
}

.pfp-hero__title span {
    background: linear-gradient(90deg, var(--pfp-blue-light), var(--pfp-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pfp-hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.375rem);
    line-height: 1.65;
    color: var(--pfp-gray-400);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.pfp-hero__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Feature page sections ----------------------------------------------- */
.pfp-feature-block {
    padding: var(--pfp-section-y) 0;
}

.pfp-feature-block:nth-child(even) {
    background: var(--pfp-gray-50);
}

.pfp-feature-block__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.pfp-feature-block__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pfp-feature-block__list {
    max-width: 600px;
    margin: 0 auto;
}

.pfp-feature-block__list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: .75rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--pfp-gray-700);
}

.pfp-feature-block__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--pfp-blue);
    font-weight: 700;
}
