/* =============================================
   HEADER.PHP STYLES
   ============================================= */

/* ─── Site header ─── */
.pp-site-header {
    background: var(--pp-navy) !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}
.pp-site-header.pp-header--scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.4) !important;
}

.pp-header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 70px;
}

/* ─── Brand / Wordmark ─── */
.pp-header-brand {
    flex-shrink: 0;
}
.pp-header-wordmark {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none !important;
    color: var(--pp-white) !important;
}
.pp-header-wordmark:hover {
    color: var(--pp-yellow) !important;
}
.pp-header-wordmark__icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}
.pp-header-wordmark__text {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.pp-header-wordmark__text strong {
    display: block;
    font-family: var(--pp-font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--pp-white);
}
.pp-header-wordmark__tagline {
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

/* Logo override */
.pp-header-logo .custom-logo-link img {
    max-height: 44px;
    width: auto;
}

/* ─── Primary navigation ─── */
.pp-primary-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}
.pp-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}
.pp-nav-list > li > a {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    font-family: var(--pp-font-body);
    font-weight: 500;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.78) !important;
    text-decoration: none !important;
    border-radius: var(--pp-radius-sm);
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    letter-spacing: 0.005em;
}
.pp-nav-list > li > a:hover,
.pp-nav-list > li.current-menu-item > a,
.pp-nav-list > li.current_page_item > a {
    color: var(--pp-yellow) !important;
    background: rgba(255,255,255,0.06);
}

/* Dropdown */
.pp-nav-list > li {
    position: relative;
}
.pp-nav-list > li > .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--pp-navy-mid);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--pp-radius);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    padding: 0.4rem;
    list-style: none;
    z-index: 200;
}
.pp-nav-list > li:hover > .sub-menu {
    display: block;
}
.pp-nav-list > li > .sub-menu li a {
    display: block;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7) !important;
    border-radius: var(--pp-radius-sm);
    transition: all 0.15s;
    text-decoration: none !important;
}
.pp-nav-list > li > .sub-menu li a:hover {
    color: var(--pp-yellow) !important;
    background: rgba(255,255,255,0.06);
}

/* ─── Header action buttons ─── */
.pp-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
.pp-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--pp-font-body);
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: var(--pp-radius-sm);
    padding: 0.45rem 1rem;
    text-decoration: none !important;
    transition: all 0.2s;
    white-space: nowrap;
    cursor: pointer;
    border: 1.5px solid transparent;
}
.pp-header-btn--primary {
    background: var(--pp-blue);
    color: white !important;
    box-shadow: 0 2px 8px rgba(26,108,255,0.3);
}
.pp-header-btn--primary:hover {
    background: var(--pp-primary-dark);
    color: var(--pp-white) !important;
    transform: translateY(-1px);
}
.pp-header-btn--ghost {
    color: rgba(255,255,255,0.75) !important;
    border-color: rgba(255,255,255,0.2);
    background: transparent;
}
.pp-header-btn--ghost:hover {
    color: var(--pp-white) !important;
    border-color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.07);
}

/* ─── Mobile toggle ─── */
.pp-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--pp-radius-sm);
    flex-shrink: 0;
}
.pp-mobile-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: all 0.25s ease;
}
.pp-mobile-toggle[aria-expanded="true"] .pp-mobile-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.pp-mobile-toggle[aria-expanded="true"] .pp-mobile-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.pp-mobile-toggle[aria-expanded="true"] .pp-mobile-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile nav ─── */
@media (max-width: 900px) {
    .pp-mobile-toggle { display: flex; }
    .pp-header-actions { gap: 0.4rem; }
    .pp-header-btn--ghost { display: none; }
    .pp-primary-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--pp-navy-mid);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 8px 30px rgba(0,0,0,0.3);
        padding: 1rem;
        z-index: 999;
    }
    .pp-primary-nav.pp-nav--open { display: block; }
    .pp-nav-list { flex-direction: column; gap: 0.2rem; }
    .pp-nav-list > li > a { padding: 0.65rem 0.9rem; width: 100%; }
    .pp-nav-list > li > .sub-menu {
        display: block !important;
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.06);
        margin-top: 0.25rem;
    }
    .pp-site-header { position: relative; }
    .pp-header-inner { position: relative; }
}
@media (max-width: 480px) {
    .pp-header-btn { font-size: 0.75rem; padding: 0.4rem 0.75rem; }
}

/* =============================================
   FOOTER.PHP STYLES
   ============================================= */

.pp-site-footer {
    background: var(--pp-navy);
    color: rgba(255,255,255,0.65);
    margin-top: auto;
}

/* ─── Widget area ─── */
.pp-footer-widgets {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.pp-footer-widgets__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}
.pp-footer-widgets .widget-title {
    font-family: var(--pp-font-heading) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--pp-white) !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.6rem !important;
    border-bottom: 2px solid var(--pp-yellow) !important;
}
.pp-footer-widgets .widget a {
    color: rgba(255,255,255,0.6) !important;
}
.pp-footer-widgets .widget a:hover {
    color: var(--pp-yellow) !important;
}

