/* ============================================================
   Stonewall Security — Base Tokens, Reset, Typography
   Monochrome chrome aesthetic — black · graphite · silver · white
   ============================================================ */

:root {
    /* — Color palette — */
    --c-black:        #000000;
    --c-near-black:   #060607;
    --c-charcoal:     #0d0d10;
    --c-graphite:     #14141a;
    --c-stone:        #1d1d24;
    --c-grey:         #2c2d34;
    --c-grey-mid:     #4a4c54;
    --c-grey-light:   #8e9099;
    --c-bone:         #c8cad0;
    --c-white:        #f2f3f5;
    --c-pure-white:   #ffffff;

    /* — Gold / tan accents (site-wide theme; retinted from the old silver so
         every page's small accents — kickers, links, numbers, tabs, icons,
         dots — read gold and match. Big titles keep --grad-chrome). — */
    --c-gold:         #cdad6e;
    --c-gold-soft:    #b89a5f;
    --c-chrome:       #d7bb7f;   /* was #d8d9dd silver */
    --c-silver:       #aaacb3;
    --c-silver-dark:  #6c6f78;
    --grad-gold:
        linear-gradient(180deg, #f0dca6 0%, #dabf82 22%, #f6ecc9 42%, #b89a58 58%, #dcc088 74%, #9a7f44 90%, #cbad72 100%);

    /* — Subtle warning red (used sparingly) — */
    --c-red:          #a51226;
    --c-red-deep:     #7a0e1c;
    --c-red-soft:     rgba(165, 18, 38, 0.15);

    /* — Titles now use the gold gradient (--grad-chrome → gold). The original
         chrome is preserved as --grad-chrome-mono for the brand wordmark only. — */
    --grad-chrome-mono:
        linear-gradient(180deg,
            #f4f5f7 0%,
            #d2d4d9 18%,
            #ffffff 38%,
            #9a9da4 52%,
            #c8cad0 70%,
            #74777e 88%,
            #b9bcc2 100%);
    --grad-chrome: var(--grad-gold);
    --grad-silver-btn:
        linear-gradient(180deg, #e6cd93 0%, #bf9f5c 100%);
    --grad-silver-btn-hover:
        linear-gradient(180deg, #f0da9f 0%, #cbab66 100%);

    /* — Spacing scale — */
    --s-1:  4px;
    --s-2:  8px;
    --s-3:  12px;
    --s-4:  16px;
    --s-5:  24px;
    --s-6:  32px;
    --s-7:  48px;
    --s-8:  64px;
    --s-9:  96px;
    --s-10: 128px;
    --s-11: 160px;

    /* — Layout — */
    --container-max: 1440px;
    --container-pad: clamp(20px, 4vw, 56px);

    /* — Typography — */
    --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, 'Courier New', monospace;
    --font-display: 'Big Shoulders Display', 'Oswald', 'Inter', sans-serif;

    --fs-kicker:    11px;
    --fs-body:      16px;
    --fs-lede:      17px;
    --fs-h3:        clamp(20px, 1.5vw, 24px);
    --fs-h2:        clamp(40px, 5.5vw, 88px);
    --fs-display:   clamp(72px, 13vw, 220px);

    /* — Motion — */
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft:    cubic-bezier(0.22, 1, 0.36, 1);

    --dur-kicker:    500ms;
    --dur-title:     700ms;
    --dur-paragraph: 650ms;
    --dur-card:      700ms;
    --dur-image:     1100ms;
    --dur-bg:        1400ms;

    /* — Glass — */
    --glass-bg:    rgba(13, 13, 16, 0.72);
    --glass-edge:  rgba(255, 255, 255, 0.08);
    --glass-blur:  20px;
}

/* — Reset — */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, blockquote, figure { margin: 0; }
input, textarea, select { font: inherit; color: inherit; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background: var(--c-black);
    color: var(--c-bone);
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: 1.65;
    font-weight: 400;
    overflow-x: hidden;
    /* — Invisible scrollbar (page still scrolls) — */
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE 10+ */
}
body::-webkit-scrollbar { width: 0; height: 0; display: none; }
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { width: 0; height: 0; display: none; }

body.menu-open { overflow: hidden; }

/* — Layout helpers — */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

main { display: block; }

/* — Typography primitives — */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: var(--fs-kicker);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-chrome);
    font-weight: 500;
    margin-bottom: var(--s-5);
}

.kicker::before,
.kicker::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-silver-dark) 50%, transparent);
}

