/* Industrial Editorial Redesign - Homepage Scoped Styles */

:root {
  --rail-navy: #001f4d;
  --rail-steel: #3f5568;
  --rail-sand: #f4f0e8;
  --rail-line: #d7dde2;
  --rail-accent: #d97a2b;
  --rail-ink: #001f4d;

  --font-heading: var(--font-display, "Montserrat", sans-serif);
  --font-body: var(--font-main, "Montserrat", sans-serif);
}

html[dir="rtl"] :root {
  --font-heading: "Cairo", sans-serif;
  --font-body: "Cairo", sans-serif;
}

/* Hero Section */
.hero-editorial {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background-color: var(--rail-navy);
  color: #fff;
  overflow: hidden;
}

.hero-editorial[data-fade-carousel] .hero-editorial-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.2s ease-in-out;
  z-index: 0;
}

.hero-editorial[data-fade-carousel] .hero-editorial-bg.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-editorial-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 31, 77, 0.9) 0%,
    rgba(0, 31, 77, 0.6) 50%,
    rgba(0, 31, 77, 0.4) 100%
  );
  z-index: 2;
}

html[dir="rtl"] .hero-editorial-overlay {
  background: linear-gradient(
    to left,
    rgba(0, 31, 77, 0.9) 0%,
    rgba(0, 31, 77, 0.6) 50%,
    rgba(0, 31, 77, 0.4) 100%
  );
}

.hero-editorial-container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: inherit;
  padding-top: 3rem;
  padding-bottom: 3rem;
  width: 100%;
}

.hero-editorial-content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-editorial-eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rail-accent);
}

.hero-editorial-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
}

.text-accent {
  color: var(--rail-accent);
}

.hero-editorial-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  color: var(--rail-line);
  max-width: 90%;
}

.hero-editorial-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-editorial-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--rail-accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background-color 0.2s ease;
}

.btn-editorial-primary:hover {
  background-color: #b86420;
  color: #fff;
}

.btn-editorial-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--rail-ink);
  border: 1px solid var(--rail-ink);
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 0;
  transition: all 0.2s ease;
}

.btn-editorial-outline:hover {
  background-color: var(--rail-ink);
  border-color: var(--rail-ink);
  color: #fff;
}

.hero-editorial-actions .btn-editorial-outline {
  color: #fff;
  border-color: var(--rail-line);
}

.hero-editorial-actions .btn-editorial-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* Dots at the end of background frame */
.hero-editorial-dots {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0; /* span full width to allow centering or right align with padding */
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  z-index: 10;
}

html[dir="rtl"] .hero-editorial-dots {
  justify-content: flex-start;
}

.hero-editorial-dot {
  display: block;
  width: 3rem;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero-editorial-dot.is-active,
.hero-editorial-dot:hover {
  background-color: var(--rail-accent);
  width: 4rem;
}

/* Navigation Arrows */
.hero-editorial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.2s ease;
  border-radius: 0; /* Boxy editorial look */
}

.hero-editorial-nav:hover {
  background: var(--rail-accent);
  border-color: var(--rail-accent);
}

.hero-editorial-nav--prev {
  left: 1.5rem;
}

.hero-editorial-nav--next {
  right: 1.5rem;
}

/* Proof Strip */
.proof-strip {
  background-color: var(--rail-ink);
  color: #fff;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.proof-strip-grid {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.proof-val {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--rail-accent);
  line-height: 1;
}

.proof-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--rail-line);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.proof-separator {
  width: 1px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.15);
}

@media (min-width: 1025px) {
  .hero-editorial {
    --hero-offset: 135px;
    min-height: calc(100vh - var(--hero-offset));
    height: calc(100vh - var(--hero-offset));
  }
}

@media (max-width: 1024px) {
  .hero-editorial {
    min-height: 80vh;
  }

  .hero-editorial-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .proof-strip-grid {
    justify-content: flex-start;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-editorial {
    min-height: 70vh;
  }

  .hero-editorial-nav {
    display: none; /* Hide arrows on mobile for cleaner look */
  }

  .hero-editorial-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 31, 77, 0.7) 0%,
      rgba(0, 31, 77, 0.8) 100%
    );
  }

  html[dir="rtl"] .hero-editorial-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 31, 77, 0.7) 0%,
      rgba(0, 31, 77, 0.8) 100%
    );
  }

  .proof-strip-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .proof-separator {
    display: none;
  }
}

/* References Marquee */
.references-modern {
  padding: 4rem 0;
  background-color: var(--rail-sand);
  overflow: hidden;
}

.references-marquee {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  position: relative;
  display: flex;
  margin-top: 2rem;
}
.references-marquee::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.references-marquee .marquee-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-left: 3rem;
  padding-right: 3rem;
  width: max-content;
  flex-direction: row;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.references-marquee:hover .marquee-content {
  animation-play-state: paused;
}

.reference-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 150px;
  max-width: 200px;
}

.reference-item img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: filter 0.3s ease;
}

.reference-item img:hover {
  filter: grayscale(0%) opacity(1);
}

.reference-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rail-steel);
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


