/* Heartland Fire Trucks - Custom Styles */

/* Font family for all elements */
body, h1, h2, h3, h4, h5, h6 {
    font-family: "Lato", sans-serif;
}

body {
    font-size: 16px;
    margin: 0;
    padding: 0;
}

/* Parallax Background Images */
.bgimg-1, .bgimg-2, .bgimg-3 {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* First parallax - Home hero image */
.bgimg-1 {
    background-image: url("../images/firetruck_moon.jpg");
    min-height: 100vh;
}

/* Second parallax - Customers section */
.bgimg-2 {
    background-image: url("../images/firetruck_sutphen_1.jpg");
    min-height: 400px;
}

/* Third parallax - Contact section */
.bgimg-3 {
    background-image: url("../images/firetruck_in%20line.jpg");
    min-height: 400px;
}

/* Navbar logo */
.navbar-logo {
    width: 50px;
    vertical-align: middle;
}

/* Hero text no wrap */
.hero-text {
    white-space: nowrap;
}

/* Full width images */
.img-full-width {
    width: 100%;
    height: auto;
}

/* Fire truck card grid */
.truck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 16px;
}

/* Fire truck card styling */
.truck-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.truck-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.truck-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.truck-card-content {
    padding: 16px;
}

.truck-card-content p.w3-xlarge {
    margin-top: 0;
    margin-bottom: 12px;
}

.truck-card-content p:last-child {
    margin-bottom: 0;
    color: #555;
    line-height: 1.6;
}

/* Responsive grid adjustments */
@media (max-width: 992px) {
    .truck-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .truck-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 8px;
    }

    .truck-card img {
        height: 200px;
    }
}

/* Link focus states for accessibility */
a:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .bgimg-1, .bgimg-2, .bgimg-3 {
        background-attachment: scroll;
    }

    .hero-text {
        white-space: normal;
    }
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .bgimg-1, .bgimg-2, .bgimg-3 {
        background-attachment: scroll;
    }

    .w3-animate-opacity {
        animation: none;
    }
}
