/* =========================================================
   VFW POST 7401 WEBSITE STYLES
   Human-editable layout with restored military color palette
   from the earlier design.

   QUICK COLOR EDITS:
   Change the values below in :root to update the whole site.
   ========================================================= */
:root {
    --bg: #080d0b;
    --panel: #101914;
    --panel-2: #16231b;
    --text: #f7f1e7;
    --muted: #c9c0b0;
    --gold: #d6b76f;
    --red: #a6222b;
    --red-dark: #6d1118;
    --navy: #111827;
    --line: rgba(214,183,111,.25);
    --shadow: 0 24px 60px rgba(0,0,0,.35);
    --radius: 24px;
    --max-width: 1180px;
}

/* =========================================================
   BASE
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
}

/* =========================================================
   TOP CONTACT BAR
   ========================================================= */
.top-bar {
    background: #7d151d;
    color: #ffffff;
    font-size: 14px;
}
.top-bar .container {
    min-height: 40px;
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    font-weight: 700;
}

/* =========================================================
   HEADER / NAVIGATION
   Edit nav links in each HTML file inside <nav class="nav-links">.
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8,13,11,.96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.nav-wrap {
    min-height: 86px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 8px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 280px;
}
.brand img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    background: #ffffff;
    border-radius: 50%;
    padding: 3px;
    border: 2px solid var(--gold);
    box-shadow: 0 0 0 4px rgba(214,183,111,.10);
}
.brand-text strong {
    display: block;
    font-size: 20px;
    line-height: 1.1;
    color: var(--text);
}
.brand-text span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}
.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}
.nav-links a {
    padding: 9px 11px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
}
.nav-links a:hover,
.nav-links a.active {
    background: rgba(214,183,111,.16);
    color: var(--gold);
}

/* =========================================================
   HERO SECTIONS
   Homepage uses .hero. Interior pages use .page-hero.
   ========================================================= */
.hero,
.page-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(110deg, rgba(8,13,11,.96) 0%, rgba(8,13,11,.88) 52%, rgba(118,20,28,.72) 100%);
}
.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 35%, rgba(214,183,111,.18), transparent 33%),
        linear-gradient(45deg, rgba(255,255,255,.035) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.035) 50%, rgba(255,255,255,.035) 75%, transparent 75%);
    background-size: auto, 44px 44px;
    opacity: .8;
}
.hero .container,
.page-hero .container {
    position: relative;
    z-index: 1;
}
.hero .container {
    min-height: 680px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 36px;
    align-items: center;
    padding: 76px 0;
}
.page-hero .container {
    padding: 88px 0;
}
.kicker {
    margin: 0 0 12px;
    color: var(--gold);
    font-weight: 900;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-size: 13px;
}
h1, h2, h3 { line-height: 1.15; margin-top: 0; }
h1 {
    max-width: 850px;
    margin-bottom: 18px;
    font-size: clamp(44px, 6vw, 82px);
    line-height: 1.02;
    letter-spacing: -.04em;
}
.page-hero h1 { font-size: clamp(38px, 5vw, 64px); }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; }
h3 { font-size: 1.3rem; }
.lead {
    max-width: 760px;
    color: var(--muted);
    font-size: 20px;
}
.hero-card {
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.hero-card img {
    width: 140px;
    display: block;
    margin: 0 auto 18px;
    background: #ffffff;
    border-radius: 50%;
    padding: 8px;
    border: 2px solid var(--gold);
}
.hero-card h2,
.hero-card h3,
.card h2,
.card h3 {
    color: var(--gold);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--gold);
    font-weight: 900;
}
.btn.primary {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-color: #cf454b;
    color: #ffffff;
}
.btn.secondary {
    background: rgba(255,255,255,.06);
    color: var(--gold);
}
.btn.light {
    background: rgba(255,255,255,.06);
    color: #ffffff;
}
.btn:hover { transform: translateY(-1px); }

/* =========================================================
   MAIN CONTENT / CARDS / GRIDS
   ========================================================= */
main { padding: 54px 0; }
.section { padding: 34px 0; }
.section-header {
    max-width: 820px;
    margin-bottom: 24px;
}
.section-header p { color: var(--muted); }
.grid {
    display: grid;
    gap: 18px;
}
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.card p,
.card li { color: var(--muted); }
.card ul { margin: 0; padding-left: 20px; }
.callout {
    background: linear-gradient(135deg, #101914, #202f24);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline {
    display: grid;
    gap: 14px;
}
.timeline-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    border: 1px solid var(--line);
    border-radius: 14px;
}
.timeline-year {
    color: var(--gold);
    font-weight: 900;
    font-size: 1.1rem;
}
.timeline-item p {
    margin: 0;
    color: var(--muted);
}

/* =========================================================
   FORMS
   ========================================================= */
form { display: grid; gap: 14px; }
label { font-weight: 800; }
input, textarea, select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #0c120f;
    color: var(--text);
}
textarea { min-height: 140px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: #050806;
    border-top: 1px solid var(--line);
    padding: 48px 0 22px;
    color: var(--muted);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr .7fr;
    gap: 30px;
}
.footer-brand {
    display: flex;
    gap: 14px;
    align-items: center;
}
.footer-brand img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    background: #ffffff;
    border-radius: 50%;
    padding: 4px;
    border: 2px solid var(--gold);
}
.footer h2,
.footer h3,
.site-footer h2,
.site-footer h3 {
    color: var(--gold);
}
.footer-links { display: grid; gap: 8px; }
.footer-links a:hover { color: var(--gold); }
.copyright {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: .9rem;
    text-align: center;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 950px) {
    .nav-wrap {
        min-height: auto;
        flex-direction: column;
        text-align: center;
        padding: 16px 0;
    }
    .brand {
        min-width: 0;
        justify-content: center;
    }
    .nav-links { justify-content: center; }
    .hero .container,
    .grid.two,
    .grid.three,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero .container {
        min-height: auto;
        padding: 70px 0;
    }
    .timeline-item { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .container { width: min(var(--max-width), calc(100% - 32px)); }
    .top-bar .container { gap: 5px; }
    .top-bar span {
        display: block;
        width: 100%;
        text-align: center;
    }
    .brand img {
        width: 56px;
        height: 56px;
    }
    .brand-text strong { font-size: 16px; }
    .brand-text span { font-size: 12px; }
    h1 { font-size: 38px; }
    .page-hero h1 { font-size: 36px; }
    .lead { font-size: 18px; }
    .button-row .btn { width: 100%; }
    main { padding: 34px 0; }
    .section { padding: 26px 0; }
}
