/* ============================================================
   GLOBACOM — new-blue-design (Cool-Blue Minimalist, site-wide rollout)
   Washed-pastel "retro-premium" execution (D-14/D-15/D-16/D-20/
   D-25/D-26) — desaturated muted-steel-blue + pastel-sage-mint
   palette, GothamLight display type, wash-filtered photography.

   This file carries only homepage-specific rules: tokens, base rules,
   hero, stat tiles, solution overview, trust signal, and CTA section.
   Nav/mega-menu/footer/CTA-base 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);

  --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 (homepage-specific — chrome.css never defines these)
   ============================================================ */

.btn-cta--secondary {
  margin: var(--space-lg) 0;
  background: transparent;
  border: 1px solid var(--color-text);
  color: var(--color-text);
}

.btn-cta--secondary:hover,
.btn-cta--secondary:focus-visible {
  background: transparent;
  color: var(--color-text);
}

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

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  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);
}

.hero-section .btn-cta--secondary {
  border-color: var(--color-text-on-dark);
  color: var(--color-text-on-dark);
}

.hero-section .btn-cta--secondary:hover,
.hero-section .btn-cta--secondary:focus-visible {
  border-color: var(--color-text-on-dark);
  color: var(--color-text-on-dark);
}

/* D-83 homepage-half fix (never executed 02-06-PLAN.md Task 2's WR-03
   fix, still valid): the hero secondary-CTA only inherited the global
   .btn-cta:focus-visible dark-navy outline, low-contrast against the
   dark hero photo. This is homepage-only markup, so this half of the
   fix belongs here, not in chrome.css. */
.hero-section .btn-cta--secondary: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;
  inset: 0;
  z-index: 0;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* ============================================================
   Section headings — Heading role (32-56px, 400, blue-deep)
   reused across Solution Overview / Trust Signal / CTA — never
   the accent mint (D-16 — accent is reserved for CTAs/stat digits)
   ============================================================ */

.trust-signal h2,
.cta-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-blue-deep);
  margin: 0 0 var(--space-md);
}

/* ============================================================
   Trust Signal — real company-trust stats, kept visually and
   contextually distinct from the hero's illustrative stat tiles:
   neutral border (not blue), fixed 32px numeral (not the fluid
   heading-scale clamp), no mint accent anywhere, and no
   "(illustrative, not live data)" suffix.
   ============================================================ */

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

.trust-copy {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0 0 var(--space-xl);
  max-width: 640px;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(5, 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);
}

/* ============================================================
   CTA section — both locked D-13 labels, reusing .btn-cta
   ============================================================ */

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

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.cta-buttons .btn-cta--secondary {
  margin: 0;
}

/* UAT feedback: "Talk to Us" (outline/transparent) must hover
   identically to "Explore Solutions" (solid) in this CTA row — the
   global .btn-cta--secondary:hover keeps the background transparent,
   so only the shared scale/shadow/brightness from .btn-cta:hover was
   visible and the fill-brightening most of that effect relies on
   never showed. Filling solid on hover here matches it exactly. */
.cta-buttons .btn-cta--secondary:hover,
.cta-buttons .btn-cta--secondary:focus-visible {
  background: var(--color-blue-deep);
  color: var(--color-text-on-dark);
  border-color: var(--color-blue-deep);
}

/* ============================================================
   Platform Intro — Globacom automation-first narrative
   ============================================================ */

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

.platform-intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-2xl);
  align-items: center;
}

.platform-intro-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-blue-deep);
  margin: 0 0 var(--space-md);
}

.platform-intro-text p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0 0 var(--space-md);
}

.platform-intro-text p.lead {
  font-size: 18px;
}

.platform-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  filter: var(--wash-filter);
}

/* ============================================================
   Narrative reveal — EVERYTHING / EVERYWHERE / ALL AT ONCE
   (decorative stacked-type divider, not a landmark section)
   ============================================================ */

