/* ==========================================================================
   ELM-O-SANAT DEPARTMENT DETAIL MASTER STYLESHEET
   Maybach Obsidian Craft | Process Workflow | Required Docs | FAQ | Simulators
   ========================================================================== */

.dept-page-body {
  background-color: var(--bg-deep-void);
  background-image:
    radial-gradient(ellipse 80% 45% at 50% 0%, #09172e 0%, #030812 48%, #02050b 100%),
    linear-gradient(rgba(227, 193, 110, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 193, 110, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
  color: var(--text-pure);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 84px;
}

.dept-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumbs */
.dept-breadcrumb-nav {
  padding: 18px 0;
  border-bottom: 1px solid rgba(227, 193, 110, 0.12);
  background: rgba(3, 6, 12, 0.65);
  backdrop-filter: blur(10px);
}

.dept-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  font-size: 0.83rem;
  color: var(--text-subtle);
}

.dept-breadcrumbs a {
  color: var(--gold-200);
  text-decoration: none;
  transition: color 0.2s ease;
}

.dept-breadcrumbs a:hover {
  color: var(--text-pure-white);
}

.dept-breadcrumbs .sep {
  color: rgba(227, 193, 110, 0.35);
}

/* Department Hero */
.dept-hero {
  padding: 48px 0 42px;
  position: relative;
}

.dept-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
}

.dept-hallmark-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-300);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.dept-title-main {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dept-lead-text {
  font-size: 1.04rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.dept-strategic-box {
  background: rgba(212, 166, 68, 0.06);
  border: 1px solid var(--hairline-gold);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-pure);
}

.dept-strategic-box strong {
  color: var(--gold-200);
  font-weight: 800;
}

.dept-visual-card {
  background: linear-gradient(155deg, rgba(12, 23, 43, 0.85) 0%, rgba(4, 8, 16, 0.95) 100%);
  border: 1px solid var(--hairline-gold);
  border-radius: 22px;
  padding: 32px 26px;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(251, 243, 222, 0.1),
    0 24px 56px rgba(0, 0, 0, 0.8);
}

.dept-visual-icon {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  background: var(--gradient-gold-soft);
  border: 1px solid var(--hairline-gold-active);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-200);
}

.dept-stat-meta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--gold-200);
  font-weight: 600;
}

/* KPI / SLA Executive Strip */
.dept-sla-strip {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 18px 22px;
  background: rgba(6, 12, 23, 0.78);
  border: 1px solid var(--hairline-gold);
  border-radius: 18px;
}

.dept-sla-item {
  text-align: center;
  padding: 4px 10px;
  position: relative;
}

.dept-sla-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 16%;
  height: 68%;
  width: 1px;
  background: rgba(227, 193, 110, 0.18);
}

.dept-sla-val {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-200);
  font-variant-numeric: tabular-nums;
  margin-bottom: 3px;
}

.dept-sla-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Core Service Pillars */
.dept-pillars-section {
  padding: 58px 0;
  border-top: 1px solid rgba(227, 193, 110, 0.1);
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: var(--text-pure-white);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.dept-grid-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-pillar-card {
  --mx: 50%;
  --my: 0%;
  background:
    radial-gradient(400px circle at var(--mx) var(--my), rgba(227, 193, 110, 0.09), transparent 65%),
    linear-gradient(155deg, rgba(10, 20, 38, 0.82) 0%, rgba(4, 8, 16, 0.94) 100%);
  border: 1px solid var(--hairline-gold);
  border-radius: 18px;
  padding: 26px;
  transition: transform 0.35s var(--ease-maybach), border-color 0.35s var(--ease-maybach);
  position: relative;
  overflow: hidden;
}

.service-pillar-card:hover {
  transform: translate3d(0, -4px, 0);
  border-color: var(--hairline-gold-active);
}

.pillar-number {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold-300);
  display: inline-block;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.pillar-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-pure-white);
  margin-bottom: 10px;
}

.pillar-desc {
  font-size: 0.89rem;
  line-height: 1.82;
  color: var(--text-muted);
}

/* Interactive Simulator Section */
.dept-interactive-section {
  padding: 60px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 13, 25, 0.9) 50%, transparent 100%);
  border-top: 1px solid rgba(227, 193, 110, 0.1);
  border-bottom: 1px solid rgba(227, 193, 110, 0.1);
}

.widget-glass-box {
  background: linear-gradient(155deg, rgba(10, 20, 38, 0.9) 0%, rgba(3, 6, 12, 0.96) 100%);
  border: 1px solid var(--hairline-gold-active);
  border-radius: 22px;
  padding: 34px;
  box-shadow:
    inset 0 1px 0 rgba(251, 243, 222, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.85);
}

