/* ==========================================================================
   REVA PHOENIX DESIGN SYSTEM — TOKENS, TYPOGRAPHY & INDUSTRIAL FOUNDATION
   Dark Cinematic Engineering & Global Technical Consulting Visual Identity
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette — Sampled directly from reference image (Dark obsidian base with warm-orange left & atmospheric-blue right) */
  --bg-primary: #121115;
  --bg-secondary: #16181F;
  --bg-graphite: #1C202A;
  --bg-surface: #232834;
  --bg-surface-elevated: #2C3342;
  --bg-surface-translucent: rgba(18, 17, 21, 0.94);

  /* Orange Accent — Light Orange (#F47A3C) */
  --orange-primary: #F47A3C;
  --orange-highlight: #F47A3C;
  --orange-deep: #D46026;
  --orange-glow: rgba(244, 122, 60, 0.28);
  --orange-subtle: rgba(244, 122, 60, 0.08);
  --orange-border: rgba(244, 122, 60, 0.35);
  --orange-border-strong: rgba(244, 122, 60, 0.7);

  /* Blue Accent — Electric Cobalt Azure (#0070F3) */
  --blue-primary: #0070F3;
  --blue-highlight: #1A85FF;
  --blue-deep: #0056B3;
  --blue-glow: rgba(0, 112, 243, 0.28);
  --blue-subtle: rgba(0, 112, 243, 0.08);
  --blue-border: rgba(0, 112, 243, 0.35);
  --blue-border-strong: rgba(0, 112, 243, 0.70);

  /* Monochrome & Technical Neutrals */
  --text-primary: #FFFFFF;
  --text-secondary: #C5CBD6;
  --text-muted: #8892A0;
  --text-warm-orange: #F47A3C;
  --text-electric-blue: #0070F3;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-graphite: #2E3543;
  --grid-line: rgba(244, 122, 60, 0.05);

  /* Typography Stacks */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-technical: 'Chakra Petch', monospace, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Elevation & Shadows */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-elevation: 0 12px 40px rgba(0, 0, 0, 0.7);
  --shadow-orange: 0 0 35px rgba(212, 91, 18, 0.15);
  --shadow-orange-intense: 0 0 50px rgba(212, 91, 18, 0.28);

  /* Layout Constants */
  --container-max-width: 1400px;
  --nav-height: 80px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.6s var(--ease-out-expo);
}

/* Base Styles & Resets */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(ellipse 55% 65% at 0% 45%, rgba(165, 80, 32, 0.35) 0%, rgba(108, 60, 31, 0.18) 35%, rgba(65, 36, 20, 0.05) 55%, transparent 70%),
    radial-gradient(ellipse 55% 65% at 100% 25%, rgba(51, 95, 144, 0.40) 0%, rgba(33, 66, 108, 0.20) 35%, rgba(29, 52, 83, 0.05) 55%, transparent 70%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  text-align: left;
}

/* Global Strict Left-Alignment, Width Handling & Natural Text Wrapping for All Content Elements */
h1, h2, h3, h4, h5, h6,
p, label, ul, ol, li, dl, dt, dd,
blockquote, figcaption, address {
  text-align: left;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
  white-space: normal;
  max-width: 100%;
}

/* Ensure flex/grid containers and cards allow text children to wrap at the right boundary */
.container,
.section-wrapper,
.section-header,
article,
section,
main,
aside,
header,
footer,
.card,
[class*="-card"],
[class*="-col"],
[class*="-box"],
[class*="-wrapper"],
[class*="-container"] {
  min-width: 0;
}


/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-graphite);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--orange-primary);
}

/* Selection */
::selection {
  background: rgba(0, 112, 243, 0.35);
  color: #FFFFFF;
}

/* ==========================================================================
   LENIS INERTIAL SMOOTH SCROLLING ENGINE
   ========================================================================== */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped:not(.lab-modal-open) {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Typography Hierarchy — Fluid, Left-Aligned & Natural Width Wrapping */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-align: left;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
  white-space: normal;
  max-width: 100%;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
}

