/* Custom Styles for Fire Safety Website */

body {
    padding-top: 56px; /* Adjust based on navbar height */
}

#hero {
    position: relative; /* For overlay */
    color: #fff; /* Ensure text is white */
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2; /* Ensure content is above overlay */
}

.navbar-brand img {
    margin-left: 8px; /* Space between logo and text */
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-weight: bold;
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem; /* Slightly more rounded corners */
    overflow: hidden; /* Ensure image corners are rounded too */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* About Section */
#about img {
    max-width: 100%;
    height: auto;
}

#about h4 {
    color: #0d6efd; /* Bootstrap primary blue */
    margin-bottom: 1rem;
}

/* Gallery Section */
#gallery .card {
    transition: transform 0.3s ease;
    border: 1px solid #dee2e6;
}

#gallery .card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#gallery .card-title {
    color: #343a40;
}

/* Contact Form */
#contact form {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

#contactForm .form-label {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 2rem;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    #contact .row > div {
        margin-bottom: 2rem; /* Add space between form and map/address on smaller screens */
    }
    #map-container {
        height: 250px; /* Adjust map height */
    }
}
