/* ==========================================================================
   Regional location pages — "Commercial Cleaners in <Region>"
   Loaded only by application/views/location-region.php.

   PALETTE (literal hex, deliberately — no CSS custom properties, because this
   site still ships Bootstrap 3.3.7 and targets browsers that predate them):
     #8dc63f  brand green      (the site's existing green, used by the header
                               and footer this change does NOT touch)
     #7ab534  brand green dark (hover)
     #1a1a1a  dark sections
     #59595b  body text
     #ffffff  white

   ⚠️ NOTE: the approved PDFs show a BRIGHTER lime than #8dc63f. The site's
   existing brand green is used here so the new sections match the retained
   header and footer. If the brand has genuinely moved, change the two greens
   above — they appear nowhere else in this file by any other value.

   Mobile-first. Breakpoints: 768px (tablet), 1024px (desktop).
   ========================================================================== */

/* --------------------------------------------------------------------------
   TYPE SCALE
   Raised on 2026-11-13 at the client's request: the standard body size went
   from 16px to 19px. Everything else moved with it so the hierarchy holds.

     19px  standard body copy, and controls
           hero intro, about paragraphs, testimonial quotes, Carenote intro,
           buttons, accordion triggers, process step titles
     17px  dense or secondary copy, kept subordinate to the 19px standard
           service card text, process step text, Carenote list, FAQ answers
     15-16px  meta
           attributions, suburb lists, breadcrumbs, area intro, card links

   Headings are unchanged - the request was about body text.
   -------------------------------------------------------------------------- */

.loc-page {
    font-family: Europa, Arial, sans-serif;
    color: #59595b;
    overflow-x: hidden; /* the oversized watermarks must never scroll the page */
}

/* ⚠️ FONT ONLY — DO NOT PUT A COLOUR HERE.
   An earlier version set `color: #000000` on this selector. At specificity
   (0,2,0) it beat every single-class section rule, so the headings inside the
   two DARK sections rendered black on #1a1a1a. Caught in a screenshot, not by
   any automated check. Each heading below declares its own colour. */
