/* =========================
   HOME PAGE
========================= */

/* HERO */

.hero {
    background: linear-gradient(
        135deg,
        #e8dece 0%,
        #d9cfbf 100%
    );
    padding: 68px 30px 72px;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 55px;
}

.hero-content {
    max-width: 720px;
}

.hero-eyebrow,
.section-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #44716f;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: clamp(50px, 5vw, 76px);
    line-height: 1.02;
    letter-spacing: -2px;
    color: #202725;
    margin-bottom: 28px;
}

.hero-text {
    max-width: 650px;
    font-size: 19px;
    line-height: 1.7;
    color: #64706d;
    margin-bottom: 38px;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 15px 24px;

    border-radius: 30px;

    font-size: 15px;
    font-weight: 600;

    transition: 0.25s ease;
}

.btn-primary {
    background: #315f5d;
    color: #ffffff;
}

.btn-primary:hover {
    background: #244947;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid #315f5d;
    color: #315f5d;
    background: transparent;
}

.btn-secondary:hover {
    background: #315f5d;
    color: #ffffff;
}


/* HERO VISUAL */

.hero-visual {
    min-height: 520px;
    position: relative;
}

.hero-card {
    position: absolute;

    display: flex;
    align-items: flex-start;
    justify-content: flex-start;

    padding: 18px;

    border-radius: 28px;

    overflow: hidden;

    border: 9px solid #315f5d;

    box-shadow:
        0 18px 40px rgba(31, 55, 53, 0.12);
}

.hero-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        135deg,
        rgba(20, 35, 34, 0.38) 0%,
        rgba(20, 35, 34, 0.08) 45%,
        transparent 70%
    );
}

.hero-card span {
    position: relative;
    z-index: 2;

    font-size: 17px;
    font-weight: 700;

    color: white;

    background: rgba(28, 56, 54, 0.78);

    padding: 9px 14px;

    border-radius: 18px;
}

.hero-card-web {
    width: 66%;
    height: 320px;

    top: 0;
    left: 0;

    background-image: url("/images/home/web-development-hero.png");
    background-size: cover;
    background-position: center;
}

.hero-card-cleaning {
    width: 52%;
    height: 260px;

    right: 0;
    top: 105px;

    background-image: url("/images/home/cleaning-hero.png");
    background-size: cover;
    background-position: center;
}

.hero-card-delivery {
    width: 60%;
    height: 240px;

    left: 80px;
    bottom: 0;

    background-image: url("/images/home/delivery-hero.png");
    background-size: cover;
    background-position: center;
}

.hero-card-web::after {
    background-image: url("/images/home/web-development-hero.png");
}

.hero-card-cleaning {
    width: 52%;
    height: 260px;

    right: 0;
    top: 105px;
}

.hero-card-cleaning::after {
    background-image: url("/images/home/cleaning-hero.png");
}

.hero-card-delivery {
    width: 60%;
    height: 240px;

    left: 80px;
    bottom: 0;
}

.hero-card-delivery::after {
    background-image: url("/images/home/delivery-hero.png");
}

/* SERVICES */

.services-section {
    background: #ffffff;
    padding: 110px 30px;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(38px, 4vw, 56px);
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: #202725;
    margin-bottom: 18px;
}

.section-heading > p:last-child {
    font-size: 18px;
    line-height: 1.6;
    color: #697572;
}

.services-grid {
    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: #f8f6f1;

    border: 1px solid #ebe7de;
    border-radius: 24px;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 22px 45px rgba(38, 58, 55, 0.1);
}

.service-image {
    height: 250px;
}

.service-image-web {
    background-image: url("/images/home/web-development-card.png");
    background-size: cover;
    background-position: center;
}

.service-image-cleaning {
    background-image: url("/images/home/cleaning-card.png");
    background-size: cover;
    background-position: center;
}

.service-image-delivery {
    background-image: url("/images/home/delivery-card.png");
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 30px;
}

