/* ============================================================
   subpage.css — Shared styles for service and portfolio subpages
   KT SERVICE
   ============================================================ */

/* ── Subpage Hero ───────────────────────────────────────────── */
.subpage-hero {
  padding: 120px 0 80px;
  background: linear-gradient(160deg, #080808 0%, #111111 50%, #1a1a1a 100%);
}
.subpage-hero h1 {
  color: #fff;
  margin-bottom: 14px;
  max-width: 820px;
}
.subpage-hero p {
  color: rgba(255,255,255,0.70);
  font-size: 1.1rem;
  max-width: 640px;
  line-height: 1.65;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}
.breadcrumb a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: rgba(255,255,255,0.75); }

/* ── Service page content area ──────────────────────────────── */
.service-page main {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
}

/* ── Service badge ──────────────────────────────────────────── */
.service-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

/* ── Section title with red left border ─────────────────────── */
.section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #1a1a1a;
  border-left: 4px solid var(--red);
  padding-left: 16px;
  margin: 60px 0 28px;
  line-height: 1.3;
}
.section-title:first-of-type { margin-top: 0; }

/* ── Intro prose ────────────────────────────────────────────── */
.service-lead {
  font-size: 1.08rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.75;
  margin-bottom: 20px;
}
.service-prose {
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: 0.975rem;
}

/* ── Numbered step list ─────────────────────────────────────── */
.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.step-list li {
  counter-increment: step-counter;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 22px 24px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.step-list li:hover {
  box-shadow: var(--shadow);
}
.step-list li::before {
  content: counter(step-counter);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}
.step-list .step-content { flex: 1; }
.step-list .step-title {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 0.975rem;
  margin-bottom: 4px;
}
.step-list .step-desc {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── FAQ accordion ──────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item[open] {
  box-shadow: var(--shadow);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--red);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--transition);
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-answer {
  padding: 0 22px 18px;
  color: var(--text-mid);
  font-size: 0.925rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ── Sector chips ───────────────────────────────────────────── */
.sector-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.sector-chip {
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 50px;
  transition: all var(--transition);
}
.sector-chip:hover {
  background: #fff;
  border-color: var(--red);
  color: var(--red);
}

/* ── CTA block ──────────────────────────────────────────────── */
.cta-block {
  background: var(--navy);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  margin: 64px 0 0;
}
.cta-block p {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* ── Process steps (horizontal on desktop) ──────────────────── */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
}
.process-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 28px;
}
.process-step:last-child { padding-bottom: 0; }
.process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--red) 0%, var(--border) 100%);
  opacity: 0.4;
}
.process-step-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  z-index: 1;
}
.process-step-body { flex: 1; padding-top: 7px; }
.process-step-title {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 0.975rem;
  margin-bottom: 4px;
}
.process-step-desc {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.6;
}
.process-step-duration {
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 600;
  margin-top: 4px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (min-width: 768px) {
  .process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0 16px;
    position: relative;
  }
  .process-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 0;
  }
  .process-step:not(:last-child)::before {
    left: auto;
    right: -8px;
    top: 19px;
    bottom: auto;
    width: 16px;
    height: 2px;
  }
}

@media (max-width: 600px) {
  .service-page main { padding: 48px 16px; }
  .section-title { font-size: 1.2rem; }
  .cta-block { padding: 40px 20px; }
  .step-list li { flex-direction: row; padding: 16px 16px; gap: 14px; }
  .process-steps { grid-template-columns: 1fr; }
}
