/* ============================================================
   GLOBACOM — new-blue-design/case-study-bescom.css
   Phase 10 Plan 03 (Task 2) — BESCOM case-study narrative page.

   FIRST: full @font-face + :root token block + base rules + hero
   block, duplicated verbatim from new-blue-design/ppas.css (chrome.css
   defines zero tokens of its own — every page must duplicate the full
   token block, per the CR-01 bug class already hit once in this
   project).

   THEN: the shared Phase 9 detail-page vocabulary (.hero-eyebrow,
   .detail-section-*, .detail-prose, .detail-quote, .detail-step-*),
   duplicated verbatim from new-blue-design/ppas.css — same class
   names, same property values, no renaming. This page is the proof
   that a full-bleed photo hero (unlike 10-01/10-02's banner-only
   hero) still composes correctly with this vocabulary.

   THEN: this page's own duplicated .trust-stats/.trust-stat/
   .trust-stat-value/.trust-stat-label rule bodies (from style.css,
   since this page doesn't load style.css), and the sketch's
   .situation-row/.situation-num rules verbatim (copied
   property-for-property from .claude/skills/sketch-findings-globacom/
   references/case-studies-hub-and-detail-pages.md's CSS Patterns
   block).

   Nav/mega-menu/footer CSS is chrome-owned (D-82) and deliberately NOT
   duplicated here — see redesign/_shared/chrome.css.
   ============================================================ */

@font-face {
  font-family: 'GothamBold';
  src: url('shared/fonts/GothamBold.woff2') format('woff2'),
       url('shared/fonts/GothamBold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GothamBook';
  src: url('shared/fonts/GothamBook.woff2') format('woff2'),
       url('shared/fonts/GothamBook.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GothamLight';
  src: url('shared/fonts/GothamLight.woff2') format('woff2'),
       url('shared/fonts/GothamLight.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #FAFAF8;
  --color-surface: #FFFFFF;
  --color-border: #E4E5E2;
  --color-text: #1A1D1F;
  --color-text-muted: #6C6E6B; /* WCAG-corrected per skill reference, ~4.93:1 on --color-bg */
  --color-blue: #ABC9E3;
  --color-blue-deep: #2E577A;
  --color-mint: #B9CFC0;
  --color-mint-deep: #8CA694;
  --color-footer-bg: #16181A;
  --color-text-on-dark: #F4F4F2;

  --font-display: 'GothamLight', 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'GothamBook', 'Helvetica Neue', Arial, sans-serif;
  --font-bold: 'GothamBold', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'GothamBook', 'Helvetica Neue', Arial, sans-serif;

  --wash-filter: saturate(0.7) brightness(1.08) contrast(0.92) sepia(0.04);
  --wash-filter-hero: saturate(0.45) brightness(1.02) contrast(0.88) sepia(0.08);

  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.03), 0 1px 3px rgba(0,0,0,0.04);
  --radius-md: 10px;
  --border-subtle: 1px solid rgba(0,0,0,0.06);
  --transition-fast: 150ms cubic-bezier(0.4,0,0.2,1);

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* CR-01 fix: redesign/_shared/chrome.css's mega-menu-group-label and
     badge-coming-soon rules reference --tracking-wide and --radius-sm,
     but this :root block (ported from the pilot) never defined them —
     the exact gap Phase 6 flagged in redesign/06-chrome-scaffold/
     style.css:74-81 for "Phase 7's real per-page theme stylesheets" to
     close. Values match that scaffold's token set. */
  --tracking-wide: 0.06em;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.gsap-animate {
  visibility: hidden;
}

a {
  text-decoration: none;
}

/* ============================================================
   Emphasis pattern — black/gray weight-mix, never color/size
   ============================================================ */

.em   { font-family: var(--font-bold); font-weight: 700; color: var(--color-text); }
.fade { color: var(--color-text-muted); font-weight: 400; }

/* ============================================================
   Hero (page-specific — chrome.css never defines these) —
   full-bleed photo hero, duplicated verbatim from ppas.css.
   ============================================================ */

.hero-section {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92vh;
  padding-bottom: var(--space-3xl);
}

.hero-section .hero-headline,
.hero-section .hero-sub,
.hero-section .em {
  color: var(--color-text-on-dark);
  text-shadow: 0 1px 14px rgba(0,0,0,0.25);
}

.hero-section .hero-headline,
.hero-section .hero-eyebrow,
.hero-section .hero-sub {
  text-shadow: 0 2px 4px rgba(0,0,0,0.6), 0 4px 24px rgba(0,0,0,0.55);
}

.hero-section .fade {
  color: rgba(244,244,242,0.75);
  text-shadow: 0 1px 14px rgba(0,0,0,0.25);
}

.hero-section .btn-cta:focus-visible {
  outline: 2px solid var(--color-text-on-dark);
  outline-offset: 2px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 7.4vw, 104px);
  font-weight: 300;
  line-height: 0.94;
  margin: 0 0 var(--space-md);
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 var(--space-lg);
  max-width: 640px;
}

.hero-photo-frame {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 12%;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--wash-filter-hero);
}

.hero-photo-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(20,20,18,0.35) 100%),
    linear-gradient(180deg, rgba(10,12,14,0.55) 0%, rgba(10,12,14,0.12) 35%, rgba(20,20,18,0.55) 100%);
}

