/* ============================================================
   NW Agentic — Solutions hub + sub-page styles
   nwagentic.ai
   ============================================================
   Shared styles for /solutions/ and /solutions/<slug>/.

   Depends on: tokens.css, base.css, partials.css.
   Reuses: tier-section-head and faq-list from pages/tier.css when
   loaded together. Solutions sub-pages do not load tier.css; the
   small handful of common bits are duplicated here intentionally.
   ============================================================ */

@layer components {

  /* ─────────────────────────────────────────────────────────
     SOLUTIONS HUB
     ───────────────────────────────────────────────────────── */
  .sol-hero {
    background: var(--navy-deep);
    color: var(--text-on-dark);
    padding-block: 9rem 5rem;
    position: relative;
    overflow: hidden;
  }
  .sol-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(900px 500px at 90% 10%, rgba(37, 99, 235, 0.18), transparent 60%),
      radial-gradient(700px 500px at 5% 95%, rgba(245, 158, 11, 0.12), transparent 60%);
    pointer-events: none;
  }
  .sol-hero__inner { position: relative; z-index: 1; max-width: 880px; }
  .sol-hero__chip {
    display: inline-block;
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tr-eyebrow);
    text-transform: uppercase;
    color: var(--blue-bright);
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 0.4em 1em;
    border-radius: var(--radius-pill);
    margin-block-end: var(--space-6);
  }
  .sol-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: var(--fw-extrabold);
    line-height: var(--lh-display);
    letter-spacing: var(--tr-display);
    color: var(--text-on-dark);
    margin-block-end: var(--space-6);
    text-wrap: balance;
  }
  .sol-hero h1 em, .sol-hero h1 .accent {
    color: var(--blue-bright);
    font-style: normal;
  }
  .sol-hero__sub {
    font-size: var(--fs-body-lg);
    color: var(--text-on-dark-soft);
    line-height: var(--lh-body);
    max-width: 640px;
  }

  /* Hub grid — five cards, alphabetized */
  .sol-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
  @media (max-width: 1023px) { .sol-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 539px)  { .sol-grid { grid-template-columns: 1fr; } }

  .sol-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: box-shadow var(--t-slow), transform var(--t-slow), border-color var(--t);
    color: inherit;
  }
  .sol-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--blue);
  }
  .sol-card__head {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }
  .sol-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--brand-gradient-soft);
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .sol-card__icon svg { width: 18px; height: 18px; }
  .sol-card__title {
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
    flex: 1;
  }
  .sol-card__title::after {
    content: '\2192';
    margin-left: 0.5rem;
    color: var(--blue);
    transition: transform var(--t);
  }
  .sol-card:hover .sol-card__title::after { transform: translateX(3px); }
  .sol-card__desc {
    color: var(--text-secondary);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
  }
  .sol-card__examples {
    font-size: var(--fs-body-sm);
    color: var(--text-tertiary);
    margin-top: var(--space-2);
  }
  .sol-card__examples li {
    display: inline;
  }
  .sol-card__examples li::after { content: ' · '; }
  .sol-card__examples li:last-child::after { content: ''; }


  /* ─────────────────────────────────────────────────────────
     SOLUTIONS SUB-PAGE — example workflow cards
     ───────────────────────────────────────────────────────── */
  .workflow-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
  @media (max-width: 1023px) { .workflow-cards { grid-template-columns: 1fr; } }

  .wf-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
  .wf-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
  }
  .wf-card__name {
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
  }
  .wf-card__when {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
  }
  .wf-card__row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: var(--space-3);
    font-size: var(--fs-body-sm);
    line-height: 1.55;
  }
  @media (max-width: 539px) {
    .wf-card__row { grid-template-columns: 1fr; gap: var(--space-1); }
  }
  .wf-card__label {
    font-weight: var(--fw-semibold);
    color: var(--text-tertiary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    padding-top: 2px;
  }
  .wf-card__value {
    color: var(--text-secondary);
  }
  .wf-card__value strong {
    color: var(--text-primary);
    font-weight: var(--fw-semibold);
  }
  .wf-card__value ol {
    counter-reset: stp;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }
  .wf-card__value ol li {
    counter-increment: stp;
    padding-left: 1.75rem;
    position: relative;
  }
  .wf-card__value ol li::before {
    content: counter(stp);
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blue-pale);
    color: var(--blue-hover);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: var(--fw-semibold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
  }
  .wf-card__review {
    color: var(--amber);
    font-weight: var(--fw-medium);
  }

  /* ─────────────────────────────────────────────────────────
     INDUSTRY CALL-OUT STRIP
     ───────────────────────────────────────────────────────── */
  .industries {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    padding: var(--space-6) var(--space-8);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }
  .industries__label {
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tr-eyebrow);
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-right: var(--space-3);
  }
  .industries__pill {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 0.4em 0.9em;
    font-size: var(--fs-body-sm);
    color: var(--text-secondary);
  }

  /* ─────────────────────────────────────────────────────────
     DEPLOYMENT-MODE DECISION AID — three columns
     ───────────────────────────────────────────────────────── */
  .deploy-aid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
  @media (max-width: 1023px) { .deploy-aid { grid-template-columns: 1fr; } }
  .deploy-aid__col {
    padding: var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-top: 4px solid var(--mode-color, var(--blue));
  }
  .deploy-aid__col--core  { --mode-color: #cbd5e1; }
  .deploy-aid__col--forge { --mode-color: var(--blue); }
  .deploy-aid__col--edge  { --mode-color: var(--amber-light); }
  .deploy-aid__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tr-eyebrow);
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: var(--space-3);
  }
  .deploy-aid__chip-square {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
  }
  .deploy-aid__col--core  .deploy-aid__chip-square { background: #ffffff; border: 1px solid var(--border-strong); }
  .deploy-aid__col--forge .deploy-aid__chip-square { background: var(--blue); }
  .deploy-aid__col--edge  .deploy-aid__chip-square { background: var(--amber-light); }
  .deploy-aid__title {
    font-size: 1rem;
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
  }
  .deploy-aid__body {
    font-size: var(--fs-body-sm);
    color: var(--text-secondary);
    line-height: 1.55;
  }
  .deploy-aid__cta {
    display: inline-block;
    margin-top: var(--space-3);
    font-size: var(--fs-body-sm);
    font-weight: var(--fw-semibold);
    color: var(--blue);
  }
  .deploy-aid__cta::after {
    content: '\2192';
    margin-left: 0.25rem;
    transition: transform var(--t);
    display: inline-block;
  }
  .deploy-aid__cta:hover::after { transform: translateX(3px); }

  /* ─────────────────────────────────────────────────────────
     SHARED HEADERS (mirror tier-section-head — duplicated to
     avoid forcing solutions pages to load tier.css)
     ───────────────────────────────────────────────────────── */
  .sol-section-head {
    margin-bottom: var(--space-8);
    max-width: 720px;
  }
  .sol-section-head h2 {
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    margin-bottom: var(--space-3);
    text-wrap: balance;
  }
  .sol-section-head p {
    font-size: var(--fs-body-lg);
    color: var(--text-secondary);
    line-height: 1.6;
  }
}
