/* Shared styles for Shouka content sub-pages (privacy, terms, faq, careers) */
:root {
  /* ─── Official Shouka AI brand tokens (single source of truth) ─── */
  --shouka-deep-petrol: #0B3B3C;    /* Foundation / Primary Brand Surface */
  --shouka-teal: #146B68;           /* AI / Data / Tech Layer / Secondary */
  --shouka-gold: #D6A84F;           /* Signature Accent / ROI / Primary CTA / Deer Logo */
  --shouka-off-white: #F7F7F2;      /* Light Mode Background */
  --shouka-dark: #10191A;           /* Dark Mode / Deep Surfaces */
  --shouka-text-primary: #1D2929;   /* Charcoal / Main Text */
  --shouka-text-secondary: #657474; /* Slate / Muted Text & Captions */

  /* ─── Brand palette (aliases → official tokens) ─── */
  --petrol: var(--shouka-deep-petrol);
  --teal: var(--shouka-teal);
  --teal-dark: #0e5956;         /* teal hover / pressed */
  --teal-tint: #e2efed;         /* teal wash for icon tiles */
  --teal-tint-border: #c3dbd8;
  --gold: var(--shouka-gold);
  --gold-dark: #C2953A;         /* gold hover / pressed */
  --cream: var(--shouka-off-white);
  --cream-alt: #eef0ea;         /* alternate section background */
  --ink: var(--shouka-dark);
  --ink-soft: var(--shouka-text-primary);
  --muted: var(--shouka-text-secondary);
  --border: #e2e7e3;            /* hairline borders */
  --border-strong: #c2cbc7;     /* emphasised borders */

  /* ─── Semantic tokens ─── */
  --bg: var(--cream);
  --bg-alt: var(--cream-alt);
  --surface: #ffffff;
  --body-text: #3d4949;
  --accent: var(--teal);
  --accent-dark: var(--teal-dark);
  --accent-tint: var(--teal-tint);
  --cta: var(--gold);
  --cta-dark: var(--gold-dark);

  --footer-bg: var(--ink-soft);
  --footer-text: #d7dedb;
  --footer-muted: #8fa09e;
  --footer-muted-2: #8a9c9a;
  --footer-border: rgba(255, 255, 255, 0.12);

  --radius-md: 12px;
  --radius-sm: 8px;
  --font: 'Vazirmatn', sans-serif;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  text-align: right;
  line-height: 1.85;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-dark); }
.container { max-width: 860px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 2.5rem); width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; top: -60px; right: 1rem; z-index: 50;
  background: var(--accent); color: #fff;
  padding: 0.6rem 1.2rem; border-radius: var(--radius-sm); font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* Header */
.page-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 247, 242, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.page-header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.page-logo { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); font-weight: 700; font-size: 0.98rem; }
.page-logo:hover { color: var(--ink); }
.page-logo .badge {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--petrol);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.page-logo .badge img { width: 16px; height: auto; display: block; }
.page-logo .brand span { color: var(--cta); }
.page-back { font-size: 0.88rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; }

/* Main */
.page-main { flex: 1; padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem; }
.page-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 0.9rem; }
.page-main h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 0.75rem; color: var(--ink);
}
.page-main h1 .grad { color: var(--ink); }
.page-updated { font-size: 0.82rem; color: var(--muted); margin-bottom: 2.5rem; }
.page-main h2 { font-size: 1.25rem; font-weight: 700; margin: 2.5rem 0 0.9rem; color: var(--ink); }
.page-main h3 { font-size: 1.02rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: var(--ink); }
.page-main p { color: var(--body-text); margin-bottom: 1.1rem; }
.page-main ul, .page-main ol { color: var(--body-text); margin: 0 1.25rem 1.25rem 0; padding-right: 0.5rem; }
.page-main li { margin-bottom: 0.5rem; }
.page-main strong { color: var(--ink); font-weight: 700; }
.lead { font-size: 1.08rem; color: var(--body-text); margin-bottom: 2rem; }
.note {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-right: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin: 1.5rem 0;
  font-size: 0.9rem; color: var(--body-text);
}

