/* ===============================
   Sissonville Fire Department
   Modern Public Safety Design
   =============================== */

:root {
    --primary: #8b1e2d;      /* Deep Crimson */
    --primary-dark: #6f1724;
    --black: #111111;
    --dark: #1c1c1c;
    --light: #f4f4f4;
    --white: #ffffff;
    --gray: #777777;
    --shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ===== Reset ===== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: Georgia, "Times New Roman", serif;
    margin-top: 0;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ===== Layout ===== */

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Heritage Banner ===== */

.since-banner {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ===== Header ===== */

header {
    background: var(--black);
    color: var(--white);
    padding: 18px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-inner img {
    height: 70px;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 600;
}

/* ===== Navigation ===== */

nav {
    background: var(--dark);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

nav li {
    position: relative;
}

nav > ul > li > a {
    display: block;
    padding: 15px 18px;
    color: var(--white);
    font-size: 0.95rem;
}

nav > ul > li:hover {
    background: var(--primary);
}

nav li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark);
    min-width: 220px;
    z-index: 999;
}

nav li:hover ul {
    display: block;
}

nav li ul li a {
    padding: 12px 15px;
    display: block;
    color: var(--white);
}

nav li ul li:hover {
    background: var(--primary-dark);
}

/* ===== Hero System ===== */

.hero {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
                url("../images/hero.jpg") center/cover no-repeat;
    color: var(--white);
    padding: 140px 20px;
    text-align: center;
}

.hero-small {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
                url("../images/hero.jpg") center/cover no-repeat;
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.4rem;
}

.hero p {
    font-size: 1.1rem;
}

/* ===== Sections ===== */

.section {
    padding: 70px 0;
    background: var(--white);
}

.section-alt {
    background: #fafafa;
}

/* ===== Card System ===== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.card {
    background: var(--white);
    padding: 25px;
    border-radius: 6px;
    box-shadow: var(--shadow);
    transition: 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
}

/* ===== Buttons ===== */

.button {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.button:hover {
    background: var(--primary-dark);
}

/* ===== Forms ===== */

input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

textarea {
    resize: vertical;
}

/* ===== Gallery ===== */

.gallery img {
    width: 100%;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

/* ===== Footer ===== */

footer {
    background: var(--black);
    color: #ccc;
    padding: 40px 0;
    font-size: 0.9rem;
}

footer a {
    color: #ccc;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {

    nav ul {
        flex-direction: column;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding: 100px 20px;
    }

}

/* ===== Apparatus Image Standard ===== */

.apparatus-img-wrapper {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.apparatus-img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    display: block;
}

/* ===== Secondary Apparatus Images ===== */

.apparatus-thumb {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

/* Top Level Nav Spacing */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;   /* <-- THIS FIXES SMUSHING */
}

nav ul li a {
    display: block;
    padding: 14px 18px;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

/* Recruitment Call To Action */
.cta-box {
    background: #c8102e;
    color: white;
    padding: 50px 30px;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.cta-box h2 {
    margin-bottom: 15px;
    font-size: 28px;
}

.cta-box p {
    font-size: 18px;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #c8102e;
    padding: 14px 28px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s ease;
}

.cta-button:hover {
    background: #111;
    color: white;
}

/* Memorial Section */
.memorial-section {
    background: #111;
    color: #f4f4f4;
    padding: 60px 30px;
    border-left: 6px solid #c8102e;
}

.memorial-section h2 {
    color: #ffffff;
}

.memorial-section p {
    color: #dddddd;
}

blockquote {
    border-left: 4px solid #c8102e;
    padding-left: 15px;
    font-style: italic;
    color: #444;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.chiefs-list p {
    margin: 8px 0;
    font-size: 18px;
}

/* Chiefs Grid */
.chiefs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.chief-card {
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.3s ease;
}

.chief-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}

.chief-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.chief-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

.chief-years {
    font-size: 13px;
    color: #999;
}

.hero-compact {
    padding: 70px 20px;
}

/* Compact hero variation */
.hero-compact {
    padding: 60px 20px;
}

.chief-photo {
    width: 100%;
    max-width: 140px;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.video-card {
    position: relative;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.video-card:hover {
    transform: scale(1.02);
}

.video-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.2s ease;
}

.video-card:hover .video-overlay {
    background: rgba(0,0,0,0.7);
}

.play-button {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    position: relative;
    margin-bottom: 12px;
}

.play-button::after {
    content: '';
    position: absolute;
    left: 28px;
    top: 22px;
    border-left: 20px solid #c8102e;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.video-title {
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 0 10px;
}

.press-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #c8102e;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.video-duration {
    font-size: 13px;
    font-weight: normal;
    opacity: 0.9;
}