/* ============================================================
   AI Implementation & Training — page-scoped styles
   Enqueued via functions.php only when:
   is_page_template( 'page-ai-implementation.php' )
   ============================================================ */

/* ── Layout reset for custom template ── */
body.page-template-page-ai-implementation #inner-wrap {
  padding-top: 0;
  padding-bottom: 0;
}

/* ── Page container ── */
.dl-ai-page {
  font-family: var(--dl-font-body);
  color: #111110;
}

/* ── Shared: inner content width ── */
.dl-ai-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
  box-sizing: border-box;
}

/* ── Shared: teal accent bar (36×3px) ── */
.dl-ai-bar {
  display: block;
  width: 36px;
  height: 3px;
  background: var(--dl-teal);
  border: none;
  margin-bottom: 14px;
}

/* ── Shared: section eyebrow ── */
.dl-ai-eyebrow {
  display: block;
  font-family: var(--dl-font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dl-teal-dark);
  margin-bottom: 16px;
}
.dl-ai-eyebrow--light { color: var(--dl-teal); }

/* ── Shared: H2 base ── */
.dl-ai-h2 {
  font-family: var(--dl-font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #111110;
  margin: 0;
}

/* ── Shared: pivot / teal-dark emphasis ── */
/* .dl-ai-pivot keeps the hardcoded template working;
   em inside point text handles ACF-authored content. */
.dl-ai-pivot,
.dl-ai-point__text em {
  color: var(--dl-teal-dark);
  font-style: normal;
}

/* ── Shared: CTA button ── */
.dl-ai-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--dl-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111110 !important;
  background: var(--dl-teal);
  border: none;
  border-radius: 2px;
  padding: 16px 26px;
  text-decoration: none !important;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease;
  box-shadow: none !important;
}
.dl-ai-btn:hover,
.dl-ai-btn:active {
  background: var(--dl-teal-dark);
  color: #111110 !important;
  box-shadow: none !important;
}
.dl-ai-btn:focus-visible {
  outline: 2px solid var(--dl-teal);
  outline-offset: 2px;
}

/* ============================================================
   Section 1 — Hero (dark)
   ============================================================ */
