/* ==========================================================================
   Spartan Security — shared stylesheet
   Brand chrome shared across about / services / contact
   index.html keeps its own bespoke hero styles
   ========================================================================== */

:root {
    --primary-dark: #0a0f1a;
    --primary-dark-2: #0e1524;
    --primary-red: #c41e3a;
    --bronze: #cd7f32;
    --silver: #c0c0c0;
    --gold: #d4af37;
    --text-muted: rgba(255, 255, 255, 0.92);
    --text-dim: rgba(255, 255, 255, 0.7);
    --rule: rgba(205, 127, 50, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--primary-dark);
    color: #fff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    line-height: 1.6;
}

/* ---------- Atmospheric background (matches splash) ---------- */
.background-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(196, 30, 58, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 30, 58, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 8s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.25; }
    50%      { opacity: 0.5; }
}

.scanline {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(196, 30, 58, 0.04) 50%,
        transparent 100%
    );
    animation: scan 6s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes scan {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.corner-accent {
    position: fixed;
    width: 80px;
    height: 80px;
    border: 2px solid var(--primary-red);
    opacity: 0.3;
    z-index: 0;
    animation: cornerGlow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cornerGlow {
    0%, 100% { opacity: 0.25; }
    50%      { opacity: 0.5; }
}

.corner-accent.top-left     { top: 0;    left: 0;  border-right: none; border-bottom: none; }
.corner-accent.top-right    { top: 0;    right: 0; border-left: none;  border-bottom: none; }
.corner-accent.bottom-left  { bottom: 0; left: 0;  border-right: none; border-top: none; }
.corner-accent.bottom-right { bottom: 0; right: 0; border-left: none;  border-top: none; }

/* ---------- Top navigation ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(10, 15, 26, 0.75);
    border-bottom: 1px solid var(--rule);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
}

.nav-brand img {
    width: 32px;
    height: 36px;
    filter: drop-shadow(0 0 8px rgba(196, 30, 58, 0.4));
}

.nav-brand-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 0%, var(--silver) 60%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--primary-red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: #fff;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a[aria-current="page"]::after {
    background: var(--gold);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--rule);
    color: #fff;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* ---------- Main content shell ---------- */
.page-main {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.page-header {
    margin-bottom: 3.5rem;
    animation: fadeUp 0.8s ease-out backwards;
}

.eyebrow {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.eyebrow::before {
    content: '> ';
    color: var(--bronze);
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.4rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, var(--silver) 55%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.25rem;
}

.page-lede {
    font-size: clamp(1.1rem, 1.6vw, 1.25rem);
    font-weight: 500;
    color: var(--text-muted);
    max-width: 720px;
    line-height: 1.7;
}

@keyframes fadeUp {
    0%   { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0);    opacity: 1; }
}

/* ---------- Section primitives ---------- */
.section {
    margin-top: 4rem;
    animation: fadeUp 0.8s ease-out backwards;
}

.section + .section { animation-delay: 0.05s; }

.section-rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bronze) 30%, var(--bronze) 70%, transparent);
    opacity: 0.5;
    margin-bottom: 2.5rem;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--primary-red);
    transform: rotate(45deg);
    box-shadow: 0 0 12px rgba(196, 30, 58, 0.5);
}

.prose p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.15rem;
    max-width: 760px;
    line-height: 1.7;
}

.prose strong {
    color: #fff;
    font-weight: 700;
}

.prose a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px dotted var(--gold);
    transition: color 0.2s, border-color 0.2s;
}

.prose a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.prose ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.prose ul li {
    color: var(--text-muted);
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.7;
}

.prose ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-size: 0.9rem;
    top: 0.55rem;
}

/* ---------- Cards (services / capabilities) ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.card {
    position: relative;
    background: var(--primary-dark-2);
    border: 1px solid var(--rule);
    padding: 1.75rem;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-top: 2px solid var(--primary-red);
    border-left: 2px solid var(--primary-red);
    opacity: 0.6;
    transition: opacity 0.3s, width 0.3s, height 0.3s;
}

.card:hover {
    border-color: var(--bronze);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -10px rgba(196, 30, 58, 0.3);
}

.card:hover::before {
    opacity: 1;
    width: 40px;
    height: 40px;
    border-color: var(--gold);
}

.card h3 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.65;
}

.card-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--rule);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bronze);
}

/* ---------- Data block (terminal-style credentials/contact) ---------- */
.data-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--primary-red);
    padding: 1.5rem 1.75rem;
    font-family: 'Rajdhani', sans-serif;
    margin: 1.5rem 0;
}

.data-block dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.6rem 1.5rem;
}

.data-block dt {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bronze);
    align-self: center;
}

.data-block dd {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500;
}

.data-block dd a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px dotted var(--gold);
}

.data-block dd a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* ---------- Inline buttons (matches splash CTA) ---------- */
.btn {
    position: relative;
    display: inline-block;
    padding: 1rem 2.4rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: transparent;
    border: 2px solid var(--primary-red);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 -100%;
    width: 100%;
    background: var(--primary-red);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn:hover {
    border-color: var(--gold);
    box-shadow: 0 0 24px rgba(196, 30, 58, 0.45);
}

.btn:hover::before {
    left: 0;
}

.btn-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--rule);
    margin-top: 4rem;
    padding: 2.5rem 2rem;
    background: rgba(0, 0, 0, 0.25);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-meta {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

.footer-meta strong {
    color: var(--silver);
    font-weight: 600;
}

.footer-meta::before {
    content: '> ';
    color: var(--primary-red);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .nav-inner {
        padding: 0.85rem 1.25rem;
    }

    .nav-brand-text {
        font-size: 0.85rem;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .nav-links a {
        font-size: 0.85rem;
        letter-spacing: 0.1em;
    }

    .page-main {
        padding: 2.5rem 1.25rem 4rem;
    }

    .corner-accent {
        width: 50px;
        height: 50px;
    }

    .data-block dl {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .data-block dt {
        margin-top: 0.6rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.85rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }
}
