/* ── Variable Aliases ─────────────────────────────────── */
:root {
  --primary: #0d0d0d;
  --primary-dark: #050505;
  --accent: #e89a22;
  --accent-light: #f0b050;
  --text-muted-color: rgba(255, 255, 255, 0.45);
}

/* ── LTR Content in RTL Context (phones, emails) ─────── */
.ltr-content,
.ltr-text {
  direction: ltr;
  unicode-bidi: isolate;
}
/* Ensure existing dir="ltr" spans also isolate correctly */
[dir="rtl"] [dir="ltr"] {
  unicode-bidi: isolate;
}

/* ── Loading Screen ───────────────────────────────────── */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Scroll Progress ──────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform-origin: left;
  transform: scaleX(0);
}

/* ── Hero Section ─────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}
#hero .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 1;
}
#hero .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 9s ease;
}
#hero .slide.active {
  opacity: 1;
  z-index: 2;
}
#hero .slide.active img {
  transform: scale(1);
}

.hero-overlay-b {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(to bottom, rgba(5,5,5,.5) 0%, rgba(5,5,5,.3) 40%, rgba(5,5,5,.9) 100%);
}
.hero-overlay-r {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(to right, rgba(5,5,5,.55) 0%, transparent 55%);
}
[dir="ltr"] .hero-overlay-r {
  background: linear-gradient(to left, rgba(5,5,5,.55) 0%, transparent 55%);
}

.hero-label-line {
  width: 32px;
  height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-content {
  position: relative;
  z-index: 5;
}

/* Slide Dots */
.slide-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width .35s ease, background .35s;
}
.slide-dot.active {
  width: 24px;
  background: var(--accent);
}

/* ── Section Padding ──────────────────────────────────── */
.section-padding {
  padding: 88px 0;
  position: relative;
}
@media (max-width: 767px) {
  .section-padding {
    padding: 60px 0;
  }
}

/* ── Section Eyebrow ──────────────────────────────────── */
.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1rem;
}
.eyebrow-line {
  height: 1px;
  width: 48px;
  background: var(--accent);
  opacity: 0.5;
}
.eyebrow-line.flip {
  transform: scaleX(-1);
}

/* ── Grid Layouts ─────────────────────────────────────── */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
@media (max-width: 479px) {
  .grid-products {
    grid-template-columns: 1fr;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.lg-grid-2 {
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .lg-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.lg-grid-3 {
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .lg-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Glass Card ───────────────────────────────────────── */
.glass-card {
  background: #111111;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .35s ease, border-color .35s, box-shadow .35s;
  position: relative;
  cursor: default;
}
.glass-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .35s;
  z-index: 2;
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232,154,34,.3);
  box-shadow: 0 8px 40px rgba(0,0,0,.7), 0 0 0 1px rgba(232,154,34,.15);
}
.glass-card:hover::after {
  opacity: 1;
}

.card-img {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: #161616;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.glass-card:hover .card-img img {
  transform: scale(1.07);
}
.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #111111 0%, transparent 60%);
}

.icon-card {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #161616, #111111);
  position: relative;
  overflow: hidden;
}
.icon-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(232,154,34,.03) 28px, rgba(232,154,34,.03) 29px),
    repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(232,154,34,.03) 28px, rgba(232,154,34,.03) 29px);
}

/* ── Icon Box ─────────────────────────────────────────── */
.icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(232,154,34,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
}
.glass-card:hover .icon-box {
  background: rgba(232,154,34,.18);
}

.icon-lg {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  margin: 0 auto 18px;
  background: rgba(232,154,34,.09);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: background .3s, box-shadow .3s;
}
.why-card:hover .icon-lg {
  background: rgba(232,154,34,.18);
  box-shadow: 0 0 24px rgba(232,154,34,.15);
}

/* ── Quality Std Card ─────────────────────────────────── */
.std-card {
  background: #111111;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 16px;
  transition: border-color .3s, box-shadow .3s;
}
.std-card:hover {
  border-color: rgba(232,154,34,.25);
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}

/* ── Stat Card ────────────────────────────────────────── */
.stat-card {
  background: #111111;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.stat-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.stat-card:hover {
  border-color: rgba(232,154,34,.22);
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
}
.stat-card:hover::after {
  opacity: 1;
}

/* ── Why Card (extra styles not in css/style.css) ─────── */
.why-card {
  text-align: center;
}

/* ── Glow Text ────────────────────────────────────────── */
.glow-text {
  text-shadow: 0 0 24px rgba(232,154,34,.3);
}

/* ── CTA Section ──────────────────────────────────────── */
#cta {
  padding: 88px 0;
  background: #050505;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* ── Footer ───────────────────────────────────────────── */
footer {
  background: #050505;
  border-top: 1px solid rgba(232,154,34,.1);
}

.industrial-line {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(232,154,34,.2), transparent);
}

.logo-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(232,154,34,.1);
  border: 1px solid rgba(232,154,34,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand, 'Montserrat', sans-serif);
  font-weight: 900;
  font-size: 13px;
  color: var(--accent);
  flex-shrink: 0;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.35);
  font-size: 13.5px;
  transition: color .2s;
}
.footer-link:hover {
  color: var(--accent);
}

/* ── Buttons ──────────────────────────────────────────── */
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: 10px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(232,154,34,.25);
  white-space: nowrap;
}
.btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232,154,34,.4);
}
.btn-accent:active {
  transform: scale(.97);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s;
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: rgba(232,154,34,.5);
  background: rgba(232,154,34,.06);
  transform: translateY(-2px);
}
.btn-outline:active {
  transform: scale(.97);
}

