/* Base Styles & Color Palette */
:root {
    --bg-dark: #050505;
    --pyro-red: #c1272d;
    --pyro-blue: #233470;
    --text-light: #f4f4f4;
    --accent-white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Navigation */
header {
    background-color: #000000;
    border-bottom: 3px solid var(--pyro-red);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 80px;
    margin-right: 15px;
}

.logo-container h1 {
    color: var(--accent-white);
    margin: 0;
    font-family: 'Impact', fantasy, sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--pyro-red);
}

/* Sections */
main {
    flex: 1; /* Pushes footer to the bottom */
}

section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    color: var(--pyro-red);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    border-bottom: 2px solid var(--pyro-blue);
    display: inline-block;
    padding-bottom: 10px;
}

.section-header-container {
    text-align: center;
}

/* Home Section */
#home {
    text-align: center;
    padding: 80px 20px;
    background: radial-gradient(circle, var(--pyro-blue) 0%, var(--bg-dark) 70%);
}

#home h2 {
    border: none;
    font-size: 3rem;
    color: var(--accent-white);
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 50px;
}

/* Locations Grid */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.location-card {
    background-color: #111;
    border: 1px solid var(--pyro-blue);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s;
}

.location-card:hover {
    transform: translateY(-5px);
    border-color: var(--pyro-red);
}

.location-card h3 {
    color: var(--accent-white);
    margin-top: 0;
}

/* Shared Content Boxes (About & News) */
.content-box {
    background-color: #111;
    padding: 40px;
    border-radius: 8px;
    border-left: 5px solid var(--pyro-blue);
}

/* News Specifics */
.news-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-date {
    color: var(--pyro-red);
    font-size: 0.9rem;
    font-weight: bold;
}

/* Contact Specifics */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.contact-info {
    background-color: #111;
    padding: 30px;
    border-radius: 8px;
    flex: 1;
    min-width: 300px;
    border-top: 5px solid var(--pyro-red);
}

/* Footer */
footer {
    background-color: #000;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #333;
}

footer p {
    margin: 0;
    color: #777;
    font-size: 0.9rem;
}

/* --- Responsive Design / Mobile Adjustments --- */
@media (max-width: 768px) {
    /* Stack the header, logo, and navigation vertically */
    header {
        flex-direction: column;
        padding: 15px 20px;
        text-align: center;
    }

    .logo-container {
        flex-direction: column;
        margin-bottom: 15px;
    }

    .logo-container img {
        margin-right: 0;
        margin-bottom: 10px;
        height: 60px; /* Scales down the logo slightly */
    }

    /* Allows navigation links to wrap to a new line instead of running off screen */
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    /* Shrink the massive hero text so it fits */
    #home {
        padding: 50px 20px;
    }

    #home h2 {
        font-size: 2.2rem; 
    }

    /* Force grids to become a single, neat column */
    .locations-grid {
        grid-template-columns: 1fr;
    }

    /* Allow the contact box to shrink to fit smaller phone screens */
    .contact-info {
        min-width: 100%;
        padding: 20px;
    }

    /* Reduce bulkiness of the content boxes */
    .content-box {
        padding: 25px 20px; 
    }
}
