/* ============================================================================
   CREWCARE — SERVICES PAGE  (Revision 2026-06-18)
   ----------------------------------------------------------------------------
   Scoped styles for the rebuilt /services landing page used in Google & Meta
   ad campaigns. Every rule is namespaced under `body.page-services` so it
   cannot leak into other pages that share the globally-loaded
   homepage-revision.css / main.min.css.

   WHY a dedicated stylesheet (not appended to homepage-revision.css):
     Keeps the ad-landing layout isolated and independently cache-busted, so a
     marketing tweak here never risks a regression on the homepage or the
     service-detail pages that also consume homepage-revision.css.

   Design tokens (shared with homepage-revision.css — do NOT redefine values):
     Brand green ........ #8dc63f   (hover/darker #7ab534)
     Brand gradient ..... linear-gradient(135deg,#8dc63f,#7ab534)
     Charcoal ........... #59595b / #5f6062 / #3a3a3c
     Heading ink ........ #222222
     Body ink ........... #555555
     Font ............... Europa, Arial, sans-serif
     Card radius ........ 8px

   Reused GLOBAL components (intentionally NOT restyled here):
     .btn-hero-primary / .btn-hero-secondary  — hero & CTA buttons
     .testimonials-section + slider            — "What Our Clients Are Saying"

   Browser support: legacy stack (PHP 5.6 host, IE=edge meta). The card media
   box uses the padding-top aspect-ratio hack instead of `aspect-ratio:` so
   image boxes reserve height (zero CLS) even on browsers without aspect-ratio.
   ============================================================================ */


/* =============================================================================
   1. HERO  — "Commercial Cleaning Services for New Zealand Businesses"
   The banner art places the two team members on the right third and fades to a
   neutral grey on the left, so a left-to-right dark overlay keeps the headline
   legible while letting the crew show through on the right.
   ============================================================================= */
.page-services .services-hero {
    position: relative;
    min-height: 600px;
    background-color: #2d2d2f; /* paint-in colour before the JPEG loads */
    background-image: url('../images/new-service/services-banner.jpg');
    background-position: center right;
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-services .services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Dark on the left (text zone) → transparent on the right (crew zone). */
    background: linear-gradient(90deg,
        rgba(45, 45, 47, 0.94) 0%,
        rgba(45, 45, 47, 0.82) 32%,
        rgba(45, 45, 47, 0.35) 58%,
        rgba(45, 45, 47, 0) 80%);
    z-index: 1;
}

.page-services .services-hero .container {
    position: relative;
    z-index: 2;
    padding-top: 120px;  /* clears the relative header, matches ece-hero rhythm */
    padding-bottom: 80px;
}

.page-services .services-hero__content {
    max-width: 620px;
}

.page-services .services-hero__title {
    font-family: Europa, Arial, sans-serif;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.12;
    color: #ffffff;
    margin: 0 0 22px;
}

.page-services .services-hero__subtitle {
    font-family: Europa, Arial, sans-serif;
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 32px;
    max-width: 560px;
}


/* =============================================================================
   2. SECTOR INTRO  — "Cleaning Built Around Your Sector"  (brand green band)
   ============================================================================= */
