/* ==========================================================================
   Riverview Fire Department - Shared Styles
   ========================================================================== */

/* CSS Variables */
:root {
    --primary-dark: #1a1a2e;
    --primary-dark-alt: #16213e;
    --primary-red: #dc2626;
    --primary-red-dark: #991b1b;
    --primary-red-light: #ef4444;
    --bg-light: #f9fafb;
    --bg-gray: #e5e7eb;
    --text-primary: #333;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --facebook-blue: #1877f2;
    --facebook-blue-dark: #165ed4;
    --shadow-card: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-header: 0 2px 10px rgba(0,0,0,0.3);
}

/* ==========================================================================
   Base Reset & Typography
   ========================================================================== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    position: relative;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-dark-alt) 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-header);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

nav a:hover {
    color: var(--primary-red-light);
}

/* Social Links */
.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.facebook-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--facebook-blue);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.facebook-btn:hover {
    background: var(--facebook-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.facebook-icon {
    font-size: 1.2rem;
}

.instagram-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.instagram-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.insta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.container--page {
    padding-top: 120px;
}

.section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-red-dark));
    border-radius: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.cta-button {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.cta-button:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}

.cta-button--secondary {
    background: var(--text-muted);
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.4);
}

.cta-button--secondary:hover {
    background: var(--text-secondary);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.6);
}

/* ==========================================================================
   Cards & Content
   ========================================================================== */

.page-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    line-height: 1.8;
    font-size: 1.1rem;
}

.apparatus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.apparatus-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, box-shadow 0.3s;
}

.apparatus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.apparatus-photo-placeholder {
    height: 220px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: bold;
    overflow: hidden;
}

.apparatus-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apparatus-card h4 {
    font-size: 1.3rem;
    padding: 1.25rem;
    text-align: center;
    color: var(--primary-dark);
    border-top: 1px solid var(--bg-gray);
}

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

footer {
    background: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 500px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        align-items: stretch;
    }

    nav ul li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    nav ul li a {
        display: block;
        padding: 1rem 2rem;
    }

    .social-links {
        padding: 1rem 2rem;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .header {
        position: fixed;
    }

    .section-title {
        font-size: 2rem;
    }

    .apparatus-grid {
        grid-template-columns: 1fr;
    }
}