/* ─── Default footer layout ─── */
.pp-footer-default {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.pp-footer-default__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.pp-footer-brand-col {}
.pp-footer-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none !important;
    margin-bottom: 1rem;
}
.pp-footer-wordmark__icon {
    font-size: 1.3rem;
    line-height: 1;
}
.pp-footer-wordmark__text {
    font-family: var(--pp-font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    color: var(--pp-white) !important;
    line-height: 1;
}
.pp-footer-wordmark:hover .pp-footer-wordmark__text {
    color: var(--pp-yellow) !important;
}
.pp-footer-tagline {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
    max-width: 280px;
}
.pp-footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.pp-footer-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--pp-radius-pill);
    padding: 0.25rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
}

.pp-footer-nav-col {}
.pp-footer-nav-title {
    font-family: var(--pp-font-heading) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--pp-white) !important;
    margin: 0 0 0.9rem 0 !important;
    padding-bottom: 0.6rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}
.pp-footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.pp-footer-nav li a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55) !important;
    text-decoration: none !important;
    transition: color 0.15s;
    display: inline-block;
}
.pp-footer-nav li a:hover {
    color: var(--pp-yellow) !important;
}

/* ─── Footer bottom bar ─── */
.pp-footer-bottom {
    padding: 1.25rem 0;
}
.pp-footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.pp-footer-copy {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    margin: 0;
}
.pp-footer-copy a {
    color: rgba(255,255,255,0.55) !important;
    font-weight: 600;
}
.pp-footer-copy a:hover {
    color: var(--pp-yellow) !important;
}
.pp-footer-bottom-links a {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.3) !important;
    text-decoration: none !important;
    letter-spacing: 0.02em;
    transition: color 0.15s;
}
.pp-footer-bottom-links a:hover {
    color: var(--pp-yellow) !important;
}

/* Footer responsive */
@media (max-width: 960px) {
    .pp-footer-default__inner {
        grid-template-columns: 1fr 1fr;
    }
    .pp-footer-brand-col {
        grid-column: span 2;
    }
}
@media (max-width: 600px) {
    .pp-footer-default__inner {
        grid-template-columns: 1fr;
    }
    .pp-footer-brand-col {
        grid-column: span 1;
    }
    .pp-footer-bottom__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =============================================
   404.PHP STYLES
   ============================================= */

.pp-404 {
    position: relative;
    background: var(--pp-navy);
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.pp-404__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.pp-404__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}
.pp-404__orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26,108,255,0.35), transparent 70%);
    top: -100px;
    right: -100px;
    opacity: 0.6;
}
.pp-404__orb--2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(245,197,24,0.15), transparent 70%);
    bottom: 0;
    left: 5%;
    opacity: 0.5;
}
.pp-404__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 5rem 1.5rem;
    width: 100%;
}
.pp-404__code {
    font-family: var(--pp-font-heading);
    font-size: clamp(6rem, 20vw, 14rem);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px rgba(26,108,255,0.4);
    text-stroke: 2px rgba(26,108,255,0.4);
    line-height: 1;
    margin-bottom: 0.25rem;
    letter-spacing: -0.05em;
    user-select: none;
}
.pp-404__title {
    font-family: var(--pp-font-heading) !important;
    font-size: clamp(1.75rem, 4vw, 2.75rem) !important;
    font-weight: 800 !important;
    color: var(--pp-white) !important;
    margin: 0 0 1rem 0 !important;
    letter-spacing: -0.03em !important;
}
.pp-404__sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6) !important;
    max-width: 480px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.65;
}
.pp-404__links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}
.pp-404__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none !important;
    padding: 0.55rem 1.1rem;
    border-radius: var(--pp-radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}
.pp-404__link:hover {
    background: var(--pp-blue);
    border-color: var(--pp-blue);
    color: var(--pp-white) !important;
    transform: translateY(-2px);
}
.pp-404__search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: 420px;
    margin: 0 auto;
}
.pp-404__search-input {
    flex: 1;
    padding: 0.65rem 1rem !important;
    border: 1.5px solid rgba(255,255,255,0.15) !important;
    border-radius: var(--pp-radius) !important;
    background: rgba(255,255,255,0.08) !important;
    color: var(--pp-white) !important;
    font-family: var(--pp-font-body) !important;
    font-size: 0.9rem !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
.pp-404__search-input::placeholder {
    color: rgba(255,255,255,0.35) !important;
}
.pp-404__search-input:focus {
    border-color: var(--pp-blue) !important;
    box-shadow: 0 0 0 3px rgba(26,108,255,0.25) !important;
    background: rgba(255,255,255,0.12) !important;
}
.pp-404__search-btn {
    background: var(--pp-blue) !important;
    color: var(--pp-white) !important;
    border: none !important;
    border-radius: var(--pp-radius) !important;
    padding: 0.65rem 1.25rem !important;
    font-family: var(--pp-font-body) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    white-space: nowrap;
}
.pp-404__search-btn:hover {
    background: var(--pp-primary-dark) !important;
}
