/* ==========================================================================
   Northwest Nodes — Base
   Shared styles: reset, variables, type, nav, footer, CTA,
   page header, content grids, cards, trust, form, obfuscation
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #0D1B2A;
    --navy-light: #1B2D45;
    --navy-mid: #142236;
    --slate: #415A77;
    --silver: #778DA9;

    --off-white: #F7F6F3;
    --warm-white: #FDFCFA;

    --text-primary: #1A1A1A;
    --text-secondary: #565656;
    --text-tertiary: #888888;

    --border-light: #E7E3DD;
    --border-mid: rgba(13, 27, 42, 0.10);
    --border-dark: rgba(247, 246, 243, 0.12);

    --shadow-soft: 0 12px 36px rgba(13, 27, 42, 0.04);
    --shadow-lift: 0 18px 48px rgba(13, 27, 42, 0.06);

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --max-width: 1280px;
    --content-width: 1180px;
    --reading-width: 760px;

    --nav-height: 98px;

    --section-pad: clamp(88px, 10vw, 148px);
    --section-pad-tight: clamp(64px, 7vw, 104px);

    --transition-fast: 180ms ease;
    --transition-med: 260ms ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--warm-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea {
    font: inherit;
}

::selection {
    background: rgba(65, 90, 119, 0.16);
    color: var(--navy);
}

/* ==========================================================================
   GLOBAL TYPE
   ========================================================================== */

.section-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 22px;
}

.section-title,
.section-heading-title,
.trust-title,
.cta-title {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--navy);
    line-height: 1.14;
    letter-spacing: -0.015em;
}

.section-title {
    font-size: clamp(34px, 4vw, 50px);
    max-width: 640px;
    margin-bottom: 68px;
}

.section-heading-title {
    font-size: clamp(32px, 3.5vw, 44px);
    max-width: 540px;
}

p {
    max-width: 72ch;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--nav-height);
    padding: 0 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(253, 252, 250, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition:
        background var(--transition-med),
        border-color var(--transition-med),
        box-shadow var(--transition-med);
}

.nav.scrolled {
    border-bottom-color: var(--border-light);
    box-shadow: 0 8px 26px rgba(13, 27, 42, 0.03);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.nav-logo img {
    height: 55px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    position: relative;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-links a:not(.nav-contact)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 1px;
    background: var(--navy);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--navy);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-contact {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy) !important;
    border: 1px solid var(--navy);
    padding: 11px 24px;
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast);
}

.nav-contact::after {
    display: none !important;
}

.nav-contact:hover,
.nav-contact:focus-visible {
    background: var(--navy);
    color: var(--warm-white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--navy);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ==========================================================================
   SHARED BUTTONS
   ========================================================================== */

.hero-cta,
.cta-btn,
.form-submit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid currentColor;
    padding: 16px 30px;
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast);
}

.hero-cta svg,
.cta-btn svg,
.form-submit svg {
    transition: transform var(--transition-fast);
}

.hero-cta:hover svg,
.cta-btn:hover svg,
.form-submit:hover svg {
    transform: translateX(3px);
}

/* ==========================================================================
   SERVICES GRID + CARDS (shared: home, about)
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--border-light);
    border: 1px solid var(--border-light);
}

.service-card {
    display: block;
    background: var(--warm-white);
    padding: 48px 42px 44px;
    min-height: 290px;
    transition:
        background var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.service-card:hover,
.service-card:focus-visible {
    background: var(--off-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.service-number {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--silver);
    margin-bottom: 22px;
}

.service-name {
    font-family: var(--font-display);
    font-size: 29px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 15px;
}

.service-desc {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ==========================================================================
   TRUST + CERTS (shared: home, security)
   ========================================================================== */

.trust {
    padding: var(--section-pad) 56px;
    background: var(--off-white);
}

.trust-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 84px;
    align-items: start;
}

.trust-title {
    font-size: clamp(34px, 4vw, 50px);
    margin-bottom: 28px;
    max-width: 560px;
}

.trust-text {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.82;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.trust-text:last-child {
    margin-bottom: 0;
}

.trust-certs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trust-cert {
    background: var(--warm-white);
    border: 1px solid var(--border-light);
    padding: 36px 36px 34px;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.trust-cert:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.trust-cert.in-progress {
    border-style: dashed;
}

.trust-cert-status {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 14px;
}

.trust-cert-title {
    font-family: var(--font-display);
    font-size: 29px;
    font-weight: 400;
    line-height: 1.18;
    color: var(--navy);
    margin-bottom: 10px;
}

.trust-cert-desc {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-tertiary);
}

/* ==========================================================================
   CTA (shared: all pages that use it)
   ========================================================================== */

.cta {
    padding: var(--section-pad) 56px;
    background: var(--navy);
    text-align: center;
}

.cta-inner {
    max-width: 720px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(38px, 5vw, 58px);
    color: var(--warm-white);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.82;
    color: var(--silver);
    margin: 0 auto 42px;
    max-width: 580px;
}

.cta-btn {
    color: var(--warm-white);
    border-color: rgba(247, 246, 243, 0.34);
}

.cta-btn:hover,
.cta-btn:focus-visible {
    background: var(--warm-white);
    color: var(--navy);
    border-color: var(--warm-white);
    transform: translateY(-1px);
}

.cta-whisper {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 300;
    font-style: italic;
    color: rgba(247, 246, 243, 0.22);
    letter-spacing: 0.02em;
    margin-top: 68px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: var(--navy);
    padding: 82px 56px 42px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.85fr 1fr 1fr 1.35fr;
    gap: 54px;
    margin-bottom: 56px;
}

.footer-brand-name {
    margin-bottom: 18px;
}

.footer-brand-name img {
    height: 58px;
    width: auto;
}

.footer-brand-desc {
    max-width: 320px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--silver);
}

