/* ============================================================
   SPCO Logistics — Home Page (v2)
   Color usage: 60% White · 20% Light-gray · 5% Brand-blues
                3% Speed-orange (CTA) · 2% Brand-navy/gold (luxury)
   Sections: Hero (dark navy) → Approach (white) → SOP-band (brand-blue)
             → Partners (light-gray) → CTA (white with gold accent)
   ============================================================ */

/* ============================================================
   1) HERO — luxury dark, brand-navy with gold eyebrow
   ============================================================ */
.hn-hero {
  position: relative;
  min-height: 720px;
  background: var(--c-brand-navy);
  color: #FFFFFF;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hn-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hn-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(0.7) brightness(0.5) contrast(1.05);
}
.hn-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(18, 27, 70, 0.50) 0%,
      rgba(18, 27, 70, 0.20) 40%,
      rgba(18, 27, 70, 0.92) 100%),
    linear-gradient(270deg,
      rgba(18, 27, 70, 0.85) 0%,
      rgba(18, 27, 70, 0.15) 60%,
      transparent 100%);
}
html[dir="ltr"] .hn-hero__media::after {
  background:
    linear-gradient(180deg,
      rgba(18, 27, 70, 0.50) 0%,
      rgba(18, 27, 70, 0.20) 40%,
      rgba(18, 27, 70, 0.92) 100%),
    linear-gradient(90deg,
      rgba(18, 27, 70, 0.85) 0%,
      rgba(18, 27, 70, 0.15) 60%,
      transparent 100%);
}

.hn-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--sp-20) 0 var(--sp-16);
}
.hn-hero__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-8);
}

/* Eyebrow — brand-gold luxury accent */
.hn-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--c-brand-gold);
  margin-bottom: var(--sp-6);
}
html[lang="ar"] .hn-hero__eyebrow { font-family: var(--font-arabic); }
.hn-hero__eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--c-brand-gold);
}
html[lang="en"] .hn-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
}

/* Title */
.hn-hero__title {
  font-family: var(--font-arabic);
  font-weight: 500;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 var(--sp-5);
  max-width: 820px;
}
html[lang="en"] .hn-hero__title { font-family: var(--font-display); }

.hn-hero__title-line1 {
  display: block;
  font-weight: 600;
}
.hn-hero__title-line2 {
  display: block;
  font-weight: 500;
  color: #FFFFFF;
  opacity: 0.95;
  margin-top: 6px;
}

.hn-hero__lede {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  max-width: 580px;
  margin: 0 0 var(--sp-10);
}

/* CTAs */
.hn-hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hn-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  text-decoration: none;
  border-radius: var(--r-sm);
}
html[lang="ar"] .hn-btn { font-family: var(--font-arabic); letter-spacing: 0; }

/* Primary CTA → Speed Orange (3% attention-grabber) */
.hn-btn--primary {
  background: var(--c-speed-orange);
  color: #FFFFFF;
}
.hn-btn--primary:hover {
  background: var(--c-speed-orange-700);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.30);
}
.hn-btn--primary:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

/* Ghost — on dark backgrounds */
.hn-btn--ghost {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.30);
}
.hn-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.60);
  color: #FFFFFF;
}
.hn-btn--ghost:focus-visible {
  outline: 2px solid var(--c-brand-gold);
  outline-offset: 2px;
}

.hn-btn svg { width: 16px; height: 16px; }
html[dir="rtl"] .hn-btn svg { transform: scaleX(-1); }

/* Hero scroll cue */
.hn-hero__scroll {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-bottom: var(--sp-8);
}
.hn-hero__scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
html[lang="ar"] .hn-hero__scroll-cue {
  font-family: var(--font-arabic);
  text-transform: none;
  letter-spacing: 0.10em;
  font-size: 12px;
}
.hn-hero__scroll-cue svg {
  width: 14px;
  height: 14px;
  animation: spcoScrollBounce 2s ease-in-out infinite;
}
@keyframes spcoScrollBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

/* ============================================================
   2) APPROACH — primary white surface (60%)
   ============================================================ */
.hn-approach {
  background: #FFFFFF;
  padding: var(--sp-28) 0 var(--sp-24);
  position: relative;
}
.hn-approach::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 80px;
  background: var(--brand);
}

.hn-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-8);
}

/* Section kicker — appears under the hairline */
.hn-section-kicker {
  text-align: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin: var(--sp-10) 0 var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
html[lang="ar"] .hn-section-kicker { font-family: var(--font-arabic); }
.hn-section-kicker::before,
.hn-section-kicker::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--brand);
  opacity: 0.4;
}
html[lang="en"] .hn-section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
}

/* Approach lead headline */
.hn-approach__lead {
  font-family: var(--font-arabic);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--c-text-primary);
  text-align: center;
  max-width: 920px;
  margin: 0 auto var(--sp-20);
}
html[lang="en"] .hn-approach__lead { font-family: var(--font-display); }
.hn-approach__lead em {
  font-style: normal;
  color: var(--brand);
  font-weight: 700;
}

/* ---------- Pillar cards ---------- */
.hn-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
  max-width: 1080px;
  margin: 0 auto var(--sp-20);
}
.hn-pillar {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  padding: var(--sp-10) var(--sp-8);
  position: relative;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.hn-pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(18, 27, 70, 0.15);
  border-top-color: var(--brand-light);
}

.hn-pillar__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #FFFFFF;
  margin-bottom: var(--sp-6);
  border-radius: var(--r-sm);
  transition: background var(--dur-base) var(--ease-out);
}
.hn-pillar:hover .hn-pillar__icon { background: var(--brand-light); }
.hn-pillar__icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
}