.page-services .services-sector {
    padding: 80px 0;
    background: linear-gradient(135deg, #8dc63f 0%, #7ab534 100%);
    color: #ffffff;
}

.page-services .services-sector__head {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.page-services .services-sector__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.page-services .services-sector__icon img {
    width: 100%;
    height: 100%;
}

.page-services .services-sector__title {
    font-family: Europa, Arial, sans-serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.92);
}

.page-services .services-sector__intro {
    font-size: 20px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.page-services .services-sector__grid {
    display: flex;
    align-items: stretch;
    gap: 40px;
}

.page-services .services-sector__col--text {
    flex: 1 1 50%;
    /* Subtle translucent panel separates the copy from the photo, mirroring
       the PDF without introducing an off-brand colour. */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 36px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-services .services-sector__col--text p {
    font-size: 20px;
    line-height: 1.7;
    color: #ffffff;
    margin: 0 0 18px;
}

.page-services .services-sector__col--text p:last-child {
    margin-bottom: 0;
}

.page-services .services-sector__col--media {
    flex: 1 1 50%;
}

.page-services .services-sector__col--media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}


/* =============================================================================
   3. SERVICES GRID  — "Our Cleaning Services"  (9 sector cards)
   ============================================================================= */
.page-services .services-grid-section {
    padding: 80px 0;
    background: #ffffff;
}

.page-services .services-grid-head {
    max-width: 780px;
    margin: 0 auto 50px;
    text-align: center;
}

.page-services .services-grid-head h2 {
    font-family: Europa, Arial, sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 16px;
}

.page-services .services-grid-head p {
    font-size: 18px;
    line-height: 1.6;
    color: #555555;
    margin: 0;
}

.page-services .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Whole card is a single anchor → one large, predictable click/tap target.
   Designer UI: the photo and the grey copy panel are the only visible layers,
   so the anchor itself is transparent and must NOT clip — the grey panel is
   pulled up to overlap the photo's lower edge (see .services-card__body). */
.page-services .services-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    overflow: visible;            /* let the grey panel overlap the photo */
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.page-services a.services-card:hover,
.page-services a.services-card:focus {
    text-decoration: none;
    color: inherit;
    transform: translateY(-6px);
}

.page-services a.services-card:focus-visible {
    outline: 3px solid #8dc63f;
    outline-offset: 3px;
}

/* padding-top 64% ≈ 3:2 landscape box; image fills via object-fit so the
   mixed source ratios (700x543 and the 960x540 gym shot) all crop uniformly.
   Rounded on all corners + overflow:hidden so the photo reads as its own
   rounded tile beneath the overlapping grey panel. */
.page-services .services-card__media {
    position: relative;
    padding-top: 64%;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f0f0;
    transition: box-shadow 0.3s ease;
}

.page-services a.services-card:hover .services-card__media,
.page-services a.services-card:focus .services-card__media {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.page-services .services-card__media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Grey copy panel, pulled up 34px to overlap the photo's lower edge and inset
   12px each side so the photo's rounded bottom corners peek out — the layered
   "stacked card" look from the designer's mock. z-index keeps it above the
   photo; the panel is opaque so text never sits directly on the image.
   margin-top is negative, so the row's equal-height stretch still works via
   flex:1 on the panel. */
.page-services .services-card__body {
    position: relative;
    z-index: 2;
    flex: 1;
    margin: -34px 12px 0;
    display: flex;
    flex-direction: column;
    background: #f1f0f0;
    border-radius: 16px;
    padding: 26px 26px 28px;
}

.page-services .services-card__title {
    font-family: Europa, Arial, sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    color: #222222;
    margin: 0 0 12px;
    transition: color 0.3s ease;
}

.page-services a.services-card:hover .services-card__title,
.page-services a.services-card:focus .services-card__title {
    color: #7ab534;
}

.page-services .services-card__desc {
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
    margin: 0;
}

.page-services .services-grid-cta {
    text-align: center;
    margin-top: 50px;
}

/* House-rule disclaimer: Crewcare does not do domestic/residential work. */
.page-services .services-grid-note {
    max-width: 780px;
    margin: 26px auto 0;
    text-align: center;
    font-size: 15px;
    font-style: italic;
    color: #777777;
}


/* =============================================================================
   4. ACCOUNTABILITY  — "Accountability You Can See"  (Carenote)
   ============================================================================= */
.page-services .services-accountability {
    padding: 80px 0;
    background: #ffffff;
}

.page-services .services-accountability__head {
    max-width: 840px;
    margin: 0 auto 50px;
    text-align: center;
}

.page-services .services-accountability__head h2 {
    font-family: Europa, Arial, sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #8dc63f;
    margin: 0 0 18px;
}

.page-services .services-accountability__lead {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    color: #222222;
    margin: 0 0 18px;
}

.page-services .services-accountability__body {
    font-size: 18px;
    line-height: 1.7;
    color: #555555;
    margin: 0;
}

/* gap:0 because the overlap (negative card margin) replaces the gutter.
   align-items:stretch keeps the photo exactly as tall as the text card so the
   horizontal overlap reads as two equal, layered tiles. */
.page-services .services-accountability__grid {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.page-services .services-accountability__media {
    position: relative;
    z-index: 1;                  /* photo sits BEHIND the dark card */
    flex: 1 1 54%;
}

.page-services .services-accountability__media img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

/* Dark card overlaps the photo's right edge (designer's layered look): the
   negative margin pulls it left over the image, z-index keeps it on top, and
   the generous left padding keeps the copy clear of the overlap seam. */
.page-services .services-accountability__card {
    position: relative;
    z-index: 2;
    flex: 1 1 46%;
    margin-left: -80px;
    margin-top:20px;
    margin-bottom:20px;
    background: #3a3a3c;
    border-radius: 24px;
    padding: 48px 46px 48px 60px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-services .services-accountability__logo {
    height: 60px;
    width: auto;
    margin: 0 0 20px;
}

.page-services .services-accountability__card p {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 18px;
}

.page-services .services-accountability__card p:last-child {
    margin-bottom: 0;
}

/* Small info glyph leading the first paragraph, per the mock. FontAwesome 4
   is already loaded globally (used by the testimonial/FAQ controls). */
.page-services .services-accountability__infoicon {
    margin-right: 7px;
    font-size: 15px;
    opacity: 0.85;
}


/* =============================================================================
   5. CLOSING CTA  — "Ready to Talk About Your Facility?"
   ============================================================================= */
.page-services .services-cta {
    background: #eef0ea; /* soft sage, consistent with the legacy #eff1e9 band */
}

.page-services .services-cta__inner {
    display: flex;
    align-items: stretch;
}

.page-services .services-cta__content {
    flex: 1 1 50%;
    padding: 70px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-services .services-cta__content h2 {
    font-family: Europa, Arial, sans-serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: #222222;
    margin: 0 0 18px;
}

.page-services .services-cta__content p {
    font-size: 18px;
    line-height: 1.7;
    color: #555555;
    margin: 0 0 30px;
}

.page-services .services-cta__actions .btn-hero-primary {
    align-self: flex-start;
}

.page-services .services-cta__media {
    flex: 1 1 50%;
    min-height: 380px;
}

.page-services .services-cta__media img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    display: block;
}


/* =============================================================================
   6. RESPONSIVE
   ============================================================================= */
@media (max-width: 991px) {
    .page-services .services-hero {
        min-height: 520px;
        background-size: cover!important;
    }
    .page-services .services-hero__title {
        font-size: 38px;
    }

    /* Two-up cards on tablet. */
    .page-services .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Stack every two-column block. */
    .page-services .services-sector__grid,
    .page-services .services-accountability__grid,
    .page-services .services-cta__inner {
        flex-direction: column;
        gap: 30px;
    }

    /* Drop the horizontal overlap once the accountability grid is stacked —
       a negative left margin makes no sense in a single column. */
    .page-services .services-accountability__card {
        margin-left: 0;
    }

    .page-services .services-cta__content {
        padding: 50px 30px;
    }
    .page-services .services-cta__media,
    .page-services .services-cta__media img {
        min-height: 300px;
    }

    .page-services .services-sector__title,
    .page-services .services-grid-head h2,
    .page-services .services-accountability__head h2,
    .page-services .services-cta__content h2 {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    /* On phones the crew art crops awkwardly, so lean on a stronger vertical
       wash and recentre the focal point to keep the headline readable. */
    .page-services .services-hero {
        min-height: auto;
        background-position: 72% center;
    }
    .page-services .services-hero::before {
        background: linear-gradient(180deg,
            rgba(45, 45, 47, 0.72) 0%,
            rgba(45, 45, 47, 0.9) 100%);
    }
    .page-services .services-hero .container {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    .page-services .services-hero__title {
        font-size: 30px;
    }
    .page-services .services-hero__subtitle {
        font-size: 17px;
    }

    .page-services .services-sector,
    .page-services .services-grid-section,
    .page-services .services-accountability {
        padding: 56px 0;
    }

    .page-services .services-sector__col--text {
        padding: 28px 24px;
    }

    .page-services .services-sector__intro {
        font-size: 16px;
    }
    .page-services .services-sector__col--text p {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    /* Single column — full-width cards read best on small screens. */
    .page-services .services-grid {
        grid-template-columns: 1fr;
    }
    .page-services .services-hero__title {
        font-size: 26px;
    }
    .page-services .services-cta__content {
        padding: 40px 22px;
    }
}
