/* Carbon Confido — shared building blocks for the inner pages
   (About, Services, Standards, Approach, FAQ, Contact, policies).
   Loaded after type.css + site.css, which already provide the header, footer,
   buttons, CTA band, fonts, sizes and spacing used on the homepage.
   Breakpoints match the homepage: desktop ≥1100 · iPad 768–1099 · mobile <768 */

/* ---------- Page banner (inner-page hero) ----------
   Same dark blue gradient language as the homepage hero, shorter, title bottom-left.
   Set the photo per page with:  style="--hero-img: url('assets/pages/xxx.jpg')"  */
.page-hero {
  position: relative; color: #fff;
  min-height: 420px;   /* inner-page banner height: same on every inner page */
  padding: 140px 0 56px;
  display: flex; align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(6,34,74,.66) 0%, rgba(6,34,74,.38) 45%, rgba(6,34,74,.12) 100%),
    linear-gradient(180deg, rgba(6,34,74,.5) 0%, rgba(6,34,74,0) 40%),
    var(--hero-img, none) var(--hero-pos, center) / cover no-repeat,
    #0d2f4f;
}
.page-hero-copy { text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.page-hero h1 { font-size: var(--fs-hero); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
.page-hero .eyebrow { color: rgba(255,255,255,.85); font-weight: 600; letter-spacing: .12em; margin-bottom: 14px; }

/* ---------- Sections ---------- */
.page-section { padding: var(--sy) 0; }
.page-section.is-gray { background: var(--gray-bg); }
.page-section.is-tint { background: linear-gradient(180deg, #fff 0%, #f5faf0 100%); }

.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; }
.section-head .eyebrow { text-transform: uppercase; }
.lead { font-size: var(--fs-lg); line-height: 1.5; }
.prose p + p { margin-top: 18px; }
.prose p { font-size: var(--fs-body); }

/* ---------- Text + image split (alternates with .is-reverse) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.is-reverse > :first-child { order: 2; }
.split-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.split-body h2 { margin-bottom: 24px; }

/* Rounded photo with an offset green outline (Services / About photos) */
.frame { position: relative; isolation: isolate; }
.frame::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border: 2px solid var(--green); border-radius: calc(var(--radius) + 4px);
}
.frame.is-left::after { inset: 14px 14px -14px -14px; }
.frame img { position: relative; }

/* ---------- Small pieces ---------- */
.pill {
  display: inline-block; padding: 3px 14px; border-radius: 999px;
  border: 1px solid var(--green); background: #edf6e2; color: var(--green-dark);
  font-size: var(--fs-sm); font-weight: 500;
}
.pill.is-blue { border-color: var(--blue); background: #e6f6fd; color: #0a86b8; }

.tick-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.tick-list li { position: relative; padding-left: 20px; font-size: var(--fs-body-sm); }
.tick-list li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
}

.card-soft { background: #fff; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.07); }
.panel-green { background: var(--green-pale); border: 1px solid #c8e1a8; border-radius: var(--radius); }

/* =========================================================
   iPad (768 – 1099)
   ========================================================= */
@media (max-width: 1099px) {
  .page-hero { min-height: 360px; padding: 130px 0 48px; }
  .page-hero { background:
      linear-gradient(180deg, rgba(6,34,74,.6) 0%, rgba(6,34,74,.35) 45%, rgba(6,34,74,.55) 100%),
      var(--hero-img, none) var(--hero-pos, center) / cover no-repeat,
      #0d2f4f; }
  .split { gap: 44px; }
}

/* =========================================================
   Mobile (< 768)
   ========================================================= */
@media (max-width: 767px) {
  .page-hero { min-height: 280px; padding: 110px 0 36px; }
  .section-head { margin-bottom: 30px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.is-reverse > :first-child { order: 0; }
  .frame::after { inset: 10px -8px -10px 8px; }
  .frame.is-left::after { inset: 10px 8px -10px -8px; }
}
.nowrap { white-space: nowrap; }
