:root {
    /* Color Palette */
    --primary: #8b3e2f;
    /* Brick Red */
    --secondary: #d27d2c;
    /* Pumpkin Orange */
    --accent: #f2c57c;
    /* Soft Gold */
    --light-bg: #fff8f0;
    /* Cream */
    --white: #ffffff;
    --text-dark: #2e2e2e;
    /* Dark Gray */
    --text-light: #9a8c7a;
    /* Taupe */
    --border-radius: 6px;
    --shadow: 0 5px 14px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 84, 0, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    margin-left: 10px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* --- Header & Top Bar --- */
.top-bar {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span {
    margin-right: 20px;
}

.top-info i {
    color: var(--accent);
    margin-right: 5px;
}

header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--primary);
    font-size: 1rem;
}

.nav-menu a:hover {
    color: var(--secondary);
}

.legal-links-nav {
    font-size: 0.85rem;
    display: flex;
    gap: 10px;
    border-left: 1px solid #ddd;
    padding-left: 15px;
}

.legal-links-nav a:hover {
    text-decoration: underline;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7)), url('../images/hero.webp');
    background-size: cover;
    background-position: center;
    height: 650px;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--secondary);
    color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
}

.about-badge span {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

/* --- Services Section --- */
.services {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--secondary);
    box-shadow: var(--shadow);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* --- Why Choose Us --- */
.why-choose {
    background-color: var(--primary);
    color: var(--white);
}

.why-choose h2 {
    color: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.why-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.why-item i {
    font-size: 2.5rem;
    color: var(--accent);
}

/* --- Home Warranty --- */
.warranty-section {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border-top: 5px solid var(--accent);
}

.warranty-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.warranty-content {
    flex: 1;
}

.warranty-icon {
    font-size: 4rem;
    color: var(--secondary);
    margin-right: 30px;
}

/* --- Testimonials --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: #e0e0e0;
    position: absolute;
    top: 20px;
    right: 20px;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

/* --- Contact & Quote Form --- */
.contact-section {
    background-color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.contact-info {
    background-color: var(--primary);
    color: var(--white);
    padding: 50px;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
}

.info-item i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 5px;
}

.quote-form-container {
    background-color: var(--white);
    padding: 50px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

.full-width {
    grid-column: 1 / -1;
}

/* --- Newsletter --- */
.newsletter {
    background-color: var(--secondary);
    color: var(--white);
    text-align: center;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-form {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.newsletter-form input {
    padding: 12px;
    border: none;
    border-radius: 4px;
}

.newsletter-check {
    grid-column: 1 / -1;
    text-align: left;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.newsletter-btn {
    grid-column: 1 / -1;
    background-color: var(--primary);
    border: none;
    cursor: pointer;
}

.newsletter-btn:hover {
    background-color: #34495e;
}

/* --- Footer --- */
footer {
    background-color: #222;
    color: #aaa;
    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 #333;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--secondary);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* --- Modals & Toast --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    width: 90%;
    max-width: 600px;
    border-radius: var(--border-radius);
    padding: 40px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: var(--primary);
}

/* Toast Notification */
#toast {
    visibility: hidden;
    min-width: 280px;
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 3000;
    right: 30px;
    bottom: 30px;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-grid,
    .contact-wrapper,
    .newsletter-form {
        grid-template-columns: 1fr;
    }

    .top-bar {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    /* Simplified mobile */
}