/* CTA button */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.9rem; border-radius: var(--radius-sm);
  background: var(--cta); color: var(--ink); font-weight: 700; font-size: 0.95rem;
  transition: background-color 0.15s;
}
.btn:hover { background: var(--cta-dark); color: var(--ink); }

/* FAQ accordion */
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); margin-bottom: 0.9rem; overflow: hidden; transition: border-color 0.15s;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.15rem 1.4rem;
  font-weight: 700; font-size: 0.98rem; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--accent); font-size: 1.4rem; font-weight: 400; line-height: 1; flex-shrink: 0; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.4rem 1.3rem; color: var(--body-text); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* Careers */
.role-card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); padding: 1.4rem 1.5rem; margin-bottom: 1rem;
}
.role-card h3 { margin-top: 0; }
.role-card p { margin-bottom: 0; font-size: 0.9rem; }
.cta-band {
  margin-top: 2.5rem; padding: 2rem; text-align: center;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.cta-band p { margin-bottom: 1.5rem; }

/* Footer */
.page-foot {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0; text-align: center; font-size: 0.8rem; color: var(--muted);
  background: var(--bg-alt);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}

/* ════════════════════════════════════════════════════════════════════
   P2 — Enterprise pages (solutions/, industries/)
   All rules below are scoped to these pages only (.sol- / .ind- prefixes).
   ════════════════════════════════════════════════════════════════════ */

/* ── Breadcrumb (detail pages) ── */
.sol-crumb, .ind-crumb {
  font-size: 0.82rem; color: var(--muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  margin-bottom: 1.4rem;
}
.sol-crumb a, .ind-crumb a { color: var(--accent); font-weight: 600; }
.sol-crumb .sep, .ind-crumb .sep { color: var(--border-strong); }
.sol-crumb [aria-current="page"], .ind-crumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ── Hero CTA row (detail pages) ── */
.sol-hero-cta, .ind-hero-cta {
  display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 0.4rem;
}
.sol-btn-secondary, .ind-btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.9rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--teal); color: var(--teal);
  font-weight: 700; font-size: 0.95rem; background: transparent;
  transition: background-color 0.15s, color 0.15s;
}
.sol-btn-secondary:hover, .ind-btn-secondary:hover { background: var(--accent-tint); color: var(--teal-dark); }

/* ── Solutions hub: grid of solution cards ── */
.sol-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem;
}
@media (min-width: 640px) { .sol-grid { grid-template-columns: 1fr 1fr; } }
.sol-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.sol-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 12px 30px rgba(11, 59, 60, 0.09);
  transform: translateY(-3px);
}
.sol-visual {
  position: relative; height: 152px;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 16% 18%, rgba(214, 168, 79, 0.2) 0, transparent 34%),
    radial-gradient(circle at 84% 82%, rgba(11, 59, 60, 0.1) 0, transparent 42%),
    linear-gradient(150deg, #e9f1ee 0%, var(--accent-tint) 100%);
}
.sol-visual svg { width: 212px; height: auto; display: block; }
.sol-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.5rem; }
.sol-cat {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700;
  color: var(--teal-dark); background: var(--accent-tint);
  border: 1px solid var(--teal-tint-border);
  padding: 0.22rem 0.65rem; border-radius: 999px; margin-bottom: 0.8rem;
}
.sol-card h3 { margin: 0 0 0.55rem; font-size: 1.08rem; }
.sol-card p { margin-bottom: 0.9rem; font-size: 0.92rem; }
.sol-body .sol-cap { margin: 0 0 1.1rem; padding: 0; list-style: none; }
.sol-cap li {
  position: relative; padding-right: 1.45rem; margin-bottom: 0.4rem;
  font-size: 0.88rem; color: var(--body-text);
}
.sol-cap li::before {
  content: ''; position: absolute; right: 0; top: 0.52em;
  width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--gold);
}
.sol-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; font-size: 0.92rem; color: var(--accent);
}
.sol-link svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform 0.15s; }
.sol-link:hover svg { transform: translateX(-3px); }

