/* The two bands that close a service page: service area, then the call CTA.
 *
 * Ported from the reference build in sneads-worktrees/service-page. The mirror's
 * service pages currently end on a sidebar and a stack of "Similar Services"
 * cards, all boxed inside Divi's 1080px column, and then the footer - no
 * statement of coverage and no closing ask.
 *
 * Both bands are injected as direct children of #et-main-area, outside every
 * width-constraining wrapper, so they are genuinely full bleed. Each supplies
 * its own .sos-wrap content column.
 *
 * Loaded after hero.css. Nothing here fights an existing rule hard enough to
 * need !important - these are new elements the mirror has no styles for - with
 * the one exception noted on the headings, where Divi's customiser reaches them
 * by bare element selector.
 */

/* ---- shared -------------------------------------------------------------
   .wrap on the reference is 1180px; the mirror's own .container is 1600px via
   the customiser. 1180 is kept: at 1600 the two-column grid pulls the map and
   the chips too far apart to read as one unit. */

.sos-band .sos-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* The customiser ships `h1,h2,h3,h4,h5,h6{font-weight:normal;text-transform:
   uppercase;line-height:1.1em}` as a bare element selector, which reaches these
   headings and would render them at normal weight. Restated here rather than
   fought - a class selector already outranks it. */
.sos-band h2 {
  font-family: 'Poppins', 'Archivo', Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  line-height: 1.06;
  text-transform: uppercase;
  color: #fff;
  padding: 0;
}

/* ---- service area -------------------------------------------------------
   Flat charcoal, so it reads as a deliberate band rather than another photo
   section under a page that already opens on one. */

.sos-servicearea {
  background: #1c1c1c;
  color: #fff;
  padding: 66px 0;
}

.sos-servicearea .sos-sa-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.sos-servicearea .sos-sa-eyebrow {
  display: block;
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 10px;
}

.sos-servicearea .sos-sa-head h2 {
  margin: 0 0 12px;
}

.sos-servicearea .sos-sa-sub {
  color: #bdbdbd;
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

.sos-servicearea .sos-sa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: stretch;
}

.sos-servicearea .sos-sa-map {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2f2f2f;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  min-height: 440px;
}

.sos-servicearea .sos-sa-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
}

.sos-servicearea .sos-sa-cities-h {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Poppins', 'Archivo', Helvetica, Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 18px;
}

.sos-servicearea .sos-sa-cities-h svg {
  width: 20px;
  height: 20px;
  color: #dd5c26;
  flex: none;
}

.sos-servicearea .sos-sa-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* Not links yet. The chips point at each service's own town page, and most of
   those pages do not exist in the new build - so they stay inert rather than
   pretending. cursor:default says so to the mouse. */
.sos-servicearea .sos-chip {
  background: #241c17;
  border: 1.5px solid #dd5c26;
  border-radius: 6px;
  color: #fff;
  padding: 13px 8px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  cursor: default;
}

.sos-servicearea .sos-chip:hover {
  background: #dd5c26;
  border-color: #dd5c26;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(221, 92, 38, 0.4);
}

/* ---- call CTA -----------------------------------------------------------
   The photo is the page's own hero shot, handed in per page as --sos-cta-bg,
   because a pseudo-element cannot take an inline style and every page has a
   different picture.

   isolation:isolate is load-bearing. The photo and the scrim are ::before and
   ::after at z-index -2 and -1; without a stacking context of their own they
   paint behind Divi's section backgrounds and disappear entirely. */

.sos-ctaband {
  position: relative;
  isolation: isolate;
  color: #fff;
  text-align: center;
  /* Explicit, not inherited. The reference leaned on a bare `section{padding:
     76px 0}` rule that does not exist here; without this the band loses ~150px
     of height and the copy sits on the edges. */
  padding: 76px 0;
}

.sos-ctaband::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--sos-cta-bg) center/cover no-repeat;
  background-color: #1c1c1c;
}

.sos-ctaband::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.93), rgba(35, 35, 35, 0.82));
}

.sos-ctaband .sos-wrap {
  padding: 0 24px;
}

.sos-ctaband h2 {
  margin: 0 0 14px;
}

.sos-ctaband p {
  color: #f0e2d9;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 52ch;
  margin: 0 auto 26px;
  padding: 0;
}

.sos-ctaband .sos-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  padding: 15px 30px;
  border-radius: 6px;
  background: #dd5c26;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.12s ease;
}

.sos-ctaband .sos-cta-btn:hover {
  background: #b8481b;
  color: #fff;
  transform: translateY(-1px);
}

.sos-ctaband .sos-cta-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---- stacked ------------------------------------------------------------
   980 is Divi's own tablet breakpoint, the same one hero.css stacks at. */

@media all and (max-width: 980px) {
  .sos-servicearea {
    padding: 48px 0;
  }
  .sos-servicearea .sos-sa-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .sos-servicearea .sos-sa-map,
  .sos-servicearea .sos-sa-map iframe {
    min-height: 340px;
  }
  .sos-servicearea .sos-sa-chips {
    grid-template-columns: repeat(3, 1fr);
  }
  .sos-ctaband {
    padding: 56px 0;
  }
}

@media all and (max-width: 520px) {
  .sos-servicearea .sos-sa-chips {
    grid-template-columns: repeat(2, 1fr);
  }
  .sos-ctaband .sos-cta-btn {
    width: 100%;
  }
}