/* ── Reveal Animation ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transition: opacity .65s ease, transform .65s ease;
}
/* higher specificity to override .card { transform: translateZ(0) } from inline style */
.reveal:not(.visible) {
  transform: translateY(28px);
}
.reveal.left:not(.visible) {
  transform: translateX(28px);
}
.reveal.scale:not(.visible) {
  transform: scale(.92);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Loader Bar (missing animation) ──────────────────── */
.loader-bar {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: loaderBar 1.8s ease forwards;
}
@keyframes loaderBar {
  from { width: 0; }
  to   { width: 180px; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Text Utilities ───────────────────────────────────── */
.text-muted {
  color: rgba(255,255,255,.45);
}
.text-accent {
  color: var(--accent);
}
.text-xs {
  font-size: .75rem;
}
.text-sm {
  font-size: .875rem;
}
.text-base {
  font-size: 1rem;
}
.text-lg {
  font-size: 1.125rem;
}

/* ── Spacing Utilities ────────────────────────────────── */
.p-5 {
  padding: 1.25rem;
}
.mt-2 {
  margin-top: .5rem;
}
.mb-2 {
  margin-bottom: .5rem;
}
.mb-3 {
  margin-bottom: .75rem;
}

/* ── Flex / Layout Utilities ──────────────────────────── */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.shrink-0 {
  flex-shrink: 0;
}
.gap-3 {
  gap: .75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-5 {
  gap: 1.25rem;
}

/* ── Position Utilities ───────────────────────────────── */
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.inset-0 {
  inset: 0;
}
.pointer-events-none {
  pointer-events: none;
}

/* ── Size Utilities ───────────────────────────────────── */
.h-full {
  height: 100%;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-xl {
  max-width: 36rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ── Text Alignment ───────────────────────────────────── */
.text-center {
  text-align: center;
}

/* ── Font Utilities ───────────────────────────────────── */
.font-bold {
  font-weight: 700;
}
.font-black {
  font-weight: 900;
}
.font-semibold {
  font-weight: 600;
}
.font-mono {
  font-family: 'Montserrat', 'Inter', sans-serif;
}
.leading-relaxed {
  line-height: 1.85;
}
.leading-snug {
  line-height: 1.4;
}
.uppercase {
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════
   VISUAL EFFECTS
   ═══════════════════════════════════════════════════════ */

/* ── Language Switch Transition ───────────────────────── */
.lang-switching body {
  pointer-events: none;
}
.lang-switching #hero .hero-content,
.lang-switching section,
.lang-switching footer {
  opacity: 0;
  filter: blur(6px);
  transition: opacity 0.26s ease, filter 0.26s ease;
}
.lang-switching #nav {
  opacity: 0;
  transition: opacity 0.26s ease;
}
/* Restore on removal */
#hero .hero-content,
section,
footer,
#nav {
  transition: opacity 0.3s ease, filter 0.3s ease;
}

/* ── Section In-View Accent Line ──────────────────────── */
section.section-padding::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  pointer-events: none;
}
section.section-padding.in-view::before {
  transform: translateX(-50%) scaleX(1);
}

/* ── Reveal Enhancements ──────────────────────────────── */
/* Stagger delays for dynamically-rendered grids */
#products-grid .glass-card:nth-child(1)  { transition-delay: 0.0s; }
#products-grid .glass-card:nth-child(2)  { transition-delay: 0.07s; }
#products-grid .glass-card:nth-child(3)  { transition-delay: 0.14s; }
#products-grid .glass-card:nth-child(4)  { transition-delay: 0.21s; }
#products-grid .glass-card:nth-child(5)  { transition-delay: 0.28s; }
#products-grid .glass-card:nth-child(6)  { transition-delay: 0.35s; }
#products-grid .glass-card:nth-child(n+7){ transition-delay: 0.42s; }

#why-grid .glass-card:nth-child(1) { transition-delay: 0.0s; }
#why-grid .glass-card:nth-child(2) { transition-delay: 0.1s; }
#why-grid .glass-card:nth-child(3) { transition-delay: 0.2s; }
#why-grid .glass-card:nth-child(4) { transition-delay: 0.3s; }
#why-grid .glass-card:nth-child(5) { transition-delay: 0.4s; }

/* ── Section Eyebrow Animated Line ────────────────────── */
.eyebrow-line {
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal:not(.visible) .eyebrow-line {
  width: 0;
}
.reveal.visible .eyebrow-line {
  width: 48px;
}

/* ── Stat Card Glow on In-View ────────────────────────── */
.stat-card {
  transition: border-color .3s, box-shadow .3s, background .4s;
}
section.in-view .stat-card {
  box-shadow: 0 0 32px rgba(232,154,34,.06);
}

/* ── Why Card Hover Direction Lift ────────────────────── */
.why-card {
  transition: transform .35s cubic-bezier(0.4,0,0.2,1), border-color .35s, box-shadow .35s;
}

/* ── CTA In-View Scale ────────────────────────────────── */
#cta .reveal.scale:not(.visible) {
  transform: scale(0.94);
}
#cta .reveal.scale.visible {
  transform: scale(1);
}

/* ── Scroll-Triggered Orange Pulse on Accent Borders ─── */
@keyframes borderPulse {
  0%, 100% { opacity: .12; }
  50%       { opacity: .35; }
}
section.section-padding.in-view .glass-card {
  animation: none; /* let hover handle it */
}

/* ── Industrial Grid Overlay Fade on Scroll ───────────── */
section.section-padding {
  transition: background 0.6s ease;
}

/* ── Hero Scroll Fade Out ─────────────────────────────── */
#hero {
  --scroll-fade: 1;
}
#hero .hero-content {
  transition: opacity 0.1s linear, filter 0.1s linear;
}

/* ── Nav Smooth Appear ────────────────────────────────── */
#nav {
  transition: padding .35s ease, background .35s, border-color .35s, opacity .3s ease;
}
