/* ============================================================
   CAPABILITY.CSS — single-capability.php
   .page-section, .container, .two-col, .section-label, .body-copy,
   .btn, .reveal all load globally already.
   ============================================================ */

/* ── Hero — identical treatment to the Insights page hero
   (duplicated here rather than cross-loading blog.css, matching
   the pattern used by every other template's hero in this theme) */
.capability-hero.blog-hero {
  background: var(--color-dark, #141414);
  padding: clamp(64px, 8vw, 100px) 0 clamp(48px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.capability-hero .blog-hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.capability-hero .blog-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.capability-hero .blog-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.4) 55%,
      rgba(0, 0, 0, 0.15) 100%
    ),
    linear-gradient(to bottom, transparent 20%, rgba(0, 0, 0, 0.55) 100%);
}
.capability-hero .container {
  position: relative;
  z-index: 1;
}
.capability-hero .blog-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}
.capability-hero .blog-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.92;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.capability-hero .blog-hero__sub {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  max-width: 700px;
}

/* ── Intro — full width ──────────────────────────────────── */
.capability-intro {
  background: var(--color-white, #fff);
}
.capability-intro__body {
  max-width: none;
  width: 100%;
  font-size: 16px;
}

/* ── Section headings — stacked above content, kept at the
   large shared .section-label size (not the side-column layout
   used on Our Model/Pluralytics/Industry) ──────────────────── */
.capability-section__heading {
  margin-bottom: clamp(24px, 3vw, 36px);
}
.capability-section__body {
  max-width: none;
  width: 100%;
}

/* Section body copy — 100% width, minimum 16px per brand requirement */
.capability-section .body-copy {
  font-size: 16px;
  width: 100%;
}
.capability-section .body-copy p {
  display: block !important;
  font-size: clamp(16px, 1.6vw, 18px) !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
}
.capability-section .body-copy p:last-child {
  margin-bottom: 0 !important;
}

/* Headings typed directly into the WYSIWYG body copy (e.g. a
   content editor using the editor's own Heading format) — these
   previously had zero styling and fell back to plain browser
   defaults. Sized as a sub-heading, smaller than the section's
   own dedicated Section Label. */
.capability-section .body-copy h2,
.capability-section .body-copy h3,
.capability-section .body-copy h4 {
  display: block !important;
  font-family: var(--font-display, "Barlow Condensed", sans-serif) !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.2px !important;
  line-height: 1.1 !important;
  color: var(--color-black, #141414) !important;
  margin: 32px 0 14px !important;
  padding: 0 !important;
}
.capability-section .body-copy h2 {
  font-size: clamp(22px, 2.4vw, 28px) !important;
}
.capability-section .body-copy h3 {
  font-size: clamp(19px, 2vw, 23px) !important;
}
.capability-section .body-copy h4 {
  font-size: 17px !important;
}
.capability-section .body-copy > h2:first-child,
.capability-section .body-copy > h3:first-child,
.capability-section .body-copy > h4:first-child {
  margin-top: 0 !important;
}

/* Lists typed directly into the WYSIWYG body copy — !important
   throughout since a sitewide reset (used elsewhere for custom
   nav/footer lists) was overriding list-style and spacing here */
.capability-section .body-copy ul,
.capability-section .body-copy ol {
  display: block !important;
  margin: 0 0 18px !important;
  padding-left: 22px !important;
}
.capability-section .body-copy ul {
  list-style: disc !important;
}
.capability-section .body-copy ol {
  list-style: decimal !important;
}
.capability-section .body-copy li {
  display: list-item !important;
  font-size: clamp(16px, 1.6vw, 18px) !important;
  color: var(--color-text, #50585b) !important;
  line-height: 1.7 !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
}

/* Blockquotes typed into the WYSIWYG body copy — a clean
   highlighted box, not styled to look like a traditional pull
   quote (no quotation mark, no italics). */
.capability-section .body-copy blockquote {
  display: block !important;
  background: var(--color-off, #f8f7f5) !important;
  border: none !important;
  border-left: 4px solid var(--color-red, #ed1c24) !important;
  border-radius: 4px 4px 0 4px !important;
  margin: 32px 0 !important;
  padding: 28px 32px !important;
  font-family: var(--font-body, "Noto Sans", sans-serif) !important;
  font-style: normal !important;
  font-size: clamp(17px, 1.7vw, 19px) !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  color: var(--color-black, #141414) !important;
}
.capability-section .body-copy blockquote p {
  display: block !important;
  font-family: var(--font-body, "Noto Sans", sans-serif) !important;
  font-style: normal !important;
  font-size: clamp(17px, 1.7vw, 19px) !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  color: var(--color-black, #141414) !important;
  margin: 0 0 12px !important;
}
.capability-section .body-copy blockquote p:last-child {
  margin-bottom: 0 !important;
}
.capability-section .body-copy blockquote cite {
  display: block !important;
  font-style: normal !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  color: var(--color-mid, #888) !important;
  margin-top: 16px !important;
}

/* Consistent padding between every section on this page — was
   previously only tightened at the single junction right before
   Proof/Spotlight, leaving every other section-to-section gap on
   the much larger global default and creating mismatched spacing
   throughout the page. Now every section uses the same, smaller
   value, top and bottom, no special cases. */
.capability-section {
  padding: clamp(40px, 5vw, 64px) 0;
}

/* Includes list */
.capability-includes__lead {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-black, #141414);
  margin: 28px 0 14px;
}
.capability-includes__list {
  list-style: none;
}
.capability-includes__list li {
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text, #50585b);
  line-height: 1.75;
  padding-left: 18px;
  position: relative;
  margin-bottom: 14px;
  width: 100%;
}
.capability-includes__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--color-red, #ed1c24);
  border-radius: 50%;
}
.capability-includes__list li strong {
  color: var(--color-black, #141414);
  font-weight: 700;
}

/* ============================================================
   CAPABILITIES LISTING PAGE (template-capabilities.php)
   ============================================================ */

/* Hero — identical treatment to the Insights page hero */
.capabilities-listing-hero.blog-hero {
  background: var(--color-dark, #141414);
  padding: clamp(64px, 8vw, 100px) 0 clamp(48px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.capabilities-listing-hero .blog-hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.capabilities-listing-hero .blog-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.capabilities-listing-hero .blog-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.4) 55%,
      rgba(0, 0, 0, 0.15) 100%
    ),
    linear-gradient(to bottom, transparent 20%, rgba(0, 0, 0, 0.55) 100%);
}
.capabilities-listing-hero .container {
  position: relative;
  z-index: 1;
}
.capabilities-listing-hero .blog-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}
.capabilities-listing-hero .blog-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.92;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.capabilities-listing-hero .blog-hero__sub {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  max-width: 700px;
}

/* Grid */
.capabilities-listing {
  background: var(--color-white, #fff);
}
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.capability-card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-line, #e8e6e2);
  border-radius: 4px 4px 0 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
.capability-card:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
  transform: translateY(-4px);
}
.capability-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-off, #f8f7f5);
}
.capability-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.capability-card__image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-off, #f8f7f5);
}
.capability-card__body {
  padding: 24px 26px 26px;
}
.capability-card__title {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.2px;
  line-height: 1.05;
  color: var(--color-black, #141414);
  margin-bottom: 10px;
}
.capability-card__sub {
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text, #50585b);
  line-height: 1.65;
  margin-bottom: 18px;
}
.capability-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-red, #ed1c24);
  transition: gap 0.18s;
}
.capability-card:hover .capability-card__link {
  gap: 14px;
}
.capabilities-empty {
  font-size: 15px;
  color: var(--color-mid, #888);
}

@media (max-width: 1024px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CASE STUDY / PROJECT SPOTLIGHT CARDS
   Duplicated from pluralytics.css's "Values-Aligned Difference"
   case-study buckets for the exact same visual treatment.
   ============================================================ */
.case-module {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.case-card {
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-line, #e8e6e2);
  border-radius: 4px 4px 0 4px;
  text-decoration: none;
  color: inherit;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
.case-card:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
  transform: translateY(-4px);
}
.case-card-img {
  aspect-ratio: 16 / 10;
  background: var(--color-off, #f8f7f5);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-card-img-placeholder {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #bbb;
}
.case-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.case-card-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-red, #ed1c24);
  margin-bottom: 8px;
  display: block;
}
.case-card h3 {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-black, #141414);
  line-height: 1.05;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}
.case-card p {
  font-size: 16px;
  font-weight: 300;
  color: #666;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 16px;
  width: 100%;
}
.case-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-red, #ed1c24);
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.18s;
}
.case-card-link::after {
  content: "→";
}
.case-card:hover .case-card-link {
  gap: 14px;
}

@media (max-width: 1024px) {
  .case-module {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .case-module {
    grid-template-columns: 1fr;
  }
}

/* ── relevANT News — latest blog posts (duplicated from work.css
   since that stylesheet isn't loaded on this template) ────────── */
.work-news {
  background: #f8f7f5;
}
.work-news .section-label em {
  color: var(--color-red, #ed1c24);
  font-style: normal;
}

.work-news .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-news .blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-line, #e8e6e2);
  border-radius: 4px 4px 0 4px;
  overflow: hidden;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
.work-news .blog-card:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
  transform: translateY(-4px);
}
.work-news .blog-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 3/2;
}
.work-news .blog-card__image img,
.work-news .blog-card__image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-news .blog-card__image-placeholder {
  background: var(--color-off, #f8f7f5);
}
.work-news .blog-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 24px;
}
.work-news .blog-card__title {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.3px;
  margin-bottom: 18px;
  flex: 1;
}
.work-news .blog-card__title a {
  color: var(--color-black, #141414);
  text-decoration: none;
  transition: color 0.18s;
}
.work-news .blog-card__title a:hover {
  color: var(--color-red, #ed1c24);
}
.work-news .blog-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-red, #ed1c24);
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.18s;
}
.work-news .blog-card__read-more:hover {
  gap: 14px;
}

@media (max-width: 1024px) {
  .work-news .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .work-news .blog-grid {
    grid-template-columns: 1fr;
  }
}
