/* --- CSS VARIABLES --- */
:root {
    --primary: #4E342E;
    /* Deep Brown */
    --accent: #D84315;
    /* Burnt Orange */
    --accent-light: #FFAB91;
    /* Soft Peach */
    --bg-light: #FFF8F3;
    --bg-offset: #FBE9E7;
    --text-main: #3E2723;
    --text-muted: #8D6E63;
    --white: #FFFFFF;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}


/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.7;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-weight: 700;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
}

/* --- UTILITIES --- */
.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(85, 107, 47, 0.3);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.section-header {
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.section-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: var(--accent);
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 1.2rem 0;
    transition: 0.3s;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION (Asymmetrical) --- */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(90deg, #4E342E 0%, #D84315 100%);
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: url('../images/hero.webp') no-repeat center center/cover;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;

    padding-right: 50px;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.trust-tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- ABOUT (Split & Offset) --- */
.about {
    padding: 6rem 0;
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
}

.about-img-wrapper img {
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.about-img-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 50%;
    height: 80%;
    border: 4px solid var(--accent);
    z-index: -1;
}

.mission-box {
    margin-top: 2rem;
    background: var(--bg-offset);
    padding: 2rem;
    border-left: 4px solid var(--accent);
}

/* --- SERVICES (Bento Grid Style) --- */
.services {
    padding: 6rem 0;
    background: var(--primary);
    color: var(--white);
}

.services h2 {
    color: var(--white);
}

.services p {
    color: rgba(255, 255, 255, 0.7);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    margin-top: 3rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card:hover {
    background: var(--white);
}

.service-card:hover h3,
.service-card:hover li,
.service-card:hover p {
    color: var(--primary);
}

.service-card span {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card ul li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.service-card ul li::before {
    content: '•';
    color: var(--accent-light);
    position: absolute;
    left: 0;
}

/* Grid Spans for Visual Interest */
.span-2 {
    grid-column: span 2;
}

/* --- WHY CHOOSE US (Icon Row) --- */
.why-us {
    padding: 5rem 0;
    text-align: center;
    background: var(--bg-light);
}

.features-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 3rem;
}

.feature-item {
    flex: 1 1 200px;
    padding: 20px;
    transition: 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* --- WARRANTY (Dark Contrast) --- */
.warranty {
    background: var(--accent);
    padding: 5rem 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.warranty-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.warranty h2 {
    color: var(--white);
}

.warranty p {
    color: rgba(255, 255, 255, 0.9);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.benefit {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- TESTIMONIALS (Horizontal Scroll) --- */
.testimonials {
    padding: 5rem 0;
    background: var(--white);
    overflow: hidden;
}

.testimonial-scroller {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 30px;
    scrollbar-width: none;
    /* Firefox */
}

.testimonial-scroller::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 350px;
    background: var(--bg-offset);
    padding: 2rem;
    border-radius: 8px;
    position: relative;
}

.stars {
    color: #f1c40f;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

/* --- CONTACT & FORM (Split Screen) --- */
.contact-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

.contact-info {
    background: var(--primary);
    color: var(--white);
    padding: 4rem;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 2rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.form-wrapper {
    padding: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

/* --- NEWSLETTER --- */
.newsletter {
    background: url('../images/warranty.jpg') fixed center/cover;
    position: relative;
    padding: 5rem 0;
    text-align: center;
}

.newsletter-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 62, 80, 0.9);
}

.newsletter-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: var(--white);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    justify-content: center;
    cursor: pointer;
}

/* --- FOOTER --- */
footer {
    background: #222;
    color: #888;
    padding: 4rem 0 1rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-family: 'DM Sans', sans-serif;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 2rem;
}

/* --- ANIMATIONS --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero {
        height: auto;
        padding: 150px 0 80px;
        text-align: center;
    }

    .hero::before {
        display: none;
    }

    .hero-content {
        width: 100%;
        padding: 0;
    }

    .trust-tags {
        justify-content: center;
    }

    .about-grid,
    .warranty-content,
    .split-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-info,
    .form-wrapper {
        padding: 2rem;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid #eee;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }
}

@media (max-width: 576px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Background */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* Modal Box */
.modal-content {
    background: #fff;
    padding: 20px;
    max-width: 600px;
    margin: 10% auto;
    border-radius: 6px;
    position: relative;
}

/* Close Button */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

.modal-content h2 {
    margin-top: 0;
}