/* ============================================================
   SoorgaAI — Framework Page Styles
   Extends global style.css and home.css (brand tokens + footer)
   ============================================================ */

/* ── Shared section tokens ────────────────────────────────── */
:root {
  --fw-brand:      #5CC5A7;
  --fw-brand-dim:  rgba(92, 197, 167, 0.25);
  --fw-card-bg:    rgba(255, 255, 255, 0.04);
  --fw-card-border:rgba(255, 255, 255, 0.08);
  --fw-text-dim:   rgba(255, 255, 255, 0.45);
  --fw-max-w:      1060px;
}

/* ── Override home.css global h2 for framework sections ───── */
.fw-section h2,
.fw-closing h2 {
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 0;
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.fw-hero {
  border-bottom: 1px solid var(--fw-card-border);
  padding: 80px 40px 72px;
}

.fw-hero__inner {
  max-width: var(--fw-max-w);
  margin: 0 auto;
}

.fw-hero__heading {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.6px;
  color: #fff;
  margin-bottom: 24px;
}

.fw-accent {
  color: var(--fw-brand);
}

.fw-hero__sub {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 700px;
}

.fw-hero__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fw-text-dim);
  max-width: 640px;
}

/* ═══════════════════════════════════════════════════════════
   SHARED SECTION STRUCTURE
══════════════════════════════════════════════════════════ */
.fw-section {
  padding: 72px 40px;
  border-bottom: 1px solid var(--fw-card-border);
}

.fw-section--alt {
  background: rgba(255, 255, 255, 0.02);
}

.fw-section__inner {
  max-width: var(--fw-max-w);
  margin: 0 auto;
}

.fw-section__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--fw-brand);
  margin-bottom: 12px;
}

.fw-section__heading {
  margin-bottom: 12px;
}

.fw-section__lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fw-text-dim);
  max-width: 640px;
  margin-bottom: 48px;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 1 — PROCESS STEPPER
══════════════════════════════════════════════════════════ */
.fw-steps {
  max-width: 640px;
}

.fw-step {
  display: flex;
  gap: 20px;
}

.fw-step__track {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.fw-step__dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--fw-brand);
  color: var(--fw-brand);
  background: rgba(92, 197, 167, 0.08);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fw-step__line {
  flex: 1;
  width: 1.5px;
  background: var(--fw-brand-dim);
  min-height: 28px;
}

.fw-step__body {
  padding: 8px 0 36px;
}

.fw-step__body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.25;
}

.fw-step__body p {
  font-size: 14px;
  color: var(--fw-text-dim);
  line-height: 1.6;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 2 — DOMAIN INTELLIGENCE CARDS
══════════════════════════════════════════════════════════ */
.fw-domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.fw-domain-card {
  background: var(--fw-card-bg);
  border: 1px solid var(--fw-card-border);
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.25s;
}

.fw-domain-card--active {
  border-color: rgba(92, 197, 167, 0.35);
  background: rgba(92, 197, 167, 0.05);
}

.fw-domain-card:hover {
  border-color: var(--fw-brand);
}

.fw-domain-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.fw-domain-card__name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0;
}

.fw-domain-card__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.fw-domain-card__badge--available {
  background: rgba(92, 197, 167, 0.12);
  border: 1px solid rgba(92, 197, 167, 0.3);
  color: var(--fw-brand);
}

.fw-domain-card__badge--soon {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--fw-card-border);
  color: rgba(255, 255, 255, 0.35);
}

.fw-domain-card__purpose {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  flex: 1;
}

.fw-domain-card__attrs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fw-domain-attr {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(92, 197, 167, 0.08);
  border: 1px solid rgba(92, 197, 167, 0.2);
  color: var(--fw-brand);
}

.fw-domain-card__attrs--muted .fw-domain-attr {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--fw-card-border);
  color: rgba(255, 255, 255, 0.25);
}

/* ═══════════════════════════════════════════════════════════
   SECTION 3 — ENTERPRISE CONTEXT
══════════════════════════════════════════════════════════ */

/* Formula equation */
.fw-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.fw-formula__term {
  background: var(--fw-card-bg);
  border: 1px solid var(--fw-card-border);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.fw-formula__op {
  font-size: 20px;
  font-weight: 300;
  color: var(--fw-brand-dim);
  line-height: 1;
}

.fw-formula__eq {
  font-size: 22px;
  font-weight: 300;
  color: var(--fw-brand);
  line-height: 1;
}

.fw-formula__result {
  background: rgba(92, 197, 167, 0.08);
  border: 1.5px solid rgba(92, 197, 167, 0.35);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--fw-brand);
  white-space: nowrap;
}

/* Industry chips */
.fw-industries__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--fw-text-dim);
  margin-bottom: 12px;
}

.fw-industries__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fw-industry-chip {
  padding: 8px 16px;
  background: var(--fw-card-bg);
  border: 1px solid var(--fw-card-border);
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  transition: border-color 0.2s, color 0.2s;
}

.fw-industry-chip:hover {
  border-color: var(--fw-brand);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 4 — TRANSFORMATION HIERARCHY
══════════════════════════════════════════════════════════ */
.fw-hierarchy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 780px;
  margin: 0 auto;
}

