/* --- Google Fonts & CSS Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Work+Sans:wght@400;600;700&display=swap');

:root {
    --primary-color: #0369a1; /* Muted Blue */
    --secondary-color: #374151; /* Dark Gray */
    --accent-color: #f97316; /* Warm Orange */
    --light-gray-color: #f3f4f6;
    --white-color: #ffffff;
    --text-color: #4b5563;
    --heading-font: 'Work Sans', sans-serif;
    --body-font: 'Roboto', sans-serif;
    --box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* --- Global & Reset Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding { padding: 4rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.bg-light { background-color: var(--light-gray-color); }
.text-center { text-align: center; }

/* --- Buttons & CTAs --- */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #fb923c;
    transform: translateY(-2px);
}

.secondary-cta {
    background-color: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
    margin-left: 1rem;
    padding: 0.25rem 1.0rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-cta:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--secondary-color);
    font-weight: 500;
    padding-bottom: 0.5rem;
    position: relative;
}

.main-nav a.active, .main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a.active::after, .main-nav a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary-color);
}

.header-cta { display: block; }

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(3, 49, 73, 0.7), rgba(3, 49, 73, 0.7)), url('https://placehold.co/1920x1080/0369a1/FFF?text=Handyman+at+Work') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    color: var(--white-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.trust-indicators {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.trust-indicators i {
    color: #34d399; /* Light Green Accent */
    margin-right: 0.5rem;
}

/* --- Grids --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* --- Cards (Services, Features) --- */
.service-card, .feature-card, .service-category-card {
    background-color: var(--white-color);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover, .feature-card:hover, .service-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.service-card i, .feature-card i, .service-category-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Testimonials --- */
.testimonial-carousel {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-slide {
    display: none;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial-slide p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial-slide h4 {
    color: var(--primary-color);
    font-weight: 700;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Final CTA Section --- */
.final-cta {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.final-cta h2 {
    color: var(--white-color);
}

/* --- Footer --- */
.footer {
    background-color: var(--secondary-color);
    color: var(--light-gray-color);
    padding: 3rem 0 0;
}

.footer h4 {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.footer .logo { color: var(--white-color); }
.footer p { color: #d1d5db; font-size: 0.9rem; }
.footer ul li { margin-bottom: 0.5rem; }
.footer a { color: #d1d5db; transition: color 0.3s ease; }
.footer a:hover { color: var(--accent-color); }
.footer i { margin-right: 0.5rem; }

.social-icons a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid #4b5563;
}

/* --- Page Header (for inner pages) --- */
.page-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 3rem 0;
    text-align: center;
}
.page-header h1 { color: var(--white-color); }

/* --- About Page --- */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}
.about-image .caption { text-align: center; font-style: italic; margin-top: 1rem; }
.about-text ul {
    list-style: disc;
    padding-left: 1.5rem;
}
.area-list {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.area-list li {
    background: var(--white-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
}
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* --- Gallery Page --- */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover img:first-child {
    opacity: 0;
}

.gallery-item img:last-of-type {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.gallery-item:hover img:last-of-type {
    opacity: 1;
}

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: var(--white-color);
    padding: 0.8rem;
    text-align: center;
    font-weight: 600;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1001;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}
#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.contact-info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    margin-top: 0.25rem;
}
.contact-info-item p { margin-bottom: 0.25rem; }

/* --- Responsive Design --- */
@media(max-width: 992px) {
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.5rem; }
    
    .grid-3, .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        flex-direction: column;
    }
    .main-nav.active {
        display: flex;
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    .main-nav ul li {
        width: 100%;
        text-align: center;
    }
    .main-nav ul li a {
        display: block;
        padding: 1rem;
    }
    .hamburger { display: block; }
    .header-cta { display: none; }

    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
    }
    .footer .grid-4 {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer .social-icons {
        justify-content: center;
    }
}