/*
Theme Name: WDFD Modern
Theme URI: https://www.applywdfd.org
Author: West Dundee Fire Department
Description: A sleek, modern WordPress theme designed for the West Dundee Fire Department. Features clean design, responsive layout, improved navigation, and professional styling that works with all your existing content.
Version: 2.0
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wdfd-modern
Tags: firefighter, recruitment, responsive, modern, clean, professional
*/

/* ===========================
   CSS Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #C8102E;
    --dark-red: #8B0000;
    --navy-blue: #003C71;
    --dark-navy: #001F3F;
    --gold: #FFB612;
    --light-gray: #F8F9FA;
    --medium-gray: #E9ECEF;
    --border-gray: #DEE2E6;
    --text-dark: #212529;
    --text-gray: #6C757D;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--navy-blue);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--dark-red);
}

/* ===========================
   Layout
   =========================== */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    padding-top: 80px; /* Account for fixed header */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* ===========================
   Header & Navigation
   =========================== */
.site-header {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--dark-navy) 100%);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-logo-link img {
    max-height: 60px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.site-title a {
    color: var(--white);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--gold);
}

.site-description {
    font-size: 0.9rem;
    color: var(--gold);
    margin: 0;
    font-weight: 400;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--white);
    padding: 0.75rem 1rem;
    display: block;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    background: rgba(255,255,255,0.1);
    color: var(--gold);
}

/* Dropdown menus */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--navy-blue);
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    flex-direction: column;
    gap: 0;
}

.main-navigation li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul a {
    border-radius: 0;
}

.main-navigation ul ul li:first-child a {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.main-navigation ul ul li:last-child a {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.1);
}

/* ===========================
   Page Content
   =========================== */
.page-header-section {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--dark-navy) 100%);
    color: var(--white);
    padding: 3rem 0 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.page-header-section h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.page-header-section .breadcrumbs {
    color: var(--gold);
    font-size: 0.9rem;
}

.entry-content {
    padding: 2rem 0;
}

/* Style WordPress blocks and images */
.entry-content img,
.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.wp-block-image.alignwide,
.alignwide {
    max-width: 100%;
}

.wp-block-image.alignfull,
.alignfull {
    max-width: 100vw;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* ===========================
   Buttons
   =========================== */
.btn,
.wp-block-button__link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary,
.wp-block-button__link {
    background: var(--primary-red);
    color: var(--white);
}

.btn-primary:hover,
.wp-block-button__link:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--navy-blue);
    border: 2px solid var(--navy-blue);
}

.btn-secondary:hover {
    background: var(--navy-blue);
    color: var(--white);
}

/* ===========================
   Cards & Boxes
   =========================== */
.info-card,
.content-box {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.info-card:hover,
.content-box:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* ===========================
   Footer
   =========================== */
.site-footer {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--navy-blue) 100%);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: var(--white);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 992px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .main-navigation ul {
        gap: 0.25rem;
    }

    .main-navigation a {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .site-content {
        padding-top: 70px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy-blue);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

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

    .main-navigation ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-navigation a {
        padding: 1rem;
        border-radius: 0;
    }

    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.1);
        margin-top: 0;
    }

    .main-navigation ul ul a {
        padding-left: 2rem;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .page-header-section {
        padding: 2rem 0 1.5rem;
    }

    .page-header-section h1 {
        font-size: 1.75rem;
    }
}

/* ===========================
   Utility Classes
   =========================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.py-3 { padding-top: 3rem; padding-bottom: 3rem; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}
