/* 5 Star Restoration - Custom CSS */

:root {
    --primary-blue: #003366;
    --secondary-orange: #FF6600;
    --light-gray: #F4F4F4;
    --dark-gray: #333;
    --white: #FFFFFF;
    --text-color: #444;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo img {
    height: 60px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    font-weight: 600;
    color: var(--primary-blue);
}

nav ul li a:hover {
    color: var(--secondary-orange);
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.7)), url('../images/hero.jpg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn.primary {
    background-color: var(--secondary-orange);
    color: var(--white);
}

.btn.primary:hover {
    background-color: #e65c00;
    transform: scale(1.05);
}

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

.btn.secondary:hover {
    background-color: #002244;
    transform: scale(1.05);
}

.btn.tertiary {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn.tertiary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn.small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Intro & General Sections */
section {
    padding: 60px 0;
}

#intro h2 {
    text-align: center;
}

/* Trust Blocks */
#trust-blocks {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
}

#trust-blocks .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

#trust-blocks h3 {
    color: var(--white);
    margin-bottom: 5px;
}

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

.service-card {
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.service-card h3, .service-card p, .service-card .btn {
    padding: 15px;
}

.service-card h3 {
    margin-bottom: 0;
}

/* Gallery Preview */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.gallery-grid img {
    border-radius: 5px;
    height: 200px;
    width: 100%;
    object-fit: cover;
}

/* Testimonials */
.testimonial-item {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 5px solid var(--secondary-orange);
}

.testimonial-item p {
    font-style: italic;
    font-size: 1.1rem;
}

.testimonial-item span {
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

/* Page Specific Heros */
#about-hero, #services-hero, #service-area-hero, #gallery-hero, #contact-hero {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

#about-hero h1, #services-hero h1, #service-area-hero h1, #gallery-hero h1, #contact-hero h1 {
    color: var(--white);
}

/* Service Page Items */
.service-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 60px;
}

.service-item img {
    border-radius: 8px;
    margin-bottom: 20px;
    max-height: 400px;
    object-fit: cover;
}

/* Service Area Grid */
.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.area-item {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 5px;
}

/* Gallery Page */
#image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    background-color: var(--white);
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 5px;
}

.gallery-item img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Contact Page */
#contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-details h2, .contact-map h2, .contact-form h2 {
    margin-top: 0;
}

.contact-map iframe {
    width: 100%;
    border-radius: 8px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input, .contact-form select, .contact-form textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.emergency-cta {
    grid-column: 1 / -1;
    background-color: #ffe6e6;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 2px dashed #cc0000;
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 40px 0;
    margin-top: 60px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

footer a:hover {
    color: var(--secondary-orange);
}

footer .footer-nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    nav .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    #contact-info {
        grid-template-columns: 1fr;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }

    footer .footer-nav ul {
        justify-content: center;
    }
}
