/* ─────────────────────────────────────────
   SOLUTIONS PAGE — extends base styles.css
   Base provides: reset, variables, nav, buttons,
   breadcrumb, .display, .label, .inner, .section,
   how-steps (light), FAQ, CTA, trust, footer,
   animations, mobile drawer, responsive foundations.
───────────────────────────────────────── */

/* ── LAYOUT OVERRIDES ───────────────────── */
.section    { padding: 7rem 0; }
.section-sm { padding: 4rem 0; }

/* ── PAGE HERO ──────────────────────────── */
.page-hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 11fr 9fr;
  gap: 4rem;
  align-items: center;
}

.page-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: riseIn 0.6s ease 0.1s forwards;
}

.page-hero-eyebrow-line {
  width: 28px;
  height: 1px;
  background: var(--blue);
}

.page-hero h1,
.page-hero-headline {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: riseIn 0.6s ease 0.2s forwards;
}

.page-hero h1 em,
.page-hero-headline em {
  font-style: italic;
  color: var(--blue);
}

.page-hero-sub {
  font-size: 1.05rem;
  color: var(--ink-2);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: riseIn 0.6s ease 0.3s forwards;
}

.page-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: riseIn 0.6s ease 0.4s forwards;
}

/* Stat cluster */
.page-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  opacity: 0;
  animation: riseIn 0.7s ease 0.3s forwards;
}

.stat-card {
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.25rem;
}

.stat-card.accent {
  background: var(--blue);
  border-color: var(--blue);
}

.stat-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--heading);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card.accent .stat-num  { color: #fff; }

.stat-label {
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.4;
}

.stat-card.accent .stat-label { color: rgba(255, 255, 255, 0.7); }

/* ── SOLUTIONS INTRO ────────────────────── */
.solutions-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}

.solutions-intro h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.solutions-intro h2 em {
  font-style: italic;
  color: var(--blue);
}

.solutions-intro-text {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.8;
}

/* ── SOLUTION ROWS ──────────────────────── */
.solution-rows {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sol-row {
  border: 1px solid var(--paper-3);
  border-radius: var(--r-lg);
  background: var(--paper);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}

.sol-row:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(47, 74, 199, 0.08);
}

.sol-row-header {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 1.75rem;
  align-items: center;
  padding: 2rem 2.5rem;
}

.sol-row-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.sol-row-icon.blue  { background: var(--blue-pale); }
.sol-row-icon.green { background: var(--forest-pale); }
.sol-row-icon.teal  { background: var(--teal-pale); }
.sol-row-icon.slate { background: var(--paper-3); }
.sol-row-icon.paper { background: var(--paper-2); }

.sol-row-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--heading);
  margin-bottom: 0.35rem;
}

.sol-row-desc {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 620px;
}

.sol-row-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  flex-shrink: 0;
}

.sol-badge {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.sol-badge.consulting { background: var(--blue-pale);   color: var(--blue); }
.sol-badge.self       { background: var(--forest-pale); color: var(--forest); }
.sol-badge.dev        { background: var(--paper-3);     color: var(--heading); }

.sol-row-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
}

.sol-row:hover .sol-row-link { gap: 8px; }
.sol-row-link::after { content: '→'; }

/* Expandable detail panel */
.sol-row-body {
  border-top: 1px solid var(--paper-3);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.sol-row.open .sol-row-body { max-height: 500px; }

.sol-body-col {
  padding: 2rem 2.5rem;
  border-right: 1px solid var(--paper-3);
}

.sol-body-col:last-child { border-right: none; }

.sol-body-col-title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}

.sol-body-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sol-body-list li {
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.5;
  padding-left: 1.1rem;
  position: relative;
}

.sol-body-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 0.72rem;
  top: 2px;
}

.sol-body-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-chip {
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--paper-3);
  color: var(--ink-2);
  background: var(--paper-2);
}

.sol-body-cta { margin-top: 1.5rem; }

/* ── APPROACH (dark section) ────────────── */
.approach {
  background: var(--night);
  color: var(--paper);
}

.approach-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.approach-left { position: sticky; top: 100px; }
.approach-label { color: var(--ink-3); margin-bottom: 1.25rem; }

.approach-headline {
  font-size: clamp(2rem, 3vw, 3rem);
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.approach-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.approach-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.approach-step {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-lg);
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  align-items: start;
  transition: background 0.2s;
}

.approach-step:hover { background: rgba(255, 255, 255, 0.06); }

.approach-step-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.20);
  line-height: 1;
  padding-top: 2px;
}

.approach-step-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.approach-step-body {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.60);
  line-height: 1.7;
}

/* ── HOW WE WORK (dark variant) ─────────── */
.how {
  background: var(--ink);
  color: var(--paper);
}

.how-header {
  text-align: center;
  margin-bottom: 5rem;
}

.how-headline {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: #ffffff;
}

.how-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 480px;
  margin: 1.25rem auto 0;
  line-height: 1.8;
}

.how .how-steps {
  background: rgba(255, 255, 255, 0.10);
  margin-bottom: 4rem;
}

.how .how-step {
  background: var(--ink);
  transition: background 0.2s;
}

.how .how-step:hover        { background: rgba(255, 255, 255, 0.05); }
.how .how-step-num          { font-size: 3rem; color: rgba(255, 255, 255, 0.25); }
.how .how-step-title        { color: #ffffff; }
.how .how-step-body         { color: rgba(255, 255, 255, 0.60); }

.how-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.how-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.40);
  text-align: center;
  margin-top: 1.25rem;
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
  .page-hero-inner     { grid-template-columns: 1fr; gap: 2.5rem; }
  .page-hero-stats     { display: none; }
  .solutions-intro     { grid-template-columns: 1fr; gap: 1.5rem; }
  .sol-row-header      { grid-template-columns: 48px 1fr; }
  .sol-row-meta        { display: none; }
  .sol-row-body        { grid-template-columns: 1fr; }
  .sol-body-col        { border-right: none; border-bottom: 1px solid var(--paper-3); }
  .sol-body-col:last-child { border-bottom: none; }
  .approach-layout     { grid-template-columns: 1fr; gap: 2.5rem; }
  .approach-left       { position: static; }
}