.narrative-reveal {
  padding-block: var(--space-2xl);
  background: var(--color-bg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.narrative-line {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 0.94;
  color: var(--color-blue-deep);
  margin: 0;
}

.narrative-line--sm {
  font-size: clamp(28px, 5vw, 64px);
}

.narrative-line--md {
  font-size: clamp(32px, 6vw, 80px);
}

.narrative-line--lg {
  font-size: clamp(36px, 7.4vw, 104px);
}

/* ============================================================
   Ecosystem panel — EVERYTHING: A Unified Digital Ecosystem
   (reuses the hero's photo-backdrop + vignette + overlaid-text
   composition pattern)
   ============================================================ */

.ecosystem-panel {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.ecosystem-photo-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
}

.ecosystem-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--wash-filter);
}

.ecosystem-panel-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,12,14,0.65) 0%, rgba(10,12,14,0.35) 45%, rgba(10,12,14,0.7) 100%);
}

.ecosystem-panel-content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-2xl);
  max-width: 720px;
}

.ecosystem-panel-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text-on-dark);
  margin: 0 0 var(--space-sm);
}

.ecosystem-panel-content p.fade {
  font-size: 18px;
  margin: 0 0 var(--space-md);
}

.ecosystem-panel-copy {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-on-dark);
  margin: 0;
}

/* ============================================================
   Everywhere grid — 8-card integration module grid
   ============================================================ */

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

.everywhere-grid h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-blue-deep);
  margin: 0 0 var(--space-md);
}

.everywhere-grid p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  max-width: 720px;
  margin: 0 0 var(--space-md);
}

.module-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.module-card {
  background: var(--color-surface);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  height: 100%;
  transition: box-shadow var(--transition-fast);
}

.module-card:hover {
  box-shadow: var(--shadow-sm), 0 4px 16px rgba(0,0,0,0.06);
}

.module-card-icon {
  color: var(--color-blue-deep);
  margin-bottom: var(--space-sm);
}

.module-card h3 {
  font-family: var(--font-bold);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0 0 var(--space-sm);
}

.module-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.module-card li {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  padding-left: var(--space-md);
  position: relative;
}

.module-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-mint-deep);
}

/* ============================================================
   ALL AT ONCE — AI-driven real-time analysis
   ============================================================ */

.all-at-once {
  padding-block: var(--space-2xl);
  background: var(--color-bg);
}

.all-at-once-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-2xl);
  align-items: center;
}

.all-at-once-text {
  text-align: center;
}

.all-at-once .all-at-once-sub {
  font-size: 20px;
  display: block;
  margin: 0 0 var(--space-md);
}

.all-at-once-copy {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-text);
  max-width: 720px;
  margin: 0 auto var(--space-xl);
}

.all-at-once-image img {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  filter: var(--wash-filter);
}

/* ============================================================
   Case-study carousel — "Our Work in Action"
   ============================================================ */

.case-study-carousel {
  padding-block: var(--space-2xl);
  background: var(--color-bg);
}

.case-study-carousel h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-blue-deep);
  margin: 0 0 var(--space-md);
}

.case-study-carousel .case-study-lead {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0 0 var(--space-xs);
}

.case-study-carousel .case-study-sub {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-xl);
}

.case-study-slide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-2xl);
  align-items: center;
}

.case-study-slide img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: contain;
  background: var(--color-surface);
  max-height: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.case-study-slide h3 {
  font-family: var(--font-bold);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 var(--space-sm);
}

.case-study-slide h5 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-blue-deep);
  margin: 0 0 var(--space-md);
}

.case-study-slide p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-lg);
}

.case-study-carousel .carousel-indicators [data-bs-target] {
  background-color: var(--color-blue-deep);
}

.case-study-carousel .carousel-indicators {
  position: static;
  margin: var(--space-lg) 0 0;
}

/* ============================================================
   Responsive (homepage-specific only — the mobile nav-collapse
   fix is chrome-owned, see redesign/_shared/chrome.css)
   ============================================================ */

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

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

  .ecosystem-panel {
    min-height: 90vh;
  }
}
