/* ==========================================================================
   SERVICE — shared by service pages, area pages and blog articles:
   content on the left, a form that follows the scroll on the right.
   ========================================================================== */

.svc {
  display: grid;
  gap: var(--space-xl);
}

.svc__main > section + section {
  margin-top: var(--space-xl);
}

.svc__main h2 {
  margin-bottom: var(--space-s);
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem);
}

.svc__main .fact h2 {
  margin-bottom: var(--space-xs);
  font-size: 1.25rem;
}

.svc__main section > p + p {
  margin-top: var(--space-s);
}

.svc__main section > p + ul,
.svc__main section > p + ol {
  margin-top: var(--space-m);
}

@media (min-width: 992px) {
  .svc {
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
    gap: clamp(3rem, 6vw, 6rem);
  }

  /* The column is as tall as the content next to it. The form and the call box
     follow the scroll inside .svc__zone; the badges stay at the bottom. */
  .svc__aside {
    display: flex;
    flex-direction: column;
    align-self: stretch;
  }

  .svc__zone {
    flex: 1 1 auto;
  }

  .svc__sticky {
    position: sticky;
    top: calc(var(--header-height) + var(--space-m));  /* below the fixed header; the tip of Volty's hair tucks under it */
  }
}

.svc__aside {
  --mascot-pop: 2.25rem;   /* how far Volty's head rises above the form card */
}

.aside-call {
  margin-top: var(--space-m);
  padding: var(--space-m);
  background: var(--navy-700);   /* brand blue */
  color: var(--color-on-dark-muted);
  font-size: var(--text-s);
  text-align: center;
}

.aside-call a {
  display: block;
  margin-top: 0.2rem;
  color: var(--color-accent);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.aside-call--emergency {
  background: var(--color-emergency);
  color: var(--white);
}

.aside-call--emergency a {
  color: var(--white);
}

/* Services hub: Residential, Emergencies and Commercial, one group under the other */
.hub-group + .hub-group {
  margin-top: var(--space-section);
}

/* Emergency pages: big call box right under the hero */
.emergency-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding: var(--space-m) clamp(1.25rem, 3vw, 2.5rem);
  background: var(--color-emergency);
  color: var(--white);
}

.svc__main > .emergency-strip {
  margin-bottom: var(--space-xl);
}

.emergency-strip strong {
  display: block;
  font-size: var(--text-xl);
  line-height: 1.2;
}

.emergency-strip .btn {
  border-color: var(--white);
  background: var(--white);
  color: var(--red-600);
}

/* Related cards under the article */
.related {
  border-top: 1px solid var(--color-line);
}

/* Blog article */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-m);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-meta .line {
  width: 20px;
  height: 1px;
  background: currentColor;
}

/* Articles: the headline uses the full width of the container */
.page-hero--post .page-hero__inner {
  display: block;
}

.page-hero--post h1 {
  text-wrap: balance;
}
