/* =========================================================================
   Divad — Service Detail pages (Figma 369:9160 + 3 siblings)
   Shared interior patterns live in interior.css; this file holds the
   service-detail-specific sections (hero overlay, editorial, equipment
   bento, projects gallery, dark CTA card).
   ========================================================================= */

/* ---- Hero: content LEFT (magenta eyebrow + color-split title), image RIGHT
        with a magenta "Precision Grade" badge top-left of the image --------- */
.service-detail-hero__eyebrow {
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: 1.25rem;
  background: var(--accent);
}

.site-main--service-detail .interior-hero__title .accent {
  color: var(--accent);
}

/* Secondary button (Figma "White Button") — white fill, brand text, full
   border + magenta underline; the inverse of the primary Request Quote button. */
.service-detail-hero__portfolio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--button-padding-y, 0.875rem) var(--button-padding-x, 1.75rem);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: #ffffff;
  border: 1px solid transparent;
  border-bottom: 4px solid var(--button-underline, #ff0080);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.service-detail-hero__portfolio:hover,
.service-detail-hero__portfolio:focus-visible {
  background: var(--button-underline, #ff0080);
  border-color: var(--button-underline, #ff0080);
  color: #ffffff;
}

/* Primary hero button — uppercase to match the design and the site's CTAs. */
.site-main--service-detail .interior-hero__actions .btn-layout.default {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.service-detail-hero__media {
  position: relative;
}

/* Looping hero video fills the media box exactly like the hero image
   (.interior-hero__media img in interior.css). */
.service-detail-hero__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-detail-hero__tag {
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  padding: 0.5rem 1.125rem;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
}

/* ---- Capabilities editorial: title/list left + paragraphs/specs right --- */
.service-detail-editorial__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.service-detail-editorial .interior-section__title {
  text-align: left;
}

.service-detail-editorial__tags {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.service-detail-editorial__tags li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.service-detail-editorial__bullet {
  width: 12px;
  height: 12px;
  background: var(--accent);
}

.service-detail-editorial__content-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.service-detail-editorial__text-col {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.service-detail-editorial__para {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-light);
}

.service-detail-editorial__specs {
  margin-top: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border, #e2e2e2);
  background: #ffffff;
}

.service-detail-editorial__specs-title {
  margin: 0 0 0.875rem;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.service-detail-editorial__specs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.spec-tag {
  padding: 0.375rem 0.75rem;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* ---- Core Strengths cards: white card, magenta left accent, icon on top --- */
.sd-strength-card {
  position: relative;
  background: #ffffff;
  border: none;
  border-radius: 0; /* Figma: flat, sharp corners */
  padding: clamp(1.5rem, 2.5vw, 2rem);
  text-align: left;
}

/* Flat cards — no hover lift/shadow from the base .interior-card. */
.sd-strength-card:hover {
  transform: none;
  box-shadow: none;
}

.sd-strength-card__icon {
  display: inline-flex;
  margin-bottom: 1.1rem;
}

.sd-strength-card__icon img {
  display: block;
  width: 30px;
  height: 30px;
}

.sd-strength-card .interior-card__title {
  text-transform: uppercase;
}

/* Head is left-aligned (Figma), not centered like the default section head.
   Targets the existing markup ([aria-label="Core Strengths"]) so it applies
   regardless of page-HTML caching, plus the .sd-strength-head class. */
.sd-strength-head,
[aria-label="Core Strengths"] .interior-section__head {
  max-width: none;
  margin-inline: 0;
  text-align: left;
}

/* Left accent bar fades across the three cards: magenta → section bg → none. */
.sd-strength-cards .sd-strength-card:first-child {
  border-left: 4px solid var(--accent);
}
.sd-strength-cards .sd-strength-card:nth-child(2) {
  background: none
}

/* ---- Equipment showcase: dark section, bento grid ----------------------- */
.service-detail-equipment {
  background: #1a1c1c;
  color: #ffffff;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.service-detail-equipment .interior-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  text-align: left;
}

.service-detail-equipment .interior-section__title {
  color: #ffffff;
  text-align: left;
  margin: 0;
}

.service-detail-equipment .interior-section__lead {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.service-detail-equipment__grid {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.service-detail-equipment__card {
  position: relative;
  display: block;
  background: #1a1c1c;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.service-detail-equipment__card--feature {
  grid-row: span 1;
}

.service-detail-equipment__media {
  height: clamp(300px, 26vw, 430px);
  overflow: hidden;
}

.service-detail-equipment__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Name + role sit over the bottom of the image on a single flat black overlay
   at reduced opacity (no gradient), covering only the strip the text needs. */
.service-detail-equipment__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.85);
}

.service-detail-equipment__name {
  margin: 0 0 0.25rem;
  font-family: var(--font-heading);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
  color: #f9f9f9;
}

.service-detail-equipment__role {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b05491;
}

/* Projects & Proof gallery and the "Ready to Start" CTA are rendered by shared
   template-parts (template-parts/projects-proof.php + template-parts/ready-cta.php);
   their styles live in shared.css. No service-detail overrides needed. */

/* ===== Responsive ======================================================== */
@media (max-width: 1399px) {
  /* laptop fine-tuning */
}

@media (max-width: 991px) {
  .service-detail-editorial__inner {
    grid-template-columns: 1fr;
  }

  .service-detail-equipment .interior-section__head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .service-detail-equipment__grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-detail-equipment__card--feature {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .service-detail-editorial__content-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .service-detail-equipment__grid {
    grid-template-columns: 1fr;
  }

  .service-detail-equipment__card--feature {
    grid-column: span 1;
  }
}
