/* ==========================================================================
   ENTIX SOLUTIONS — Industrial B2B Design System
   Exact extracted brand palette:
     Matte Black:     #111111
     Deep Charcoal:   #1A1A1A
     Elevated Steel:  #202020
     Slate Border:    #2E2E2E
     Entix Gold:      #E9BD20  (extracted directly from uploaded logo)
     Gold Highlight:  #FACC15
     Crisp White:     #FFFFFF
   ========================================================================== */

:root {
  --entix-black: #111111;
  --entix-charcoal: #1A1A1A;
  --entix-surface: #161616;
  --entix-elevated: #212121;
  --entix-border: #2E2E2E;
  --entix-border-strong: #404040;
  --entix-gold: #E9BD20;
  --entix-gold-bright: #FACC15;
  --entix-gold-deep: #C99E10;
  --entix-white: #FFFFFF;
  --entix-muted: #A3A3A3;
  --entix-subtle: #737373;
}

/* Base typography & smooth rendering */
html {
  scroll-behavior: smooth;
  background-color: var(--entix-black);
  color: var(--entix-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--entix-black);
  color: var(--entix-white);
  overflow-x: hidden;
  line-height: 1.6;
}

html[dir="rtl"] body,
html[lang="ar"] body {
  font-family: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', system-ui, sans-serif;
  line-height: 1.75;
}

/* Tighter display tracking for English, natural tracking for Arabic */
.display-heading {
  letter-spacing: -0.028em;
}

html[dir="rtl"] .display-heading {
  letter-spacing: 0;
}

/* Technical Mono numerals & identifiers (CR, VAT, SKUs, coordinates) */
.tech-mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Automatic icon mirroring in RTL */
html[dir="rtl"] .rtl-flip {
  transform: scaleX(-1);
}

html[dir="rtl"] .wa-float {
  right: auto;
  left: 1.25rem;
}

/* Subtle industrial architectural cross-hair accents (non-cliché, minimal) */
.section-hairline {
  border-top: 1px solid var(--entix-border);
}

.eyebrow-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--entix-gold);
}

html[dir="rtl"] .eyebrow-bar {
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.85rem;
}

.eyebrow-bar::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 2px;
  background-color: var(--entix-gold);
  flex-shrink: 0;
}

/* Surface elevation & precision card hover */
.entix-card {
  background-color: var(--entix-charcoal);
  border: 1px solid var(--entix-border);
  transition: border-color 220ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1), background-color 220ms ease;
}

.entix-card:hover {
  border-color: rgba(233, 189, 32, 0.55);
  background-color: #1E1E1E;
  transform: translateY(-2px);
}

/* Industrial corner tick detail on flagship panels */
.industrial-frame {
  position: relative;
}

.industrial-frame::before,
.industrial-frame::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--entix-gold);
  pointer-events: none;
  opacity: 0.85;
}

.industrial-frame::before {
  top: -1px;
  inset-inline-start: -1px;
  border-top: 2px solid var(--entix-gold);
  border-inline-start: 2px solid var(--entix-gold);
}

.industrial-frame::after {
  bottom: -1px;
  inset-inline-end: -1px;
  border-bottom: 2px solid var(--entix-gold);
  border-inline-end: 2px solid var(--entix-gold);
}

