/* =========================================================================
   Zac Harris — Shared Site Design System
   Dark theme · Red accent · Mobile-first
   ========================================================================= */

/* ---------- Design tokens ------------------------------------------------ */
:root {
    /* Brand */
    --brand-red: #ef3a3a;
    --brand-red-hover: #ff5050;
    --brand-red-soft: rgba(239, 58, 58, 0.15);

    /* Surfaces */
    --bg: #0e0e10;
    --bg-elev-1: #17171a;
    --bg-elev-2: #1f1f24;
    --bg-glass: rgba(14, 14, 16, 0.85);
    --line: rgba(255, 255, 255, 0.08);

    /* Text */
    --text: #f5f5f7;
    --text-dim: #b6b6bd;
    --text-mute: #8a8a92;

    /* Type */
    --font-sans: 'Inter', 'Helvetica Neue', Arial, system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow: 0 6px 18px rgba(0,0,0,0.35);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);

    --header-h: 72px;
    --container: 1200px;

    --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand-red); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-red-hover); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 var(--space-4); letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
p  { margin: 0 0 var(--space-4); color: var(--text-dim); }

/* ---------- Layout ------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }
.section   { padding: var(--space-7) 0; }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
    border: 1px solid transparent;
    text-decoration: none;
}
.btn-primary {
    background: var(--brand-red);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--brand-red-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}
.btn-secondary:hover {
    background: var(--bg-elev-2);
    color: var(--text);
    transform: translateY(-2px);
}

/* ---------- Cards -------------------------------------------------------- */
.card {
    background: var(--bg-elev-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(239,58,58,.45);
    box-shadow: var(--shadow);
}

/* ---------- Site Header -------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    background: var(--bg-glass);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
    z-index: 1000;
}
.site-header__inner {
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-5);
}
.site-header__brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}
.site-header__brand img {
    height: 40px;
    width: auto;
}
.site-header__brand-text {
    font-weight: 700;
    letter-spacing: .02em;
    font-size: .95rem;
}

.site-nav {
    display: flex;
    gap: var(--space-5);
    margin-left: auto;
}
.site-nav a {
    color: var(--text);
    text-transform: uppercase;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .08em;
    padding: 8px 4px;
    position: relative;
}
.site-nav a::after {
    content: '';
    position: absolute;
    left: 4px; right: 4px; bottom: 2px;
    height: 2px;
    background: var(--brand-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
}
.site-nav a:hover, .site-nav a.is-active {
    color: var(--text);
}
.site-nav a:hover::after, .site-nav a.is-active::after {
    transform: scaleX(1);
}

.site-socials {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.site-socials a {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1;
    transition: color .2s var(--ease), transform .2s var(--ease);
}
.site-socials a:hover {
    color: var(--brand-red);
    transform: translateY(-1px);
}
.site-socials img {
    height: 18px;
    width: auto;
    opacity: .7;
    transition: opacity .2s var(--ease);
}
.site-socials a:hover img { opacity: 1; }

/* Hamburger */
.site-burger {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--text);
    margin-left: auto;
}
.site-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
}
.site-burger span::before,
.site-burger span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
}
.site-burger span::before { top: -6px; }
.site-burger span::after  { top:  6px; }

/* Page padding to clear fixed header */
.has-fixed-header { padding-top: var(--header-h); }

/* ---------- Site Footer -------------------------------------------------- */
.site-footer {
    margin-top: var(--space-8);
    background: #08080a;
    border-top: 1px solid var(--line);
    padding: var(--space-7) var(--space-5) var(--space-5);
    text-align: center;
    color: var(--text-mute);
}
.site-footer .site-socials {
    justify-content: center;
    margin-bottom: var(--space-4);
    gap: var(--space-4);
    font-size: 1.25rem;
}
.site-footer .site-socials a { color: var(--text-mute); }
.site-footer .site-socials a:hover { color: var(--brand-red); }
.site-footer__copy {
    font-size: .85rem;
    margin: 0;
    color: var(--text-mute);
}

/* ---------- Mobile ------------------------------------------------------- */
@media (max-width: 860px) {
    .site-nav,
    .site-header .site-socials { display: none; }
    .site-burger { display: inline-flex; }

    .site-header.is-open .site-nav,
    .site-header.is-open .site-socials {
        display: flex;
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        background: var(--bg-glass);
        backdrop-filter: saturate(160%) blur(12px);
        -webkit-backdrop-filter: saturate(160%) blur(12px);
        flex-direction: column;
        padding: var(--space-4) var(--space-5);
        gap: var(--space-3);
        border-bottom: 1px solid var(--line);
    }
    .site-header.is-open .site-socials {
        flex-direction: row;
        justify-content: center;
        top: calc(var(--header-h) + 220px);
        gap: var(--space-4);
    }
}
