/* ============================================================
   Signal Harbor Security — Shared Stylesheet
   All pages link to this file. Page-specific overrides live
   in an inline <style> block within each HTML file.
   ============================================================ */

/* Custom properties */
:root {
    --bg: #071014;
    --bg-2: #0b171b;
    --panel: rgba(13, 28, 33, 0.86);
    --panel-solid: #0f2025;
    --line: rgba(173, 207, 211, 0.16);
    --line-strong: rgba(106, 205, 210, 0.38);
    --text: #eef7f6;
    --muted: #a8bbb9;
    --faint: #8aa19f;
    --teal: #48d5d0;
    --gold: #d8b15e;
    --steel: #89aeb7;
    --shadow: rgba(0, 0, 0, 0.38);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background:
        radial-gradient(circle at 82% 8%, rgba(72, 213, 208, 0.12), transparent 31rem),
        linear-gradient(180deg, #071014 0%, #0a1518 48%, #091215 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* ---- Shell and grid overlay ---- */

.site-shell {
    position: relative;
    min-height: 100vh;
}

.site-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 75%);
}

/* ---- Layout ---- */

.wrap {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.wrap--narrow {
    width: min(1040px, calc(100% - 40px));
}

/* ---- Header ---- */

header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 16, 20, 0.78);
    backdrop-filter: blur(18px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
}

/* ---- Brand ---- */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(72, 213, 208, 0.2), rgba(216, 177, 94, 0.08));
    box-shadow: 0 0 28px rgba(72, 213, 208, 0.16);
}

.brand-mark img {
    width: 34px;
    height: 34px;
}

.brand-accent {
    color: var(--teal);
}

/* ---- Desktop navigation ---- */

nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--muted);
    font-size: 0.92rem;
}

nav a {
    transition: color 160ms ease;
}

nav a:hover {
    color: var(--text);
}

nav a[aria-current="page"] {
    color: var(--teal);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(72, 213, 208, 0.08);
    color: var(--text);
    cursor: pointer;
}

.nav-action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    color: var(--text);
    background: rgba(72, 213, 208, 0.08);
    white-space: nowrap;
    transition: background 160ms ease;
}

.nav-action:hover {
    background: rgba(72, 213, 208, 0.15);
}

/* ---- Typography utilities ---- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--teal);
    flex-shrink: 0;
}

.section-label {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.plain-copy {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--teal);
    color: #031112;
    box-shadow: 0 18px 48px rgba(72, 213, 208, 0.18);
}

.btn-secondary {
    border-color: var(--line);
    color: var(--text);
    background: rgba(238, 247, 246, 0.045);
}

/* ---- Icon box ---- */

.icon-box {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    color: var(--teal);
    background: rgba(72, 213, 208, 0.08);
    flex-shrink: 0;
}

/* ---- Inner page hero ---- */

.inner-hero {
    padding: 60px 0 52px;
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 1;
}

.inner-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.04;
    letter-spacing: 0;
    max-width: 780px;
    margin-bottom: 18px;
    text-wrap: balance;
}

.inner-hero-copy {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 680px;
    line-height: 1.65;
}

/* ---- Split layout (inner pages) ---- */

.split-wrap {
    padding: 72px 0 96px;
    position: relative;
    z-index: 1;
}

.split-layout {
    display: grid;
    gap: 48px;
    align-items: start;
}

.split-lead h2 {
    font-size: clamp(1.55rem, 2.5vw, 2.1rem);
    line-height: 1.14;
    margin-bottom: 14px;
    letter-spacing: 0;
}

.split-lead p {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.split-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    transition: gap 160ms ease;
}

.split-cta-link:hover {
    gap: 12px;
}

/* ---- Content card stack ---- */

.content-stack {
    display: grid;
    gap: 20px;
}

.content-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
        var(--panel);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.card-head {
    padding: 22px 28px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-head h3 {
    font-size: 1.22rem;
    line-height: 1.2;
}

.card-body {
    padding: 24px 28px;
}

.card-body p {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

.card-body p + p {
    margin-top: 12px;
}

/* ---- Footer ---- */

footer {
    border-top: 1px solid var(--line);
    padding: 30px 0;
    color: var(--faint);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    transition: color 160ms ease;
}

.footer-links a:hover {
    color: var(--teal);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (min-width: 901px) {
    .split-layout {
        grid-template-columns: 280px 1fr;
        gap: 64px;
    }

    .split-pin {
        position: sticky;
        top: 124px;
    }
}

@media (max-width: 900px) {
    .nav {
        min-height: 68px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    nav {
        position: absolute;
        top: 68px;
        left: 20px;
        right: 20px;
        display: none;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(7, 16, 20, 0.96);
        box-shadow: 0 18px 52px var(--shadow);
    }

    nav.is-open {
        display: grid;
    }

    nav a {
        padding: 13px 12px;
        border-radius: 6px;
    }

    nav a:hover {
        background: rgba(255, 255, 255, 0.04);
    }

    .split-wrap {
        padding: 52px 0 72px;
    }

    .inner-hero {
        padding: 44px 0 38px;
    }
}

@media (max-width: 520px) {
    .wrap,
    .wrap--narrow {
        width: min(100% - 28px, 1160px);
    }

    .brand {
        font-size: 0.92rem;
        letter-spacing: 0.05em;
    }

    .card-head,
    .card-body {
        padding: 18px 20px;
    }
}
