/* ============================================================
   Dream Clean - Sectors page (/sectors)
   Loaded ONLY on /sectors alongside dcs-global.css, dcs-service-page.css
   and dcs-individual-service.css (which supplies .dcs-stars and the
   Trustist .dcs-rating-pill via dcs-global.css).

   Component: .dcs-sector
   Two-column panel per sector, alternating sides (.dcs-sector--flip):
     - Content: icon tile + eyebrow, title, copy, service
       chips and a button-style CTA
     - Media: image framed by an offset brand-green accent and corner
       badge, with a review card (5 stars, quote, name, Trustist pill)
       overlapping the foot of the image
   ============================================================ */

.dcs-sector {
    padding: clamp(3rem, 5vw, 4.75rem) 0;
}

.dcs-sector__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

/* Flipped sector - image on the left on desktop */
.dcs-sector--flip .dcs-sector__grid {
    grid-template-columns: 1fr 1.05fr;
}
.dcs-sector--flip .dcs-sector__media-wrap {
    order: -1;
}

/* --- Content column --- */

.dcs-sector__content {
    position: relative;
}

/* Icon tile + eyebrow on one row */
.dcs-sector__top {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0 0 1rem;
}
.dcs-sector__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--brand);
    color: var(--white);
    font-size: 1.25rem;
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.28);
}

/* Uppercase eyebrow with a small brand-green rule to its left */
.dcs-sector__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-dark);
    margin: 0;
}
.dcs-sector__eyebrow::before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 2px;
    background: var(--brand);
}

/* Sector title */
.dcs-sector__title {
    font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.3rem);
    color: var(--charcoal);
    margin: 0 0 1.1rem;
    line-height: 1.2;
    font-weight: 700;
}

/* Body copy */
.dcs-sector__body {
    color: var(--ink);
}
.dcs-sector__body p {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 1.4rem;
}

/* Service chips - quick links into the sector's main services */
.dcs-sector__tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.75rem;
    padding: 0;
}
.dcs-sector__tags a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(76, 175, 80, 0.28);
    border-radius: 999px;
    background: rgba(76, 175, 80, 0.07);
    color: var(--charcoal);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.dcs-sector__tags a::before {
    content: "\f00c";                    /* fa-check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--brand);
}
.dcs-sector__tags a:hover,
.dcs-sector__tags a:focus-visible {
    border-color: var(--brand);
    background: var(--white);
    color: var(--brand-dark);
    box-shadow: var(--shadow-sm);
}

/* CTA - solid brand button with arrow */
.dcs-sector__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius);
    background: var(--brand);
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: background-color .2s var(--ease), gap .2s var(--ease), box-shadow .2s var(--ease);
}
.dcs-sector__cta::after {
    content: "\f061";                    /* fa-arrow-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
}
.dcs-sector__cta:hover,
.dcs-sector__cta:focus-visible {
    background: var(--brand-dark);
    color: var(--white);
    gap: 0.8rem;
    box-shadow: var(--shadow-md);
}

/* --- Media column --- */

.dcs-sector__media-wrap {
    position: relative;
}

/* Frame holds the image + an offset brand-green accent shape behind it */
.dcs-sector__frame {
    position: relative;
    padding: 0 1.4rem 1.4rem 0;          /* room for the accent bottom-right */
}
.dcs-sector__frame::before {
    content: "";
    position: absolute;
    top: 1.4rem;
    left: 1.4rem;
    right: 0;
    bottom: 0;
    background: var(--brand);
    opacity: 0.2;
    border-radius: var(--radius-lg);
    z-index: 1;
}
.dcs-sector--flip .dcs-sector__frame {
    padding: 0 0 1.4rem 1.4rem;          /* accent bottom-left when flipped */
}
.dcs-sector--flip .dcs-sector__frame::before {
    left: 0;
    right: 1.4rem;
}

/* Image itself - 4:3 card, rounded, elevated over the accent */
.dcs-sector__media {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Circular icon badge on the top corner of the image */
.dcs-sector__badge {
    position: absolute;
    top: -18px;
    left: -18px;
    width: 60px;
    height: 60px;
    background: var(--brand);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow-md);
    z-index: 3;
    border: 3px solid var(--white);
}
.dcs-sector--flip .dcs-sector__badge {
    left: auto;
    right: -18px;
}

/* Review card - overlaps the foot of the image */
.dcs-sector__review {
    position: relative;
    z-index: 4;
    margin: -4.5rem 2.75rem 0 1.5rem;
    padding: 1.25rem 1.4rem 1.1rem;
    background: var(--white);
    border: 1px solid var(--grey-line);
    border-left: 5px solid var(--brand);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}
.dcs-sector--flip .dcs-sector__review {
    margin: -4.5rem 1.5rem 0 2.75rem;
}
.dcs-sector__review > .dcs-stars {
    --star: 1rem;
    display: block;
    margin: 0 0 0.65rem;
}
.dcs-sector__review blockquote {
    margin: 0;
}
.dcs-sector__review blockquote p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--ink);
}
.dcs-sector__review-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.9rem 0 0;
    padding: 0.9rem 0 0;
    border-top: 1px solid var(--grey-line);
}
.dcs-sector__review-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--charcoal);
}
/* Slightly smaller pill inside the card - logo, stars and score on one centre line */
.dcs-sector__review .dcs-rating-pill {
    align-items: center;
    padding: 0.4rem 0.9rem;
    gap: 0.55rem;
    font-size: 0.82rem;
    line-height: 1;
    box-shadow: none;
}
.dcs-sector__review .dcs-rating-pill__logo {
    display: block;
    height: 22px;
}
.dcs-sector__review .dcs-rating-pill .dcs-stars {
    --star: 0.85rem;
    display: block;
    margin: 0;
}
.dcs-sector__review .dcs-rating-pill__text {
    display: block;
}

/* --- Responsive --- */

@media (max-width: 900px) {
    .dcs-sector__grid,
    .dcs-sector--flip .dcs-sector__grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
    /* Mobile order: image first, then the copy, then the review card */
    .dcs-sector__media-wrap {
        display: contents;
    }
    .dcs-sector__frame {
        order: -1;
    }
    .dcs-sector__review,
    .dcs-sector--flip .dcs-sector__review {
        order: 1;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .dcs-sector__badge,
    .dcs-sector--flip .dcs-sector__badge {
        width: 50px;
        height: 50px;
        font-size: 1.15rem;
        top: -12px;
        left: -8px;
        right: auto;
    }
    .dcs-sector__review,
    .dcs-sector--flip .dcs-sector__review {
        padding: 1.1rem 1.1rem 1rem;
    }
    .dcs-sector__review-foot {
        flex-direction: column;
        align-items: flex-start;
    }
}
