/* ============================================================
   GLOBACOM — new-blue-design/customer-self-service-portal.css
   Phase 9 Plan 05 — Customer Self-Service Portal solution-detail page.

   FIRST: full @font-face + :root token block + base rules + hero
   block, duplicated byte-for-byte verbatim from 09-01's canonical
   new-blue-design/utility-billing.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,
   .hero-tag-row/.hero-tag-chip, .detail-section-*, .detail-prose,
   .detail-quote, .detail-step-*) — consumed verbatim from 09-01's
   canonical source, not re-derived or renamed (D-93). This page
   introduces zero new classes.

   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)
   ============================================================ */

/* The canonical blue/white CTA style now lives solely in
   redesign/_shared/chrome.css's .btn-cta rule (per G-09-36). The
   .btn-cta--secondary class token on this page's hero/closing CTA
   element is kept in the HTML only because this page's own .js file
   still targets it as a GSAP animation selector — it must never again
   be given its own background/color/hover declarations here. */

.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 .em {
  color: var(--color-text-on-dark);
  text-shadow: 0 1px 14px rgba(0,0,0,0.25);
}

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

/* D-83 homepage-half fix (never executed 02-06-PLAN.md Task 2's WR-03
   fix, still valid): the hero CTA only inherited the global
   .btn-cta:focus-visible dark-navy outline, low-contrast against the
   dark hero photo. This is page-owned markup, so this half of the
   fix belongs here, not in chrome.css. */
.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;
  /* G-09-37 — crop hero photo shorter and fade its bottom edge into the
     page background instead of a hard cut line (09-01 canonical source) */
  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 — canonical source for
   09-02..09-05 to duplicate verbatim.
   ============================================================ */

.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);
}

/* Consumed verbatim from 09-01's canonical source; unused on this page
   (Customer Self-Service Portal has no named sub-module list — see
   this page's own objective — omitted, not left empty, per the locked
   rule at 09-CONTEXT.md D-93/sketch 012 Variant B). */
.hero-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: 0 0 var(--space-md);
}

.hero-tag-chip {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(244,244,242,0.14);
  border: 1px solid rgba(244,244,242,0.3);
  color: var(--color-text-on-dark);
}

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

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

.detail-section-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-blue-deep);
  margin: 0 0 var(--space-sm);
}

.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. */
.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 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;
}

/* Icon treatment — quick 260928-fg5 (G-09-30) */

.detail-step-icon {
  display: block;
}

.detail-icon-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.detail-icon-card {
  background: var(--color-surface);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
}

.detail-icon-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #56745E;
  color: var(--color-text-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.detail-icon-card-icon svg {
  width: 28px;
  height: 28px;
}

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

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