/* Shared Simulator Form Helpers (Used across Dept Simulators) */
.calc-slider-group {
  margin-bottom: 18px;
}

.calc-slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-200);
  margin-bottom: 8px;
}

.calc-range {
  width: 100%;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  accent-color: var(--gold-300);
  cursor: pointer;
}

.sim-select {
  width: 100%;
  padding: 11px 14px;
  background: rgba(2, 5, 11, 0.88);
  border: 1px solid var(--hairline-gold);
  border-radius: 10px;
  color: var(--text-pure-white);
  font-family: var(--font-main);
  margin-top: 6px;
  outline: none;
}

.stat-metric-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.88rem;
}

.stat-metric-row:last-child {
  border-bottom: none;
}

/* Dynamic Domain Intelligence Sections (Injected cleanly by dept-shared.js) */
.dept-dossier-section {
  padding: 60px 0;
}

.dept-dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dossier-panel {
  background: linear-gradient(155deg, rgba(10, 20, 38, 0.78) 0%, rgba(4, 8, 16, 0.92) 100%);
  border: 1px solid var(--hairline-gold);
  border-radius: 20px;
  padding: 28px;
}

.dossier-panel h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-pure-white);
  margin-bottom: 6px;
}

.dossier-panel .sub {
  font-size: 0.84rem;
  color: var(--text-subtle);
  margin-bottom: 20px;
}

.workflow-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.workflow-step-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: rgba(2, 5, 11, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.workflow-step-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-gold-soft);
  border: 1px solid var(--hairline-gold);
  color: var(--gold-200);
  font-size: 0.84rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.workflow-step-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-pure-white);
  margin-bottom: 3px;
}

.workflow-step-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.required-docs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.required-doc-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(2, 5, 11, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 0.86rem;
  color: var(--text-platinum);
  line-height: 1.6;
}

.required-doc-item::before {
  content: '✓';
  color: var(--gold-300);
  font-weight: 800;
}

/* FAQ Accordion */
.dept-faq-section {
  padding: 20px 0 60px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(8, 16, 30, 0.72);
  border: 1px solid var(--hairline-gold);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.open {
  border-color: var(--hairline-gold-active);
}

.faq-question-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-pure-white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
}

.faq-toggle-icon {
  color: var(--gold-200);
  font-size: 1.15rem;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-maybach);
}

.faq-answer-inner {
  padding: 0 22px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Sibling Department Switcher */
.dept-switcher-strip {
  padding: 0 0 54px;
}

.dept-switcher-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.dept-switch-link {
  padding: 10px 12px;
  background: rgba(8, 16, 30, 0.65);
  border: 1px solid var(--hairline-gold);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.dept-switch-link span.num {
  color: var(--gold-300);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.dept-switch-link:hover,
.dept-switch-link.active {
  border-color: var(--hairline-gold-active);
  background: rgba(212, 166, 68, 0.14);
  color: var(--text-pure-white);
}

/* CTA Ribbon */
.dept-cta-ribbon {
  padding: 20px 0 80px;
  text-align: center;
}

.cta-box {
  background: linear-gradient(155deg, rgba(16, 30, 56, 0.86) 0%, rgba(5, 10, 20, 0.96) 100%);
  border: 1px solid var(--hairline-gold-active);
  border-radius: 22px;
  padding: 42px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

.cta-box h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 800;
  color: var(--text-pure-white);
  margin-bottom: 10px;
}

.cta-box p {
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 650px;
  margin: 0 auto 26px;
  line-height: 1.8;
}

.cta-buttons-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-dept-consult {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--gradient-gold);
  border: none;
  border-radius: 999px;
  color: #03070f;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.25s var(--ease-maybach), box-shadow 0.25s var(--ease-maybach);
  box-shadow: 0 10px 28px rgba(212, 166, 68, 0.3);
}

.btn-dept-consult:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(212, 166, 68, 0.48);
}

.btn-dept-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline-gold);
  border-radius: 999px;
  color: var(--text-pure);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-dept-back:hover {
  background: rgba(212, 166, 68, 0.14);
}

@media (max-width: 960px) {
  .dept-hero-grid,
  .dept-grid-cards,
  .dept-dossier-grid {
    grid-template-columns: 1fr;
  }
  .dept-sla-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .dept-sla-item:nth-child(2)::after {
    display: none;
  }
  .dept-switcher-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .widget-glass-box {
    padding: 20px 16px;
  }
  .dept-switcher-grid {
    grid-template-columns: 1fr;
  }
}
