/* --- BASE STYLES & TYPOGRAPHY --- */
:root {
    --color-primary: #1e3a8a; /* A deep blue/indigo for main elements */
    --color-secondary: #3b82f6; /* A lighter blue for accents */
    --color-accent: #22c55e; /* Green for completion/success (like 'Completed' status) */
    --color-text-dark: #1f2937;
    --color-text-light: #4b5563;
    --color-bg-light: #f3f4f6;
    --color-white: #ffffff;
    --font-family: 'Montserrat', sans-serif;
    --border-radius: 8px;
    --spacing-large: 40px;
    --spacing-medium: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 60px 0;
}

/* Headings */
h1, h2, h3, h4 {
    margin-bottom: var(--spacing-medium);
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    color: var(--color-text-dark);
}

.accent-text {
    color: var(--color-secondary);
}

.lead-text {
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-large);
}

.tag-label {
    display: inline-block;
    background-color: var(--color-bg-light);
    color: var(--color-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: var(--spacing-medium);
    text-transform: uppercase;
}

/* --- BUTTONS & CARDS --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-bg-light);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.card {
    background-color: var(--color-white);
    padding: var(--spacing-medium);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}


/* --- HEADER --- */
.main-header {
    background-color: var(--color-white);
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
}
.logo a {
    text-decoration: none;
    color: var(--color-text-dark);
}


.main-nav a {
    color: var(--color-text-dark);
    text-decoration: none;
    margin-left: var(--spacing-medium);
    font-weight: 600;
}

.main-nav a:hover {
    color: var(--color-secondary);
}

/* Style for the CTA button in the navigation */
.main-nav .nav-btn {
    margin-left: 25px;
    padding: 8px 20px;
    line-height: 1.2;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
}

/* --- HERO SECTION --- */
.hero {
    background-color: var(--color-bg-light);
    text-align: center;
    padding: 80px 0 60px;
}

.hero h2 {
    font-size: 3rem;
    max-width: 800px;
    margin: 10px auto var(--spacing-medium);
}

.hero h2 strong {
    color: var(--color-primary);
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto var(--spacing-large);
}

.hero-ctas a {
    margin: 0 10px 20px;
}

.trust-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: var(--spacing-large);
    padding: 20px 0;
    border-top: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
}

.trust-features span {
    font-weight: 600;
    color: var(--color-primary);
}

.trust-features i {
    color: var(--color-accent);
    margin-right: 5px;
}

/* --- STATS & VALUES --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
    padding-top: var(--spacing-large);
}

.stats-hero {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.stat-item {
    font-size: 1rem;
    padding: 10px 0;
}

.stat-item strong {
    display: block;
    font-size: 2.5rem;
    color: var(--color-primary);
    font-weight: 800;
}

/* WHY CHOOSE US */
.why-choose-us .container {
    text-align: center;
}

.why-choose-us h2, .why-choose-us .lead-text, .why-choose-us .tag-label {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: var(--spacing-large);
}

.feature-card {
    text-align: center;
    padding: 30px;
}

.feature-card h4 {
    color: var(--color-primary);
    margin-top: 10px;
}

.icon-blue {
    font-size: 2rem;
    color: var(--color-secondary);
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: var(--spacing-large);
}

.large-stat {
    text-align: center;
    padding: 20px;
}

.large-stat strong {
    font-size: 3rem;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 5px;
}

.core-values {
    padding: 20px;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius);
    text-align: left;
}

.value-item {
    margin-bottom: 10px;
    padding: 5px 0;
    font-size: 1.05rem;
    color: var(--color-text-dark);
}

.check-green {
    color: var(--color-accent);
    margin-right: 10px;
}

/* --- SERVICES (Index Page) --- */
.services {
    background-color: var(--color-white);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 30px;
    text-align: center;
    text-decoration: none; /* Make the card itself a clear link */
    color: var(--color-text-dark);
}

.service-card p {
    color: var(--color-text-light);
}

.card-icon {
    font-size: 2rem;
    color: var(--color-primary);
    background-color: #e0f2f1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
    margin-left: auto; 
    margin-right: auto; 
}

.service-card h3 {
    color: var(--color-primary);
    font-weight: 700;
}

/* --- SERVICE DETAIL PAGE STYLES (New) --- */
.service-hero {
    padding: 80px 0;
}

.service-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Two columns for content and features */
    gap: 50px;
    align-items: start;
}

