/* ============================================================================
   M-65 — Rugged professional theme
   Olive drab field jacket with golden brass accents
   ============================================================================ */

:root {
    --od: #2B3A1A;
    --od-dark: #1E2A13;
    --od-light: #3A4D28;
    --od-mid: #344520;
    --brass: #C5A55A;
    --brass-light: #D4BA78;
    --brass-dim: #9C8340;
    --brass-glow: rgba(197, 165, 90, 0.08);
    --canvas: #1E2A13;
    --canvas-card: #263518;
    --canvas-raised: #2E3F1E;
    --ink: #E8E4D8;
    --ink-soft: #B5B09E;
    --ink-muted: #7D7A6E;
    --stitch: #3A4D28;
    --field-dark: #151E0D;
    --radius: 0.375rem;
    --spacing: 2rem;
}

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

.skip-link {
    position: absolute; top: -100px; left: 1rem;
    background: var(--brass); color: var(--field-dark);
    padding: 0.75rem 1.5rem; border-radius: 0 0 var(--radius) var(--radius);
    font-weight: 700; z-index: 10000; text-decoration: none;
}
.skip-link:focus { top: 0; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--brass);
    outline-offset: 2px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--ink);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--brass); color: var(--field-dark); }

.site-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
    background: var(--field-dark);
    border-bottom: 3px solid var(--brass);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #fff;
}

.logo-bar {
    width: 4px;
    height: 24px;
    background: var(--brass);
    border-radius: 1px;
}

.logo-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

.nav-links > li > a,
.dropdown-toggle {
    text-decoration: none;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    transition: all 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nav-links > li > a:hover,
.dropdown-toggle:hover {
    color: var(--brass);
    background: rgba(197,165,90,0.08);
}

.dropdown-toggle {
    background: none; border: none; cursor: pointer;
    font-family: inherit; display: inline-flex; align-items: center; gap: 0.3rem;
}

.caret { font-size: 0.65rem; opacity: 0.6; }

.dropdown { position: relative; }
.dropdown-menu {
    display: none; position: absolute; top: calc(100% + 0.5rem); left: 0;
    background: var(--canvas-card); min-width: 200px; border-radius: var(--radius);
    border: 1px solid var(--stitch); box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    padding: 0.4rem; z-index: 200; list-style: none;
}
.dropdown-menu a {
    display: block; padding: 0.5rem 0.75rem; color: var(--ink-soft); text-decoration: none;
    border-radius: var(--radius); font-size: 0.85rem; transition: all 0.1s;
}
.dropdown-menu a:hover { background: var(--brass-glow); color: var(--brass); }
.dropdown:hover .dropdown-menu, .dropdown.active .dropdown-menu { display: block; }

/* Mobile menu */
.menu-toggle {
    display: none; flex-direction: column; gap: 4px;
    background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.menu-toggle span {
    width: 22px; height: 2px; background: rgba(255,255,255,0.8);
    border-radius: 1px; transition: all 0.2s;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
    background: var(--field-dark);
    border-bottom: 1px solid rgba(197,165,90,0.15);
    padding: 5rem var(--spacing);
    text-align: center;
    color: var(--ink);
}

.hero-inner {
    max-width: 750px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.hero h1 .brass { color: var(--brass); }

.hero p {
    font-size: 1.05rem;
    color: var(--ink-soft);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.7rem 1.6rem; border-radius: var(--radius);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600; font-size: 0.9rem; text-transform: uppercase;
    letter-spacing: 0.05em; text-decoration: none; border: none;
    cursor: pointer; transition: all 0.15s;
}
.btn-primary { background: var(--brass); color: var(--field-dark) !important; }
.btn-primary:hover { background: var(--brass-light); color: var(--field-dark) !important; }
.btn-outline { background: transparent; color: var(--ink-soft) !important; border: 1.5px solid var(--stitch); }
.btn-outline:hover { border-color: var(--brass); color: var(--brass) !important; }
.btn-od { background: var(--od-light); color: var(--ink); }
.btn-od:hover { background: var(--od-mid); }

/* ── Page Hero ───────────────────────────────────────────────────────────── */
.page-hero {
    background: var(--field-dark);
    border-bottom: 1px solid rgba(197,165,90,0.15);
    padding: 3rem var(--spacing);
    text-align: center;
    color: var(--ink);
}
.page-hero p { color: var(--ink-soft); }
.page-hero h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

/* ── Content ─────────────────────────────────────────────────────────────── */
.content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem var(--spacing);
}
.content-section h2 {
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--brass); font-size: 1.5rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--brass-dim);
}
.content-section h3 {
    color: var(--brass-light); margin: 1.5rem 0 0.5rem;
    font-size: 1.1rem;
}
.content-section p { margin-bottom: 1rem; color: var(--ink-soft); }
.content-section a { color: var(--brass); font-weight: 600; }
.content-section a:hover { color: var(--brass-light); }

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    padding: 1.5rem 0;
}
.card {
    background: var(--canvas-card);
    border: 1px solid var(--stitch);
    border-left: 3px solid var(--brass-dim);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.15s;
}
.card:hover {
    transform: translateY(-2px);
    border-left-color: var(--brass);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: var(--canvas-raised);
}
.card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--brass); font-size: 1.1rem;
    text-transform: uppercase; letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}
.card p { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.6; }

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.err-page {
    text-align: center; padding: 5rem var(--spacing);
}
.err-page h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.5rem; color: var(--brass);
    text-transform: uppercase; margin-bottom: 0.75rem;
}
.err-page p { color: var(--ink-soft); margin-bottom: 2rem; }
.err-page .btn { background: var(--brass); color: var(--field-dark); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--field-dark);
    border-top: 3px solid var(--brass);
    color: rgba(255,255,255,0.7);
    margin-top: auto;
}
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    padding: 2.5rem var(--spacing);
    display: grid;
    grid-template-columns: 1.5fr repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem; font-weight: 700; color: #fff;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.footer-tag { font-size: 0.8rem; opacity: 0.5; }
.footer-col h4 {
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--brass); font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.3rem; }
.footer-col a { color: var(--ink-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--brass); }
.footer-bottom {
    text-align: center; padding: 0.75rem var(--spacing);
    background: rgba(0,0,0,0.3); font-size: 0.75rem; color: var(--ink-muted);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
        background: var(--field-dark); flex-direction: column; padding: 1.5rem;
        gap: 0.25rem; overflow-y: auto;
    }
    .nav-links.active { display: flex; }
    .nav-links > li > a, .dropdown-toggle { font-size: 1rem; padding: 0.7rem 0.75rem; }
    .hero h1 { font-size: 2rem; }
    .hero { padding: 3rem var(--spacing); }
    .page-hero h2 { font-size: 1.5rem; }
    .card-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .dropdown-menu { position: static; box-shadow: none; border: none; background: transparent; padding-left: 1rem; }
    .dropdown-menu a { color: var(--ink-muted) !important; }
    .dropdown-menu a:hover { background: var(--brass-glow) !important; color: var(--brass) !important; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .btn { width: 100%; justify-content: center; }
}
