/* ================================================================
   Detail pages — expertise story layout
   Extends style.css (always load both)
================================================================ */

/* ── Detail Hero ──────────────────────────────────────────────── */
.detail-hero {
  padding: 8rem 0 4.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}

.detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,149,42,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,149,42,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 100% at 30% 50%, black 0%, transparent 100%);
}

.detail-hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,149,42,.07) 0%, transparent 70%);
  pointer-events: none;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  transition: color var(--transition);
  position: relative;
  z-index: 1;
}

.detail-back::before {
  content: '←';
  font-size: .85rem;
  transition: transform var(--transition);
}

.detail-back:hover {
  color: var(--gold);
}

.detail-back:hover::before {
  transform: translateX(-3px);
}

.detail-hero .section-label {
  display: block;
  margin-bottom: .75rem;
  position: relative;
  z-index: 1;
}

.detail-hero h1 {
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.detail-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ── Detail Body ──────────────────────────────────────────────── */
.detail-body {
  background: var(--navy);
  padding: 5rem 0 6rem;
}

.detail-container {
  max-width: 760px;
}

.detail-container p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.detail-container p:last-child {
  margin-bottom: 0;
}

.detail-container h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 3.5rem 0 1rem;
}

.detail-container h3 {
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2.5rem 0 .5rem;
}

/* ── Callout / Pull Quote ─────────────────────────────────────── */
.callout {
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.75rem;
  margin: 2.5rem 0;
  background: rgba(201,149,42,.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout p {
  font-size: 1.15rem !important;
  font-style: italic;
  color: var(--off-white) !important;
  margin-bottom: 0 !important;
  line-height: 1.7;
}

/* ── Cert badges ──────────────────────────────────────────────── */
.cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 1rem 0 2rem;
}

.cert-badge {
  display: inline-block;
  padding: .28rem .75rem;
  background: rgba(201,149,42,.1);
  border: 1px solid rgba(201,149,42,.25);
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* ── Related work ─────────────────────────────────────────────── */
.detail-related {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.detail-related > h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-top: 0 !important;
  margin-bottom: 1.5rem !important;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.related-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
  text-decoration: none;
}

.related-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
}

.related-type {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}

.related-title {
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.45;
}

.related-arrow {
  display: inline-block;
  font-size: .8rem;
  color: var(--gold);
  margin-top: .75rem;
  transition: transform var(--transition);
}

.related-card:hover .related-arrow {
  transform: translateX(4px);
}

/* ── CTA bar ──────────────────────────────────────────────────── */
.detail-cta {
  text-align: center;
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
  border-top: 1px solid var(--border);
}

.detail-cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.detail-cta p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 auto 2rem;
  max-width: 520px;
  line-height: 1.7;
}

.detail-cta .btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .detail-hero { padding: 7rem 0 3.5rem; }
  .detail-body { padding: 4rem 0 5rem; }
  .detail-container p { font-size: 1rem; }
  .callout p { font-size: 1.05rem !important; }
}
