/* --- Global Styles & Reset --- */
:root {
    --primary-color: #a75203e3;
    /* Dark Blue/Charcoal */
    --secondary-color: #b36c1b;
    /* Orange/Yellow for CTA */
    --accent-color: #3498db;
    /* Light Blue for links */
    --text-color: #333;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --nav-color: #29425b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

h1,
h2,
h3 {
    margin-bottom: 0.5em;
    font-weight: 700;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

section {
    padding: 30px 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 15px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #e67e22;
    /* Darker orange */
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #34495e;
}

.btn-tertiary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
}

.btn-tertiary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- Header & Navigation --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 96px;
    align-items: center;
    align-content: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    align-items: center;
}

.logo {
    width: 15%;
    display: flexbox;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    position: relative;
    padding: 0 15px;
}

.main-nav ul li a {
    color: var(--nav-color);
    font-weight: 600;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 10px 0;
    z-index: 10;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 15px;
    white-space: nowrap;
}

.contact-info a {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--nav-color);
}

.menu-toggle {
    display: none;
    /* Hidden by default on desktop */
    font-size: 1.5em;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--nav-color);
}

/* --- Hero Section --- */
.hero {
    background-color: var(--light-bg);
    width: auto;
    padding: auto;
    position: relative;
    overflow: hidden;
    display:block;
    text-align: center;
    color: white;
}

.hero .hero-footer{
    margin-bottom: 0;
    padding-bottom: 0;
    background-color: #fcfcfc;
    height: 450px;
    font-family: "Lato", Sans-serif;
    text-align: center;
    font-size: 48px;
    font-weight: 600;
    line-height: 78px;
    align-content: center;
    align-items: center;
    letter-spacing: -2px;
    position:relative;
    top: -60px;
    z-index: 99;
}

.hero .hero-footer h2{
    color: var(--text-color);
}

.hero .hero-footer span{
    color: var(--secondary-color);
}

.headings{
    height: 100px;
    font-family: "Lato", Sans-serif;
    text-align: center;
    font-size: 48px;
    font-weight: 600;
    line-height: 48px;
    align-content: center;
    align-items: center;
    letter-spacing: 2px;
    position:relative;
    z-index: 99;
}

.headings h2{
    color: var(--nav-color);
}

.headings span{
    color: var(--secondary-color);
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Move it back by half its width/height for perfect centering */
    transform: translate(-50%, -50%);
    min-width: 100%;
    /* Ensures it covers the width */
    min-height: 100%;
    /* Ensures it covers the height */
    z-index: 1;
    /* Keep the video behind the content */

    /* The key property to make the video scale like a background image */
    object-fit: cover;
}

.hero .container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
   
}

.hero-content {
    display: flex;
    /*position: relative;*/
    align-content:center;
    align-items:center;
    width: inherit;
    padding-top: 40px;
    z-index: 999;
    /* Ensures the content is above the video */
    /* Optional: Add a text shadow for better readability over the video */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);

}

@keyframes slideUp {
    from {
        opacity: 0;
        /* Move the element 100px (or 100% of its height/something similar) down */
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        /* End position: original place */
        transform: translateY(0);
    }
}

.hero-content1 {
    /* Initial state before animation starts (hidden and slightly offset) */
    opacity: 0;

    /* Apply the animation */
    animation-name: slideUp;
    animation-duration: 1.0s;
    /* How long the animation takes */
    animation-timing-function: ease-out;
    /* Smooth deceleration */
    animation-delay: 0.3s;
    /* Delay before it starts */
    animation-fill-mode: forwards;
    /* Crucial: Keeps the final state (opacity: 1, translateY: 0) after the animation finishes */
}


.hero-text {
    flex: 2;
    padding-right: 1em;
    align-content:start;
}

.hero-text h2 {
    font-family: 'Oswald', sans-serif;
    /*line-height: 1.6;
    color: var(--text-color);*/
    font-size: 4em;
    color: var(--white);
    line-height: 1.1;
    text-align: left;
}