.loc-page h1,
.loc-page h2,
.loc-page h3 {
    font-family: Europa, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Buttons (shared)
   ⚠️ A11Y: min-height 44px clears WCAG 2.5.8's 24x24 minimum with room to
   spare, and every control keeps a visible focus ring.
   -------------------------------------------------------------------------- */

.loc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.loc-btn:focus-visible {
    outline: 3px solid #8dc63f;
    outline-offset: 3px;
}

.loc-btn--dark            { background: #1a1a1a; color: #ffffff; }
.loc-btn--dark:hover,
.loc-btn--dark:focus      { background: #000000; color: #ffffff; text-decoration: none; }

.loc-btn--outline         { background: #ffffff; color: #1a1a1a; border-color: #1a1a1a; }
.loc-btn--outline:hover,
.loc-btn--outline:focus   { background: #1a1a1a; color: #ffffff; text-decoration: none; }

.loc-btn--pill-dark       { background: #1a1a1a; color: #ffffff; }
.loc-btn--pill-dark:hover { background: #000000; color: #ffffff; text-decoration: none; }

.loc-btn--pill-light         { background: #ffffff; color: #1a1a1a; }
.loc-btn--pill-light:hover   { background: #f0f0f0; color: #1a1a1a; text-decoration: none; }

.loc-btn__dot {
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: #8dc63f;
    flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */

.loc-breadcrumbs { padding: 18px 0 0; }

.loc-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.loc-breadcrumb-list li { display: inline; }

.loc-breadcrumb-list li + li::before {
    content: "/";
    margin: 0 6px;
    color: #cccccc;
}

.loc-breadcrumb-list a { color: #59595b; text-decoration: underline; }
.loc-breadcrumb-list a:hover { color: #000000; }

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

.loc-hero {
    position: relative;
    padding: 48px 0 56px;
    text-align: center;
    overflow: hidden;
}

/* The oversized region word sitting behind the heading. */
.loc-hero__watermark {
    position: absolute;
    top: 46px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    color: #8dc63f;
    /* ⚠️ The subtitle and intro render ON TOP of this. Keep it light
       enough that body text over it stays legible. */
    opacity: .3;
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.loc-hero__inner { position: relative; z-index: 1; }

.loc-hero__title {
    color: #000000;
    margin: 0 0 14px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
}

.loc-hero__subtitle {
    margin: 0 auto 14px;
    max-width: 640px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.loc-hero__intro {
    color: #59595b;
    margin: 0 auto 28px;
    max-width: 640px;
    font-size: 19px;
    line-height: 1.6;
}

.loc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 36px;
}

.loc-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 26px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.loc-hero__chip {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #1a1a1a;
}

.loc-hero__chip::before {
    content: "";
    width: 9px;
    height: 9px;
    margin-right: 8px;
    border-radius: 50%;
    background: #8dc63f;
    flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   What happens next (dark)
   -------------------------------------------------------------------------- */

.loc-process {
    background: #1a1a1a;
    color: #ffffff;
    padding: 56px 0;
}

.loc-process__title {
    margin: 0 0 40px;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
}

.loc-process__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.loc-process__step { border-top: 1px solid #3a3a3a; padding-top: 16px; }

/* Outlined numerals. -webkit-text-stroke is unsupported in older Firefox,
   where the number simply renders solid green — degraded, still legible. */
.loc-process__number {
    display: block;
    margin-bottom: 14px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: #8dc63f;
}

@supports (-webkit-text-stroke: 1px #8dc63f) {
    .loc-process__number {
        color: transparent;
        -webkit-text-stroke: 1px #8dc63f;
    }
}

.loc-process__step-title {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
}

.loc-process__step-text {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: #cccccc;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

/* ==========================================================================
   ⚠️ BOOTSTRAP CLEARFIX vs CSS GRID — read before adding another grid.

   Bootstrap 3.3.7 ships:

       .container:after, .container:before { display: table; content: " " }

   Generated content on a GRID CONTAINER becomes a GRID ITEM. So on any
   element that is both `.container` and `display: grid`, ::before silently
   takes the first cell and ::after the last, pushing every real child one
   cell along. In a two-column grid that renders as: empty top-left, first
   child top-RIGHT, second child wrapped to the next row on the LEFT.

   That is exactly what the about, Carenote and FAQ sections were doing.
   Nothing flagged it — the markup, the PHP and the HTTP status were all
   correct, and it is invisible below 768px where the grid is one column.

   Any new grid placed on a `.container` element must be added here too.
   ========================================================================== */
.loc-about__inner::before,
.loc-about__inner::after,
.loc-carenote__inner::before,
.loc-carenote__inner::after,
.loc-faqs__inner::before,
.loc-faqs__inner::after {
    display: none;
}

.loc-about { padding: 56px 0; }

.loc-about__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

.loc-about__media img {
    display: block;
    width: 100%;
    height: auto;
    filter: grayscale(100%);
}

.loc-about__title {
    color: #000000;
    margin: 0 0 18px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
}

.loc-about__body p {
    color: #59595b;
    margin: 0 0 16px;
    font-size: 19px;
    line-height: 1.65;
}

.loc-about__body strong {
    color: #1a1a1a;
    border-bottom: 2px solid #8dc63f;
}

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

.loc-services { padding: 16px 0 64px; }

.loc-services__title {
    color: #000000;
    margin: 0 0 36px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
}

.loc-services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.loc-service { position: relative; }

.loc-service__number {
    display: block;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: #e0e0e0;
}

@supports (-webkit-text-stroke: 1px #cccccc) {
    .loc-service__number {
        color: transparent;
        -webkit-text-stroke: 1px #cccccc;
    }
}

.loc-service__title {
    color: #000000;
    margin: -6px 0 8px;
    font-size: 19px;
    font-weight: 700;
}

.loc-service__text {
    color: #59595b;
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.6;
}

.loc-service__link {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 2px solid #8dc63f;
    padding-bottom: 2px;
}

.loc-service__link:hover,
.loc-service__link:focus { color: #7ab534; }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.loc-testimonials { padding: 40px 0 64px; }

.loc-testimonials__title {
    color: #000000;
    margin: 0 0 36px;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
}

.loc-testimonials__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.loc-testimonial__mark {
    display: block;
    /* ⚠️ THIS ONE GLYPH OPTS OUT OF THE BODY FONT, DELIBERATELY.
       Europa draws “ as two straight vertical bars. The approved design
       shows the classic curly open quote — two filled, comma-like forms —
       so the mark takes a serif face. The glyph IS the design here; it is
       decorative (aria-hidden in the template) and carries no meaning, so
       the font switch costs nothing semantically. */
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 64px;
    font-weight: 700;
    line-height: .8;
    margin-bottom: 18px;
    color: #8dc63f;
}

.loc-testimonial__quote { margin: 0 0 14px; padding: 0; border: 0; }

.loc-testimonial__quote p {
    color: #59595b;
    margin: 0;
    font-size: 19px;
    line-height: 1.6;
}

.loc-testimonial__attrib { margin: 0; font-size: 15px; }
.loc-testimonial__attrib strong { color: #1a1a1a; }
.loc-testimonial__attrib span   { color: #5d6c77; }

/* --------------------------------------------------------------------------
   Carenote (dark)
   -------------------------------------------------------------------------- */

.loc-carenote {
    background: #1a1a1a;
    color: #ffffff;
    padding: 56px 0;
}

.loc-carenote__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.loc-carenote__eyebrow {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #cccccc;
}

.loc-carenote__title {
    margin: 0 0 16px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
}

.loc-carenote__accent { color: #8dc63f; }

.loc-carenote__intro {
    margin: 0 0 24px;
    font-size: 19px;
    line-height: 1.6;
    color: #cccccc;
}

.loc-carenote__intro strong { color: #ffffff; }

.loc-carenote__list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.loc-carenote__item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid #3a3a3a;
    font-size: 17px;
    line-height: 1.6;
    color: #ffffff;
}

.loc-carenote__num {
    flex: 0 0 auto;
    font-weight: 700;
    color: #8dc63f;
}

.loc-carenote__media img {
    display: block;
    width: 100%;
    height: auto;
    filter: grayscale(100%);
}

/* --------------------------------------------------------------------------
   FAQs and areas
   -------------------------------------------------------------------------- */

.loc-faqs { padding: 64px 0; }

.loc-faqs__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

.loc-faqs__title {
    color: #000000;
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
}

.loc-areas__intro { margin: 0 0 24px; font-size: 16px; }

.loc-areas__list { margin: 0; }

.loc-areas__group {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 2px solid #8dc63f;
    display: inline-block;
}

.loc-areas__suburbs {
    color: #59595b;
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.6;
}

/* Accordion */
.loc-accordion__item { border-top: 1px solid #e0e0e0; }
.loc-accordion__item:last-child { border-bottom: 1px solid #e0e0e0; }

.loc-accordion__heading { margin: 0; }

.loc-accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 44px;
    padding: 18px 0;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
}

.loc-accordion__trigger:focus-visible {
    outline: 3px solid #8dc63f;
    outline-offset: 2px;
}

.loc-accordion__icon {
    position: relative;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1a1a1a;
}

/* Plus / minus drawn with pseudo-elements: no icon font, no extra request. */
.loc-accordion__icon::before,
.loc-accordion__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
}

.loc-accordion__icon::before { width: 11px; height: 2px; }
.loc-accordion__icon::after  { width: 2px;  height: 11px; }

/* Expanded = minus: hide the vertical bar. */
.loc-accordion__trigger[aria-expanded="true"] .loc-accordion__icon::after { display: none; }

.loc-accordion__panel { padding: 0 0 20px; }

.loc-accordion__panel p {
    color: #59595b;
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   let's talk
   -------------------------------------------------------------------------- */

.loc-cta {
    position: relative;
    padding: 64px 0 72px;
    text-align: center;
    overflow: hidden;
}

.loc-cta__watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    z-index: 0;
    color: #8dc63f;
    opacity: .55;
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.loc-cta__inner { position: relative; z-index: 1; }

.loc-cta__title {
    margin: 0 0 24px;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
}

.loc-cta__title a { color: #1a1a1a; text-decoration: underline; }

.loc-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
    .loc-hero               { padding: 64px 0 72px; }
    .loc-hero__watermark    { font-size: 120px; top: 54px; }
    .loc-hero__title        { font-size: 48px; }
    .loc-hero__subtitle     { font-size: 22px; }
    .loc-hero__intro        { font-size: 19px; }

    .loc-process__grid      { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
    .loc-process__number    { font-size: 48px; }

    .loc-about__inner       { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
    .loc-about__title       { font-size: 40px; }

    .loc-services__grid     { grid-template-columns: repeat(2, 1fr); }
    .loc-services__title    { font-size: 36px; }

    .loc-testimonials__grid { grid-template-columns: repeat(3, 1fr); }

    .loc-carenote__inner    { grid-template-columns: 1fr 1fr; gap: 48px; }
    .loc-carenote__title    { font-size: 40px; }

    .loc-faqs__inner        { grid-template-columns: 1fr 1.4fr; gap: 56px; }
    .loc-faqs__title        { font-size: 40px; }

    .loc-cta__watermark     { font-size: 150px; }
    .loc-cta__title         { font-size: 19px; }
}

/* --------------------------------------------------------------------------
   Desktop
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
    .loc-hero__watermark    { font-size: 190px; top: 40px; }
    .loc-hero__title        { font-size: 56px; }

    .loc-process            { padding: 72px 0; }
    .loc-process__grid      { grid-template-columns: repeat(4, 1fr); }

    .loc-services__grid     { grid-template-columns: repeat(3, 1fr); gap: 48px 36px; }

    .loc-cta__watermark     { font-size: 220px; }
}

/* --------------------------------------------------------------------------
   Reduced motion — the only transitions here are on buttons, but honour it.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .loc-btn { transition: none; }
}

/* ==========================================================================
   /locations/ index page
   ========================================================================== */

.loc-index-map { background: #f6f6f6; padding: 40px 0 48px; }

.loc-index-map__title {
    margin: 0 0 24px;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: #000000;
}

/* ⚠️ Collapses the chart's reserved height when the map fails to
   mount — see the script in application/views/locations.php. Without this
   a failed map leaves a ~500px empty band directly above the region cards.
   Scoped to .loc-page so the service pages are unaffected. */
.loc-page .service-locations-map--unavailable { min-height: 0; }

/* ⚠️ THE WRAPPER RULE ABOVE IS NOT ENOUGH ON ITS OWN.
   homepage-revision.css also sets a hard height on #nz-map-container, by ID
   (500/450/400px across breakpoints) — not min-height, and not on the
   wrapper. A class rule on the parent cannot override an ID rule on the
   child, so the band stayed open even with the wrapper collapsed. Measured
   from the rendered DOM, after confirming the --unavailable class really was
   being applied.

   This selector carries the ID, so it wins. */
.loc-page .service-locations-map--unavailable #nz-map-container {
    height: auto;
    min-height: 0;
}

.loc-index__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.loc-index__number {
    display: block;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: #e0e0e0;
}

@supports (-webkit-text-stroke: 1px #cccccc) {
    .loc-index__number {
        color: transparent;
        -webkit-text-stroke: 1px #cccccc;
    }
}

.loc-index__title {
    margin: -6px 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
}

.loc-index__blurb {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: #59595b;
}

.loc-index__areas {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.7;
}

.loc-index__area { color: #59595b; }

.loc-index__area--link {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #8dc63f;
}

.loc-index__area--link:hover,
.loc-index__area--link:focus { color: #7ab534; }

.loc-index__cta {
    display: inline-block;
    margin-top: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 2px solid #8dc63f;
    padding-bottom: 2px;
}

.loc-index__cta:hover,
.loc-index__cta:focus { color: #7ab534; }

@media (min-width: 768px) {
    .loc-index__grid      { grid-template-columns: repeat(2, 1fr); }
    .loc-index-map__title { font-size: 36px; }
}

@media (min-width: 1024px) {
    .loc-index__grid { grid-template-columns: repeat(3, 1fr); gap: 48px 36px; }
}