.hn-pillar__title {
  font-family: var(--font-arabic);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text-primary);
  margin: 0 0 14px;
  line-height: 1.4;
}
html[lang="en"] .hn-pillar__title { font-family: var(--font-display); }

.hn-pillar__text {
  font-family: var(--font-arabic);
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-text-secondary);
  margin: 0;
}
html[lang="en"] .hn-pillar__text { font-family: var(--font-sans); }

/* ---------- SOP band — Primary Blue brand emphasis (5%) ---------- */
.hn-sop-band {
  background: var(--brand);
  color: #FFFFFF;
  padding: var(--sp-12) var(--sp-12);
  margin: 0 auto;
  max-width: 1080px;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
}
.hn-sop-band::before {
  content: 'SOP';
  position: absolute;
  top: 10px;
  inset-inline-end: var(--sp-6);
  font-family: var(--font-display);
  font-size: 90px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
  pointer-events: none;
}
.hn-sop-band__lead {
  position: relative;
  font-family: var(--font-arabic);
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin: 0 0 var(--sp-8);
}
html[lang="en"] .hn-sop-band__lead { font-family: var(--font-sans); }
.hn-sop-band__lead strong {
  color: #FFFFFF;
  font-weight: 700;
}

.hn-sop-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.20);
  /* Reset list defaults (semantic <ol>) */
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: none;
}
.hn-sop-step {
  padding: 28px 20px 8px;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.10);
  position: relative;
}
.hn-sop-step:last-child { border-inline-end: none; }
.hn-sop-step::before {
  content: '';
  position: absolute;
  top: -1px;
  inset-inline-start: 0;
  width: 32px;
  height: 1px;
  background: var(--c-brand-gold);
}

.hn-sop-step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  color: #FFFFFF;
  opacity: 0.75;
  margin-bottom: 10px;
}
.hn-sop-step__label {
  font-family: var(--font-arabic);
  font-size: 17px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.4;
  display: block;
}
html[lang="en"] .hn-sop-step__label { font-family: var(--font-display); }

@media (max-width: 768px) {
  .hn-approach { padding: var(--sp-20) 0 var(--sp-16); }
  .hn-pillars { grid-template-columns: 1fr; gap: var(--sp-4); }
  .hn-sop-band { padding: var(--sp-10) var(--sp-6); }
  .hn-sop-band::before { font-size: 60px; }
  .hn-sop-steps { grid-template-columns: repeat(2, 1fr); }
  .hn-sop-step { border-bottom: 1px solid rgba(255, 255, 255, 0.10); }
  .hn-sop-step:nth-child(2) { border-inline-end: none; }
  .hn-sop-step:nth-last-child(-n+2) { border-bottom: none; }
}

/* ============================================================
   3) PARTNERS — neutral light-gray (20%)
   ============================================================ */
.hn-partners {
  background: var(--c-bg-light);
  padding: var(--sp-28) 0 var(--sp-24);
  position: relative;
  overflow: hidden;
}
.hn-partners::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 80px;
  background: var(--brand);
}

.hn-partners__title {
  font-family: var(--font-arabic);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  text-align: center;
  color: var(--c-text-primary);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: var(--sp-6) 0 var(--sp-16);
}
html[lang="en"] .hn-partners__title {
  font-family: var(--font-display);
  font-weight: 600;
}

/* Marquee container */
.hn-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hn-marquee__track {
  display: flex;
  gap: var(--sp-8);
  width: max-content;
  animation: spcoMarquee 55s linear infinite;
  align-items: center;
  padding: 20px var(--sp-10);
}
html[dir="rtl"] .hn-marquee__track { animation-direction: reverse; }

@keyframes spcoMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Pause animation when reduced motion is requested */
@media (prefers-reduced-motion: reduce) {
  .hn-marquee__track { animation: none; }
}

/* Marquee items (logos / placeholders) */
.hn-marquee__item {
  flex-shrink: 0;
  height: 64px;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  color: var(--c-text-primary);
  transition: border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  border-radius: var(--r-sm);
}
.hn-marquee__item:hover {
  border-color: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(18, 27, 70, 0.08);
}
.hn-marquee__item img {
  max-height: 36px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hn-marquee__placeholder {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--c-text-primary);
}

/* ============================================================
   4) CTA — white with brand-gold hairline
   ============================================================ */
.hn-cta {
  background: #FFFFFF;
  color: var(--c-text-primary);
  padding: var(--sp-28) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 80px;
  background: var(--c-brand-gold);
}
.hn-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center top,
      rgba(185, 164, 121, 0.06),
      transparent 60%);
  pointer-events: none;
}

.hn-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
}
.hn-cta .hn-section-kicker {
  color: var(--c-brand-gold);
}
.hn-cta .hn-section-kicker::before,
.hn-cta .hn-section-kicker::after {
  background: var(--c-brand-gold);
  opacity: 0.6;
}

.hn-cta__title {
  font-family: var(--font-arabic);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--c-text-primary);
  margin: var(--sp-12) 0 var(--sp-12);
}
html[lang="en"] .hn-cta__title { font-family: var(--font-display); }
.hn-cta__title em {
  font-style: normal;
  color: var(--c-speed-orange);
  font-weight: 700;
}

.hn-cta .hn-btn--primary {
  padding: 18px 44px;
  font-size: 15px;
}

/* ============================================================
   5) RESPONSIVE — global homepage refinements
   ============================================================ */
@media (max-width: 768px) {
  .hn-hero { min-height: 600px; }
  .hn-hero__inner { padding: var(--sp-16) 0 var(--sp-12); }
  .hn-hero__container { padding: 0 var(--sp-5); }
  .hn-container { padding: 0 var(--sp-5); }
  .hn-partners { padding: var(--sp-20) 0 var(--sp-16); }
  .hn-cta { padding: var(--sp-20) 0; }
}