/* Quote Form */
.quote-form {
    flex: 1;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.quote-form h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.quote-form form input[type="text"],
.quote-form form input[type="email"],
.quote-form form input[type="tel"],
.quote-form form select,
.quote-form form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.quote-form form textarea {
    resize: vertical;
    min-height: 130px;
}

.quote-form .btn {
    width: 100%;
}

.abt-content{
    background-color: var(--white);
    padding: 60px 50px;
    position: relative;
    top: -160px;
    z-index: 100;
    font-family: 'Poppins';
}

.abt-content .text-con{
    font-size: 17px;
    font-weight: 400;
    color: #494949;
    line-height: 40PX;

}

.abt-content .text-con h2{
    padding: 10px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5em;
    line-height: 1.1;
    text-align: left;
}

.h2{
    padding: 10px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5em;
    line-height: 1.1;
    text-align: left;
}

/* --- Trusted Contractor Section --- */
.section-trusted-contractor {
    background-color: var(--white);
    padding: 60px 50px;
    position: relative;
    top: -160px;
    z-index: 100;
}

.split-content {
    display: flex;

    gap: 80px;
    margin: 20px;
}

.text-block {
    flex: 2;
}

.image-placeholder {
    flex: 1;
    min-height: 300px;
    background-color: var(--light-bg);
    /* Placeholder background */
    border-radius: 10px;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

/* --- Repair Process Section --- */
.section-repair-process {
    background-color: var(--light-bg);
    text-align: center;
    position: relative;
    top: -160px;
}

.section-intro {
    margin-bottom: 4px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: left;
}

.step {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.step h3 {
    color: var(--secondary-color);
}

/* --- Services Grid Section --- */
.section-services-grid {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 15px;
}

.faq-container {
    max-width: 1000px;
    margin: 20px auto;
    border: 1px solid #ddd;
    border-radius: 5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Style the main collapsible element */
details {
    border-bottom: 1px solid #eee;
}

/* Style the question (the summary element) */
summary {
    display: block; /* Ensures the whole area is clickable */
    cursor: pointer;
    padding: 15px 20px;
    background-color: #f5f5f5;
    font-weight: bold;
    user-select: none;
    transition: background-color 0.3s;
}

/* Change background color on hover */
summary:hover {
    background-color: #eee;
}

/* Optional: Style the default triangle/arrow icon */
summary::marker {
    content: ''; /* Remove the default arrow */
}
summary::-webkit-details-marker {
    display: none; /* Remove the default arrow for Webkit browsers */
}

/* Add custom icon using ::before or ::after */
summary::after {
    content: '+';
    float: right;
    font-size: 1.2em;
    line-height: 1;
    margin-left: 10px;
    transition: transform 0.3s;
}

/* Change icon when the details element is open */
details[open] summary::after {
    content: '-';
    transform: rotate(180deg); /* Optional visual flip */
}

/* Style the answer content */
.faq-answer-content {
    padding: 0 20px 20px;
    background-color: #fff;
}

.contact-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
    display: flex;
    flex-wrap: wrap; /* Allows sections to wrap on small screens */
    gap: 2rem;
}

.contact-details {
    flex: 1 1 300px; /* Takes up space, minimum 300px width */
}

.contact-form-section {
    flex: 2 1 600px; /* Takes up more space, minimum 600px width */
}

.map-section {
    flex-basis: 100%; /* Full width for the map */
    padding: 0; /* Remove padding for edge-to-edge map */
}

/* Address Card Styling */
.address-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.address-card p {
    margin-bottom: 1rem;
}

/* Map Embed */
.map-embed {
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden; /* Ensures the iframe corners are rounded */
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* Contact Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #CED4DA;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

textarea {
    resize: vertical;
}

.submit-btn {
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.1s;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.submit-btn:active {
    transform: translateY(1px);
}

/* Form Status Message */
.form-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 700;
    display: none; /* Hidden by default */
}

.form-status.success {
    background-color: #D4EDDA; /* Light Green */
    color: #155724; /* Dark Green */
    display: block;
}

.form-status.error {
    background-color: #F8D7DA; /* Light Red */
    color: #721C24; /* Dark Red */
    display: block;
}

/* Responsive Design for smaller screens (e.g., Mobile) */
@media (max-width: 900px) {
    .contact-container {
        /* On smaller screens, allow all sections to take full width */
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-details,
    .contact-form-section,
    .map-section {
        flex-basis: 100%;
    }

    /* Remove padding from map section on mobile since container has padding */
    .map-section {
        padding: 0; 
        margin: 0 -1rem; /* Pull map to edges if container has side padding */
        border-radius: 0; /* Remove rounding for full bleed */
        box-shadow: none;
    }
    
    .map-embed {
        height: 300px;
        border-radius: 0;
    }

    /* Adjust padding for a tighter look on mobile */
    section {
        padding: 1.5rem;
    }
}


/* --- Footer CTA --- */
.footer-cta {
    background-color: var(--primary-color);
    text-align: center;
    padding: 50px 0;
    color: var(--white);
}

.footer-cta h2 {
    color: var(--white);
}

.footer-cta p {
    margin-bottom: 20px;
}

/* --- Footer --- */
footer {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.76)), 
        url('/assets/image-45.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    color: #ccc;
    padding: 40px 0;
    font-size: 1em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.footer-logo-cap{
    font-size: large;
    padding-right: 10px;
}

footer h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 8px;
}

footer a {
    color: #ccc;
}

footer a:hover {
    color: var(--secondary-color);
}

.footer-legal {
    grid-column: 1 / -1;
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 20px;
}

.legal-links a {
    margin: 0 5px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1000px) {
    .hero .container {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-text {
        text-align: center;
        margin-bottom: 30px;
    }
}

@media (max-width: 800px) {
    .split-content {
        flex-direction: column;
    }

    .image-placeholder {
        width: 100%;
    }

    .header-content {
        padding: 10px 20px;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 65px;
        /* Adjust based on header height */
        left: 0;
        background-color: var(--white);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul li {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding: 0;
    }

    .dropdown-menu a {
        padding-left: 30px;
        font-size: 0.9em;
    }

    .contact-info {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}