.footer-heading {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact-item,
.footer-social a,
.footer-copy {
    color: rgba(247, 246, 243, 0.58);
}

.footer-links a,
.footer-contact-item {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.75;
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-contact-item a:hover,
.footer-social a:hover {
    color: var(--warm-white);
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-copy {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.03em;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-social a {
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-social a:hover {
    transform: translateY(-1px);
}

/* ==========================================================================
   INNER PAGE HEADER (shared: all inner pages)
   ========================================================================== */

.page-header {
    padding: 176px 56px 70px;
    background: var(--warm-white);
}

.page-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.page-header-title {
    font-family: var(--font-display);
    font-size: clamp(42px, 5vw, 66px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.018em;
    color: var(--navy);
    max-width: 880px;
    margin-bottom: 18px;
}

.page-header-sub {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.82;
    color: var(--text-secondary);
    max-width: 620px;
    margin-bottom: 14px;
}

.page-header-sub:last-child {
    margin-bottom: 0;
}

.page-header-sub:empty {
    display: none;
}

/* ==========================================================================
   INNER PAGE CONTENT (shared: services, security, careers, contact)
   ========================================================================== */

.content {
    padding: var(--section-pad-tight) 56px;
    position: relative;
}

.content-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
    gap: 76px;
    align-items: start;
}

.content-grid.narrow {
    grid-template-columns: minmax(240px, 0.74fr) minmax(0, 1.26fr);
}

.section-heading {
    position: sticky;
    top: calc(var(--nav-height) + 32px);
    margin-bottom: 0;
}

.content p,
.service-detail-body p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.86;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.content p:last-child,
.service-detail-body p:last-child {
    margin-bottom: 0;
}

.content + .content {
    padding-top: calc(var(--section-pad-tight) - 24px);
}

.content[style*="background: var(--off-white)"] .section-heading-title {
    max-width: 500px;
}

/* ==========================================================================
   FORM
   ========================================================================== */

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--silver);
}

.form-input,
.form-textarea {
    width: 100%;
    background: var(--warm-white);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: 0;
    outline: none;
    padding: 15px 18px;
    font-size: 15px;
    font-weight: 300;
    transition:
        border-color var(--transition-fast),
        background var(--transition-fast),
        box-shadow var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-tertiary);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(13, 27, 42, 0.05);
}

.form-textarea {
    resize: vertical;
    min-height: 170px;
}

.form-submit {
    background: transparent;
    color: var(--navy);
    cursor: pointer;
}

.form-submit:hover,
.form-submit:focus-visible {
    background: var(--navy);
    color: var(--warm-white);
    transform: translateY(-1px);
}

/* ==========================================================================
   OBFUSCATED CONTACT REVEAL
   ========================================================================== */

.obf {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: var(--navy);
    border-bottom: 1px solid var(--border-light);
    transition:
        color var(--transition-fast),
        border-color var(--transition-fast);
}

.obf:hover {
    color: var(--slate);
    border-color: var(--silver);
}

/* ==========================================================================
   RESPONSIVE — SHARED
   ========================================================================== */

@media (max-width: 1200px) {
    .nav,
    .stats,
    .services,
    .trust,
    .cta,
    .footer,
    .page-header,
    .content {
        padding-left: 40px;
        padding-right: 40px;
    }

    .trust-inner {
        gap: 64px;
    }

    .content-grid {
        gap: 58px;
    }
}

@media (max-width: 1024px) {
    :root {
        --nav-height: 86px;
    }

    .nav {
        padding-left: 32px;
        padding-right: 32px;
        height: var(--nav-height);
    }

    .stats,
    .services,
    .trust,
    .cta,
    .footer,
    .page-header,
    .content {
        padding-left: 32px;
        padding-right: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .trust-inner,
    .content-grid,
    .content-grid.narrow,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .trust-inner,
    .content-grid,
    .footer-grid {
        gap: 42px;
    }

    .section-heading {
        position: static;
    }

    .trust-certs[style] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .nav {
        padding-left: 24px;
        padding-right: 24px;
    }

    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 28px 24px 30px;
        background: rgba(253, 252, 250, 0.98);
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 18px 36px rgba(13, 27, 42, 0.05);
    }

    .nav-links a:not(.nav-contact)::after {
        display: none;
    }

    .nav-contact {
        margin-top: 6px;
    }

    .nav-toggle {
        display: flex;
    }

    .stats,
    .services,
    .trust,
    .cta,
    .footer,
    .page-header,
    .content {
        padding-left: 24px;
        padding-right: 24px;
    }

    .page-header {
        padding-top: 132px;
        padding-bottom: 54px;
    }

    .page-header-title {
        font-size: 34px;
    }

    .hero-sub,
    .page-header-sub {
        font-size: 16px;
    }

    .section-title,
    .section-heading-title,
    .trust-title,
    .cta-title {
        max-width: none;
    }

    .section-title {
        margin-bottom: 46px;
    }

    .service-card {
        min-height: auto;
        padding: 38px 30px;
    }

    .trust-cert {
        padding: 30px 28px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-whisper {
        margin-top: 48px;
    }
}

@media (max-width: 480px) {
    .page-header-title {
        font-size: 30px;
    }

    .hero-cta,
    .cta-btn,
    .form-submit {
        width: 100%;
        justify-content: center;
    }
}