/* =========================================================
   Pournak — detail page (detail.html)
   Builds on css/styles.css (variables, .btn, .container).
   ========================================================= */

.detail-page { background: var(--bg, #fff); }

/* ---------- Hero ---------- */
.dhero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--charcoal); }
.dhero__media { position: absolute; inset: 0; z-index: 0; }
.dhero__video { width: 100%; height: 100%; object-fit: cover; filter: brightness(.5); }
.dhero__icon { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--charcoal-800, #202020), var(--teal-600)); }
.dhero__icon .ico { width: 84px; height: 84px; color: rgba(255,255,255,.9); }
.dhero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,18,18,.92) 8%, rgba(18,18,18,.5) 45%, rgba(18,18,18,.35)); }
.dhero__content { position: relative; z-index: 2; color: #fff; padding-block: 120px 54px; max-width: 900px; }

.dcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 22px; }
.dcrumb a { color: rgba(255,255,255,.7); }
.dcrumb a:hover { color: #fff; }
.dcrumb__here { color: var(--teal-300); }

.dhero__eyebrow {
  display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(13,146,118,.2); border: 1px solid rgba(13,146,118,.5); color: var(--mint); margin-bottom: 18px;
}
.dhero__title { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.18; letter-spacing: -.015em; }
.dhero__lead { margin-top: 18px; font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: rgba(255,255,255,.86); max-width: 680px; line-height: 1.9; }
.dhero__actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Body layout ---------- */
.dbody { padding-block: 64px 20px; }
.dbody__grid { display: grid; grid-template-columns: 1fr 330px; gap: 48px; align-items: start; }
.dbody__aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; }

.dsection { margin-bottom: 44px; }
.dsection__title { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: 22px; letter-spacing: -.01em; }
.dintro p { color: var(--muted); font-size: 1.05rem; line-height: 2.05; margin-bottom: 16px; }

/* Features / responsibilities */
.dfeatures { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dfeature {
  display: flex; gap: 14px; align-items: flex-start; background: var(--bg-soft, #f4faf7);
  border: 1px solid var(--line, #e6ece9); border-radius: 16px; padding: 20px;
}
.dfeature .ico { width: 26px; height: 26px; color: var(--teal); flex: none; margin-top: 2px; }
.dfeature h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; }
.dfeature p { color: var(--muted); font-size: .92rem; line-height: 1.7; }

/* Process steps */
.dsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dstep {
  display: flex; gap: 18px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line, #e6ece9); border-radius: 16px; padding: 20px 22px;
  position: relative;
}
.dstep__n {
  font-family: var(--font-lat, sans-serif); font-weight: 800; font-size: 1.05rem;
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--mint); color: var(--teal);
}
.dstep h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.dstep p { color: var(--muted); font-size: .93rem; line-height: 1.7; }

/* Specs */
.dspecs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dspec {
  background: var(--bg-soft, #f4faf7); border: 1px solid var(--line, #e6ece9);
  border-radius: 14px; padding: 16px 18px;
}
.dspec dt { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.dspec dd { margin: 0; font-size: 1.02rem; font-weight: 700; color: var(--ink, #16211d); }

/* ---------- Aside cards ---------- */
.dcta-card {
  background: var(--charcoal); color: #fff; border-radius: 20px; padding: 26px 24px;
  box-shadow: var(--shadow-md);
}
.dcta-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.dcta-card p { color: rgba(255,255,255,.75); font-size: .92rem; line-height: 1.8; margin-bottom: 18px; }
.dcta-card__channels { display: flex; gap: 10px; margin-top: 14px; }
.dcta-card__channels a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; border-radius: 12px; font-size: .85rem; font-weight: 700; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); transition: background .3s;
}
.dcta-card__channels a:hover { background: rgba(255,255,255,.16); }
.dcta-card__channels .ico { width: 18px; height: 18px; }

.drelated {
  background: #fff; border: 1px solid var(--line, #e6ece9); border-radius: 20px; padding: 22px 22px 12px;
  box-shadow: var(--shadow-sm);
}
.drelated__title { font-size: 1.05rem; font-weight: 800; margin-bottom: 12px; }
.drelated__item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 6px; border-top: 1px solid var(--line, #eef2f0); font-weight: 600; font-size: .95rem; color: var(--ink, #16211d);
}
.drelated__item:first-of-type { border-top: none; }
.drelated__item .ico { width: 18px; height: 18px; color: var(--teal); transition: transform .3s var(--ease); }
.drelated__item:hover { color: var(--teal); }
.drelated__item:hover .ico { transform: translateX(-4px); }

/* ---------- Empty state ---------- */
.detail-empty { padding: 160px 0 120px; text-align: center; }
.detail-empty h1 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.detail-empty p { color: var(--muted); margin-bottom: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .dbody__grid { grid-template-columns: 1fr; gap: 32px; }
  .dbody__aside { position: static; }
  .dfeatures, .dspecs { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dhero__content { padding-block: 100px 40px; }
}
