/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --primary-color: #2563eb;
    /* Strong modern blue */
    --primary-color-rgba: rgba(37, 99, 235, 1);
    /* RGBA version of primary color */
    --secondary-color: #f97316;
    /* Energetic orange for CTAs */
    --dark-color: #1e293b;
    /* Deep slate for text */
    --light-color: #f8fafc;
    /* Clean light background */
    --gray-color: #94a3b8;
    /* Neutral gray for borders */
    --border-radius: 10px;
    /* Slightly rounded corners */
    --shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    /* Subtle shadow */
    --transition: all 0.4s ease;
    /* Smooth transitions */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--gray-color);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(26, 188, 156, 0.3);
}

.btn-primary:hover {
    background-color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(26, 188, 156, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

section {
    padding: 80px 0;
}

/* --- HEADER & NAVIGATION --- */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-section h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
}

.logo-section p {
    font-size: 0.75rem;
    color: var(--gray-color);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu a {
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(37, 99, 235, 1), rgba(37, 99, 235, 1)), url('../images/hero.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 150px 0;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content h3 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    font-weight: 600;
    font-size: 1.1rem;
}

.hero-highlights span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- ABOUT US SECTION --- */
.about-us {
    background-color: var(--light-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--gray-color);
    font-size: 1.1rem;
}

.promise-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 600;
}

.promise-list li::before {
    content: '✔';
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
    background-image: url('../images/about.jpg');
    background-size: cover;
    background-position: center;
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.service-card ul li {
    padding: 8px 0;
    color: var(--gray-color);
    border-bottom: 1px dashed #dee2e6;
}

.service-card ul li:last-child {
    border-bottom: none;
}

/* --- WHY CHOOSE US SECTION --- */
.why-us {
    background-color: var(--light-color);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.why-us-item {
    padding: 25px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.why-us-item h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.why-us-quote {
    text-align: center;
    margin-top: 40px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    font-style: italic;
}

/* --- HOME WARRANTY SECTION --- */
.warranty {
    background: linear-gradient(to right, #0a58ca, #084299);
    color: white;
    text-align: center;
}

.warranty .section-title h2,
.warranty .section-title p {
    color: white;
}

.warranty p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.warranty-benefits {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.warranty-benefits span {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.warranty .btn {
    background-color: white;
    color: var(--primary-color);
}

.warranty .btn:hover {
    background-color: var(--light-color);
    transform: scale(1.05);
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid #e9ecef;
    position: relative;
}

.testimonial-card::before {
    content: '“';
    font-size: 4rem;
    color: var(--secondary-color);
    position: absolute;
    top: 0px;
    left: 15px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.stars {
    color: #f0b429;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
}

/* --- CONTACT & QUOTE FORM SECTION --- */
.contact-form {
    background-color: var(--light-color);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#form-status {
    text-align: center;
    font-weight: 600;
    margin-top: 20px;
    display: none;
    padding: 15px;
    border-radius: var(--border-radius);
}

#form-status.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

/* --- FOOTER --- */
footer {
    background-color: var(--dark-color);
    color: #c9c9c9;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #495057;
}

.footer-brand h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-brand p {
    font-style: italic;
    opacity: 0.8;
}

.footer-brand-info {
    margin-top: 15px;
    font-size: 0.95rem;
}

.footer-brand-info div {
    margin-bottom: 8px;
}

.footer-links h4,
.footer-social h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-social a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.2rem;
}

.footer-social a:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #adb5bd;
}

/* --- POPUP MODULES --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
    background: none;
    border: none;
}

.popup-close:hover {
    color: var(--dark-color);
}

.popup-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.popup-content p {
    margin-bottom: 15px;
    color: var(--gray-color);
    line-height: 1.7;
}

.newsletter-form .form-group {
    margin-bottom: 15px;
}

.popup-success {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.checkbox-group input {
    width: auto;
}

/* --- RESPONSIVE DESIGN (MOBILE) --- */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .logo-section {
        order: 1;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding-top: 15px;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        order: 2;
        display: block;
        margin-left: auto;
    }

    .hero {
        padding: 100px 0;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content h3 {
        font-size: 1.4rem;
    }

    .about-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand-info div {
        margin-bottom: 5px;
    }

    .footer-social {
        margin-top: 20px;
    }
}