/* --- GLOBAL STYLES & VARIABLES --- */
:root {
        --primary-color: #1e3a8a;
        /* Royal Blue */
        --primary-hover: #16276b;
        --secondary-color: #f0f4ff;
        /* Soft background */
        --accent-color: #38bdf8;
        /* Sky blue for CTAs */
        --accent-hover: #0ea5e9;
        --text-dark: #0f172a;
        --text-light: #64748b;
        --white: #ffffff;
        --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        --transition: all 0.3s ease;
}


* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
}

body {
        font-family: 'Inter', sans-serif;
        line-height: 1.6;
        color: var(--text-dark);
        background-color: var(--white);
}

a {
        text-decoration: none;
        color: inherit;
        transition: var(--transition);
}

ul {
        list-style: none;
}

img {
        max-width: 100%;
        display: block;
}

.container {
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 20px;
}

.section-padding {
        padding: 80px 0;
}

.section-title {
        text-align: center;
        margin-bottom: 50px;
}

.section-title h2 {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--primary-color);
        margin-bottom: 15px;
}

.section-title p {
        font-size: 1.1rem;
        color: var(--text-light);
        max-width: 700px;
        margin: 0 auto;
}

.btn {
        display: inline-block;
        padding: 12px 28px;
        border-radius: 6px;
        font-weight: 600;
        text-align: center;
        cursor: pointer;
        border: 2px solid transparent;
        transition: var(--transition);
}

.btn-primary {
        background-color: var(--accent-color);
        color: var(--white);
}

.btn-primary:hover {
        background-color: var(--accent-hover);
        transform: translateY(-2px);
}

.btn-secondary {
        background-color: transparent;
        border-color: var(--primary-color);
        color: var(--primary-color);
}

.btn-secondary:hover {
        background-color: var(--primary-color);
        color: var(--white);
}

/* --- HEADER & NAVIGATION --- */
.header {
        background-color: var(--white);
        box-shadow: var(--shadow);
        position: sticky;
        top: 0;
        z-index: 1000;
}

.header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 80px;
}

.logo {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-color);
}

.nav-menu {
        display: flex;
        align-items: center;
        gap: 25px;
}

.nav-menu a {
        font-weight: 500;
        color: var(--text-dark);
}

.nav-menu a:hover {
        color: var(--primary-color);
}

.header .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
}

.mobile-toggle {
        display: none;
        font-size: 1.5rem;
        cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
        background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('../images/hero.webp');
        background-size: cover;
        background-position: center;
        color: var(--white);
        text-align: center;
        padding: 120px 0;
}

.hero h1 {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 20px;
        line-height: 1.2;
}

.hero p {
        font-size: 1.25rem;
        margin-bottom: 40px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
}

.hero-highlights {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 25px;
        margin-bottom: 50px;
        text-align: left;
}

.highlight-item {
        display: flex;
        align-items: center;
        gap: 10px;
        background-color: rgba(255, 255, 255, 0.1);
        padding: 10px 15px;
        border-radius: 50px;
        font-size: 0.95rem;
        font-weight: 500;
}

.hero-cta {
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
}

/* --- ABOUT US SECTION --- */
.about-us {
        background-color: var(--secondary-color);
}

.about-us .container {
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
        align-items: center;
}

.about-content {
        flex: 1;
        min-width: 300px;
}

.about-content h3 {
        font-size: 1.5rem;
        color: var(--primary-color);
        margin-bottom: 15px;
}

.about-content p {
        margin-bottom: 20px;
        color: var(--text-light);
}

.mission-box {
        background: var(--white);
        padding: 25px;
        border-left: 4px solid var(--accent-color);
        border-radius: 4px;
        box-shadow: var(--shadow);
}

.mission-box h4 {
        color: var(--primary-color);
        margin-bottom: 10px;
}

/* --- SERVICES SECTION --- */
.services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        margin-bottom: 40px;
}

.service-category {
        background: var(--white);
        padding: 30px;
        border-radius: 8px;
        box-shadow: var(--shadow);
        border-top: 3px solid var(--primary-color);
}

.service-category h3 {
        color: var(--primary-color);
        margin-bottom: 15px;
        font-size: 1.3rem;
}

.service-category ul li {
        margin-bottom: 10px;
        color: var(--text-light);
        position: relative;
        padding-left: 20px;
}

.service-category ul li::before {
        content: '•';
        color: var(--accent-color);
        position: absolute;
        left: 0;
        font-weight: bold;
}

.services-cta {
        text-align: center;
}

/* --- WHY CHOOSE US SECTION --- */
.why-choose-us {
        background-color: var(--secondary-color);
}

.reasons-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
}

.reason-card {
        background: var(--white);
        padding: 25px;
        border-radius: 8px;
        text-align: center;
        box-shadow: var(--shadow);
        transition: var(--transition);
}

.reason-card:hover {
        transform: translateY(-5px);
}

.reason-card i {
        font-size: 2.5rem;
        color: var(--primary-color);
        margin-bottom: 15px;
}

.reason-card h4 {
        font-size: 1.1rem;
        color: var(--text-dark);
}

/* --- HOME WARRANTY SECTION --- */
.warranty {
        background: linear-gradient(135deg, var(--primary-color), #0ea5e9);
        color: var(--white);
}

.warranty .section-title h2,
.warranty .section-title p {
        color: var(--white);
}

.warranty-content {
        background-color: rgba(255, 255, 255, 0.1);
        padding: 30px;
        border-radius: 8px;
        max-width: 800px;
        margin: 0 auto 30px;
}

.warranty-content ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
}

