/* Service page — Firmware Development */

:root {
  --color-orange: #e8622a;
  --color-orange-soft: #fff1ea;
  --color-navy-tag: #1a3a6b;
  --color-navy-title: #0d1b3e;
  --color-text-body: #6b7280;
  --color-panel: #f3f5f8;
  --color-card-border: #e2e8f0;
}

/* ---------- Page Hero ---------- */
.page-hero {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 64px var(--page-pad) 80px;
  background: var(--color-navy);
  color: var(--color-white);
}

.page-hero__crumb {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

.page-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.15;
  color: var(--color-white);
}

.page-hero__desc {
  max-width: 900px;
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 30px;
  color: var(--color-text-muted);
}

/* ---------- Service Detail ---------- */
.service-detail {
  background: var(--color-white);
  padding: 72px 0 96px;
}

.service-detail__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 56px;
}

.service-detail__eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--color-orange);
}

.service-detail__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 36px);
  color: var(--color-navy-title);
}

.service-detail__layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.service-detail__media {
  flex: 0 0 min(780px, 46%);
  width: min(780px, 46%);
}

.service-detail__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.service-detail__content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- Info Box ---------- */
.info-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: var(--color-panel);
  border-radius: 8px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  background: var(--color-navy-tag);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  color: var(--color-white);
  white-space: nowrap;
}

.info-row__text {
  flex: 1 1 0;
  min-width: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-body);
}

/* ---------- Scope Tiles ---------- */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.scope-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  text-align: center;
}

.scope-tile__icon {
  width: 48px;
  height: 48px;
}

.scope-tile__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scope-tile__title {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-navy-title);
}

.scope-tile__desc {
  font-size: 12px;
  color: var(--color-text-body);
}

/* ---------- Deliverables Band ---------- */
.deliverables-band {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px;
  background: var(--color-navy-title);
  border-radius: 8px;
}

.deliverables-band__title {
  font-weight: 700;
  font-size: 20px;
  color: var(--color-white);
}

.deliverables-band__row {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
}

.deliverables-band__label {
  flex: 0 0 160px;
  width: 160px;
  font-weight: 700;
  color: var(--color-orange);
}

.deliverables-band__value {
  font-weight: 400;
  color: var(--color-white);
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .service-detail__layout {
    flex-direction: column;
  }

  .service-detail__media {
    flex: none;
    width: 100%;
    max-width: 640px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding-top: 48px;
    padding-bottom: 56px;
    gap: 20px;
  }

  .page-hero__desc {
    font-size: 16px;
    line-height: 26px;
  }

  .service-detail {
    padding: 48px 0 64px;
  }

  .service-detail__head {
    margin-bottom: 32px;
  }

  .info-row {
    flex-direction: column;
    gap: 8px;
  }

  .scope-grid {
    grid-template-columns: 1fr;
  }

  .deliverables-band {
    padding: 28px 24px;
  }

  .deliverables-band__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .deliverables-band__label {
    flex: none;
    width: auto;
  }
}
