/* --- CSS VARIABLES & RESET --- */
:root {
    --primary-color: #7c4a2d;
    --primary-dark: #5a341e;
    --accent-color: #d97706;
    --text-dark: #3f2d1c;
    --text-light: #7c6f64;
    --white: #ffffff;
    --bg-light: #faf7f2;
    --border-color: #e7dccc;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.18);
    --radius: 12px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- HEADER --- */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero.webp');
    background-size: cover;
    background-position: center;
    height: 90vh;
    /* Full viewport height mostly */
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* --- ABOUT US --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.features-list {
    margin-top: 20px;
}

.features-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list i {
    color: var(--accent-color);
}

/* --- SERVICES SECTION --- */
.services {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
    text-align: center;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom: 4px solid var(--accent-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: #e0f2fe;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* --- WHY CHOOSE US --- */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* --- HOME WARRANTY --- */
.warranty {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.warranty-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.warranty-content p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- TESTIMONIALS --- */
.testimonials {
    background-color: var(--bg-light);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: #d1d5db;
    position: absolute;
    top: 20px;
    right: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.stars {
    color: #f59e0b;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* --- QUOTES & CONTACT --- */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 50px;
}

.contact-info {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 50px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 5px;
}

.contact-form-wrapper {
    background-color: var(--white);
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* --- NEWSLETTER --- */
.newsletter {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url('../images/warranty.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.newsletter-form {
    max-width: 800px;
    margin: 40px auto 0;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    color: var(--text-dark);
}

.newsletter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.full-width {
    grid-column: span 2;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.checkbox-group input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-color);
}

/* --- FOOTER --- */
footer {
    background-color: #111827;
    color: #d1d5db;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #374151;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
}

.legal-links a {
    margin: 0 10px;
    cursor: pointer;
    text-decoration: underline;
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: var(--radius);
    padding: 30px;
    position: relative;
    overflow-y: auto;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* --- TOAST NOTIFICATION --- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--white);
    color: var(--text-dark);
    padding: 20px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border-left: 5px solid #22c55e;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 3000;
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    color: #22c55e;
    font-size: 1.5rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .about-grid,
    .contact-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info {
        padding: 30px;
    }

    .contact-form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .newsletter-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
    }
}