/* ============================================================
   SERVICE PAGE SHARED STYLES
   Single source of truth for the shared sections across all
   service pages (hero, first content section, process, industries).
   Relies on each page's :root vars: --ember --surge --bg-alt
   --text --text-sub --border, and the Archivo / Archivo Narrow fonts.
   ============================================================ */

/* ---- Buttons ---- */
.sp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: clamp(13px, 0.9vw, 15px);
  padding: clamp(10px, 1vw, 13px) clamp(20px, 1.8vw, 28px);
  border-radius: 7px;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity .2s, transform .2s, background .2s, border-color .2s;
}
.sp-btn:hover { transform: translateY(-1px); }
.sp-btn-primary { background: linear-gradient(135deg, #d4541f 0%, #a83a10 100%); color: #fff; }
.sp-btn-primary:hover { opacity: .92; }
.sp-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.sp-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }
.sp-btn-white { background: #fff; color: var(--ember); }
.sp-btn-white:hover { opacity: .92; }

/* ---- Eyebrow + rule ---- */
.sp-eyebrow {
  display: inline-block;
  font-family: 'Archivo Narrow', sans-serif;
  font-size: clamp(11px, 0.8vw, 13px);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ember);
}
.sp-rule { width: 32px; height: 3px; background: var(--ember); border-radius: 2px; margin: 14px 0 22px; }

/* ---- Hero ----
   Each page sets its own photo with an inline
   style="--sp-hero-img:url('hero-<page>.jpg')" on .sp-hero.
   Three stacked layers: a strong left-to-right ramp that keeps the
   headline legible, a flat tint so no part of the photo is ever
   bright, then the photo itself. ---- */
.sp-hero {
  position: relative;
  background-color: #0c1a28;
  background-image:
    linear-gradient(96deg, rgba(9,20,32,.97) 0%, rgba(11,24,38,.94) 42%, rgba(13,30,48,.72) 70%, rgba(13,30,48,.52) 100%),
    linear-gradient(rgba(9,20,32,.34), rgba(9,20,32,.34)),
    var(--sp-hero-img, none);
  background-size: cover, cover, cover;
  /* --sp-hero-pos lets a page bias its own focal point: taller photos get
     cropped hard by a wide hero, so faces can end up outside the frame. */
  background-position: center, center, var(--sp-hero-pos, right center);
  background-repeat: no-repeat;
  padding: clamp(56px, 7vw, 100px) 0 clamp(80px, 9vw, 124px);
  z-index: 2;
}
/* On narrow screens the photo has no room beside the text, so pull the
   focal point in and lean harder on the tint. */
@media (max-width: 860px) {
  .sp-hero {
    background-image:
      linear-gradient(rgba(9,20,32,.93) 0%, rgba(11,24,38,.88) 55%, rgba(13,30,48,.80) 100%),
      var(--sp-hero-img, none);
    background-position: center, var(--sp-hero-pos-mob, center);
    background-size: cover, cover;
  }
}
.sp-hero-inner { max-width: 760px; }
.sp-hero .sp-eyebrow { color: var(--surge); }
.sp-hero .sp-rule { background: var(--ember); }
.sp-hero h1 {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 18px;
}
.sp-hero p {
  font-size: clamp(14px, 1.1vw, 17px);
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  max-width: 58ch;
  margin-bottom: 32px;
}
.sp-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.sp-divider { position: absolute; bottom: 0; left: 0; width: 100%; line-height: 0; pointer-events: none; }
.sp-divider svg { display: block; width: 100%; height: clamp(28px, 3.5vw, 52px); }

/* ---- Generic section shell ---- */
.sp-section { padding: clamp(60px, 7vw, 100px) 0; background: #fff; position: relative; z-index: 3; }
.sp-section.is-alt {
  background-color: var(--bg-alt);
  background-image: radial-gradient(circle, rgba(0,0,0,.045) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---- Centered section header ---- */
.sp-header { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 4.5vw, 64px); }
.sp-header .sp-eyebrow { display: block; }
.sp-header .sp-rule { margin: 12px auto 18px; }
.sp-header h2 {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}
.sp-header p { font-size: clamp(14px, 1vw, 16px); color: var(--text-sub); line-height: 1.7; margin-top: 14px; }

/* ---- First content section: two-column split ---- */
.sp-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 5vw, 72px); align-items: stretch; }
.sp-split-text h2 {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
.sp-split-text p { color: var(--text-sub); line-height: 1.75; margin-top: 16px; font-size: clamp(14px, 1vw, 16px); }
.sp-split-cta { margin-top: clamp(24px, 2.5vw, 32px); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.sp-split-cta-note { font-size: clamp(12.5px, 0.85vw, 14px); color: var(--text-sub); }
@media (max-width: 860px) { .sp-split { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 44px); } }

/* ---- "What's included" card ---- */
.sp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--ember);
  border-radius: 12px;
  padding: clamp(24px, 2.5vw, 36px);
  box-shadow: 0 8px 32px rgba(0,0,0,.07);
}
.sp-card h3 { font-family: 'Archivo Narrow', sans-serif; font-size: clamp(17px, 1.4vw, 20px); font-weight: 700; color: var(--text); margin-bottom: 18px; }
.sp-check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
/* li is deliberately NOT display:flex: flexbox wraps every bare text run
   AND every inline element (e.g. a <strong> inside the bullet copy) into
   its own separate flex item, which splits the sentence into columns
   instead of flowing it as one paragraph. Position the icon absolutely
   against a padded, block-level li instead -- text behaves like plain
   text no matter what inline markup it contains. */
