/* =====================================================================
   Dream Clean Services - Homepage styles
   ===================================================================== */

/* ---------- Hero ---------- */

.dcs-hero {
    position: relative;
    min-height: clamp(380px, 55vh, 620px);
    display: flex;
    align-items: center;
    background: var(--charcoal);
    color: var(--white);
    overflow: hidden;
    padding-block: clamp(3rem, 8vw, 6rem);
}
/* Taller on desktop + tablet (above the 900px mobile breakpoint) */
@media (min-width: 901px) {
    .dcs-hero {
        min-height: clamp(520px, 68vh, 780px);
    }
}
.dcs-hero__bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.75)),
                      url('/images/dcs-home-hero.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.dcs-hero .dcs-container { position: relative; z-index: 1; }
.dcs-hero__inner {
    max-width: 780px;
}
.dcs-hero__title {
    color: var(--white);
    font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
    margin: 0 0 1rem;
    line-height: 1.1;
}
.dcs-hero__lede {
    font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
    color: rgba(255,255,255,0.9);
    margin: 0 0 1.75rem;
    max-width: 640px;
    line-height: 1.55;
}
.dcs-hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Placeholder styling if no hero image supplied yet */
.dcs-hero--placeholder .dcs-hero__bg {
    background-image: linear-gradient(135deg, var(--charcoal) 0%, #333 60%, var(--brand-dark) 130%);
}

/* ---------- Intro copy section ---------- */

.dcs-intro {
    position: relative;
    overflow: hidden;
}
/* Soft green radial glows in the corners */
.dcs-intro::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -140px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.10), transparent 65%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}
.dcs-intro::after {
    content: "";
    position: absolute;
    bottom: -160px;
    left: -160px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.07), transparent 65%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}
.dcs-intro > .dcs-container { position: relative; z-index: 1; }

/* Green eyebrow accent above the title */
.dcs-intro__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
}
.dcs-intro__eyebrow::before,
.dcs-intro__eyebrow::after {
    content: "";
    height: 2px;
    width: 32px;
    background: var(--brand);
    border-radius: 2px;
}

.dcs-intro__title {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 780px;
    margin-inline: auto;
    /* Locked to the same clamp as the base h2 rule - keeps the visual sizing
       now that the tag has been swapped to <h1> for SEO. */
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
}
.dcs-intro__body {
    max-width: 780px;
    margin-inline: auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ink);
}
.dcs-intro__body p + p { margin-top: 1em; }

/* ---------- Services list ---------- */

.dcs-services {
    background: var(--grey);
    position: relative;
    overflow: hidden;
}
/* Layered subtle green pattern behind the services card:
   1. Sparkle cluster in the top-right corner (accent)
   2. Repeating bubble tile (cleaning-themed texture)
   3. Diagonal line pattern (base grain) */
.dcs-services::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><path d='M120 40 L130 105 L195 115 L130 125 L120 190 L110 125 L45 115 L110 105 Z' fill='%234CAF50' fill-opacity='0.07'/><path d='M60 160 L64 180 L84 184 L64 188 L60 208 L56 188 L36 184 L56 180 Z' fill='%234CAF50' fill-opacity='0.06'/><path d='M200 65 L203 82 L216 85 L203 88 L200 105 L197 88 L183 85 L197 82 Z' fill='%234CAF50' fill-opacity='0.06'/></svg>"),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'><circle cx='20' cy='25' r='6' fill='none' stroke='%234CAF50' stroke-opacity='0.09' stroke-width='1.2'/><circle cx='55' cy='50' r='9' fill='none' stroke='%234CAF50' stroke-opacity='0.07' stroke-width='1.2'/><circle cx='65' cy='15' r='3' fill='none' stroke='%234CAF50' stroke-opacity='0.11' stroke-width='1'/><circle cx='15' cy='65' r='4' fill='none' stroke='%234CAF50' stroke-opacity='0.09' stroke-width='1'/></svg>"),
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            transparent 40px,
            rgba(76, 175, 80, 0.03) 40px,
            rgba(76, 175, 80, 0.03) 41px
        );
    background-repeat: no-repeat, repeat, repeat;
    background-position: top 40px right 40px, 0 0, center;
    background-size: 300px 300px, 80px 80px, auto;
    pointer-events: none;
    z-index: 0;
}
.dcs-services > .dcs-container { position: relative; z-index: 1; }