.warranty-content ul li {
        background-color: rgba(255, 255, 255, 0.2);
        padding: 10px 15px;
        border-radius: 20px;
        font-weight: 500;
}

.warranty-cta {
        text-align: center;
}

.warranty-cta .btn {
        border-color: var(--white);
        background-color: transparent;
        color: var(--white);
}

.warranty-cta .btn:hover {
        background-color: var(--white);
        color: var(--primary-color);
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
}

.testimonial-card {
        background: var(--white);
        padding: 30px;
        border-radius: 8px;
        box-shadow: var(--shadow);
        border-left: 4px solid var(--accent-color);
}

.testimonial-text {
        font-style: italic;
        color: var(--text-light);
        margin-bottom: 20px;
        position: relative;
}

.testimonial-text::before {
        content: '“';
        font-size: 3rem;
        color: var(--secondary-color);
        position: absolute;
        top: -20px;
        left: -10px;
        z-index: -1;
}

.testimonial-author {
        font-weight: 700;
        color: var(--primary-color);
}

/* --- QUOTE FORM SECTION --- */
.quote-form-section {
        background-color: var(--secondary-color);
}

.form-container {
        max-width: 700px;
        margin: 0 auto;
        background: var(--white);
        padding: 40px;
        border-radius: 8px;
        box-shadow: var(--shadow);
}

.form-group {
        margin-bottom: 20px;
}

.form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-family: inherit;
        font-size: 1rem;
}

.form-group textarea {
        resize: vertical;
        min-height: 120px;
}

.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(0, 0, 0, 0.1);
}

.form-feedback {
        margin-top: 20px;
        padding: 15px;
        border-radius: 6px;
        text-align: center;
        font-weight: 600;
        display: none;
}

.form-feedback.success {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
        display: block;
}

.form-feedback.error {
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
        display: block;
}

/* --- NEWSLETTER SECTION --- */
.newsletter {
        background: var(--primary-color);
        color: var(--white);
}

.newsletter .section-title h2,
.newsletter .section-title p {
        color: var(--white);
}

.newsletter-form {
        max-width: 600px;
        margin: 0 auto;
        background: rgba(255, 255, 255, 0.1);
        padding: 30px;
        border-radius: 8px;
}

.newsletter-form .form-group input {
        background: rgba(255, 255, 255, 0.9);
}

.checkbox-group {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 15px;
        font-size: 0.9rem;
}

.newsletter-form .btn {
        width: 100%;
        margin-top: 15px;
        background-color: var(--accent-color);
        border-color: var(--accent-color);
}

.newsletter-form .btn:hover {
        background-color: var(--accent-hover);
        border-color: var(--accent-hover);
}

.newsletter-feedback {
        text-align: center;
        margin-top: 20px;
        font-weight: 600;
        display: none;
}

.newsletter-feedback.success {
        display: block;
}

/* --- LEGAL & POLICY SECTION --- */
.legal-content {
        background: var(--white);
        padding: 30px;
        border: 1px solid #eee;
        border-radius: 8px;
        margin-bottom: 30px;
}

.legal-content h3 {
        color: var(--primary-color);
        margin-bottom: 15px;
        border-bottom: 2px solid var(--secondary-color);
        padding-bottom: 10px;
}

.legal-content p {
        margin-bottom: 15px;
        color: var(--text-light);
}

/* --- FOOTER --- */
.footer {
        background-color: #1a252f;
        color: #a0aec0;
        padding-top: 60px;
}

.footer-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 40px;
        margin-bottom: 40px;
}

.footer-brand .logo {
        color: var(--white);
        margin-bottom: 15px;
}

.footer-brand p {
        font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
        color: var(--white);
        margin-bottom: 15px;
        font-size: 1.2rem;
}

.footer-links ul li {
        margin-bottom: 10px;
}

.footer-links ul li a:hover {
        color: var(--accent-color);
}

.footer-contact p {
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 10px;
}

.social-icons {
        display: flex;
        gap: 15px;
        margin-top: 15px;
}

.social-icons a {
        font-size: 1.5rem;
}

.social-icons a:hover {
        color: var(--accent-color);
}

.footer-bottom {
        text-align: center;
        padding: 20px 0;
        border-top: 1px solid #2d3748;
        font-size: 0.9rem;
}

/* --- RESPONSIVE DESIGN (MEDIA QUERIES) --- */
@media (max-width: 768px) {
        .header .container {
                height: auto;
                padding: 15px 20px;
                flex-wrap: wrap;
        }

        .nav-menu {
                display: none;
                width: 100%;
                flex-direction: column;
                gap: 15px;
                padding: 20px 0;
                text-align: center;
        }

        .nav-menu.active {
                display: flex;
        }

        .mobile-toggle {
                display: block;
                position: absolute;
                right: 20px;
                top: 25px;
        }

        .hero h1 {
                font-size: 2.2rem;
        }

        .hero p {
                font-size: 1rem;
        }

        .hero-highlights {
                flex-direction: column;
                align-items: center;
        }

        .hero-cta {
                flex-direction: column;
                width: 100%;
        }

        .hero-cta .btn {
                width: 100%;
        }

        .section-title h2 {
                font-size: 2rem;
        }

        .form-container {
                padding: 25px;
        }
}