.service-number {
    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;

    color: #80918e;

    margin-bottom: 14px;
}

.service-content h3 {
    font-size: 27px;
    color: #222a28;
    margin-bottom: 14px;
}

.service-content > p:not(.service-number) {
    font-size: 16px;
    line-height: 1.7;
    color: #67716f;
    margin-bottom: 24px;
}

.service-content a {
    display: inline-block;

    font-size: 15px;
    font-weight: 700;

    color: #315f5d;

    transition: 0.2s ease;
}

.service-content a:hover {
    transform: translateX(4px);
}


/* TABLET */

@media (max-width: 1050px) {

    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-content {
        max-width: 800px;
    }

    .hero-visual {
        max-width: 720px;
        width: 100%;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* MOBILE */

@media (max-width: 700px) {

    .hero {
        padding: 80px 20px 90px;
    }

    .hero-content h1 {
        font-size: 46px;
    }

    .hero-text {
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .hero-visual {
        min-height: 600px;
    }

    .hero-card-web {
        width: 88%;
        height: 280px;
    }

    .hero-card-cleaning {
        width: 76%;
        height: 230px;
        top: 200px;
    }

    .hero-card-delivery {
        width: 80%;
        height: 220px;
        left: 20px;
    }

    .services-section {
        padding: 85px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   ABOUT
========================= */

.home-about {
    background: #f3efe7;
    padding: 110px 30px;
}

.home-about-container {
    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 100px;

    align-items: center;
}

.home-about-content {
    max-width: 720px;
}

.home-about-content h2 {
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.08;
    letter-spacing: -1.5px;

    color: #202725;

    margin-bottom: 28px;
}

.home-about-content > p:not(.section-eyebrow) {
    font-size: 17px;
    line-height: 1.8;
    color: #65716e;

    margin-bottom: 18px;
}

.text-link {
    display: inline-block;

    margin-top: 14px;

    color: #315f5d;

    font-size: 15px;
    font-weight: 700;

    transition: transform 0.2s ease;
}

.text-link:hover {
    transform: translateX(4px);
}


/* ABOUT STATS */

.about-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.about-stat {
    min-height: 190px;

    background: #ffffff;

    border: 1px solid #e4ddd2;
    border-radius: 24px;

    padding: 32px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    box-shadow:
        0 18px 40px rgba(36, 60, 57, 0.06);
}

.about-stat:first-child {
    grid-column: span 2;
}

.about-stat strong {
    font-size: 58px;
    line-height: 1;

    color: #315f5d;
}

.about-stat span {
    color: #697572;
    font-size: 16px;
    font-weight: 600;
}


/* =========================
   WHY CHOOSE US
========================= */

.why-section {
    background: linear-gradient(
        135deg,
        #e5dacb 0%,
        #d6cab9 100%
    );
    padding: 70px 30px 85px;
}

.why-grid {
    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.why-card {
    background: #f8f6f1;

    border: 1px solid #e9e4da;
    border-radius: 22px;

    padding: 32px;

    min-height: 270px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.why-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 40px rgba(35, 57, 54, 0.08);
}

.why-number {
    display: block;

    color: #79908d;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 50px;
}

.why-card h3 {
    font-size: 25px;
    color: #222a28;

    margin-bottom: 14px;
}

.why-card p {
    color: #687370;

    line-height: 1.7;

    font-size: 15px;
}


/* =========================
   WHY CHOOSE US
========================= */

.why-section {
    background: linear-gradient(
        135deg,
        #e5dacb 0%,
        #d6cab9 100%
    );
    padding: 60px 30px 75px;
}

.why-section .section-heading {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.why-grid {
    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.why-card {
    background: #315f5d;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;

    padding: 30px;

    min-height: 210px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.why-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 36px rgba(31, 55, 53, 0.18);
}

.why-card h3 {
    font-size: 25px;
    color: #ffffff;

    margin-bottom: 14px;
}

.why-card p {
    color: #d7e3e0;

    line-height: 1.7;

    font-size: 15px;
}

/* =========================
   WORK PREVIEW
========================= */

.work-preview {
    background: #f3eadf;
    padding: 70px 30px;
}

.work-preview-container {
    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 70px;
}

.work-copy {
    max-width: 600px;
}

.work-copy h2 {
    font-size: clamp(38px, 4vw, 56px);
    line-height: 1.08;

    color: #202725;

    margin-bottom: 20px;
}

.work-copy > p:not(.section-eyebrow) {
    font-size: 17px;
    line-height: 1.7;
    color: #66706d;

    margin-bottom: 28px;
}

.work-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #315f5d;
    color: white;

    padding: 14px 24px;

    border-radius: 30px;

    font-weight: 700;

    transition: 0.25s ease;
}

.work-button:hover {
    background: #244947;
    transform: translateY(-2px);
}

.work-image {
    border: 9px solid #315f5d;
    border-radius: 26px;

    overflow: hidden;

    box-shadow:
        0 18px 40px rgba(31, 55, 53, 0.12);
}

.work-image img {
    width: 100%;
    height: 360px;

    display: block;

    object-fit: cover;
}

/* =========================
   FINAL CTA
========================= */

.home-cta {
    background: #3f6d68;
    padding: 60px 30px;
}

.home-cta-container {
    max-width: 1400px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;
}

.home-cta-container > div:first-child {
    max-width: 760px;
}

.cta-eyebrow {
    color: #bfd1ce;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 18px;
}

.home-cta h2 {
    color: white;

    font-size: clamp(36px, 4vw, 52px);

    margin-bottom: 16px;
}

.home-cta p:not(.cta-eyebrow) {
    color: #d6e2df;

    font-size: 17px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 14px;

    flex-shrink: 0;
}

.cta-primary,
.cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 15px 24px;

    border-radius: 30px;

    font-weight: 700;

    transition: 0.25s ease;
}

.cta-primary {
    background: white;
    color: #315f5d;
}

.cta-primary:hover {
    transform: translateY(-2px);
}

.cta-secondary {
    border: 1px solid rgba(255,255,255,0.65);

    color: white;
}

.cta-secondary:hover {
    background: rgba(255,255,255,0.1);
}


/* =========================
   EXTRA RESPONSIVE
========================= */

@media (max-width: 1050px) {

    .home-about-container {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .work-grid {
        grid-template-columns: 1fr 1fr;
    }

    .work-card-web {
        grid-column: span 2;
    }

    .home-cta-container {
        flex-direction: column;
        align-items: flex-start;
    }
}


@media (max-width: 700px) {

    .home-about,
    .why-section,
    .work-preview {
        padding: 85px 20px;
    }

    .about-visual {
        grid-template-columns: 1fr;
    }

    .about-stat:first-child {
        grid-column: auto;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .work-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-card-web {
        grid-column: auto;
    }

    .work-card {
        min-height: 340px;
    }

    .home-cta {
        padding: 75px 20px;
    }

    .cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
    }
}


/* HOMEPAGE SERVICE CARDS — CLICKABLE LINKS */

a.hero-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.hero-card:focus-visible {
    outline: 3px solid #a58b59;
    outline-offset: 4px;
}


/* ========================================
   HERO CARDS — CLICKABLE LINKS
======================================== */

a.hero-card {
    display: flex;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    isolation: isolate;
}

/* Decorative overlays must not block clicks */
a.hero-card::before,
a.hero-card::after {
    pointer-events: none;
}

/* Keep card labels above the overlays */
a.hero-card span {
    position: relative;
    z-index: 2;
}

/* Keyboard accessibility */
a.hero-card:focus-visible {
    outline: 3px solid #a58b59;
    outline-offset: 4px;
}
