/* ==========================================================================
   Site Work Estimator Inc. — layout upgrade layer
   Loaded on every page, after style.css. Restyles the inner-page furniture
   that sits below the banner. The banner itself is left exactly as it was
   in style.css. No page structure is invented here — this only restyles
   markup that already exists.
   ========================================================================== */

:root {
  --lay-navy-900: #081B33;
  --lay-navy-800: #0C2748;
  --lay-navy-700: #133A6B;
}

/* --------------------------------------------------------------------------
   1. Page banner — same design as style.css, just a shorter band
   -------------------------------------------------------------------------- */
.page-hero { padding-block: clamp(38px, 4.2vw, 60px); }
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 10px; }
.page-hero p { font-size: .98rem; }
.page-hero .crumbs { margin-top: 16px; }

/* --------------------------------------------------------------------------
   2. Service detail pages — sidebar and prose
   -------------------------------------------------------------------------- */
.service-aside {
  padding: 8px;
  border-radius: var(--radius-lg);
}
.aside-nav a { border-radius: 11px; }
.aside-cta {
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  background: linear-gradient(150deg, var(--lay-navy-800), var(--lay-navy-700));
}
.aside-cta .btn + .btn { margin-top: 10px; }

.prose > h2:first-child {
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.prose h3 {
  display: flex; align-items: center; gap: 12px;
  margin-top: 40px;
}
.prose h3::before {
  content: ""; flex: 0 0 auto;
  width: 5px; height: 1.1em; border-radius: 3px;
  background: var(--swei-gold);
}

.spec-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 6px 20px;
  margin-bottom: 22px;
}
.spec-list li { padding: 12px 0; }

.figure-frame { box-shadow: var(--shadow-sm); }
.note-box { border-radius: var(--radius); }

/* --------------------------------------------------------------------------
   3. Cards used across the inner pages
   -------------------------------------------------------------------------- */
.capability {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.capability:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CDD9E8;
}
.capability .cap-no {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; margin-bottom: 16px;
  border-radius: 10px;
  background: var(--swei-gold-50);
  color: var(--swei-gold-600);
  font-size: .95rem;
}

.coverage-band {
  border: 0;
  background: linear-gradient(120deg, var(--lay-navy-800), var(--lay-navy-700));
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.coverage-band h3 { color: #fff; }
.coverage-band p { color: rgba(255, 255, 255, .74); }

.contact-info-item { transition: border-color .2s ease; }

.form-card { border-radius: var(--radius-lg); }

.map-frame { border-radius: var(--radius-lg); height: 420px; }

/* --------------------------------------------------------------------------
   4. 404
   -------------------------------------------------------------------------- */
.error-stage {
  position: relative;
  display: grid; place-items: center;
  min-height: 64vh;
  padding-block: clamp(64px, 9vw, 120px);
  background: var(--paper-2);
  overflow: hidden;
}
.error-stage::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 40%, #000 5%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 5%, transparent 70%);
}
.error-stage .container { position: relative; z-index: 1; }
.error-code { margin-bottom: 0; color: #DCE7F6; }
.error-links {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  justify-content: center;
  margin-top: 34px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .93rem;
}

/* --------------------------------------------------------------------------
   5. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .map-frame { height: 340px; }
}

@media (max-width: 767.98px) {
  .aside-cta .btn { width: 100%; }
  .error-links { flex-direction: column; align-items: center; gap: 12px; }
}

/* --------------------------------------------------------------------------
   6. Late additions
   -------------------------------------------------------------------------- */

/* The service pages lead with a standfirst now that the duplicate heading
   is gone, so give that first paragraph a little more weight. */
.prose > p:first-child {
  font-size: 1.09rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 64ch;
  padding-bottom: 20px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

/* Bring the About credentials strip in line with the home page card. */
.stats-bar {
  background: transparent;
  padding-block: clamp(30px, 4vw, 50px);
}
.stats-bar .row {
  background: var(--lay-navy-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(8, 27, 51, .22);
}

/* --------------------------------------------------------------------------
   7. Accordions (FAQ page and the home FAQ band)
   -------------------------------------------------------------------------- */
.accordion-swei .accordion-item {
  margin-bottom: 12px;
  border-color: var(--line);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.accordion-swei .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: rgba(37, 105, 188, .34);
  box-shadow: var(--shadow-sm);
}
.accordion-swei .accordion-button { padding: 22px 26px; gap: 16px; }
.accordion-swei .accordion-button:not(.collapsed) {
  background: #fff;
  box-shadow: inset 4px 0 0 var(--swei-gold);
}
.accordion-swei .accordion-body {
  padding: 0 26px 24px;
  max-width: 74ch;
}

/* Group headings between accordion sets */
h2.accordion-group-head {
  display: flex; align-items: center; gap: 14px;
  margin: 48px 0 20px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--ink);
}
h2.accordion-group-head::before {
  content: ""; flex: 0 0 auto;
  width: 5px; height: 1.05em; border-radius: 3px;
  background: var(--swei-gold);
}
h2.accordion-group-head::after {
  content: ""; flex: 1 1 auto; height: 1px; background: var(--line);
}
h2.accordion-group-head:first-of-type { margin-top: 0; }

/* --------------------------------------------------------------------------
   8. Sample gallery
   -------------------------------------------------------------------------- */
.filter-bar {
  gap: 8px;
  padding: 8px;
  margin-inline: auto;
  margin-bottom: 40px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--paper-2);
}
.filter-btn { border-color: transparent; background: transparent; }
.filter-btn:hover { border-color: transparent; background: #fff; }
.filter-btn.active { box-shadow: 0 6px 16px rgba(37, 105, 188, .26); }

.gallery-item { border-radius: var(--radius-lg); }
.gallery-body { padding: 20px 22px 24px; }

/* --------------------------------------------------------------------------
   10. Contact
   -------------------------------------------------------------------------- */
.contact-info-item {
  padding: 18px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.contact-info-item:last-child { border-bottom: 1px solid var(--line); }
.contact-info-item:hover { border-color: rgba(37, 105, 188, .34); }


/* --------------------------------------------------------------------------
   11. Page rhythm
   Pages ran long and loose. Pulling the section band in and giving headings
   a tighter measure makes each screen read as one composed block.
   -------------------------------------------------------------------------- */
:root { --section-y: clamp(56px, 5.8vw, 92px); }

.section-head { margin-bottom: clamp(28px, 3.2vw, 46px); }
.section-head h2 { text-wrap: balance; }
.section-head-center .lead-text { margin-inline: auto; text-align: center; }

.eyebrow { margin-bottom: 12px; }

.cta-band { padding-block: clamp(48px, 5vw, 74px); }
