/* --- General Styles --- */
:root {
    --primary-color: #21d6ab; /* Blue */
    --secondary-color: #6c757d; /* Gray */
    --accent-color: #ffc107; /* Yellow */
    --background-dark: #012119; /* Dark Gray/Black */
    --background-light: #f8f9fa; /* Light Gray */
    --text-dark: #343a40;
    --text-light: #ffffff;
    --section-padding: 70px 0;
    --container-max-width: 1140px;
    --border-radius: 5px;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--background-light);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    color: var(--text-dark);
    margin-bottom: 20px;
}

h1 { font-size: 2.8em; line-height: 1.2; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.7em; }
h4 { font-size: 1.3em; }

p {
    margin-bottom: 1.5em;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: #0056b3; /* Darker blue */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    margin: 10px 5px;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.section-subtitle {
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.1em;
    margin-bottom: 50px;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--text-light);
    color: var(--text-dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--background-dark);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color var(--transition-speed) ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

.hamburger-menu {
    display: none; /* Hidden on larger screens */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-dark);
    transition: all var(--transition-speed) ease-in-out;
}


/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 80vh; /* Adjust height as needed */
    background: url('../images/hero.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden; /* Crucial for parallax */
}

.hero-section::before { /* Overlay for better text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5em;
    color: var(--text-light);
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3em;
    color: var(--text-light);
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-content .btn {
    margin: 5px;
}

/* --- About Us Section --- */
.about-section {
    padding: var(--section-padding);
    background-color: var(--text-light);
}

.about-section .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    text-align: left;
    color: var(--text-dark);
}

.about-text p {
    color: var(--secondary-color);
}

/* --- Services Section --- */
.services-section {
    padding: var(--section-padding);
    background-color: var(--background-light);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--text-light);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-item i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.service-item p {
    color: var(--secondary-color);
    font-size: 0.95em;
}

/* --- Why Choose Us Section --- */
.why-choose-us-section {
    padding: var(--section-padding);
    background-color: var(--text-light);
    text-align: center;
}

.choose-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.choose-us-item {
    background-color: var(--background-light);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.choose-us-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.choose-us-item i {
    font-size: 2em;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.choose-us-item h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.choose-us-item p {
    color: var(--secondary-color);
    font-size: 0.95em;
}

/* --- Home Warranty Section --- */
.home-warranty-section {
    padding: var(--section-padding);
    background-color: var(--primary-color);
    color: var(--text-light);
}

.home-warranty-section h2 {
    color: var(--text-light);
    text-align: left;
}

.home-warranty-section p {
    color: rgba(255, 255, 255, 0.9);
}

.home-warranty-section .btn-primary {
    background-color: var(--text-light);
    color: var(--primary-color);
    border-color: var(--text-light);
}

.home-warranty-section .btn-primary:hover {
    background-color: #ddd;
}


.warranty-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.warranty-text {
    flex: 1;
}

.warranty-image {
    flex: 1;
    text-align: center;
}

.warranty-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* --- Contact & Form Section --- */
.contact-section {
    padding: var(--section-padding);
    background-color: var(--text-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info smaller than form */
    gap: 50px;
    align-items: start;
}

.contact-info {
    background-color: var(--background-light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
}

.contact-info h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.contact-info p {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.5em;
    color: var(--secondary-color);
    transition: color var(--transition-speed) ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.contact-form {
    background-color: var(--text-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-dark);
}

.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;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 15px 25px;
    font-size: 1.1em;
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: var(--section-padding);
    background-color: var(--background-light);
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: left;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.testimonial-item p {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
}

.testimonial-item p::before {
    content: '\201C'; /* Opening quote */
    font-size: 2em;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: -10px;
    opacity: 0.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-author h4 {
    margin: 0;
    color: var(--text-dark);
}

.testimonial-author span {
    display: block;
    color: var(--secondary-color);
    font-size: 0.9em;
}

/* --- Footer --- */
footer {
    background-color: var(--background-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 0 0; /* Top padding, no bottom padding as it's handled by footer-bottom */
    font-size: 0.95em;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: var(--text-light);
    margin-bottom: 15px;
}

.footer-links h4,
.footer-legal h4,
.footer-newsletter h4 {
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--text-light);
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-newsletter .btn-secondary {
    width: 100%;
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.footer-newsletter .btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--background-dark);
}

.footer-bottom {
    background-color: #012119;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Modals --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    backdrop-filter: blur(5px); /* Slight blur effect */
}

.modal-content {
    background-color: var(--text-light);
    margin: 8% auto; /* 15% from the top and centered */
    padding: 40px;
    border-radius: var(--border-radius);
    width: 80%; /* Could be more responsive */
    max-width: 600px;
    position: relative;
    animation: fadeIn 0.4s ease-out;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.modal-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.modal-content p,
.modal-content label {
    color: var(--secondary-color);
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="date"],
.modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    box-sizing: border-box;
    font-size: 1em;
}

.modal-content .checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.modal-content .checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    width: auto; /* Override default */
}
.modal-content .checkbox-container label {
    margin-bottom: 0; /* Override default */
}

.modal-content .btn-primary {
    width: 100%;
    padding: 15px 25px;
    font-size: 1.1em;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-speed) ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--text-dark);
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }

    .hero-section {
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 2.8em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .about-section .container,
    .warranty-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image, .about-text, .warranty-image, .warranty-text {
        flex: none;
        width: 100%;
    }

    .about-image img, .warranty-image img {
        margin-bottom: 30px;
    }

    .contact-grid {
        grid-template-columns: 1fr; /* Stack info and form on smaller screens */
    }

    .contact-info, .contact-form {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Hamburger menu logic */
    .hamburger-menu {
        display: block; /* Show hamburger */
    }

    nav {
        position: fixed;
        top: 60px; /* Adjust based on header height */
        right: -100%; /* Off-screen */
        width: 50%;
        height: calc(100vh - 60px); /* Full height minus header */
        background-color: var(--text-light);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* Align items to top */
        padding-top: 40px;
        transition: right var(--transition-speed) ease;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }

    nav.active {
        right: 0; /* Slide in */
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 15px 0;
    }

    /* Hamburger animation */
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .logo a {
        font-size: 1.5em;
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .service-item, .choose-us-item, .testimonial-item {
        min-width: 250px; /* Ensure they don't get too small */
    }

    .modal-content {
        width: 90%;
        margin: 10% auto;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.7em; }
    h3 { font-size: 1.4em; }

    .hero-section {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 0.95em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .section-padding {
        padding: 50px 0;
    }

    .services-grid, .testimonial-grid, .choose-us-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }

    .service-item, .choose-us-item, .testimonial-item, .contact-info, .contact-form {
        padding: 25px 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .logo a {
        font-size: 1.3em;
    }
}