.hero-photo-grain {
  position: absolute; inset: 0; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============================================================
   Phase 9 shared detail-page vocabulary — duplicated verbatim from
   new-blue-design/ppas.css.
   ============================================================ */

.hero-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-mint);
  margin: 0 0 var(--space-sm);
  text-shadow: 0 1px 14px rgba(0,0,0,0.25);
}

.detail-section {
  padding-block: var(--space-2xl);
  background: var(--color-bg);
}

.detail-section:nth-of-type(even) {
  background: var(--color-surface);
}

.detail-section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  color: var(--color-blue-deep);
  margin: 0 0 var(--space-sm);
}

.detail-section-sub {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 0 var(--space-lg);
}

.detail-prose {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  max-width: 720px;
  margin: 0 0 var(--space-md);
}

.detail-quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.4;
  color: var(--color-blue-deep);
  border-left: 3px solid var(--color-mint-deep);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
  font-style: normal;
}

.detail-step-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-xl);
}

.detail-step-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: var(--border-subtle);
}

.detail-step-row:last-child {
  border-bottom: none;
}

.detail-step-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-blue-deep); /* WCAG-corrected: ~6.9:1 vs --color-text-on-dark (was var(--color-blue), ~1.56:1) */
  color: var(--color-text-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-bold);
  font-size: 15px;
}

/* Non-numeric-marker variant — used where content is independent/
   unordered — avoids implying a false sequence, see 09-CONTEXT.md
   D-93 and sketch-013's flagged risk. Used here for the "From
   Complexity to Clarity" solution components and "The Ripple Effect
   of Innovation" outcomes — both are independent lists, not a
   sequence (contrast with the genuinely sequential Process Flow
   section below, which keeps the plain numbered .detail-step-dot). */
.detail-step-dot--neutral {
  background: #56745E; /* WCAG-corrected mint tone: ~4.7:1 vs --color-text-on-dark (was var(--color-mint-deep), ~2.4:1) */
  font-size: 18px;
  line-height: 1;
}

.detail-step-dot--neutral svg {
  width: 30px;
  height: 30px;
}

.detail-step-row h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  margin: 2px 0 var(--space-xs);
  color: var(--color-text);
}

.detail-step-row p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}

/* Page-scoped vocabulary extension — the Process Flow steps nest
   bullet lists, which a plain h3+p row never required. */
.detail-step-row ul {
  list-style: none;
  margin: 6px 0 var(--space-xs);
  padding-left: 0;
}

.detail-step-row li {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

/* Process Flow horizontal-card layout modifier — layout only; the
   numbered dot badges keep their existing sequential meaning
   unchanged. Duplicated verbatim from ppas.css's "DNA of Power
   Purchase" card layout. */
.detail-step-flow--cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.detail-step-flow--cards .detail-step-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg) var(--space-sm);
}

.detail-step-flow--cards .detail-step-row:last-child {
  border: var(--border-subtle);
}

.detail-step-flow--cards .detail-step-row h3 {
  margin: 0;
}

.detail-step-flow--cards .detail-step-row ul {
  text-align: left;
}

@media (max-width: 768px) {
  .detail-step-flow--cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .detail-step-flow--cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Trust-signal stat row — duplicated verbatim from
   new-blue-design/style.css:264-294 (this page doesn't load
   style.css, so the rule bodies must be re-declared here).
   ============================================================ */

.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.trust-stat {
  background: var(--color-surface);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.trust-stat-value {
  font-family: var(--font-bold);
  font-size: clamp(40px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-blue-deep);
}

.trust-stat-label {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
}

@media (max-width: 900px) {
  .trust-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .trust-stats {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Business Situation — numbered mint-circle rows, copied
   property-for-property from case-studies-hub-and-detail-pages.md's
   CSS Patterns block.
   ============================================================ */

.situation-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-lg) 0;
  border-bottom: var(--border-subtle);
}

.situation-row:last-child {
  border-bottom: none;
}

.situation-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-mint);
  color: var(--color-mint-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.situation-row h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  margin: 2px 0 var(--space-xs);
  color: var(--color-text);
}

.situation-row ul {
  list-style: none;
  margin: 6px 0 0;
  padding-left: 0;
}

.situation-row li {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

@media (max-width: 620px) {
  .situation-row {
    grid-template-columns: 56px 1fr;
  }

  .situation-num {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
}

/* ============================================================
   Conclusion panel — the closing section reuses .detail-prose (capped
   at 720px, the site's body-copy measure) which leaves the section
   looking sparse against the full container width. Wrapping it in a
   bordered surface panel that spans the section, with an accent left
   border matching .detail-quote's treatment, gives the conclusion the
   closing-statement prominence a case study's final section calls for.
   The closing image was dropped and the prose enlarged per UAT
   feedback.
   ============================================================ */

.conclusion-panel {
  background: var(--color-surface);
  border: var(--border-subtle);
  border-left: 4px solid var(--color-blue-deep);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-2xl);
}

.conclusion-panel .detail-prose {
  max-width: none;
  margin-bottom: 0;
  font-size: 19px;
  line-height: 1.7;
}
