/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #1a7dd3;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #0056b3;
}

/* Header */
header {
    background-color: #fff;
   
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1a7dd3;
}

.logo i {
    font-size: 2.5em;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.8em;
    font-weight: 700;
    color: #333;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #1a7dd3;
}

.cta-button .btn {
    background-color: #5097d9;
}

.cta-button .btn:hover {
    background-color: #5097d9;
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh; /* Full viewport height */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    overflow: hidden; /* Essential for slider */
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 10px;
}

.slide-content h2 {
    font-size: 3em;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 1.2em;
    margin-bottom: 25px;
}

.slide-content .btn {
    background-color: #fff;
    color: #1a7dd3;
    font-weight: bold;
}

.slide-content .btn:hover {
    background-color: #f0f0f0;
}

/* Slider Navigation Arrows */
.prev-slide, .next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 2em;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.prev-slide i, .next-slide i {
    pointer-events: none; /* Prevent clicks on icon itself */
}

.prev-slide {
    left: 20px;
}

.next-slide {
    right: 20px;
}

.prev-slide:hover, .next-slide:hover {
    background-color: #1a7dd3;
}

/* Sections General Styling */
section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #1a7dd3;
}

/* About Us */
#about .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #555;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Services */
#services {
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    text-align: center;
    padding: 30px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-item i {
    font-size: 3em;
    color: #1a7dd3;
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #333;
}

/* Why Choose Us */
#why-choose-us {
    background-color: #ffffff;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.why-item {
    text-align: center;
    padding: 30px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.why-item i {
    font-size: 2.5em;
    color: #5097d9;
    margin-bottom: 15px;
}

.why-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #333;
}

.why-item p {
    font-size: 0.95em;
    color: #555;
}

/* Home Warranty */
#warranty {
    background-color: #e9ecef;
}

#warranty .container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.warranty-content {
    flex: 1;
    min-width: 300px; /* Ensure content has space */
}

.warranty-content h2 {
    text-align: left;
    margin-bottom: 20px;
}

.warranty-content p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
}

.warranty-content .btn {
    background-color: #1a7dd3;
}

.warranty-content .btn:hover {
    background-color: #0056b3;
}

.warranty-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0; /* Prevent image from shrinking too much */
}

/* Contact & Quotes Form */
#contact {
    background-color: #fff;
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-form-wrapper h2 {
    margin-bottom: 15px;
    color: #1a7dd3;
}

.contact-form-wrapper p {
    text-align: center;
    margin-bottom: 30px;
    color: #555;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #1a7dd3;
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

.form-group input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

.contact-form-wrapper .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 1.1em;
    background-color: #1a7dd3;
}

.contact-form-wrapper .btn:hover {
    background-color: #0056b3;
}

/* Confirmation Message */
.confirmation-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    display: none; /* Hidden by default */
}

.confirmation-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Testimonials */
#testimonials {
    background-color: #e9ecef;
}

#testimonials h2 {
    color: #333;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial {
    display: none; /* Hidden by default */
    padding: 20px;
}

.testimonial.active {
    display: block;
}

.testimonial p {
    font-size: 1.3em;
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    position: relative;
    padding: 0 20px;
}

.testimonial p::before,
.testimonial p::after {
    content: '"';
    font-size: 3em;
    color: #1a7dd3;
    position: absolute;
    line-height: 1;
}

.testimonial p::before {
    top: -10px;
    left: -10px;
}

.testimonial p::after {
    bottom: -10px;
    right: -10px;
}

.testimonial h4 {
    font-size: 1.1em;
    color: #333;
    font-weight: bold;
}

/* Testimonial Navigation Arrows */
.prev-testimonial, .next-testimonial {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.8em;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 10;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.prev-testimonial i, .next-testimonial i {
    pointer-events: none;
}

.prev-testimonial {
    left: -30px; /* Positioned outside content */
}

.next-testimonial {
    right: -30px; /* Positioned outside content */
}

.prev-testimonial:hover, .next-testimonial:hover {
    background-color: #1a7dd3;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px 0;
}

footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-right: 20px;
    margin-bottom: 30px; /* For spacing in flex wrap */
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #1a7dd3;
    font-size: 1.4em;
}

.footer-section p, .footer-section ul {
    font-size: 0.95em;
    color: #ccc;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #1a7dd3;
}

.footer-section.contact-info p {
    display: flex;
    align-items: center;
}

.footer-section.contact-info i {
    margin-right: 10px;
    color: #1a7dd3;
}

.footer-section.social a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.4em;
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-section.social a:hover {
    color: #1a7dd3;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 20px;
    font-size: 0.85em;
    color: #aaa;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.footer-bottom a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #1a7dd3;
}

/* Modals */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.6); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px; /* Max width for content */
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    text-align: center;
    color: #1a7dd3;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.modal-content p {
    margin-bottom: 15px;
    color: #555;
}

.modal-content form .form-group {
    margin-bottom: 15px; /* Tighter spacing in modal forms */
}

.modal-content form .btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #f00;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    header .container {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        margin-top: 15px;
        flex-direction: column;
        align-items: center;
        display: none; /* Hide nav by default, use JS for mobile menu */
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 15px 0;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .cta-button {
        margin-top: 15px;
    }

    .logo {
        margin-bottom: 10px;
    }

    .slide-content h2 {
        font-size: 2.5em;
    }

    .slide-content p {
        font-size: 1.1em;
    }

    #about .container,
    #warranty .container {
        flex-direction: column;
        text-align: center;
    }

    .about-content,
    .warranty-content {
        width: 100%;
        text-align: center;
    }

    .about-image img,
    .warranty-image img {
        margin-top: 20px;
        width: 80%; /* Adjust size */
    }

    .prev-slide, .next-slide {
        font-size: 1.5em;
        padding: 8px 12px;
    }

    .prev-testimonial, .next-testimonial {
        left: 5px;
        right: 5px;
        font-size: 1.5em;
        padding: 8px 12px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        width: 100%;
        text-align: center;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    section h2 {
        font-size: 2em;
    }

    .slide-content h2 {
        font-size: 2em;
    }

    .slide-content p {
        font-size: 1em;
    }

    .service-item i, .why-item i {
        font-size: 2.5em;
    }

    .testimonial p {
        font-size: 1.1em;
    }

    .modal-content {
        width: 90%;
        margin: 5% auto;
    }
}