/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0f4c5c;
    /* deep teal */

    --secondary: #ffb703;
    /* warm amber */

    --accent: #219ebc;
    /* fresh sky blue */

    --light: #f1faee;
    /* soft mint white */

    --dark: #023047;
    /* rich navy teal */

    --gray: #6c757d;
    /* cool gray */

    --shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease-in-out;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark);
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--primary);
}

.btn-secondary:hover {
    background: #1a252f;
}

section {
    padding: 80px 0;
}

.section-light {
    background-color: #f9f9f9;
}

.text-center {
    text-align: center;
}

/* Header */
header {
    background-color: var(--primary);
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

.logo span {
    color: var(--secondary);
}

.nav-menu ul {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--secondary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary);
    left: 0;
    bottom: -5px;
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 180px 0 100px;
    margin-top: 70px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #eee;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding: 30px 20px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

/* Why Choose Us */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature {
    text-align: center;
    padding: 25px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.feature i {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

/* Home Warranty */
.warranty-content {
    background: var(--primary);
    color: white;
    padding: 40px;
    border-radius: 8px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.warranty-text {
    flex: 2;
}

.warranty-text h3 {
    color: white;
}

.warranty-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

.warranty-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contact & Quote Form */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 30px;
}

.contact-info {
    padding: 30px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
}

.contact-info h3 {
    color: white;
    margin-bottom: 20px;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-detail i {
    margin-right: 15px;
    color: var(--secondary);
    font-size: 1.2rem;
}

.form-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Testimonials */
.testimonials {
    position: relative;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease;
    margin-top: 30px;
}

.testimonial-slide {
    min-width: 100%;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid var(--secondary);
}

.client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--secondary);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--secondary);
}

.footer-links h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--secondary);
}

.social-icons {
    display: flex;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
}

.modal-close:hover {
    color: var(--secondary);
}

/* Success Message */
.success-message {
    display: none;
    background: #2ecc71;
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .warranty-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 150px 0 80px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--primary);
        padding: 20px;
        transition: var(--transition);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .mobile-toggle {
        display: block;
    }

    .warranty-content,
    .contact-info,
    .form-container {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }

    .hero {
        padding: 130px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
    }
}