/**
 * TechnoSoluce static site — UI primitives & design tokens
 * ----------------------------------------------------------------------------
 * Load after Tailwind CDN (see includes/head-snippet.html).
 * New sections should prefer .ts-* primitives over one-off class strings.
 * Tokens mirror tailwind.config extended colors: tech-blue, ermits-navy, ermits-gold.
 *
 * CyberCaution baseline parity (ERMITS shared vocabulary):
 *   Button → .ts-btn-primary
 *   Card (tile) → .ts-path-card | Card (neutral) → .ts-callout--panel | Card (highlight) → .ts-callout--info
 *   Marketing shell → includes/header.html + includes/footer.html
 * Full mapping: docs/baseline-crosswalk.md § "Vocabulary mapping"
 */

:root {
  --ts-tech-blue: #0891b2;
  --ts-ermits-navy: #004b87;
  --ts-ermits-gold: #f4b400;
  --ts-max-w-container: 80rem;
  --ts-max-w-narrow: 64rem;
  --ts-radius-sm: 0.5rem;
  --ts-radius-md: 0.75rem;
  --ts-radius-lg: 1rem;
  --ts-sticky-header-offset: 7rem;
  --ts-shadow-sm: 0 1px 3px 0 rgba(0,0,0,.07), 0 1px 2px -1px rgba(0,0,0,.05);
  --ts-shadow-md: 0 4px 12px -2px rgba(0,0,0,.10), 0 2px 6px -2px rgba(0,0,0,.06);
  --ts-shadow-lg: 0 10px 28px -4px rgba(0,0,0,.12), 0 4px 10px -4px rgba(0,0,0,.07);
  --ts-shadow-blue: 0 4px 14px -2px rgba(8,145,178,.35);
}

/* -------------------------------------------------------------------------- */
/* Utilities                                                                   */
/* -------------------------------------------------------------------------- */

