/* ============================================================
   business-services.css
   Shared components for the Modern Age Coders B2B / software
   services cluster (for-business hub + service spokes).
   Built on editorial-theme.css tokens. Paper/ink/amber only.
   No gradients, no glows, no purple/cyan. Load AFTER editorial-theme.css.
   ============================================================ */

/* ---------- shared layout helpers ---------- */
body.biz-page .section { max-width: 1140px; }
body.biz-page .section.section--wide { max-width: 1240px; }
.biz-lede {
  max-width: 720px; margin: 1.1rem 0 0; color: var(--muted);
  font-size: 1.06rem; line-height: 1.75;
}
.biz-eyebrow-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }

/* ---------- hero ---------- */
.biz-hero { padding-top: clamp(2.6rem, 5vw, 4rem); padding-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.biz-hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: center;
}
.biz-hero__title {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.06; margin: 1rem 0 0;
  max-width: 15ch;
}
.biz-hero__title .amber { color: var(--amber); }
.biz-hero__sub {
  margin: 1.3rem 0 0; color: var(--ink-soft); font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.65; max-width: 44ch;
}
.biz-hero__panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 1.6rem 1.55rem;
}
.biz-hero__panel h2 {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber-deep); font-weight: 700; margin: 0 0 1rem;
}
.biz-hero__panel ul { display: grid; gap: .85rem; }
.biz-hero__panel li {
  display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start;
  list-style: none; font-size: .96rem; line-height: 1.5; color: var(--ink-soft);
}
.biz-hero__panel li svg { width: 20px; height: 20px; color: var(--green); margin-top: 2px; }

/* ---------- CTA buttons ---------- */
.biz-cta-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.9rem; }
.biz-btn {
  display: inline-flex; align-items: center; gap: .55rem; padding: .92rem 1.5rem;
  border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.biz-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.biz-btn--primary { background: var(--amber); color: #fff; box-shadow: var(--shadow-sm); }
.biz-btn--primary:hover { transform: translateY(-2px); background: var(--amber-deep); }
.biz-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.biz-btn--ghost:hover { transform: translateY(-2px); border-color: var(--amber); color: var(--amber-deep); }
.biz-btn--wa { background: #128C7E; color: #fff; }
.biz-btn--wa:hover { transform: translateY(-2px); background: #0e6f64; }

/* ---------- trust strip (REAL education facts only) ---------- */
.biz-trust {
  margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1.6rem 2.2rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.biz-trust__item { display: grid; gap: .18rem; }
.biz-trust__num {
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--ink);
  line-height: 1;
}
.biz-trust__label {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- answer capsule (AEO) ---------- */
.biz-capsule {
  background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--amber);
  border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.1rem);
}
.biz-capsule__label {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber-deep); font-weight: 700; margin: 0 0 .7rem;
}
.biz-capsule p {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.12rem, 2vw, 1.42rem); line-height: 1.5; color: var(--ink);
}
.biz-capsule p + p { margin-top: .9rem; font-size: 1.02rem; font-family: var(--font-body); color: var(--ink-soft); line-height: 1.65; }

/* ---------- service / deliverable cards ---------- */
.svc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem;
}
.svc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.45rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(180,83,9,.35); }
.svc-card__idx {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600; color: var(--amber-deep);
  letter-spacing: .08em;
}
.svc-card h3 { font-size: 1.24rem; margin: .55rem 0 .55rem; }
.svc-card p { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.62; }
.svc-card ul { margin: .9rem 0 0; display: grid; gap: .5rem; }
.svc-card li {
  list-style: none; display: grid; grid-template-columns: 16px 1fr; gap: .55rem;
  font-size: .92rem; line-height: 1.5; color: var(--ink-soft);
}
.svc-card li::before { content: ""; width: 7px; height: 7px; margin-top: .5rem; border-radius: 2px; background: var(--amber); }

/* ---------- process steps ---------- */
.process {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.1rem;
  counter-reset: step;
}
.process__step {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.4rem; position: relative;
}
.process__step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: .92rem; font-weight: 700; color: var(--amber);
  display: block; margin-bottom: .7rem;
}
.process__step h3 { font-size: 1.1rem; margin: 0 0 .5rem; }
.process__step p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.58; }