.dcs-services__heading {
    text-align: center;
    margin-bottom: 0.75rem;
}
.dcs-services__sub {
    text-align: center;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 3rem;
    font-size: 1rem;
}
/* Green eyebrow accent above the heading (matches the intro section) */
.dcs-services__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
}
.dcs-services__eyebrow::before,
.dcs-services__eyebrow::after {
    content: "";
    height: 2px;
    width: 32px;
    background: var(--brand);
    border-radius: 2px;
}
.dcs-services__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--grey-line);
}
.dcs-service {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 1.75rem 2rem;
    background: var(--white);
    border-bottom: 1px solid var(--grey-line);
    transition: background .2s var(--ease);
}
.dcs-service:last-child { border-bottom: 0; }
/* Alternating row colour: white / soft green tint */
.dcs-service:nth-child(even) { background: #eaf5ea; }
.dcs-service:hover { background: #dcefdc; }

.dcs-service__media {
    aspect-ratio: 4 / 3;
    width: 200px;
    background: var(--grey-line);
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.dcs-service__media--placeholder {
    background: repeating-linear-gradient(
        45deg,
        var(--grey-line) 0 10px,
        #d4d4d4 10px 20px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.75rem;
    text-align: center;
    padding: 0.5rem;
    box-shadow: none;
}
.dcs-service__body {
    min-width: 0;
}
.dcs-service__title {
    font-size: 1.3rem;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    color: var(--charcoal);
    display: inline-block;
    border-bottom: 2px solid var(--brand);
}
.dcs-service__title a {
    color: inherit;
    text-decoration: none;
}
.dcs-service__title a:hover { color: var(--brand-dark); }

.dcs-service__desc {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.6;
}

.dcs-service__cta {
    flex-shrink: 0;
}

/* Taller service boxes on desktop + tablet only (above the 900px mobile breakpoint):
   bigger thumbnail + more vertical padding gives each row more presence. */
@media (min-width: 901px) {
    .dcs-service {
        grid-template-columns: 240px 1fr auto;
        padding-block: 2.5rem;
    }
    .dcs-service__media {
        width: 240px;
    }
}

/* ---------- Responsive tweaks ---------- */

@media (max-width: 900px) {
    .dcs-service {
        grid-template-columns: 140px 1fr;
        gap: 1.25rem;
        padding: 1.5rem 1.25rem;
    }
    .dcs-service__media { width: 140px; }
    .dcs-service__cta {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .dcs-service {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 1rem;
    }
    .dcs-service__media {
        width: 100%;
        max-width: 300px;
        aspect-ratio: 16 / 9;
    }
    .dcs-services__list { border-radius: var(--radius); }
}

/* ---------- Black CTA strip (between intro and services) ---------- */

.dcs-cta-strip {
    background: var(--black);
    color: var(--white);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    position: relative;
    overflow: hidden;
}
/* Subtle green accent line along the top edge */
.dcs-cta-strip::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--brand) 20%, var(--brand) 80%, transparent);
    opacity: 0.7;
}
.dcs-cta-strip__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.dcs-cta-strip__text {
    color: var(--white);
    margin: 0;
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
    font-weight: 600;
    max-width: 640px;
}
.dcs-cta-strip__text strong { color: var(--brand); }
.dcs-cta-strip__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.dcs-cta-strip__actions .dcs-btn--outline {
    color: var(--white);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.5);
}
.dcs-cta-strip__actions .dcs-btn--outline:hover {
    background: var(--white);
    color: var(--black);
    box-shadow: inset 0 0 0 2px var(--white);
}

@media (max-width: 640px) {
    .dcs-cta-strip__inner {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }
    .dcs-cta-strip__actions { justify-content: center; }
}