/* ── Solutions hub: verified metrics strip ── */
.sol-stats {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 2.4rem; padding: 1.5rem 1.6rem;
  background: var(--petrol); border-radius: var(--radius-md);
}
.sol-stat { flex: 1 1 140px; color: #fff; text-align: center; }
.sol-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--gold); line-height: 1.3; }
.sol-stat-label { font-size: 0.8rem; color: rgba(255, 255, 255, 0.82); margin-top: 0.15rem; }

/* ── Industries hub: grid of industry cards ── */
.ind-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem;
}
@media (min-width: 640px) { .ind-grid { grid-template-columns: 1fr 1fr 1fr; } }
.ind-card {
  display: flex; flex-direction: column; gap: 0.55rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem 1.5rem 1.4rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ind-card:hover { border-color: var(--border-strong); box-shadow: 0 8px 22px rgba(11, 59, 60, 0.08); }
.ind-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--accent-tint); border: 1px solid var(--teal-tint-border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ind-icon svg { width: 22px; height: 22px; color: var(--teal-dark); }
.ind-card h3 { margin: 0.2rem 0 0; font-size: 1.05rem; }
.ind-card .ind-desc { margin: 0 0 0.4rem; font-size: 0.9rem; }
.ind-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 0.35rem;
  font-weight: 700; font-size: 0.9rem; color: var(--accent);
}
.ind-link svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform 0.15s; }
.ind-link:hover svg { transform: translateX(-3px); }

/* Featured (linked) industry card — spans full grid width */
.ind-card-feat {
  grid-column: 1 / -1; color: var(--ink); text-decoration: none;
  flex-direction: row; align-items: center; gap: 1.4rem; padding: 1.7rem;
  border-color: var(--teal-tint-border);
  background: linear-gradient(160deg, #ffffff 0%, var(--accent-tint) 140%);
}
.ind-card-feat:hover { border-color: var(--teal); color: var(--ink); box-shadow: 0 10px 26px rgba(11, 59, 60, 0.1); }
.ind-card-feat .ind-icon { width: 58px; height: 58px; }
.ind-card-feat .ind-icon svg { width: 28px; height: 28px; }
.ind-feat-body { display: block; flex: 1; }
.ind-card-feat h3 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.ind-card-feat .ind-desc { margin: 0 0 0.5rem; font-size: 0.95rem; }
.ind-card-feat .ind-link { margin: 0; font-size: 0.95rem; }
@media (max-width: 640px) {
  .ind-card-feat { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
}

/* ── Detail pages: numbered mini-tiles (problems / opportunities / use cases) ── */
.sol-tiles, .ind-tiles {
  display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.2rem 0 0.5rem;
}
@media (min-width: 640px) { .sol-tiles, .ind-tiles { grid-template-columns: 1fr 1fr 1fr; } }
.sol-tile, .ind-tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.3rem 1.4rem;
}
.sol-tile h3, .ind-tile h3 { margin: 0 0 0.4rem; font-size: 0.98rem; }
.sol-tile p, .ind-tile p { margin: 0; font-size: 0.9rem; }
.sol-tile .tile-num, .ind-tile .tile-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--petrol); color: var(--gold);
  font-size: 0.78rem; font-weight: 800; margin-bottom: 0.7rem;
}
.sol-tile h3 a, .ind-tile h3 a { color: var(--teal-dark); }
.sol-tile h3 a:hover, .ind-tile h3 a:hover { color: var(--accent-dark); }