h4 {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
  white-space: normal;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Graphic Typography Utilities */
.text-orange,
.word-orange {
  color: var(--orange-primary) !important;
}

.text-orange-bright {
  color: var(--orange-highlight) !important;
}

.text-blue {
  color: var(--blue-primary) !important;
}

.text-blue-bright {
  color: var(--blue-highlight) !important;
}

.text-white {
  color: #FFFFFF !important;
}

.text-glow-orange {
  text-shadow: 0 0 20px rgba(255, 85, 0, 0.45);
}

.text-glow-blue {
  text-shadow: 0 0 20px rgba(0, 112, 243, 0.45);
}

.text-glow {
  text-shadow: 0 0 20px rgba(255, 85, 0, 0.4);
}

.text-stroke {
  -webkit-text-stroke: 1.5px var(--orange-primary);
  color: transparent;
  transition: var(--transition-normal);
}

.text-stroke-subtle {
  -webkit-text-stroke: 1px rgba(255, 85, 0, 0.3);
  color: transparent;
}

.text-technical {
  font-family: var(--font-technical);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.text-mono {
  font-family: var(--font-mono);
}

.watermark-text {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.015);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
  user-select: none;
  pointer-events: none;
  z-index: 0;
  line-height: 0.8;
  white-space: nowrap;
}

/* Technical Markings & Calibration Lines */
.tech-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-technical);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-primary);
  background: rgba(0, 112, 243, 0.08);
  border: 1px solid var(--blue-border);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  width: fit-content;
  font-weight: 600;
}


.corner-accents {
  position: relative;
}

.corner-accents::before,
.corner-accents::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
  border-color: var(--orange-border);
}

.corner-accents::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--orange-primary);
  border-left: 2px solid var(--orange-primary);
}

.corner-accents::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--orange-primary);
  border-right: 2px solid var(--orange-primary);
}

/* Container Structure */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
}

.section-wrapper {
  position: relative;
  padding: clamp(5rem, 8vw, 8.5rem) 0;
  overflow: hidden;
  scroll-margin-top: 100px;
}

.section-bg-dark {
  background-color: transparent;
}

.section-bg-secondary {
  background-color: rgba(22, 24, 31, 0.82);
}

.section-bg-graphite {
  background-color: rgba(28, 32, 42, 0.85);
}

/* Section Header Graphic Composition */
.section-header {
  margin-bottom: clamp(3rem, 5vw, 5rem);
  position: relative;
  z-index: 2;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-header.text-center {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-subtitle {
  font-family: var(--font-technical);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  text-align: left;
}

.section-subtitle::before {
  content: '';
  height: 2px;
  width: 32px;
  background: var(--orange-primary);
  display: inline-block;
  flex-shrink: 0;
  border-radius: 1px;
}

.section-header.text-center .section-subtitle::after,
.section-header .section-subtitle::after {
  display: none;
}

.section-header:not(.text-center) .section-subtitle::after {
  display: none;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-transform: uppercase;
  line-height: 1.15;
  text-align: left;
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
}

.section-description {
  width: 100%;
  max-width: 100%;
  margin-top: 1rem;
  margin-left: 0;
  margin-right: auto;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: left;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
}

/* ==========================================================================
   GSAP KINETIC TYPOGRAPHY SYSTEM
   ========================================================================== */

.gsap-word-wrap {
  display: inline-block;
  vertical-align: baseline;
  margin-right: 0;
  padding-bottom: 0.04em;
  white-space: normal;
  overflow-wrap: break-word;
}

.gsap-word {
  display: inline-block;
  will-change: transform, opacity;
  transform: translateY(115%) rotate(3deg);
  opacity: 0;
}

/* Ensure special word highlights retain their dimensional style */
.gsap-word.highlight-word {
  color: var(--orange-primary);
}

.gsap-word.outline-word {
  -webkit-text-stroke: 1.5px var(--orange-primary);
  color: transparent;
}

/* ==========================================================================
   UNIVERSAL TEXT WRAPPING, WIDTH HANDLING & LEFT-ALIGNMENT SYSTEM
   Guarantees natural wrapping like Microsoft Word / Excel across all sections
   ========================================================================== */

.hero-headline,
.hero-line,
.hero-subhead,
.hero-subhead-services,
.hero-subhead-trust,
.section-title,
.section-subtitle,
.section-description,
.about-hero-title,
.about-hero-subtitle,
.about-section-title,
.about-section-lead,
.services-hero-title,
.services-hero-subtitle,
.service-section-title,
.service-section-desc,
.service-card-title,
.service-card-desc,
.gallery-hero-title,
.gallery-hero-desc,
.gal-section-title,
.gal-section-desc,
.project-headline,
.lab-card-title,
.lab-category-title,
.lab-card-meta,
.training-hero-title,
.training-hero-desc,
.training-section-title,
.section-subheading,
.careers-section-title,
.careers-section-desc,
.clients-page-main-title,
.clients-page-main-subtitle,
.leadership-title,
.leadership-quote-p,
.contact-desc-singleline,
.testimonial-quote,
.core-pillar-title,
.core-pillar-desc,
.lab-inst-name,
.lab-instruments-title,
.lab-instruments-desc,
.doc-title,
.doc-desc {
  text-align: left;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
  white-space: normal;
  max-width: 100%;
}