.ts-icon-inline {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

/* -------------------------------------------------------------------------- */
/* Layout                                                                      */
/* -------------------------------------------------------------------------- */

.ts-container {
  max-width: var(--ts-max-w-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .ts-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .ts-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.ts-container--narrow {
  max-width: var(--ts-max-w-narrow);
}

/* Breadcrumb + title strip (inner pages, below global header) */
.ts-page-header {
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,.04);
}

html.dark .ts-page-header {
  background-color: #111827;
  border-bottom-color: #374151;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,.15);
}

.ts-page-header--row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ts-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

html.dark .ts-breadcrumb {
  color: #9ca3af;
}

.ts-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ts-breadcrumb a:hover {
  color: var(--ts-tech-blue);
}

html.dark .ts-breadcrumb a:hover {
  color: #38bdf8;
}

.ts-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
  color: #111827;
  letter-spacing: -0.02em;
}

html.dark .ts-page-title {
  color: #fff;
}

.ts-page-lead {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

html.dark .ts-page-lead {
  color: #9ca3af;
}

/* Centered section intro */
.ts-section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.ts-section-head__title {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .ts-section-head__title {
    font-size: 2.25rem;
  }
}

html.dark .ts-section-head__title {
  color: #fff;
}

.ts-section-head__lead {
  margin-top: 0.875rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: #4b5563;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

html.dark .ts-section-head__lead {
  color: #9ca3af;
}

/* Section accent underline */
.ts-section-accent {
  display: inline-block;
  width: 3rem;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--ts-tech-blue), var(--ts-ermits-navy));
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

/* -------------------------------------------------------------------------- */
/* Surfaces: callouts, path cards                                              */
/* -------------------------------------------------------------------------- */

.ts-callout {
  border-radius: var(--ts-radius-lg);
  margin-bottom: 2.5rem;
}

.ts-callout--info {
  border: 1px solid #7dd3fc;
  background: linear-gradient(135deg, rgba(224,242,254,0.9) 0%, rgba(207,234,253,0.85) 100%);
  padding: 1.25rem 1.25rem;
  box-shadow: var(--ts-shadow-sm);
}

html.dark .ts-callout--info {
  border-color: #0369a1;
  background: linear-gradient(135deg, rgba(12,74,110,0.28) 0%, rgba(7,89,133,0.18) 100%);
}

/* Neutral FAQ / content panels (same spacing as legacy gray-50 cards) */
.ts-callout--panel {
  border-radius: var(--ts-radius-md);
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
  padding: 1.5rem;
  box-shadow: var(--ts-shadow-sm);
  transition: box-shadow 0.2s ease;
}

.ts-callout--panel:hover {
  box-shadow: var(--ts-shadow-md);
}

html.dark .ts-callout--panel {
  border-color: #374151;
  background-color: #1f2937;
}

@media (min-width: 640px) {
  .ts-callout--info {
    padding: 1.25rem 1.5rem;
  }
}

.ts-callout__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

html.dark .ts-callout__title {
  color: #fff;
}

.ts-anchor-target {
  scroll-margin-top: var(--ts-sticky-header-offset);
}

/* Home / journey: three equal paths */
.ts-start-strip {
  padding: 2.75rem 0;
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
}

html.dark .ts-start-strip {
  background-color: #0f172a;
  border-bottom-color: #1e293b;
}

.ts-start-strip__title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.375rem;
  letter-spacing: -0.02em;
}

html.dark .ts-start-strip__title {
  color: #fff;
}

.ts-start-strip__lead {
  text-align: center;
  font-size: 0.9375rem;
  color: #4b5563;
  margin-bottom: 1.75rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

html.dark .ts-start-strip__lead {
  color: #94a3b8;
}

.ts-path-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .ts-path-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ts-path-card {
  display: block;
  border-radius: var(--ts-radius-md);
  border: 1px solid #e2e8f0;
  background-color: #fff;
  padding: 1.375rem 1.25rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--ts-shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

html.dark .ts-path-card {
  border-color: #1e293b;
  background-color: #1e293b;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}

.ts-path-card:hover {
  border-color: var(--ts-tech-blue);
  box-shadow: var(--ts-shadow-blue);
  transform: translateY(-2px);
}

html.dark .ts-path-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 4px 14px -2px rgba(56,189,248,.25);
  transform: translateY(-2px);
}

.ts-path-card__label {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #111827;
  letter-spacing: -0.01em;
}

.ts-path-card:hover .ts-path-card__label {
  color: var(--ts-tech-blue);
}

html.dark .ts-path-card__label {
  color: #f1f5f9;
}

html.dark .ts-path-card:hover .ts-path-card__label {
  color: #38bdf8;
}

.ts-path-card__hint {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #6b7280;
  margin-top: 0.3rem;
}

html.dark .ts-path-card__hint {
  color: #94a3b8;
}

.ts-start-strip__meta {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

html.dark .ts-start-strip__meta {
  color: #94a3b8;
}

/* -------------------------------------------------------------------------- */
/* Actions & links                                                             */
/* -------------------------------------------------------------------------- */

.ts-link {
  color: var(--ts-tech-blue);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.ts-link:hover {
  border-bottom-color: var(--ts-tech-blue);
}

html.dark .ts-link {
  color: #38bdf8;
}

html.dark .ts-link:hover {
  border-bottom-color: #38bdf8;
}

.ts-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5625rem 1.125rem;
  background: linear-gradient(135deg, var(--ts-tech-blue) 0%, #0779a1 100%);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  border-radius: var(--ts-radius-sm);
  text-decoration: none;
  box-shadow: 0 2px 8px -1px rgba(8,145,178,.45);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
  letter-spacing: 0.01em;
}

.ts-btn-primary:hover {
  background: linear-gradient(135deg, #0779a1 0%, var(--ts-ermits-navy) 100%);
  box-shadow: 0 4px 14px -2px rgba(8,145,178,.55);
  transform: translateY(-1px);
}

.ts-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px -1px rgba(8,145,178,.4);
}

/* Secondary (outlined) variant */
.ts-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5625rem 1.125rem;
  background: transparent;
  color: var(--ts-tech-blue) !important;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  border-radius: var(--ts-radius-sm);
  border: 1.5px solid var(--ts-tech-blue);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  letter-spacing: 0.01em;
}

.ts-btn-secondary:hover {
  background: rgba(8,145,178,.06);
}

html.dark .ts-btn-secondary {
  color: #38bdf8 !important;
  border-color: #38bdf8;
}

html.dark .ts-btn-secondary:hover {
  background: rgba(56,189,248,.1);
}

/* Badge / pill labels */
.ts-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
}

.ts-badge--blue {
  background: rgba(8,145,178,.12);
  color: #0779a1;
}

html.dark .ts-badge--blue {
  background: rgba(56,189,248,.15);
  color: #38bdf8;
}

.ts-badge--navy {
  background: rgba(0,75,135,.1);
  color: var(--ts-ermits-navy);
}

html.dark .ts-badge--navy {
  background: rgba(30,58,95,.4);
  color: #93c5fd;
}

/* Marketing hero gradient (matches existing .gradient-hero pages) */
.ts-gradient-hero {
  background: linear-gradient(135deg, #003d70 0%, #005a9e 45%, #0891b2 100%);
}

html.dark .ts-gradient-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0369a1 100%);
}

/* Gradient text utility */
.ts-gradient-text {
  background: linear-gradient(135deg, var(--ts-tech-blue) 0%, var(--ts-ermits-navy) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html.dark .ts-gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Divider with optional label */
.ts-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #9ca3af;
  font-size: 0.8125rem;
  font-weight: 500;
  margin: 1.5rem 0;
}

.ts-divider::before,
.ts-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

html.dark .ts-divider::before,
html.dark .ts-divider::after {
  background: #374151;
}

/* Icon circle container */
.ts-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(8,145,178,.12) 0%, rgba(0,75,135,.08) 100%);
  flex-shrink: 0;
  transition: background 0.2s ease;
}

html.dark .ts-icon-circle {
  background: linear-gradient(135deg, rgba(56,189,248,.15) 0%, rgba(30,58,95,.35) 100%);
}

.ts-icon-circle--lg {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
}

/* Stat / metric block */
.ts-stat {
  text-align: center;
  padding: 1.25rem 1rem;
}

.ts-stat__number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ts-tech-blue);
  line-height: 1;
  letter-spacing: -0.04em;
}

html.dark .ts-stat__number {
  color: #38bdf8;
}

.ts-stat__label {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.375rem;
  font-weight: 500;
}

html.dark .ts-stat__label {
  color: #94a3b8;
}

/* Trust / social proof chip */
.ts-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.ts-trust-chip svg {
  flex-shrink: 0;
  color: #86efac;
}
