/*
 * =========================================================
 * OLYTIC SOLUTIONS - What We Do Page Styles
 * what-we-do.css  /  Route: /what-we-do
 *
 * Components:
 *   - Page hero (Surface bg, eyebrow + headline)
 *   - Distinction section (tool vs system, two-column)
 *   - Loop deep-dive (full four-stage breakdown)
 *   - Amplification section (philosophy block)
 *   - Operations section (what the system touches)
 *   - Final CTA (shared pattern)
 *
 * Load order:
 *   tokens → typography → buttons → nav → footer → layout → what-we-do
 * =========================================================
 */


/* ─────────────────────────────────────────────────────── */
/* HERO                                                    */
/* ─────────────────────────────────────────────────────── */

.wwd-hero {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
  border-bottom: var(--border-default);
}

/* Gold background hero variant */
.wwd-hero--gold {
  background-color: var(--color-gold);
  border-bottom: none;
}

.wwd-hero__inner {
  max-width: 760px;
}

.wwd-hero__accent-rule {
  width: 48px;
  height: 2px;
  background-color: var(--color-gold);
  margin-bottom: var(--space-6);
}

/* Overrides for elements inside gold hero */
.wwd-hero--gold .wwd-hero__accent-rule {
  background-color: rgba(26, 26, 26, 0.35);
}

.wwd-hero__headline {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--weight-bold);
  color: var(--color-obsidian);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-6);
  max-width: 640px;
}

/* Headline stays obsidian on gold bg — default already handles this */

.wwd-hero__sub {
  font-size: var(--text-lg);
  color: var(--color-body-steel);
  line-height: var(--leading-body);
  max-width: 560px;
  margin-bottom: 0;
}

/* Sub text on gold bg */
.wwd-hero--gold .wwd-hero__sub {
  color: rgba(26, 26, 26, 0.72);
}

/* Eyebrow on gold bg */
.wwd-hero--gold .eyebrow {
  color: rgba(26, 26, 26, 0.60);
}

@media (max-width: 900px) {
  .wwd-hero {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
  .wwd-hero__headline { font-size: var(--text-4xl); }
}

@media (max-width: 640px) {
  .wwd-hero__headline { font-size: var(--text-3xl); }
  .wwd-hero__sub      { font-size: var(--text-base); }
}


/* ─────────────────────────────────────────────────────── */
/* DISTINCTION: TOOL VS SYSTEM                             */
/* ─────────────────────────────────────────────────────── */

.distinction__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

.distinction__col {
  padding: var(--space-8);
  border-radius: var(--radius-lg);
}

/* "What most firms have" - muted treatment */
.distinction__col--tool {
  background-color: var(--color-surface);
  border: var(--border-default);
}

/* "What Olytic builds" - elevated treatment */
.distinction__col--system {
  background-color: var(--color-navy);
  border: 1px solid rgba(200, 169, 110, 0.20);
}

.distinction__col--system h3 {
  color: #FFFFFF;
}

.distinction__col--system p,
.distinction__col--system li {
  color: rgba(255, 255, 255, 0.78);
}

.distinction__col--system .label {
  color: var(--color-gold);
}

.distinction__col--tool .label {
  color: var(--color-muted);
}

.distinction__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.distinction__list li {
  font-size: var(--text-base);
  line-height: var(--leading-body);
  padding-left: var(--space-5);
  position: relative;
  margin-bottom: 0;
}

.distinction__col--tool .distinction__list li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: var(--color-muted);
  font-weight: var(--weight-bold);
}

.distinction__col--system .distinction__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: var(--weight-bold);
}

@media (max-width: 768px) {
  .distinction__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}


/* ─────────────────────────────────────────────────────── */
/* LOOP DEEP-DIVE                                          */
/* ─────────────────────────────────────────────────────── */

/*
 * Full four-stage breakdown. Each stage gets a card
 * with substance - not the one-liner from the home page.
 * Uses the loop-grid from layout.css as a base but adds
 * the deeper card treatment here.
 */

.loop-deep .section-header {
  margin-bottom: var(--space-12);
}

.loop-deep__intro {
  max-width: 600px;
  color: var(--color-body-steel);
}

.loop-deep__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.loop-deep__card {
  background-color: #FFFFFF;
  border: var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow var(--transition-fast),
              border-color var(--transition-fast);
}

.loop-deep__card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 169, 110, 0.35);
}

.loop-deep__card-number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-gold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-4);
}

.loop-deep__card-name {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

.loop-deep__card-body {
  font-size: var(--text-base);
  color: var(--color-body-steel);
  line-height: var(--leading-body);
  margin-bottom: var(--space-5);
}

.loop-deep__card-output {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-2);
}

.loop-deep__card-detail {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-body);
  border-top: var(--border-default);
  padding-top: var(--space-4);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .loop-deep__grid {
    grid-template-columns: 1fr;
  }
}


/* ─────────────────────────────────────────────────────── */
/* LOOP CALLOUT                                            */
/* ─────────────────────────────────────────────────────── */

.loop-callout {
  margin-top: var(--space-12);
}

.loop-callout__inner {
  max-width: 680px;
}

.loop-callout__inner p {
  font-size: var(--text-md);
  color: var(--color-navy);
  font-weight: var(--weight-medium);
  line-height: var(--leading-body);
}


/* ─────────────────────────────────────────────────────── */
/* AMPLIFICATION                                           */
/* ─────────────────────────────────────────────────────── */

.amplification__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-16);
  align-items: start;
}

.amplification__heading {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-6));
}

.amplification__heading h2 {
  color: #FFFFFF;
}

.amplification__content p {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.80);
  line-height: var(--leading-body);
  margin-bottom: var(--space-5);
}

.amplification__content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .amplification__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .amplification__heading {
    position: static;
  }
}


/* ─────────────────────────────────────────────────────── */
/* OPERATIONS: WHAT THE SYSTEM TOUCHES                     */
/* ─────────────────────────────────────────────────────── */

.operations__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.operations__card {
  background-color: var(--color-surface);
  border: var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border-top: 2px solid var(--color-gold);
  transition: box-shadow var(--transition-fast);
}

.operations__card:hover {
  box-shadow: var(--shadow-md);
}

.operations__card h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-4);
}

.operations__card p {
  font-size: var(--text-base);
  color: var(--color-body-steel);
  line-height: var(--leading-body);
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .operations__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .operations__grid {
    grid-template-columns: 1fr;
  }
}