/* Primary & Secondary industrial buttons */
.btn-gold {
  background-color: var(--entix-gold);
  color: #111111;
  font-weight: 700;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.btn-gold:hover {
  background-color: var(--entix-gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -10px rgba(233, 189, 32, 0.45);
}

.btn-gold:active {
  background-color: var(--entix-gold-deep);
  transform: translateY(0);
}

.btn-outline {
  background-color: transparent;
  color: var(--entix-white);
  border: 1px solid var(--entix-border-strong);
  font-weight: 600;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.btn-outline:hover {
  border-color: var(--entix-gold);
  color: var(--entix-gold);
  background-color: rgba(233, 189, 32, 0.06);
}

/* Sticky Header states */
.site-header {
  background-color: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--entix-border);
  transition: background-color 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled {
  background-color: rgba(17, 17, 17, 0.98);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.75);
}

.nav-link {
  position: relative;
  color: #D4D4D4;
  transition: color 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--entix-white);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 2px;
  background-color: var(--entix-gold);
}

/* Filter tab pills */
.filter-tab {
  background-color: var(--entix-charcoal);
  border: 1px solid var(--entix-border);
  color: #D4D4D4;
  transition: all 160ms ease;
}

.filter-tab:hover {
  border-color: #525252;
  color: var(--entix-white);
}

.filter-tab.is-active {
  background-color: var(--entix-gold);
  border-color: var(--entix-gold);
  color: #111111;
  font-weight: 700;
}

/* Image subtle zoom on card hover */
.card-media img {
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.entix-card:hover .card-media img {
  transform: scale(1.045);
}

/* Hero image scrim for razor-sharp headline contrast */
.hero-scrim {
  background: linear-gradient(
    95deg,
    rgba(17, 17, 17, 0.96) 0%,
    rgba(17, 17, 17, 0.86) 46%,
    rgba(17, 17, 17, 0.42) 100%
  );
}

html[dir="rtl"] .hero-scrim {
  background: linear-gradient(
    265deg,
    rgba(17, 17, 17, 0.96) 0%,
    rgba(17, 17, 17, 0.86) 46%,
    rgba(17, 17, 17, 0.42) 100%
  );
}

/* Checkbox chip for multi-select quote categories */
.category-chip input:checked + span {
  background-color: rgba(233, 189, 32, 0.14);
  border-color: var(--entix-gold);
  color: var(--entix-gold);
}

/* Lightbox modal */
.lightbox-backdrop {
  background-color: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(10px);
}

/* Toast notification */
.copy-toast {
  transition: opacity 200ms ease, transform 200ms ease;
}

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

::-webkit-scrollbar-track {
  background: #111111;
}

::-webkit-scrollbar-thumb {
  background: #2E2E2E;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: #484848;
}

/* Accessible focus outlines */
:focus-visible {
  outline: 2px solid var(--entix-gold);
  outline-offset: 2px;
}

/* ==========================================================================
   MODERN SCROLL ANIMATIONS, PARALLAX & MOTION CHOREOGRAPHY
   ========================================================================== */

/* Top Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #E9BD20 0%, #FACC15 100%);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(233, 189, 32, 0.55);
}

html[dir="rtl"] .scroll-progress-bar {
  transform-origin: right center;
}

/* Choreographed Scroll-Reveal States */
[data-reveal] {
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity 720ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 780ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="up"] {
  transform: translate3d(0, 38px, 0);
}

[data-reveal="down"] {
  transform: translate3d(0, -28px, 0);
}

[data-reveal="left"] {
  transform: translate3d(38px, 0, 0);
}

[data-reveal="right"] {
  transform: translate3d(-38px, 0, 0);
}

[data-reveal="scale"] {
  transform: scale(0.94) translate3d(0, 20px, 0);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Modern Elevated Card Sheen */
.entix-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 30px -18px rgba(0, 0, 0, 0.85);
}

.entix-card:hover {
  box-shadow: inset 0 1px 0 rgba(233, 189, 32, 0.22), 0 24px 48px -20px rgba(0, 0, 0, 0.95);
}

/* Continuous Industrial Capabilities Marquee */
@keyframes entix-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-viewport {
  overflow: hidden;
  user-select: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: entix-marquee 34s linear infinite;
}

.marquee-viewport:hover .marquee-track {
  animation-play-state: paused;
}

/* Subtle Hero Parallax Image */
.hero-parallax-img {
  will-change: transform;
  transform: scale(1.06) translate3d(0, 0, 0);
  transition: transform 90ms linear;
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .marquee-track {
    animation: none !important;
  }
}

