/* ═══════════════════════════════════════════════════════════
   Nasij Hero — hero.css
   Cinematic split hero with golden thread animation.
   ═══════════════════════════════════════════════════════════ */

/* ── Section ───────────────────────────────────────────── */
#hero {
  position: relative;
  width: 100%;
  background: #F7F3EC;
  overflow: hidden;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 50px;
  padding-bottom: 50px;
}

/* Subtle woven texture overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23C8A96A' stroke-width='0.3' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── Split layout ──────────────────────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 48px;
  align-items: center;
  min-height: auto;
  position: relative;
  z-index: 1;
  direction: rtl;
}

/* ── Content column (right in RTL) ─────────────────────── */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 40px 0;
}

.hero-eyebrow {
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: #C8A96A;
  margin: 0 0 24px;
}

.hero-headline {
  font-family: 'Rakkas', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  color: #14143a;
  line-height: 1.2;
  margin: 0 0 24px;
}

.hero-em {
  color: #e8744d;
  font-style: normal;
}

.hero-desc {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  color: #5B5B5B;
  line-height: 1.85;
  margin: 0 0 36px;
  max-width: 480px;
}

/* ── CTA Buttons ──────────────────────────────────────── */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 9999px;
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              background 0.3s ease;
  overflow: hidden;
}

.hero-btn--primary {
  background: #14143a;
  color: #F7F3EC;
  border: none;
}

.hero-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(20, 20, 58, 0.2);
  background: #1e1e4a;
}

.hero-btn-thread {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C8A96A, transparent);
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn--primary:hover .hero-btn-thread {
  transform: scaleX(1);
}

.hero-btn--ghost {
  background: transparent;
  color: #14143a;
  border: 1px solid rgba(20, 20, 58, 0.2);
}

.hero-btn--ghost:hover {
  border-color: #C8A96A;
  color: #8A6A3C;
  transform: translateY(-1px);
}

/* ── Trust indicators ─────────────────────────────────── */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-trust-item {
  font-family: 'Tajawal', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(20, 20, 58, 0.45);
  letter-spacing: 0.02em;
}

.hero-trust-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(20, 20, 58, 0.2);
}

/* ── Visual column (left in RTL) ───────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: visible;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-figure {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-logo-img {
  display: none;
}

@keyframes hero-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.01); }
}

.hero-figure--breathing {
  animation: hero-breathe 4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

/* ── Scroll indicator ──────────────────────────────────── */
.hero-scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.hero-scroll-line {
  width: 1px;
  height: 36px;
  background: #C8A96A;
  border-radius: 1px;
  animation: hero-scroll-pulse 3s ease-in-out infinite;
}

.hero-scroll-label {
  font-family: 'Tajawal', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: rgba(20, 20, 58, 0.3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@keyframes hero-scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50%      { transform: scaleY(1.2); opacity: 0.8; }
}

/* ── Entrance animations — initial state ───────────────── */
.hero-eyebrow,
.hero-headline,
.hero-desc,
.hero-actions,
.hero-trust {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
}

.hero-figure {
  opacity: 0;
  transform: scale(0.8);
}

.hero-scroll-indicator {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
}

/* ── Entrance — staggered reveal ───────────────────────── */
.hero--animate .hero-eyebrow {
  animation: hero-content-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.hero--animate .hero-headline {
  animation: hero-content-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}
.hero--animate .hero-desc {
  animation: hero-content-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}
.hero--animate .hero-actions {
  animation: hero-content-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.95s forwards;
}
.hero--animate .hero-trust {
  animation: hero-content-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.15s forwards;
}
.hero--animate .hero-figure {
  animation: hero-figure-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}
.hero--animate .hero-scroll-indicator {
  animation: hero-scroll-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
}

/* From opening */
.hero--from-opening .hero-figure {
  opacity: 1;
  transform: none;
}
.hero--from-opening .hero-eyebrow {
  animation: hero-content-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}
.hero--from-opening .hero-headline {
  animation: hero-content-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.hero--from-opening .hero-desc {
  animation: hero-content-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}
.hero--from-opening .hero-actions {
  animation: hero-content-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}
.hero--from-opening .hero-trust {
  animation: hero-content-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.75s forwards;
}
.hero--from-opening .hero-scroll-indicator {
  animation: hero-scroll-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

/* ── Keyframes ─────────────────────────────────────────── */
@keyframes hero-content-in {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes hero-figure-in {
  0%   { opacity: 0; transform: scale(0.8); }
  60%  { opacity: 1; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes hero-scroll-in {
  to {
    opacity: 0.5;
    transform: translateX(-50%) translateY(0);
  }
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-split {
    gap: 32px;
    padding: 0 32px;
  }
}

@media (max-width: 680px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 20px;
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .hero-content {
    text-align: center;
    align-items: center;
    order: 1;
    padding: 0;
  }

  .hero-desc {
    max-width: 100%;
    font-size: 14px;
  }

  .hero-visual {
    order: 2;
    min-height: 250px;
  }

  .hero-figure {
    width: 100%;
    height: 100%;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 28px;
    font-size: 14px;
  }

  .hero-trust {
    justify-content: center;
    gap: 8px;
  }

  .hero-trust-item {
    font-size: 11px;
  }

  .hero-headline {
    font-size: clamp(28px, 7vw, 42px);
  }

  .hero-eyebrow {
    font-size: 11px;
    margin-bottom: 16px;
  }

  #hero {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

@media (max-width: 400px) {
  .hero-split {
    padding: 0 16px;
    padding-top: 60px;
    padding-bottom: 40px;
  }

  .hero-headline {
    font-size: clamp(24px, 7vw, 32px);
  }

  .hero-desc {
    font-size: 13px;
    line-height: 1.75;
  }

  .hero-trust-dot { display: none; }
  .hero-trust {
    flex-direction: column;
    gap: 4px;
  }
}

/* ── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero--animate *,
  .hero--from-opening * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .hero-figure--breathing {
    animation: none !important;
  }

  .hero-scroll-line {
    animation: none !important;
  }

  .hero-canvas {
    display: none !important;
  }
}

.reduce-motion .hero-canvas {
  display: none !important;
}

.reduce-motion .hero--animate *,
.reduce-motion .hero--from-opening * {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}


/* ── High contrast ─────────────────────────────────────── */
.hc #hero { background: #fff; }
.hc .hero-headline { color: #14143a; }
.hc .hero-desc { color: #333; }
.hc .hero-em { color: #8A6A3C; }
.hc .hero-scroll-line { background: #14143a; }