/* ── Detail pages: architecture flow pipeline ── */
.sol-flow, .ind-flow {
  display: flex; flex-direction: column; gap: 0.4rem;
  margin: 1.3rem 0 0.4rem;
}
.sol-flow-step, .ind-flow-step {
  flex: 1; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.1rem 1rem;
}
.sol-flow-step strong, .ind-flow-step strong {
  display: block; color: var(--ink); font-size: 0.95rem; margin-bottom: 0.35rem;
}
.sol-flow-step span, .ind-flow-step span { display: block; font-size: 0.8rem; color: var(--muted); }
.sol-flow-arrow, .ind-flow-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-weight: 800; flex-shrink: 0;
}
.sol-flow-arrow::after, .ind-flow-arrow::after { content: '↓'; }
@media (min-width: 640px) {
  .sol-flow, .ind-flow { flex-direction: row; gap: 0; }
  .sol-flow-arrow, .ind-flow-arrow { width: 2.4rem; }
  .sol-flow-arrow::after, .ind-flow-arrow::after { content: '←'; }
}

/* ════════════════════════════════════════════════════════════════════
   P4 — Insights hub (insights/) and article pages (.ins- prefixes)
   All rules below are scoped to these pages only.
   ════════════════════════════════════════════════════════════════════ */

/* ── Insights hub: category pills ── */
.ins-cats {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 1.8rem;
}
.ins-cat {
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 6px 14px; color: var(--muted); background: var(--surface);
  font-size: 0.88rem; font-weight: 600;
}
.ins-cat-muted {
  border-style: dashed; color: var(--border-strong); font-weight: 500;
}

/* ── Insights hub: article grid ── */
.ins-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem;
}
@media (min-width: 640px) { .ins-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.ins-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 22px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.ins-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 10px 26px rgba(11, 59, 60, 0.09);
  transform: translateY(-2px);
}
.ins-cat-pill {
  align-self: flex-start;
  background: var(--teal-tint); color: var(--teal-dark);
  border-radius: var(--radius-sm); padding: 3px 10px; font-size: 0.8em;
  font-weight: 700;
}
.ins-card-title { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.ins-card-title a { color: var(--ink); font-weight: 700; }
.ins-card-title a:hover { color: var(--teal); }
.ins-card-excerpt { margin: 0; color: var(--muted); line-height: 1.8; font-size: 0.92rem; }
.ins-meta { margin: 0; font-size: 0.82em; color: var(--muted); }
.ins-link {
  margin-top: auto; align-self: flex-start;
  color: var(--teal); font-weight: 600; font-size: 0.92rem;
}
.ins-link:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .ins-card, .ins-card:hover { transform: none; }
}

/* ── Article pages: prose typography ── */
.ins-prose h2 {
  margin-top: 2em; padding-top: 0.8em;
  border-top: 1px solid var(--border); color: var(--ink);
}
.ins-prose h3 { margin-top: 1.5em; color: var(--ink); }
.ins-prose p { line-height: 1.9; color: var(--body-text); }
.ins-prose ul, .ins-prose ol { padding-inline-start: 1.4em; color: var(--body-text); }
.ins-prose li { margin: 0.4em 0; }
.ins-prose strong { color: var(--ink); }
.ins-prose code {
  background: var(--teal-tint); padding: 2px 6px; border-radius: 4px;
  font-size: 0.92em;
}
.ins-prose blockquote {
  border-inline-start: 3px solid var(--gold);
  padding: 0.5em 1em; color: var(--muted); background: var(--cream);
}

/* ── Article pages: table of contents ── */
.ins-toc {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px 22px; background: var(--cream);
}
.ins-toc ul { list-style: none; padding: 0; margin: 0; }
.ins-toc li a { color: var(--teal); line-height: 2; }

/* ── Article pages: related articles ── */
.ins-related ul { list-style: none; padding: 0; margin: 0; }
.ins-related li { margin: 0.5em 0; }
.ins-related a { color: var(--teal); }
