/* General Body and Typography */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

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

h1, h2, h3 {
    color: #2c3e50;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background: #2c3e50;
    color: #fff;
    padding-top: 20px;
    min-height: 70px;
    border-bottom: #3498db 3px solid;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline;
    padding: 0 15px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header nav ul li a:hover {
    color: #3498db;
    text-decoration: none;
}

/* Hero Section */
.hero {
    min-height: 400px;
    background: #34495e url('../images/water-damage-1.jpg') no-repeat center center/cover;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #fff;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.cta-buttons .btn {
    display: inline-block;
    color: #fff;
    padding: 12px 25px;
    margin: 0 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-buttons .btn.primary {
    background-color: #3498db;
}

.cta-buttons .btn.primary:hover {
    background-color: #2980b9;
}

.cta-buttons .btn.secondary {
    background-color: #e67e22; /* Subtle accent color */
}

.cta-buttons .btn.secondary:hover {
    background-color: #d35400;
}

.cta-buttons .btn.tertiary {
    background-color: #7f8c8d; /* Gray */
}

.cta-buttons .btn.tertiary:hover {
    background-color: #95a5a6;
}

/* Sections */
section {
    padding: 40px 0;
    background: #fff;
    margin-bottom: 20px;
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 36px;
}

/* Intro Business */
.intro-business p {
    text-align: center;
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

/* Featured Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.service-item h3 {
    color: #3498db;
    margin-bottom: 10px;
}

.service-item .learn-more {
    display: inline-block;
    margin-top: 15px;
    color: #3498db;
    font-weight: bold;
}

/* Service Area Preview */
.service-area-preview {
    text-align: center;
    background: #ecf0f1;
}

.service-area-preview p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Contact Preview */
.contact-preview {
    text-align: center;
    background: #2c3e50;
    color: #fff;
}

.contact-preview h2 {
    color: #fff;
}

.contact-preview .phone-number {
    font-size: 28px;
    margin: 20px 0;
}

.contact-preview .phone-number a {
    color: #fff;
    text-decoration: none;
}

.contact-preview .phone-number a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #3498db;
}

/* About Page Specific */
.about-hero {
    min-height: 300px;
    background: #34495e url('../images/fire-damage-1.jpg') no-repeat center center/cover;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.about-hero .container {
    position: relative;
    z-index: 1;
}

.about-hero h1 {
    font-size: 42px;
    color: #fff;
}

.company-description, .our-approach {
    padding: 30px 0;
}

.our-approach ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 20px auto;
}

.our-approach ul li {
    background: #ecf0f1;
    margin-bottom: 10px;
    padding: 15px;
    border-left: 5px solid #3498db;
    border-radius: 5px;
}

/* Services Page Specific */
.services-hero {
    min-height: 300px;
    background: #34495e url('../images/smoke-damage-1.jpg') no-repeat center center/cover;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.services-hero .container {
    position: relative;
    z-index: 1;
}

.services-hero h1 {
    font-size: 42px;
    color: #fff;
}

.service-detail {
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.service-detail:last-of-type {
    border-bottom: none;
}

.service-detail h2 {
    color: #3498db;
    text-align: left;
    margin-bottom: 15px;
}

/* Service Area Page Specific */
.service-area-hero {
    min-height: 300px;
    background: #34495e url('../images/flooded-basement.jpg') no-repeat center center/cover;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-area-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.service-area-hero .container {
    position: relative;
    z-index: 1;
}

.service-area-hero h1 {
    font-size: 42px;
    color: #fff;
}

.area-details {
    padding: 30px 0;
}

.area-details ul {
    list-style: disc;
    margin-left: 20px;
    max-width: 800px;
    margin: 20px auto;
}

.area-details ul li {
    margin-bottom: 10px;
}

/* Gallery Page Specific */
.gallery-hero {
    min-height: 300px;
    background: #34495e url('../images/mold-removal-1.jpg') no-repeat center center/cover;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.gallery-hero .container {
    position: relative;
    z-index: 1;
}

.gallery-hero h1 {
    font-size: 42px;
    color: #fff;
}

.image-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.image-gallery figure {
    margin: 0;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.image-gallery figure img {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Cover the area, cropping if necessary */
    border-radius: 5px;
    margin-bottom: 10px;
}

.image-gallery figcaption {
    font-size: 14px;
    color: #555;
}

/* Contact Page Specific */
.contact-hero {
    min-height: 300px;
    background: #34495e url('../images/contact-hero.jpg') no-repeat center center/cover;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.contact-hero .container {
    position: relative;
    z-index: 1;
}

.contact-hero h1 {
    font-size: 42px;
    color: #fff;
}

.contact-info {
    padding: 30px 0;
}

.contact-details, .contact-form, .map-container {
    margin-bottom: 40px;
}

.contact-details p {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-form form {
    max-width: 600px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn.primary {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form .btn.primary:hover {
    background-color: #2980b9;
}

.map-container {
    text-align: center;
}

.map-container iframe {
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        margin-top: 15px;
    }

    header nav ul li {
        display: block;
        margin-bottom: 10px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .cta-buttons .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }

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

    .image-gallery .gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-hero h1, .services-hero h1, .service-area-hero h1, .gallery-hero h1, .contact-hero h1 {
        font-size: 36px;
    }

    .service-detail h2 {
        text-align: center;
    }
}