.sp-check-list li { position: relative; padding-left: 34px; font-size: clamp(13.5px, 0.95vw, 15px); color: var(--text); line-height: 1.5; }
.sp-check-icon { position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: #fff1ec; display: flex; align-items: center; justify-content: center; }
.sp-check-icon svg { width: 12px; height: 12px; display: block; }

/* ---- Right-hand column: card + photo ----
   The "What's Included" card is always shorter than the body copy
   beside it, which left a tall empty gap. The photo is flex:1 so it
   absorbs exactly whatever height is left over. ---- */
.sp-col-visual {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 1.9vw, 26px);
  min-width: 0;
}
.sp-col-visual .sp-card { flex: 0 0 auto; }
.sp-split-photo {
  flex: 1 1 auto;
  min-height: 210px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
}
.sp-split-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* thin ember accent so the photo reads as part of the card stack */
.sp-split-photo::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--ember);
}
@media (max-width: 860px) {
  /* stacked: no leftover height to absorb, so give it a fixed shape */
  .sp-split-photo { flex: 0 0 auto; min-height: 0; aspect-ratio: 16 / 9; }
}

/* ---- Process / steps ---- */
.sp-process { display: grid; grid-template-columns: repeat(var(--sp-cols, 5), 1fr); gap: clamp(16px, 2vw, 24px); }
.sp-step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: clamp(20px, 2vw, 28px); }
@media (min-width: 980px) {
  .sp-step:not(:last-child)::after {
    content: "›";
    position: absolute;
    right: calc(-1 * clamp(16px, 2vw, 24px) / 2 - 7px);
    top: clamp(20px, 2vw, 28px);
    font-size: 22px;
    line-height: 1;
    color: var(--surge);
    pointer-events: none;
  }
}
.sp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #d4541f 0%, #a83a10 100%);
  color: #fff;
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 14px;
}
.sp-step h4 { font-family: 'Archivo Narrow', sans-serif; font-size: clamp(15px, 1.1vw, 17px); font-weight: 700; color: var(--text); margin-bottom: 8px; }
.sp-step p { font-size: clamp(13px, 0.88vw, 14.5px); color: var(--text-sub); line-height: 1.6; }
@media (max-width: 980px) { .sp-process { grid-template-columns: repeat(3, 1fr); } }
/* A four-step process would leave one step alone on a second row of three */
@media (max-width: 980px) and (min-width: 681px) { .sp-process:has(> .sp-step:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .sp-process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) and (min-width: 521px) { .sp-process > .sp-step:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 520px) { .sp-process { grid-template-columns: 1fr; } }

/* ---- Industries / pills ---- */
.sp-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sp-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  transition: background .15s, border-color .15s, color .15s;
}
.sp-pill:hover { background: #fff1ec; border-color: var(--surge); color: var(--ember); }

/* ---- Hero load-in animation ---- */
@keyframes sp-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sp-hero-inner .sp-eyebrow  { animation: sp-fade-up 0.6s 0.10s both; }
.sp-hero-inner .sp-rule     { animation: sp-fade-up 0.6s 0.18s both; }
.sp-hero-inner h1           { animation: sp-fade-up 0.7s 0.20s both; }
.sp-hero-inner p            { animation: sp-fade-up 0.6s 0.34s both; }
.sp-hero-inner .sp-hero-btns { animation: sp-fade-up 0.6s 0.46s both; }

/* ---- Scroll entry animations ---- */
.anim-fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.anim-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.anim-stagger-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.anim-stagger-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .sp-hero-inner .sp-eyebrow,
  .sp-hero-inner .sp-rule,
  .sp-hero-inner h1,
  .sp-hero-inner p,
  .sp-hero-inner .sp-hero-btns { animation: none; }
  .anim-fade-up,
  .anim-stagger-item { transition: none; opacity: 1; transform: none; }
}

