﻿/* ============================================================
   ISTAG — Shared Stylesheet
   ============================================================ */

:root {
    --navy: #003366;
    --navy-mid: #004080;
    --accent: #0055a5;
    --text: #1a1a1a;
    --muted: #555555;
    --light: #777777;
    --border: #e0e0e0;
    --bg: #f5f7fa;
    --white: #ffffff;
    --font: Arial, Helvetica, sans-serif;
    --max-w: 1000px;
    --content-w: 800px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Typography ─────────────────────────────────────────────── */
h1 {
    font-size: 28px;
    margin: 0 0 10px;
    font-weight: 600;
}

h2 {
    font-size: 20px;
    margin: 32px 0 8px;
    font-weight: 600;
    color: var(--navy);
}

p {
    font-size: 16px;
    line-height: 1.7;
    margin: 16px 0 0;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

a {
    color: var(--navy);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

    .header-brand:hover {
        text-decoration: none;
    }

.title .main {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--navy);
}

.title .sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 1px;
}

/* ── Site Nav ───────────────────────────────────────────────── */
.site-nav {
    margin-left: auto;
    display: flex;
    gap: 24px;
    align-items: center;
}

    .site-nav a {
        font-size: 14px;
        font-weight: 500;
        color: var(--muted);
        text-decoration: none;
        transition: color .15s;
    }

        .site-nav a:hover,
        .site-nav a.active {
            color: var(--navy);
            text-decoration: none;
        }

/* ── Main content ───────────────────────────────────────────── */
main {
    flex: 1;
}

.container {
    max-width: var(--content-w);
    margin: 60px auto;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--border);
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 28px 20px;
    margin-top: auto;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-copy {
    font-size: 13px;
    color: var(--light);
}

.footer-links {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

    .footer-links a {
        color: var(--light);
    }

        .footer-links a:hover {
            color: var(--navy);
        }

/* ── Contact block ──────────────────────────────────────────── */
.contact {
    margin-top: 40px;
    font-size: 16px;
    line-height: 2;
}

/* ── Burger button ──────────────────────────────────────────── */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
}

    .burger span {
        display: block;
        height: 2px;
        background: var(--navy);
        border-radius: 2px;
        transition: transform .25s ease, opacity .2s ease;
        transform-origin: center;
    }

    /* Animate to X when open */
    .burger.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .burger.is-open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .burger.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* ── Mobile dropdown menu ───────────────────────────────────── */
.mobile-menu {
    border-top: 1px solid var(--border);
    background: var(--white);
    padding: 12px 20px 16px;
}

    .mobile-menu a {
        display: block;
        padding: 10px 0;
        font-size: 15px;
        font-weight: 500;
        color: var(--muted);
        border-bottom: 1px solid var(--border);
        text-decoration: none;
        transition: color .15s;
    }

        .mobile-menu a:last-child {
            border-bottom: none;
        }

        .mobile-menu a:hover,
        .mobile-menu a.active {
            color: var(--navy);
        }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .container {
        margin: 30px 15px;
        padding: 25px;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 18px;
    }

    .title .main {
        font-size: 16px;
    }

    .title .sub {
        font-size: 11px;
    }

    /* Hide desktop nav, show burger */
    .site-nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
