/* ─────────────────────────────────────────────────────────────
   servicearea.css  –  sidebar layout for the Service Area page
   ───────────────────────────────────────────────────────────── */

/* Two-column wrapper: sidebar | content */
.service-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: start;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
  gap: 0;
}

/* ─── Left sidebar ──────────────────────────────────────────── */
.service-sidebar {
  position: sticky;
  top: 88px;                    /* clear the fixed site header  */
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  padding-right: 20px;
  padding-bottom: 24px;
  scrollbar-width: thin;
}

.service-sidebar-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 10px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

/* Override the shared horizontal flex layout for sidebar context */
.service-sidebar .about-page-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  width: auto;
  margin: 0;
  overflow: visible;
}

.service-sidebar .about-page-nav-inner a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: normal;
  line-height: 1.35;
  transition: background 0.15s, color 0.15s;
}

.service-sidebar .about-page-nav-inner a:hover,
.service-sidebar .about-page-nav-inner a.active-link {
  color: var(--navy);
  background: var(--navy-soft);
}

/* ─── Right content column ──────────────────────────────────── */
.service-content {
  min-width: 0;
  padding-left: 48px;
  border-left: 1px solid var(--line);
}

/* Sections inside the content column should not re-centre themselves */
.service-content .service-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 60px;
}

.service-content .service-section:last-child {
  padding-bottom: 0;
}

.service-content .service-section + .service-section {
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

/* Section headings inside narrow content column can be single-column */
.service-content .section-heading {
  grid-template-columns: 0.7fr 1.3fr;
  gap: 36px;
}

/* ─── Responsive  ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .service-layout {
    grid-template-columns: 1fr;
    padding: 32px 0 56px;
  }

  .service-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    padding-bottom: 0;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--line);
  }

  .service-sidebar .about-page-nav-inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .service-sidebar .about-page-nav-inner a {
    white-space: nowrap;
  }

  .service-content {
    padding-left: 0;
    border-left: none;
  }

  .service-content .service-section + .service-section {
    padding-top: 40px;
  }

  .service-content .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