/* ---------- capability / tech stack ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.stack-col {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.3rem;
}
.stack-col h3 {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber-deep); font-weight: 700; margin: 0 0 .95rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-size: .86rem; font-weight: 500; color: var(--ink-soft); background: var(--amber-tint);
  border: 1px solid rgba(180,83,9,.14); border-radius: 999px; padding: .4rem .8rem;
}

/* ---------- industries / who ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.industry-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.2rem;
  background: var(--surface);
}
.industry-card h3 { font-size: 1.05rem; margin: 0 0 .35rem; }
.industry-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }

/* ---------- why us (real trust) ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.why-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.45rem;
}
.why-card h3 { font-size: 1.16rem; margin: 0 0 .55rem; display: flex; align-items: center; gap: .55rem; }
.why-card h3 svg { width: 20px; height: 20px; color: var(--amber); flex-shrink: 0; }
.why-card p { margin: 0; color: var(--ink-soft); font-size: .97rem; line-height: 1.65; }

/* ---------- engagement models ---------- */
.engage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.engage-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; display: flex; flex-direction: column;
}
.engage-card h3 { font-size: 1.2rem; margin: 0 0 .3rem; }
.engage-card__tag {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber-deep); font-weight: 700; margin-bottom: .9rem;
}
.engage-card p { margin: 0 0 1.1rem; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.engage-card ul { display: grid; gap: .5rem; margin: 0 0 1.3rem; }
.engage-card li {
  list-style: none; display: grid; grid-template-columns: 16px 1fr; gap: .55rem;
  font-size: .9rem; line-height: 1.5; color: var(--ink-soft);
}
.engage-card li::before { content: ""; width: 7px; height: 7px; margin-top: .5rem; border-radius: 2px; background: var(--amber); }
.engage-card .biz-btn { margin-top: auto; align-self: flex-start; }

/* ---------- lead form ---------- */
.lead {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden;
  display: grid; grid-template-columns: 1.15fr .85fr;
}
.lead__form { padding: clamp(1.6rem, 3vw, 2.4rem); }
.lead__form h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 .5rem; }
.lead__form p.lead__hint { margin: 0 0 1.4rem; color: var(--muted); font-size: .96rem; line-height: 1.6; }
.lead__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lead__field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.lead__field label {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.lead__field input, .lead__field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; padding: .8rem .9rem; width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.lead__field input:focus, .lead__field textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-tint);
}
.lead__field textarea { min-height: 110px; resize: vertical; }
.lead__err { color: var(--red); font-size: .8rem; min-height: 1em; }
.lead__submit { width: 100%; justify-content: center; margin-top: .3rem; }
.lead__submit[disabled] { opacity: .6; cursor: wait; }
.lead__feedback { margin-top: 1rem; font-size: .92rem; line-height: 1.55; display: none; }
.lead__feedback.is-error { display: block; color: var(--red); }
.lead__feedback.is-ok { display: block; color: var(--green); }

.lead__rail {
  background: var(--footer-bg); color: var(--footer-text);
  padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: 1.3rem;
}
.lead__rail h3 { color: #fff; font-size: 1.2rem; margin: 0; }
.lead__rail p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--footer-text); }
.lead__contact { display: grid; gap: .95rem; }
.lead__contact a {
  display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: .75rem;
  color: #fff; text-decoration: none; font-size: .98rem;
}
.lead__contact a span.k {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--footer-text); display: block;
}
.lead__contact a .ico {
  width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.08);
  display: grid; place-items: center;
}
.lead__contact a .ico svg { width: 18px; height: 18px; color: #fff; }
.lead__contact a:hover .ico { background: var(--amber); }
.lead__assure {
  margin-top: auto; font-size: .82rem; color: var(--footer-text); line-height: 1.55;
  padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.12);
}

/* ---------- related services ---------- */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.related-card {
  display: block; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.3rem; background: var(--surface); transition: transform .18s ease, border-color .18s ease;
}
.related-card:hover { transform: translateY(-3px); border-color: var(--amber); }
.related-card h3 { font-size: 1.05rem; margin: 0 0 .35rem; color: var(--ink); }
.related-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.related-card .go {
  margin-top: .7rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--amber-deep); font-weight: 700;
}

/* ---------- FAQ ---------- */
.biz-faq { max-width: 820px; margin-inline: auto; display: grid; gap: .8rem; }
.biz-faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 1.3rem;
}
.biz-faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 0; font-family: var(--font-display);
  font-weight: 600; font-size: 1.08rem; color: var(--ink); display: flex; justify-content: space-between;
  align-items: center; gap: 1rem;
}
.biz-faq summary::-webkit-details-marker { display: none; }
.biz-faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--amber); font-size: 1.3rem; flex-shrink: 0; }
.biz-faq details[open] summary::after { content: "\2212"; }
.biz-faq details[open] summary { border-bottom: 1px solid var(--line); }
.biz-faq p { margin: 0; padding: 1.1rem 0 1.3rem; color: var(--ink-soft); font-size: .98rem; line-height: 1.7; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .biz-hero__grid { grid-template-columns: 1fr; }
  .biz-hero__panel { order: 2; }
  .why-grid { grid-template-columns: 1fr; }
  .lead { grid-template-columns: 1fr; }
  .lead__rail { order: -1; }
}
@media (max-width: 560px) {
  .lead__row { grid-template-columns: 1fr; }
  .biz-cta-row .biz-btn { width: 100%; justify-content: center; }
  .biz-trust { gap: 1.2rem 1.6rem; }
}