.service-details h3 {
    color: var(--color-secondary);
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-details ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
    border-left: 3px solid var(--color-secondary);
    padding-left: 20px;
}

.service-details ul li {
    margin-bottom: 10px;
    color: var(--color-text-dark);
}

.service-details ul li strong {
    display: block;
    color: var(--color-primary);
}

/* --- GALLERY STYLES --- */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: var(--spacing-large);
}

.gallery-thumbnail {
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: var(--border-radius); 
}

.gallery-thumbnail:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.thumbnail-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    transition: transform 0.4s;
}

.gallery-thumbnail:hover .thumbnail-image {
    transform: scale(1.05);
}

.thumbnail-title {
    margin: 15px 0 15px;
    font-size: 1.2rem;
    color: var(--color-primary);
    padding: 0 15px;
}

/* --- GALLERY STYLES: Masonry-Style Grid --- */

/* The main grid container: sets up the columns */
.full-gallery-grid {
    /* Enables CSS Grid Layout */
    display: grid; 
    /* Defines three columns for desktop view: each column is the same width (1fr) */
    grid-template-columns: repeat(3, 1fr); 
    /* Defines the space between the grid items */
    gap: 20px; 
    /* Sets up automatic rows, ensuring images fit within defined row height, crucial for masonry look */
    grid-auto-rows: 1fr;
    /* This allows grid items to span multiple rows (a little trick for better visual spacing) */
    grid-auto-flow: dense;
    margin-top: 40px;
}

/* Individual gallery image item */
.gallery-item {
    /* Hides any overflow, important if we set a fixed height or aspect ratio */
    overflow: hidden; 
    /* A subtle, light shadow for depth */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
    /* Rounds the corners of the card/item */
    border-radius: var(--border-radius); 
    /* Centers the content */
    display: flex; 
    /* Makes it easy to scale the entire item */
    transform: scale(1);
    /* Transition for a smooth hover effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Image within the item */
.gallery-item img {
    /* Makes the image fill the entire space of its container */
    width: 100%;
    /* Sets the image height to fill the container without being distorted */
    height: 100%; 
    /* Ensures the image covers the area, cropping if necessary (best for galleries) */
    object-fit: cover; 
    /* Transition for a slight scale-up on hover */
    transition: transform 0.4s ease;
}

/* Hover effect for a more interactive experience */
.gallery-item:hover {
    /* Slightly enlarges the card */
    transform: scale(1.02); 
    /* Darkens the shadow */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); 
}

.gallery-item:hover img {
    /* A subtle zoom effect on the image */
    transform: scale(1.05);
}


/* --- RESPONSIVE DESIGN FOR GALLERY --- */

