/* ==========================================================================
   service-leaf.css — canonical body template for service leaf + hub pages.
   Locked by the 4 front doors (GEO, Website Design, BPA, Automation Consultant);
   every leaf inherits this. Motion reuses the .reveal system (no-JS-safe,
   prefers-reduced-motion handled in hero.css). Tokens from assets/css/tokens.css.
   ========================================================================== */

.svc-section { padding-block: clamp(3.5rem, 7vw, 7rem); padding-inline: var(--gutter, 1.5rem); }
.svc-inner { max-width: var(--content-width, 1120px); margin-inline: auto; }
.svc-inner--narrow { max-width: 760px; }

/* shared section header */
.svc-eyebrow {
  font-family: var(--font-body); font-size: var(--ts-eyebrow, .8125rem); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red, #CF081F); margin: 0 0 .75rem;
}
.svc-h2 {
  font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em;
  font-size: clamp(1.75rem, 1rem + 2.6vw, 2.75rem); color: var(--navy, #012169); margin: 0 0 1rem; text-wrap: balance;
}
.svc-lead { font-family: var(--font-body); font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); line-height: 1.65; color: #3c4658; max-width: 60ch; font-weight: 300; margin: 0; }
.svc-section--tint { background: #f5f7fb; }

/* ---- intro (problem framing) ---- */
.svc-intro .svc-lead + .svc-lead { margin-top: 1.1rem; }

/* ---- signature moment: one bold navy band per page ---- */
.svc-signature {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy, #012169);
  background-image:
    radial-gradient(120% 120% at 12% 8%, rgba(43,79,162,.55) 0%, rgba(1,33,105,0) 45%),
    radial-gradient(120% 120% at 88% 0%, rgba(207,8,31,.28) 0%, rgba(1,33,105,0) 40%);
  color: #fff;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
.svc-signature .svc-inner { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 880px) { .svc-signature .svc-inner { grid-template-columns: 1fr 1fr; } }
.svc-signature .svc-eyebrow { color: #ff5a6e; }
.svc-signature .svc-h2 { color: #fff; }
.svc-signature p { color: rgba(255,255,255,.8); font-weight: 300; line-height: 1.65; font-size: 1.075rem; margin: 0; max-width: 52ch; }
.svc-figure { position: relative; }
.svc-figure svg { width: 100%; height: auto; display: block; }
.svc-figure--img img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 24px 60px -24px rgba(0,0,0,.6); }
@media (max-width: 879px) { .svc-figure { order: -1; } }

/* ---- capability grid ---- */
.svc-grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .svc-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  background: #fff; border: 1px solid #e6eaf2; border-top: 3px solid transparent; border-radius: 14px;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, border-top-color .25s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(1,33,105,.1); border-top-color: var(--red, #CF081F); }
.svc-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--navy, #012169); margin: 0 0 .5rem; line-height: 1.25; }
.svc-card p { font-family: var(--font-body); font-size: .975rem; line-height: 1.6; color: #4a5568; margin: 0; font-weight: 300; }
.svc-card-ico { width: 44px; height: 44px; border-radius: 11px; background: linear-gradient(135deg, rgba(1,33,105,.09), rgba(207,8,31,.08)); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.svc-card-ico svg { width: 22px; height: 22px; stroke: var(--navy, #012169); }

/* ---- linked card (hub pages: each card navigates to a service leaf) ---- */
.svc-card--link { display: flex; flex-direction: column; text-decoration: none; }
.svc-card-link { margin-top: auto; padding-top: 1.1rem; color: var(--red, #CF081F); font-family: var(--font-body); font-weight: 700; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .4rem; }
.svc-card-link::after { content: '\2192'; font-size: 1.05em; transition: transform .2s cubic-bezier(.16,1,.3,1); }
.svc-card--link:hover .svc-card-link::after { transform: translateX(5px); }
.svc-card--link:focus-visible { outline: 3px solid var(--navy, #012169); outline-offset: 3px; }

/* ---- process: numbered sequence (numbers justified — it IS a sequence) ---- */
.svc-process { display: grid; gap: clamp(1.25rem, 3vw, 2rem); counter-reset: step; margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 760px) { .svc-process { grid-template-columns: repeat(4, 1fr); } }
.svc-step { position: relative; }
.svc-step-n { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: #fff; width: 44px; height: 44px; border-radius: 50%; background: var(--red, #CF081F); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; box-shadow: 0 6px 18px rgba(207,8,31,.3); }
.svc-step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--navy, #012169); margin: 0 0 .4rem; }
.svc-step p { font-size: .95rem; color: #4a5568; line-height: 1.55; margin: 0; font-weight: 300; }

/* ---- FAQ (native disclosure; keyboard-accessible, no JS needed) ---- */
.svc-faq { margin-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid #e6eaf2; }
.svc-faq details { border-bottom: 1px solid #e6eaf2; }
.svc-faq summary { cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; position: relative; font-family: var(--font-display); font-weight: 600; font-size: 1.075rem; color: var(--navy, #012169); }
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq summary::after { content: ''; position: absolute; right: .25rem; top: 1.5rem; width: 10px; height: 10px; border-right: 2px solid var(--red, #CF081F); border-bottom: 2px solid var(--red, #CF081F); transform: rotate(45deg); transition: transform .2s; }
.svc-faq details[open] summary::after { transform: rotate(-135deg); }
.svc-faq summary:focus-visible { outline: 3px solid var(--navy, #012169); outline-offset: 3px; border-radius: 4px; }
.svc-faq p { margin: 0 0 1.25rem; color: #4a5568; line-height: 1.7; font-weight: 300; max-width: 68ch; }

/* ---- CTA band ---- */
.svc-cta { background: var(--navy, #012169); color: #fff; text-align: center; }
.svc-cta .svc-inner { max-width: 660px; }
.svc-cta h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 1rem + 2.4vw, 2.4rem); line-height: 1.12; margin: 0 0 1rem; }
.svc-cta p { color: rgba(255,255,255,.74); font-weight: 300; line-height: 1.6; margin: 0 0 1.75rem; }
.svc-cta .btn--primary { display: inline-flex; align-items: center; min-height: 50px; padding: 0 2.25rem; background: var(--red, #CF081F); color: #fff; border-radius: 9px; font-family: var(--font-body); font-weight: 700; text-decoration: none; transition: transform .15s, background-color .15s; }
.svc-cta .btn--primary:hover { background: #b3061a; transform: translateY(-2px); }
.svc-cta .btn--primary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
