/* assets/css/inspector.css
   Styles specific to the public inspector flow (/, /inspect,
   /inspection-complete, /corrective-action).
*/

.app-header {
  background: var(--hf-navy);
  color: white;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 3px solid var(--hf-gold);
}
.app-header .brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.app-header img.brand-mark {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}
.app-header .brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  min-width: 0;
}
.app-header .brand-text small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: #C9D6E4;
}
.app-header .btn-admin-header {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.app-header .btn-admin-header:hover,
.app-header .btn-admin-header:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 380px) {
  .app-header {
    padding: 12px;
  }
  .app-header .brand-text {
    font-size: 0.92rem;
  }
  .app-header .brand-text small {
    font-size: 0.68rem;
  }
  .app-header .btn-admin-header {
    padding: 7px 10px;
    font-size: 0.78rem;
  }
}

/* ---- Landing page ---- */
.hero {
  text-align: center;
  padding: 32px 16px 8px;
}
.hero img.hero-logo {
  width: 120px;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: 1.4rem;
}
.hero p {
  color: var(--hf-text-muted);
  max-width: 460px;
  margin: 0 auto 24px;
}
.landing-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
  padding: 0 16px;
}
.landing-secondary-links {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
}

/* ---- Progress indicator ---- */
.progress-wrap {
  padding: 14px 16px 0;
  max-width: var(--max-content-width);
  margin: 0 auto;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--hf-text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.progress-track {
  height: 8px;
  background: var(--hf-border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--hf-gold);
  border-radius: 999px;
  transition: width 0.25s ease;
}
.step-dots {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hf-border);
}
.step-dot.complete { background: var(--status-compliant); }
.step-dot.current { background: var(--hf-navy); }

/* ---- Question card ---- */
.question-card {
  border-left: 4px solid var(--hf-border);
}
.question-card.answered-compliant { border-left-color: var(--status-compliant); }
.question-card.answered-not-compliant { border-left-color: var(--status-not-compliant); }
.question-card.answered-not-applicable { border-left-color: var(--status-not-applicable); }

.question-number {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hf-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.question-text {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--hf-charcoal);
  margin-bottom: 4px;
}
.question-interpretation {
  font-size: 0.85rem;
  color: var(--hf-text-muted);
  background: var(--hf-bg);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 14px;
}
.question-help {
  font-size: 0.85rem;
  color: var(--hf-text-muted);
  margin-bottom: 14px;
}

.conditional-fields {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--hf-border);
}

/* Plain-language equipment expiration status, shown next to AED/fire-
   extinguisher date inputs. Text is always present (never color-only) so
   the state is clear even without relying on color perception. */
.expiration-note {
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 1.1em;
}
.expiration-note-ok { color: var(--status-compliant, #2E7D32); }
.expiration-note-soon { color: #8A6D00; }
.expiration-note-warn { color: #B45300; }
.expiration-note-expired { color: var(--status-not-compliant, #C0392B); }
.expiration-note-missing { color: var(--hf-text-muted); }

/* ---- Section step nav ---- */
.step-nav {
  position: sticky;
  bottom: var(--footer-height);
  background: var(--hf-white);
  border-top: 1px solid var(--hf-border);
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  z-index: 40;
  box-shadow: 0 -2px 8px rgba(27, 58, 92, 0.06);
}
.step-nav .btn { flex: 1; }

.autosave-indicator {
  text-align: center;
  font-size: 0.78rem;
  color: var(--hf-text-muted);
  padding: 6px 0 0;
}

/* ---- Review screen ---- */
.review-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hf-navy);
  margin: 20px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.review-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hf-border);
  font-size: 0.92rem;
}
.review-row:last-child { border-bottom: none; }
.review-row .review-q { flex: 1 1 auto; min-width: 120px; color: var(--hf-charcoal); }
.review-row .review-a { flex: 1 1 auto; min-width: 0; text-align: right; overflow-wrap: break-word; }

.findings-summary-card {
  border-left: 4px solid var(--status-not-compliant);
}
.finding-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--hf-border);
}
.finding-item:last-child { border-bottom: none; }
.finding-item .finding-q { font-weight: 700; color: var(--hf-charcoal); font-size: 0.92rem; }
.finding-item .finding-comment { font-size: 0.88rem; color: var(--hf-text-muted); margin-top: 2px; }

/* ---- Confirmation page ---- */
.confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--status-compliant-bg);
  color: var(--status-compliant);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}