.fw-hier__row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.fw-hier__node {
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.fw-hier__node--cto {
  background: rgba(92, 197, 167, 0.12);
  border: 1.5px solid rgba(92, 197, 167, 0.4);
  color: var(--fw-brand);
  min-width: 120px;
}

.fw-hier__node--strategy {
  background: var(--fw-card-bg);
  border: 1px solid rgba(92, 197, 167, 0.25);
  color: #fff;
  min-width: 240px;
}

.fw-hier__node--mid {
  background: var(--fw-card-bg);
  border: 1px solid var(--fw-card-border);
  color: rgba(255, 255, 255, 0.75);
  min-width: 220px;
}

.fw-hier__node--base {
  background: rgba(92, 197, 167, 0.05);
  border: 1px solid rgba(92, 197, 167, 0.2);
  color: rgba(255, 255, 255, 0.75);
  min-width: 220px;
}

.fw-hier__arrow {
  font-size: 20px;
  color: var(--fw-brand-dim);
  padding: 6px 0;
  line-height: 1;
}

/* Department row */
.fw-hier__depts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 18px 24px;
  border: 1px solid var(--fw-card-border);
  border-radius: 12px;
  width: 100%;
}

.fw-hier__dept {
  padding: 7px 14px;
  background: var(--fw-card-bg);
  border: 1px solid var(--fw-card-border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  transition: border-color 0.2s, color 0.2s;
}

.fw-hier__dept:hover {
  border-color: var(--fw-brand);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   SECTION 5 — CONTINUOUS EVOLUTION CYCLE
══════════════════════════════════════════════════════════ */
.fw-cycle__track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px 8px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid rgba(92, 197, 167, 0.12);
  border-radius: 16px;
  padding: 28px 28px 20px;
}

.fw-cycle__step {
  background: var(--fw-card-bg);
  border: 1px solid var(--fw-card-border);
  border-radius: 10px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.25s;
}

.fw-cycle__step:hover {
  border-color: var(--fw-brand);
}

.fw-cycle__num {
  font-size: 11px;
  font-weight: 700;
  color: var(--fw-brand);
  letter-spacing: 0.5px;
}

.fw-cycle__name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
}

.fw-cycle__sep {
  font-size: 18px;
  color: var(--fw-brand-dim);
  text-align: center;
  line-height: 1;
  font-weight: 300;
}

.fw-cycle__caption {
  margin-top: 14px;
  font-size: 12px;
  color: var(--fw-text-dim);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   CLOSING SECTION
══════════════════════════════════════════════════════════ */
.fw-closing {
  padding: 72px 40px 80px;
  text-align: center;
}

.fw-closing__inner {
  max-width: 720px;
  margin: 0 auto;
}

.fw-closing__heading {
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
  margin-bottom: 20px;
}

.fw-closing__body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--fw-text-dim);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .fw-domains-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  .fw-hero,
  .fw-section,
  .fw-closing { padding-left: 24px; padding-right: 24px; }

  .fw-hero { padding-top: 56px; padding-bottom: 48px; }
  .fw-section { padding-top: 56px; padding-bottom: 56px; }

  .fw-hero__sub { font-size: 18px; }

  .fw-section__lead { margin-bottom: 36px; }

  .fw-formula {
    flex-direction: column;
    align-items: flex-start;
  }

  .fw-formula__op,
  .fw-formula__eq { align-self: flex-start; }

  .fw-cycle__track {
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: repeat(3, auto) 4px repeat(3, auto);
    padding: 20px 16px 16px;
  }

  /* Row 1 steps: col 1,3,5 → col 1,3 in 3-col grid */
  /* Step 3 wraps to next row */
  /* Step 4 (row2 col5 in 5-col) → position manually */
  .fw-cycle__step:nth-child(5) {
    grid-column: 1;
    grid-row: 2;
  }
  .fw-cycle__sep:nth-child(6) {
    grid-column: 2;
    grid-row: 2;
  }
  .fw-cycle__step:nth-child(7) {
    grid-column: 3;
    grid-row: 2;
  }
  .fw-cycle__sep:nth-child(8) {
    grid-column: 1;
    grid-row: 3;
  }
  .fw-cycle__step:nth-child(9) {
    grid-column: 3;
    grid-row: 3;
  }
}

@media (max-width: 600px) {
  .fw-hero__heading { font-size: 30px; }

  .fw-domains-grid {
    grid-template-columns: 1fr;
  }

  .fw-cycle__track {
    grid-template-columns: 1fr;
    grid-template-rows: unset;
  }

  .fw-cycle__step,
  .fw-cycle__step:nth-child(n) {
    grid-column: unset;
    grid-row: unset;
  }

  .fw-cycle__sep,
  .fw-cycle__sep:nth-child(n) {
    grid-column: unset;
    grid-row: unset;
    transform: rotate(90deg);
  }

  .fw-hier__depts { gap: 6px; }
  .fw-hier__dept { font-size: 11px; padding: 6px 10px; }
}

@media (max-width: 480px) {
  .fw-hero,
  .fw-section,
  .fw-closing { padding-left: 16px; padding-right: 16px; }

  .fw-hier__node--strategy,
  .fw-hier__node--mid,
  .fw-hier__node--base { min-width: unset; width: 100%; }
}