.kicker-plain {
    /* without flanking lines */
}
.kicker-plain::before, .kicker-plain::after { display: none; }

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-h2);
    line-height: 0.92;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--c-white);
    background: var(--grad-chrome);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 0 rgba(255,255,255,0.02);
}

.display {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--fs-display);
    line-height: 0.88;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    color: var(--c-white);
    background: var(--grad-chrome);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}

.display .line { display: block; }

.lede {
    font-size: var(--fs-lede);
    line-height: 1.65;
    color: var(--c-grey-light);
    max-width: 560px;
}

/* — Section heads — */
.section-head { margin-bottom: var(--s-8); max-width: 760px; }
.section-head .lede { margin-top: var(--s-5); }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-center .lede { margin-left: auto; margin-right: auto; }
.section-head-center .kicker { justify-content: center; }

/* — Buttons — */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-3);
    padding: 16px 32px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 999px;
    transition:
        background 320ms var(--ease-soft),
        color 280ms var(--ease-soft),
        border-color 280ms var(--ease-soft),
        transform 280ms var(--ease-soft),
        box-shadow 320ms var(--ease-soft);
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1px solid currentColor;
    font-size: 11px;
    transition: transform 280ms var(--ease-soft);
}
.btn:hover .btn-icon { transform: translateX(2px); }

/* Primary — chrome filled */
.btn-primary {
    background: var(--grad-silver-btn);
    color: #14141a;
    border-color: rgba(255,255,255,0.35);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.6),
        0 8px 32px -10px rgba(0,0,0,0.8);
}
.btn-primary:hover {
    background: var(--grad-silver-btn-hover);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.7),
        0 12px 36px -10px rgba(0,0,0,0.9);
}

/* Gold — filled (hero primary CTA) */
.btn-gold {
    background: linear-gradient(180deg, #e6cd93 0%, #cbab66 45%, #a9863f 100%);
    color: #221809;
    border-color: rgba(232,203,143,0.55);
    box-shadow:
        inset 0 1px 0 rgba(255,246,220,0.75),
        0 8px 30px -10px rgba(120,90,30,0.55);
}
.btn-gold:hover {
    background: linear-gradient(180deg, #f0da9f 0%, #d7b972 45%, #b8944a 100%);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255,250,230,0.85),
        0 12px 36px -10px rgba(140,105,35,0.7);
}

/* Ghost — dark outlined */
.btn-ghost {
    color: var(--c-white);
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.02);
}
.btn-ghost:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
    color: var(--c-white);
}

/* Outlined pill (for nav CTA) */
.btn-outline {
    color: var(--c-white);
    border-color: rgba(255,255,255,0.22);
    background: transparent;
    padding: 12px 22px;
    font-size: 11px;
    letter-spacing: 0.20em;
}
.btn-outline:hover {
    border-color: var(--c-chrome);
    background: rgba(255,255,255,0.04);
}

.btn-block { display: flex; width: 100%; justify-content: center; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    color: var(--c-chrome);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(216, 217, 221, 0.30);
    transition: color 240ms var(--ease-soft), border-color 240ms var(--ease-soft), gap 240ms var(--ease-soft);
}
.link-arrow:hover { color: var(--c-white); border-color: var(--c-white); gap: var(--s-3); }

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    margin-top: var(--s-5);
    color: var(--c-white);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    transition: color 240ms var(--ease-soft), gap 240ms var(--ease-soft);
}
.card-link:hover { color: var(--c-chrome); gap: var(--s-3); }

/* — Sections — */
section[data-section] {
    position: relative;
    padding: clamp(var(--s-9), 12vw, var(--s-11)) 0;
}