/* Tablet View (600px and up) */
@media (max-width: 992px) {
    .full-gallery-grid {
        /* Changes to 2 columns for a better fit on smaller screens */
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile View (599px and down) */
@media (max-width: 599px) {
    .full-gallery-grid {
        /* Changes to a single column for maximum readability/viewability on phones */
        grid-template-columns: 1fr;
    }
}

/* --- PROJECT SNAPSHOT & LOCATION --- */
.project-snapshot {
    background-color: var(--color-bg-light);
}

.service-areas {
    text-align: center;
    margin-bottom: var(--spacing-large);
}

.service-areas h3 {
    color: var(--color-text-dark);
    margin-bottom: 15px;
}

.area-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.tag {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- TESTIMONIALS --- */
.bg-light {
    background-color: var(--color-bg-light);
}

.testimonial-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
}

.stars {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.quote {
    font-style: italic;
    font-size: 1.25rem;
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.author {
    font-weight: 600;
    color: var(--color-text-light);
}

/* --- CUSTOM SOLUTION CTA --- */
.custom-solution-cta {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
}

.custom-solution-cta h2 {
    color: var(--color-white);
}

.custom-solution-cta .lead-text {
    color: var(--color-bg-light);
}

.custom-solution-cta .btn-primary {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.custom-solution-cta .btn-primary:hover {
    background-color: #15803d; /* Darker green */
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--color-text-dark);
    color: var(--color-bg-light);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

.main-footer p {
    margin: 5px 0;
}

/* --- RESPONSIVENESS (Mobile First) --- */
@media (max-width: 992px) {
    /* Collapse service content grid to single column on tablet/mobile */
    .service-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: var(--color-white);
        border-top: 1px solid #e5e7eb;
        padding: 10px 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        margin: 10px 20px;
        padding: 10px 0;
        border-bottom: 1px solid var(--color-bg-light);
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .menu-toggle {
        display: block;
    }
    
    .hero h2 {
        font-size: 2rem;
    }

    .hero-subtext {
        font-size: 1rem;
    }

    .hero-ctas {
        display: flex;
        flex-direction: column;
    }

    .hero-ctas a {
        margin: 10px 0;
    }

    .trust-features {
        flex-direction: column;
        gap: 10px;
        align-items: start;
        padding: 20px 0;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 20px;
    }

    .area-tags {
        flex-wrap: wrap;
        gap: 10px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .thumbnail-grid {
        gap: 20px;
    }

    .thumbnail-image {
        height: 150px;
    }
}
/* --- Logo Image Styling for Header --- */
.logo a {
    /* Ensure the logo link is a block element for sizing */
    display: inline-block;
    height: 70px; /* Set a fixed height for the link area */
}

.logo-img {
    height: 100%; /* Make image fill the height of the link container */
    width: auto;
    display: block;
    max-width: 100%;
}

/* Adjustments for Mobile View */
@media (max-width: 768px) {
    .logo a {
        height: 60px; /* Slightly smaller logo on mobile */
    }
}
/* --- CONTACT & QUOTE SECTION STYLES (New) --- */

.contact-and-quote {
    /* Use a light background for this section */
    background-color: var(--color-bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 50px;
    align-items: flex-start;
}

.contact-info {
    padding: 30px;
}

.contact-info h2 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.contact-info .lead-text {
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-right: 15px;
    width: 25px; /* Fixed width for alignment */
    text-align: center;
}

.info-item p {
    margin: 0;
    font-size: 1.1rem;
}

.info-item a {
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.info-item a:hover {
    color: var(--color-secondary);
}

.call-now-btn {
    margin-top: 20px;
}

.quote-form-container {
    padding: 40px;
    background-color: var(--color-white); /* White card background */
}

.quote-form-container h2 {
    text-align: center;
    color: var(--color-secondary);
}

.form-subtext {
    text-align: center;
    margin-bottom: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.form-message {
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
}

/* Responsiveness for the new section */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        gap: 30px;
    }
    
    .contact-info {
        padding: 0; /* Remove padding if grid padding is enough */
        text-align: center;
    }

    .contact-info h2, .contact-info .lead-text {
        text-align: center;
    }

    .info-item {
        justify-content: center; /* Center contact details */
    }

    .quote-form-container {
        padding: 30px;
    }
}
/* --- Lightbox (Modal) Styles --- */

.lightbox {
    /* Fixed position to cover the whole viewport */
    position: fixed; 
    z-index: 9999; /* Ensure it's above all other content */
    padding-top: 60px; /* Space from the top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* Dark semi-transparent background */
    background-color: rgba(0, 0, 0, 0.9); 
    display: none; /* Starts hidden */
    
    /* Center the image */
    justify-content: center; 
    align-items: center;
    cursor: pointer; /* Change cursor to indicate it can be closed by clicking */
}

/* Image inside the lightbox */
.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1100px; 
    max-height: 90vh; /* Limits height to 90% of viewport height */
    object-fit: contain; /* Ensures the image is fully visible without cropping */
    border-radius: var(--border-radius);
    /* Animation for smooth appearance */
    animation-name: zoom; 
    animation-duration: 0.6s;
    cursor: default; /* Change cursor back to default over the image */
}

/* Close button (the 'x') */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
}

/* Zoom Animation */
@keyframes zoom {
    from {transform: scale(0.1)} 
    to {transform: scale(1)}
}

/* Responsive adjustments for the close button on small screens */
@media (max-width: 700px) {
    .lightbox-content {
        width: 100%;
    }
    .lightbox-close {
        top: 10px;
        right: 25px;
        font-size: 40px;
    }
}
/* --- Social Media Connect Section Styling (For Main Body) --- */

/* Container for the icons */
.social-links-body {
    padding-top: 30px;
    padding-bottom:0px;
}

/* Individual icon links */
.social-links-body a {
    color: #1e3c72; 
    font-size: 50px; /* Large icons for maximum visibility */
    margin: 0 20px;
    transition: all 0.3s ease; /* Smooth transition for hover effect */
    text-decoration: none;
    display: inline-block;
}

.social-links-body a:hover {
    color: var(--color-secondary, #1e3c72); /* Change color on hover to your accent color */
    transform: translateY(-5px) scale(1.1); /* Slight lift and scale effect on hover */
}