/* ---- Dark section variant (industries) ----
   This is the page's mid-scroll anchor. It used to be a near-white
   beige that washed the photo out to nothing, which left the whole
   body of the page in one flat white-and-grey run between the navy
   hero and the ember CTA. It is now genuinely dark, and borrows the
   CTA's gradient + glow so the two read as a matched pair. ---- */
.sp-section.is-dark {
  position: relative;
  overflow: hidden;
  background-color: #0f2236;
  background-image:
    linear-gradient(120deg, rgba(10,22,35,.94) 0%, rgba(16,38,60,.86) 55%, rgba(10,22,35,.94) 100%),
    url('../images/industries-bg.jpg');
  background-size: cover, cover;
  background-position: center, center 40%;
}
.sp-section.is-dark::before {
  content: '';
  position: absolute;
  top: -45%;
  right: -8%;
  width: 52%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(207,128,97,.20) 0%, rgba(207,128,97,0) 68%);
  pointer-events: none;
}
.sp-section.is-dark > .wrap { position: relative; z-index: 1; }
.sp-section.is-dark .sp-eyebrow   { color: var(--surge); }
.sp-section.is-dark .sp-rule      { background: var(--ember); }
.sp-section.is-dark .sp-header h2 { color: #fff; }
.sp-section.is-dark .sp-header p  { color: rgba(255,255,255,.74); }
.sp-section.is-dark .sp-pill {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
  color: rgba(255,255,255,.93);
}
.sp-section.is-dark .sp-pill:hover {
  background: rgba(255,255,255,.16);
  border-color: var(--surge);
  color: #fff;
}

/* ============================================================
   FAQ  -  shared across all service pages
   Two-column editorial layout: sticky heading on the left,
   hairline-divided accordion on the right. Native <details>
   so it works without JS and stays keyboard accessible.
   ============================================================ */
.sp-faq {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

/* ---- Left: heading ---- */
.faq-head { position: sticky; top: clamp(88px, 8vw, 108px); }
.faq-head h2 {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
.faq-head p {
  font-size: clamp(14px, 1vw, 16px);
  color: var(--text-sub);
  line-height: 1.75;
  margin-top: 16px;
  max-width: 40ch;
}
.faq-head-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: clamp(20px, 2.2vw, 28px);
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: clamp(13.5px, 0.95vw, 15px);
  color: var(--ember);
  text-decoration: none;
  transition: gap .18s;
}
.faq-head-cta svg { width: 15px; height: 15px; }
.faq-head-cta:hover { gap: 11px; }

/* ---- Right: accordion ---- */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  gap: clamp(14px, 1.4vw, 20px);
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(16px, 1.7vw, 23px) 0;
  font-family: 'Archivo Narrow', sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 1.15vw, 18.5px);
  line-height: 1.4;
  color: var(--text);
  transition: color .18s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }
.faq-item summary:hover { color: var(--ember); }
.faq-item summary:focus-visible { outline: 2px solid var(--surge); outline-offset: 4px; border-radius: 3px; }

/* plus icon that rotates into a cross when open */
.faq-icon {
  flex-shrink: 0;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff1ec;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: background .22s, transform .28s cubic-bezier(.4,.1,.2,1);
}
.faq-icon svg {
  width: 12px;
  height: 12px;
  display: block;
  stroke: var(--ember);
  stroke-width: 2.4;
  transition: stroke .22s;
}
.faq-item[open] summary { color: var(--ember); }
.faq-item[open] .faq-icon { background: var(--ember); transform: rotate(135deg); }
.faq-item[open] .faq-icon svg { stroke: #fff; }

/* ---- Answer ---- */
.faq-a { padding: 0 0 clamp(18px, 1.9vw, 25px); max-width: 64ch; }
.faq-a p {
  font-size: clamp(13.5px, 0.95vw, 15.5px);
  color: var(--text-sub);
  line-height: 1.75;
}
.faq-a p + p { margin-top: 12px; }
.faq-a a {
  color: var(--ember);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 84, 31, .35);
  transition: border-color .18s;
}
.faq-a a:hover { border-bottom-color: var(--ember); }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.faq-item[open] .faq-a { animation: faq-open .3s ease both; }

@media (max-width: 900px) {
  .sp-faq { grid-template-columns: 1fr; gap: clamp(26px, 4vw, 40px); }
  .faq-head { position: static; }
  .faq-head p { max-width: 60ch; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item[open] .faq-a { animation: none; }
  .faq-icon { transition: background .22s; }
}