/* — Footer — */
.footer {
    position: relative;
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(216,217,221,0.06) 0%, rgba(0,0,0,0) 55%),
        linear-gradient(180deg, #0a0a0c 0%, #050506 100%);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--s-9) 0 var(--s-6);
    color: var(--c-grey-light);
    font-size: 14px;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(255,255,255,0) 0%,
        rgba(216,217,221,0.45) 50%,
        rgba(255,255,255,0) 100%);
    pointer-events: none;
}

/* — Top grid — */
.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: var(--s-7);
    align-items: start;
}

/* — Brand block — */
.footer-brand-row {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    text-decoration: none;
}

.footer-brand-mark {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}
.footer-brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }

.footer-brand-text { display: flex; flex-direction: column; line-height: 1; }

.footer .brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
    color: var(--c-white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-brand-sub {
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--c-silver);
}

.footer-tag {
    margin-top: var(--s-4);
    max-width: 360px;
    line-height: 1.6;
    color: var(--c-grey-light);
}

.footer-status {
    margin-top: var(--s-5);
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background: rgba(255,255,255,0.02);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-bone);
}

.footer-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74,222,128,0.18);
    animation: footer-pulse 2.4s ease-in-out infinite;
}

@keyframes footer-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.18); }
    50%      { box-shadow: 0 0 0 6px rgba(74,222,128,0.06); }
}

/* — Columns — */
.footer-col { display: flex; flex-direction: column; gap: var(--s-3); }

.footer-col-title {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.30em;
    text-transform: uppercase;
    color: var(--c-silver);
    padding-bottom: var(--s-2);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: var(--s-2);
}

.footer-links { display: flex; flex-direction: column; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.footer-links a {
    color: var(--c-grey-light);
    text-decoration: none;
    transition: color 200ms var(--ease-soft), transform 200ms var(--ease-soft);
    display: inline-block;
}
.footer-links a:hover {
    color: var(--c-white);
    transform: translateX(3px);
}

.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}
.footer-contact li { display: flex; flex-direction: column; gap: 2px; }
.footer-contact-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-grey-mid);
}
.footer-contact-value {
    color: var(--c-bone);
    text-decoration: none;
    font-size: 14px;
    transition: color 200ms var(--ease-soft);
}
a.footer-contact-value:hover { color: var(--c-white); }

/* — Divider — */
.footer-rule {
    margin: var(--s-7) 0 var(--s-5);
    height: 1px;
    background: linear-gradient(90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.12) 50%,
        rgba(255,255,255,0) 100%);
}

/* — Bottom bar — */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-4);
}

.footer-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s-2);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-grey-mid);
}
.footer-dot { color: var(--c-grey); }

/* — Fine print w/ flag — */
.footer-fineprint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 999px;
    background: rgba(255,255,255,0.015);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    color: var(--c-silver);
    line-height: 1.4;
}

.footer-fineprint-flag {
    width: 18px;
    height: auto;
    max-height: 12px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}

@media (max-width: 980px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .footer { padding-top: var(--s-8); }
    .footer-top { grid-template-columns: 1fr; gap: var(--s-6); }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-meta { font-size: 9px; }
}

/* — Reduced motion — */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}


/* — Skip link: keyboard users should not have to tab the whole nav on
     every page before reaching content. Visible only when focused. — */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    padding: 12px 18px;
    background: var(--c-near-black);
    color: var(--c-white);
    border: 1px solid var(--c-chrome);
    border-radius: 0 0 8px 0;
    font-size: 13px;
    letter-spacing: 0.06em;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Sticky mobile action bar — site-wide.

   This lived only in the per-page stylesheets (about/careers/contact/
   services), so any page that did not load one of those rendered the bar
   completely unstyled: position:static, display:block, dumping "Call" and
   "Request Consultation" into the page flow directly beneath the closing
   CTA. Defining it once here means a new page cannot miss it.
   ============================================================ */
.mobile-actionbar {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 80;
    gap: var(--s-3);
    padding: 12px clamp(16px, 4vw, 24px);
    background: linear-gradient(0deg, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.78) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.mobile-actionbar .btn { flex: 1; padding: 14px 18px; }
@media (max-width: 640px) {
    .mobile-actionbar { display: flex; }
    body.has-actionbar { padding-bottom: 76px; }
}
