/* =========================
   Fountain Hill Fire Company
   Global Stylesheet
   ========================= */

:root {
    --fd-red: #b22222;
    --fd-red-dark: #7f1515;
    --fd-gold: #f5c451;
    --fd-dark: #111318;
    --fd-mid: #1b1f27;
    --fd-light: #f5f5f5;
    --fd-text: #ffffff;
    --fd-accent: #2c3e50;
    --max-width: 1100px;
    --radius-lg: 16px;
    --radius-md: 10px;
    --shadow-soft: 0 10px 25px rgba(0,0,0,0.4);
}

/* Reset-ish */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #202534 0, #05060a 55%);
    color: var(--fd-text);
    line-height: 1.6;
}

/* Layout helpers */

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

section {
    margin-bottom: 2rem;
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: 0.03em;
}

h1 {
    font-size: clamp(2.1rem, 3vw, 2.6rem);
    margin-bottom: 0.75rem;
}

h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    margin-bottom: 0.5rem;
}

/* =========================
   Header / Nav
   ========================= */

header {
    background: linear-gradient(90deg, var(--fd-dark), #141822);
    border-bottom: 2px solid rgba(245,196,81,0.35);
    box-shadow: 0 4px 18px rgba(0,0,0,0.6);
    position: sticky;
    top: 0;
    z-index: 20;
}

header > a {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.4rem 1rem 0.4rem;
}

.logo {
    max-height: 70px;
    width: auto;
    display: block;
}

/* Flex wrapper for logo + nav */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 0.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.75rem;
    padding-right: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a {
    color: var(--fd-light);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
                transform 0.12s ease;
}

nav a:hover,
nav a:focus-visible {
    background: rgba(178,34,34,0.9);
    border-color: rgba(245,196,81,0.8);
    color: #fff;
    transform: translateY(-1px);
}

/* =========================
   Hero (home page)
   ========================= */

.hero {
    max-width: var(--max-width);
    margin: 1.5rem auto 2rem;
    padding: 2.25rem 1.5rem;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(178,34,34,0.9), rgba(15,15,20,0.95)),
        radial-gradient(circle at top left, rgba(245,196,81,0.18), transparent 65%);
    box-shadow: var(--shadow-soft);
    text-align: left;
    border: 1px solid rgba(245,196,81,0.35);
}

.hero h1 {
    font-size: clamp(2.4rem, 4vw, 3rem);
    text-transform: uppercase;
}

.hero p {
    font-size: 1.05rem;
    margin-top: 0.75rem;
    max-width: 32rem;
    color: #fbeede;
}

/* =========================
   Quick Info / Actions
   ========================= */

.quick-info {
    max-width: var(--max-width);
    margin: 0 auto 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(10,12,18,0.9);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.06);
}

.quick-info p + p {
    margin-top: 0.25rem;
}

.actions {
    max-width: var(--max-width);
    margin: 0.5rem auto 2.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    cursor: pointer;
    background: var(--fd-gold);
    color: #1b1305;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.btn.red {
    background: var(--fd-red);
    color: #fff;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(0,0,0,0.55);
    filter: brightness(1.05);
}

/* =========================
   Apparatus cards
   ========================= */

.unit {
    background: rgba(10,12,18,0.95);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.5rem 1.25rem;
    border: 1px solid rgba(245,196,81,0.25);
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
}

.unit h2 {
    margin-bottom: 0.75rem;
}

.unit img {
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-md);
    display: block;
    margin: 0.25rem 0 0.9rem;
}

/* =========================
   Generic content styles
   ========================= */

p {
    margin-bottom: 0.75rem;
    color: #f2f2f2;
}

ul {
    margin-left: 1.2rem;
    margin-bottom: 0.75rem;
}

li {
    margin-bottom: 0.25rem;
}

strong {
    color: var(--fd-gold);
}

/* =========================
   Footer
   ========================= */

footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.2rem 1rem 1.4rem;
    text-align: center;
    font-size: 0.85rem;
    color: #b9c2d0;
    background: linear-gradient(180deg, #0b0d11, #05060a);
}

/* =========================
   Responsive tweaks
   ========================= */

@media (max-width: 780px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 0.4rem;
        gap: 0.3rem;
    }

    header > a {
        padding-inline: 1rem;
    }

    nav ul {
        justify-content: flex-start;
        padding-inline: 1rem;
        row-gap: 0.35rem;
    }

    .hero {
        margin-top: 1rem;
        padding: 1.8rem 1.25rem;
    }

    .actions {
        padding-inline: 1rem;
    }
}

@media (max-width: 520px) {
    nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    .actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
