/* spintech-child — service brief template
 * Owns each service child page (chatbot, api-dev, etc.) when assigned the
 * Service — Brief template. Editorial chrome wrapping the user's existing
 * Gutenberg content.
 */

/* ---------- Neutralize parent wrappers ---------- */
body.page-template-template-service-brief .breadcrumb-area { display: none; }
body.page-template-template-service-brief #content.spintech-content {
  padding: 0;
  background: var(--paper);
}
body.page-template-template-service-brief #content.spintech-content > .container,
body.page-template-template-service-brief #content.spintech-content .container {
  max-width: none;
  padding: 0;
}
body.page-template-template-service-brief #post-section { padding: 0; }
body.page-template-template-service-brief #post-section .row { margin: 0; }

/* ---------- Container ---------- */
.service-brief {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 32px 128px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
}

/* ---------- Head ---------- */
.service-brief-head {
  margin-bottom: 8px;
}
.service-brief-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 32px;
}
.service-brief-eyebrow .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-light);
}
.service-brief-eyebrow .eyebrow:first-child { color: var(--ink); }

.service-brief-title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 24px 0;
  max-width: 720px;
}

.service-brief-rule {
  display: block;
  width: 64px;
  height: 4px;
  background: var(--gold);
  margin: 32px 0;
}

.service-brief-dek {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 36;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-mid);
  margin: 0 0 16px 0;
  max-width: 640px;
}

/* ---------- Divider ---------- */
.service-brief-divider {
  background: var(--rule);
  height: 1px;
  border: 0;
  margin: 56px 0;
}

/* ---------- Body grid ---------- */
.service-brief-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 72px;
  align-items: start;
}

/* ---------- Content column (renders the_content) ---------- */
.service-brief-content {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}
.service-brief-content p {
  margin: 0 0 1.4em 0;
}
.service-brief-content a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 4px;
  transition: color var(--dur-fast) var(--ease-standard),
              text-decoration-color var(--dur-fast) var(--ease-standard);
}
.service-brief-content a:hover,
.service-brief-content a:focus {
  color: var(--gold-deep);
  text-decoration-color: var(--gold);
}
.service-brief-content h2 {
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 56px 0 14px;
}
.service-brief-content h3 {
  font-size: 22px;
  line-height: 1.22;
  margin: 40px 0 10px;
}
.service-brief-content h4 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 32px 0 10px;
}
.service-brief-content ul,
.service-brief-content ol {
  margin: 0 0 1.4em 1.4em;
  padding: 0;
}
.service-brief-content li {
  margin-bottom: 0.5em;
}
.service-brief-content blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-mid);
}
.service-brief-content figure,
.service-brief-content .wp-block-image {
  margin: 32px 0;
}
.service-brief-content figure img,
.service-brief-content .wp-block-image img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Tame Gutenberg group blocks that the existing content uses heavily */
.service-brief-content .wp-block-group {
  margin: 32px 0;
}

/* ---------- Capability list (right column) ---------- */
.service-brief-caps {
  background: var(--paper-deep);
  padding: 36px 32px;
  border: 1px solid var(--rule-soft);
  position: sticky;
  top: 32px;
}
.service-brief-caps-head {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-deep);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-soft);
}
.service-brief-caps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
}
.service-brief-caps-list li {
  position: relative;
  padding: 12px 0 12px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-soft);
}
.service-brief-caps-list li:last-child {
  border-bottom: 0;
}
.service-brief-caps-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 8px;
  height: 8px;
  background: var(--gold);
}
.service-brief-caps-cta {
  width: 100%;
  text-align: center;
}

/* ---------- Foot (prev/next) ---------- */
.service-brief-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.service-brief-foot-next {
  text-align: right;
}
.service-brief-prev-link,
.service-brief-next-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  transition: color var(--dur-fast) var(--ease-standard);
}
.service-brief-prev-link:hover,
.service-brief-prev-link:focus,
.service-brief-next-link:hover,
.service-brief-next-link:focus {
  color: var(--gold-deep);
  outline: none;
}
.service-brief-foot-direction {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-light);
  margin-bottom: 6px;
}
.service-brief-foot-title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease-standard);
}
.service-brief-prev-link:hover .service-brief-foot-title,
.service-brief-prev-link:focus .service-brief-foot-title,
.service-brief-next-link:hover .service-brief-foot-title,
.service-brief-next-link:focus .service-brief-foot-title {
  color: var(--gold-deep);
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .service-brief-body {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .service-brief-caps {
    position: static;
  }
}
@media (max-width: 560px) {
  .service-brief {
    padding: 64px 20px 96px;
  }
  .service-brief-eyebrow {
    flex-wrap: wrap;
    gap: 4px;
  }
  .service-brief-content {
    font-size: 17px;
  }
  .service-brief-foot {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .service-brief-foot-next {
    text-align: left;
  }
  .service-brief-foot-title {
    font-size: 19px;
  }
}
