/*
Theme Name: Mendez Landscaping
Theme URI: https://a1webbuild.com
Author: A1 Web Build
Description: Custom bilingual WordPress theme for Mendez Landscaping.
Version: 1.0
Text Domain: mendez-landscaping
*/

/* MENDEZ LANDSCAPING - BASE DESIGN */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #26352b;
    line-height: 1.6;
}

/* HEADER */

.site-header {
    background: #184d32;
    padding: 20px 5%;
}

.nav-wrap {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand {
    color: #ffffff;
    font-size: 25px;
    font-weight: bold;
    text-decoration: none;
}

/* NAVIGATION */

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.main-nav a:hover {
    color: #c7e8a0;
}

/* MAIN CONTENT */

main {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 25px;
    min-height: 350px;
}

main h1 {
    font-size: 42px;
    color: #184d32;
}

/* FOOTER */

.site-footer {
    background: #f0f5ee;
    text-align: center;
    padding: 30px 20px;
}

.site-footer a {
    color: #184d32;
    font-weight: bold;
}

/* MOBILE */

@media (max-width: 768px) {
    .nav-wrap {
        flex-direction: column;
        text-align: center;
    }

    .main-nav {
        justify-content: center;
        gap: 15px;
    }

    .brand {
        font-size: 22px;
    }

    main {
        margin: 35px auto;
    }

    main h1 {
        font-size: 32px;
    }
}

/* ==========================================
   MENDEZ LANDSCAPING - HOMEPAGE DESIGN
========================================== */

.mendez-home {
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: 0;
}

.mendez-home h1,
.mendez-home h2,
.mendez-home h3 {
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.mendez-home h2 {
    font-size: clamp(30px, 4vw, 48px);
    color: #193d2b;
    margin: 15px 0 20px;
}

.mendez-home p {
    font-size: 17px;
    line-height: 1.8;
}

/* HERO SECTION */

.mendez-hero {
    min-height: 650px;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    padding: 100px 7%;
    color: #ffffff;
}

.mendez-hero-content {
    max-width: 760px;
}

.mendez-eyebrow,
.mendez-kicker {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mendez-eyebrow {
    color: #d2e9b9;
}

.mendez-hero h1 {
    font-size: clamp(44px, 6vw, 82px);
    color: #ffffff;
    margin: 22px 0;
    font-weight: 800;
}

.mendez-hero p {
    color: #f1f5ef;
    max-width: 610px;
    font-size: 19px;
}

.mendez-hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* BUTTONS */

.mendez-btn {
    display: inline-block;
    padding: 16px 25px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.mendez-btn:hover {
    transform: translateY(-2px);
}

.mendez-btn-primary {
    background: #b6db78;
    color: #173423;
}

.mendez-btn-primary:hover {
    background: #d1ef9f;
}

.mendez-btn-outline {
    border: 1px solid rgba(255,255,255,.8);
    color: #ffffff;
}

.mendez-btn-outline:hover {
    background: rgba(255,255,255,.15);
}

/* GENERAL SECTIONS */

.mendez-section {
    padding: 95px 7%;
}

.mendez-section-heading {
    max-width: 780px;
    margin: 0 auto 48px;
    text-align: center;
}

.mendez-section-heading p {
    color: #637168;
    margin: 0;
}

.mendez-kicker {
    color: #52844a;
}

/* INTRO */

.mendez-intro {
    background: #ffffff;
}

.mendez-trust-row {
    max-width: 1050px;
    margin: 45px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.mendez-trust-row div {
    text-align: center;
    padding: 22px 15px;
    background: #f1f5ed;
    border-radius: 8px;
    font-weight: 700;
    color: #254934;
}

/* SERVICES */

.mendez-services {
    background: #f5f7f2;
}

.mendez-service-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.mendez-service-card {
    background: #ffffff;
    padding: 34px 26px;
    border-radius: 10px;
    border: 1px solid #e3e9de;
    box-shadow: 0 10px 25px rgba(0,0,0,.035);
}

.mendez-service-card span {
    color: #86a86a;
    font-size: 15px;
    font-weight: 800;
}

.mendez-service-card h3 {
    font-size: 22px;
    color: #1d402d;
    margin: 25px 0 14px;
}

.mendez-service-card p {
    font-size: 15px;
    color: #647067;
    line-height: 1.75;
}

/* PROJECT GALLERY */

.mendez-projects {
    background: #ffffff;
}

.mendez-project-grid {
    max-width: 1250px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mendez-project-image {
    height: 275px;
    overflow: hidden;
    border-radius: 8px;
    background: #e5eae3;
}

.mendez-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.mendez-project-image:hover img {
    transform: scale(1.04);
}

/* BEFORE AND AFTER */

.mendez-transformation {
    background: #f5f7f2;
    text-align: center;
}

.mendez-before-after {
    display: block;
    width: 100%;
    max-width: 1100px;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(0,0,0,.1);
}

/* BOTTOM CALL TO ACTION */

.mendez-cta {
    background: #193d2b;
    padding: 95px 25px;
    text-align: center;
    color: #ffffff;
}

.mendez-cta .mendez-kicker {
    color: #b6db78;
}

.mendez-cta h2 {
    color: #ffffff;
    font-size: clamp(34px, 4vw, 50px);
    margin: 18px 0;
}

.mendez-cta p {
    max-width: 650px;
    margin: 0 auto 30px;
    color: #e3ede3;
}

/* TABLETS */

@media (max-width: 1000px) {
    .mendez-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mendez-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* MOBILE PHONES */

@media (max-width: 600px) {
    .mendez-hero {
        min-height: 560px;
        padding: 75px 6%;
    }

    .mendez-hero h1 {
        font-size: 43px;
    }

    .mendez-hero p {
        font-size: 16px;
    }

    .mendez-hero-buttons {
        flex-direction: column;
    }

    .mendez-btn {
        text-align: center;
    }

    .mendez-section {
        padding: 65px 6%;
    }

    .mendez-trust-row,
    .mendez-service-grid,
    .mendez-project-grid {
        grid-template-columns: 1fr;
    }

    .mendez-project-image {
        height: 245px;
    }

    .mendez-service-card {
        padding: 28px 24px;
    }

    .mendez-cta {
        padding: 75px 6%;
    }
}

/* MENDEZ SERVICES PAGE */

.mendez-services-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: 1400px;
    margin: 0 auto;
}

.mendez-service-detail-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.mendez-service-detail-card img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.mendez-service-detail-content {
    padding: 28px;
}

.mendez-service-detail-content h2 {
    font-size: 23px;
    line-height: 1.3;
    margin: 0 0 14px;
    color: #193d2d;
}

.mendez-service-detail-content p {
    font-size: 16px;
    line-height: 1.75;
    color: #555;
    margin: 0;
}

@media (max-width: 1000px) {
    .mendez-services-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .mendez-services-detail-grid {
        grid-template-columns: 1fr;
    }

    .mendez-service-detail-card img {
        height: 220px;
    }

    .mendez-service-detail-content {
        padding: 22px;
    }
}

/* Fix Hauling & Property Cleanups card */

.mendez-service-detail-card:last-child {
    display: flex;
    flex-direction: column;
}

.mendez-service-detail-card:last-child img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    flex: 1;
    object-fit: fill;
}

.mendez-service-detail-card:last-child .mendez-service-detail-content {
    display: none;
}