.dl-ai-hero {
  background: #111110;
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dl-ai-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.dl-ai-hero .dl-ai-inner {
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.dl-ai-breadcrumb {
  font-family: var(--dl-font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 52px;
}
.dl-ai-breadcrumb a {
  color: rgba(255, 255, 255, 0.45) !important;
  text-decoration: none !important;
}
.dl-ai-breadcrumb a:hover { color: rgba(255, 255, 255, 0.7) !important; }
.dl-ai-breadcrumb__sep {
  margin: 0 8px;
  opacity: 0.4;
}
.dl-ai-breadcrumb__active { color: var(--dl-teal); }

/* Number mark */
.dl-ai-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.dl-ai-mark__bar {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--dl-teal);
  flex-shrink: 0;
}
.dl-ai-mark__label {
  font-family: var(--dl-font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dl-teal);
}

/* H1 */
.dl-ai-h1 {
  font-family: var(--dl-font-display);
  font-weight: 800;
  font-size: clamp(44px, 6.4vw, 82px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: #F9F8F5;
  margin: 0 0 32px;
  max-width: 900px;
}
.dl-ai-h1 em {
  font-style: normal;
  color: var(--dl-teal);
}

/* Sub headline */
.dl-ai-hero-sub {
  font-family: var(--dl-font-body);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 300;
  color: var(--dl-gray-mid);
  max-width: 620px;
  line-height: 1.65;
  margin: 0 0 40px;
}
.dl-ai-hero-sub strong {
  color: #F9F8F5;
  font-weight: 400;
}

/* FadeUp — hero elements only, fires on page load */
@keyframes dl-ai-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dl-ai-fade { animation: dl-ai-fade-up 0.7s ease-out both; }
.dl-ai-fade:nth-child(1) { animation-delay:   0ms; }
.dl-ai-fade:nth-child(2) { animation-delay: 100ms; }
.dl-ai-fade:nth-child(3) { animation-delay: 200ms; }
.dl-ai-fade:nth-child(4) { animation-delay: 300ms; }
.dl-ai-fade:nth-child(5) { animation-delay: 400ms; }

/* ============================================================
   Section 2 — The Problem (paper-2)
   ============================================================ */
.dl-ai-problem {
  background: var(--dl-off-white);
  padding: 96px 0;
  border-bottom: 1px solid var(--dl-gray-light);
}

.dl-ai-problem-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
  margin-top: 4px;
}

.dl-ai-problem-left .dl-ai-h2 { max-width: 420px; }

/* Points */
.dl-ai-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 28px 0;
}
.dl-ai-point:first-child { padding-top: 0; }
.dl-ai-point:last-child  { padding-bottom: 0; }
.dl-ai-point + .dl-ai-point { border-top: 1px solid var(--dl-gray-light); }

.dl-ai-point__marker {
  font-family: var(--dl-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--dl-teal-dark);
  min-width: 28px;
  padding-top: 3px;
  flex-shrink: 0;
}

.dl-ai-point__text {
  font-family: var(--dl-font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.55;
  color: #111110;
  margin: 0;
}

/* ============================================================
   Section 3 — What I Do (paper)
   ============================================================ */
.dl-ai-what {
  background: var(--dl-white);
  padding: 96px 0;
  border-bottom: 1px solid var(--dl-gray-light);
}

.dl-ai-what-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 48px;
}

.dl-ai-what-note {
  max-width: 320px;
  font-family: var(--dl-font-body);
  font-size: 13px;
  line-height: 1.65;
  color: var(--dl-gray-mid);
  border-left: 3px solid var(--dl-teal);
  padding-left: 16px;
  flex-shrink: 0;
  align-self: flex-end;
}

/* 2×2 card */
.dl-ai-services-card {
  border: 1px solid var(--dl-gray-light);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.dl-ai-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.dl-ai-cell {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid var(--dl-gray-light);
  border-bottom: 1px solid var(--dl-gray-light);
}
.dl-ai-cell:nth-child(2n) { border-right: none; }
.dl-ai-cell:nth-child(3),
.dl-ai-cell:nth-child(4)  { border-bottom: none; }

.dl-ai-cell__icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: rgba(0, 194, 168, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dl-ai-cell__icon img {
  width: 20px;
  height: 20px;
  display: block;
  filter: invert(56%) sepia(68%) saturate(452%) hue-rotate(131deg) brightness(92%) contrast(101%);
}

.dl-ai-cell__title {
  font-family: var(--dl-font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #111110;
  margin: 0;
}

.dl-ai-cell__body {
  font-family: var(--dl-font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--dl-gray-dark);
  margin: 0;
  flex: 1;
}

.dl-ai-cell__tag {
  margin-top: auto;
  font-family: var(--dl-font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--dl-teal-dark);
}

/* ============================================================
   Section 4 — How It Works (dark)
   ============================================================ */
.dl-ai-how {
  background: #111110;
  padding: 96px 0;
}

.dl-ai-how .dl-ai-bar { margin-bottom: 14px; }

.dl-ai-how .dl-ai-h2 {
  color: #F9F8F5;
  max-width: 700px;
  margin-top: 0;
  margin-bottom: 56px;
}

.dl-ai-steps { margin-top: 0; }

.dl-ai-step {
  display: grid;
  grid-template-columns: 180px 1fr 120px;
  gap: 48px;
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: start;
}
.dl-ai-step:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

.dl-ai-step__num {
  font-family: var(--dl-font-display);
  font-weight: 800;
  font-size: clamp(80px, 10vw, 128px);
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--dl-teal);
  opacity: 0.22;
  margin: 0;
  user-select: none;
}

.dl-ai-step__title {
  font-family: var(--dl-font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.025em;
  color: #F9F8F5;
  margin: 0 0 12px;
}

.dl-ai-step__body {
  font-family: var(--dl-font-body);
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  max-width: 520px;
}

.dl-ai-step__timing { text-align: right; }

.dl-ai-step__timing-label {
  display: block;
  font-family: var(--dl-font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 6px;
}

.dl-ai-step__timing-value {
  font-family: var(--dl-font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--dl-teal);
}

/* ============================================================
   Section 5 — Lunch & Learn (paper)
   ============================================================ */
.dl-ai-lunch {
  background: var(--dl-white);
  padding: 96px 0;
  border-bottom: 1px solid var(--dl-gray-light);
}

.dl-ai-lunch-card {
  border: 1px solid var(--dl-gray-light);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 48px;
}

/* Dark header */
.dl-ai-lunch-dark {
  background: #111110;
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: flex-end;
}

.dl-ai-lunch-eyebrow {
  display: block;
  font-family: var(--dl-font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dl-teal);
  margin-bottom: 12px;
}

.dl-ai-lunch-title {
  font-family: var(--dl-font-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #F9F8F5;
  margin: 0;
}

.dl-ai-lunch-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.dl-ai-lunch-badge {
  font-family: var(--dl-font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}
.dl-ai-lunch-badge--active { color: var(--dl-teal); }

/* Light body */
.dl-ai-lunch-light {
  background: #fff;
  padding: 36px 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.dl-ai-lunch-pill {
  display: inline-flex;
  font-family: var(--dl-font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dl-teal-dark);
  background: rgba(0, 194, 168, 0.12);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 14px;
}

.dl-ai-lunch-desc {
  font-family: var(--dl-font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--dl-gray-dark);
  margin: 0;
  max-width: 480px;
}

.dl-ai-lunch-cta { padding: 16px 30px; }

/* ============================================================
   Section 6 — Credibility (paper-2)
   ============================================================ */
.dl-ai-cred {
  background: var(--dl-off-white);
  padding: 72px 0;
}

.dl-ai-cred-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 32px;
}

.dl-ai-cred-quote {
  font-family: var(--dl-font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #111110;
  max-width: 480px;
  margin: 0 0 24px;
}
.dl-ai-cred-quote em {
  font-style: normal;
  color: var(--dl-teal-dark);
}

.dl-ai-cred-link {
  font-family: var(--dl-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dl-teal-dark) !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--dl-teal);
  padding-bottom: 2px;
}
.dl-ai-cred-link:hover { opacity: 0.75; }
.dl-ai-cred-link:focus-visible {
  outline: 2px solid var(--dl-teal);
  outline-offset: 2px;
}

.dl-ai-cred-logos-label {
  font-family: var(--dl-font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dl-gray-mid);
  margin: 0 0 20px;
}

.dl-ai-cred-logos {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.dl-ai-cred-logo {
  font-family: var(--dl-font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--dl-gray-dark);
  display: inline-flex;
  align-items: baseline;
  text-decoration: none !important;
}

.dl-ai-cred-logo__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dl-teal);
  margin-left: 2px;
  vertical-align: middle;
  position: relative;
  top: -9px;
  flex-shrink: 0;
}

/* ============================================================
   Responsive — 900px breakpoint
   ============================================================ */
@media (max-width: 900px) {

  .dl-ai-inner { padding-left: 24px; padding-right: 24px; }

  .dl-ai-hero    { padding: 100px 0 80px; }

  .dl-ai-problem,
  .dl-ai-what,
  .dl-ai-how,
  .dl-ai-lunch   { padding: 56px 0; }

  .dl-ai-cred    { padding: 56px 0; }

  /* Problem: stack */
  .dl-ai-problem-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* What I Do: stack header note */
  .dl-ai-what-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .dl-ai-what-note { max-width: 100%; }

  /* Services: single column */
  .dl-ai-services-grid { grid-template-columns: 1fr; }
  .dl-ai-cell:nth-child(2n) { border-right: none; }
  .dl-ai-cell:nth-child(n)  { border-right: none; border-bottom: 1px solid var(--dl-gray-light); }
  .dl-ai-cell:last-child    { border-bottom: none; }

  /* Steps: single column, numeral on top */
  .dl-ai-step {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .dl-ai-step__num  { font-size: 72px; order: -1; }
  .dl-ai-step__timing { text-align: left; order: 3; }
  .dl-ai-step__content { order: 2; }

  /* Lunch & Learn dark header: stack */
  .dl-ai-lunch-dark {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: flex-start;
  }
  .dl-ai-lunch-badges { align-items: flex-start; }

  /* Lunch & Learn light: stack */
  .dl-ai-lunch-light {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .dl-ai-lunch-cta { align-self: flex-start; }

  /* Credibility: stack */
  .dl-ai-cred-grid { grid-template-columns: 1fr; gap: 40px; }

}
