/* =========================================================
   Al Etqaan Al Raida — custom styles (layered on Tailwind CDN)
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ---------- Navigation ---------- */
.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: #232833;
  border-radius: 0.5rem;
  transition: color .2s ease, background-color .2s ease;
}
.nav-link:hover {
  color: #F2790A;
  background-color: #FFF4E9;
}
.nav-link-active {
  color: #F2790A;
  font-weight: 700;
}
.mobile-nav-link {
  display: block;
  padding: 0.85rem 0.25rem;
  font-weight: 600;
  font-size: 1rem;
  color: #232833;
  border-bottom: 1px solid #E4E7EB;
}
#site-header.is-scrolled {
  box-shadow: 0 8px 24px -12px rgba(15,22,32,.18);
}

/* ---------- Hero ---------- */
.hero-bg {
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-overlay {
  background: linear-gradient(115deg, rgba(9,12,17,.92) 10%, rgba(9,12,17,.78) 45%, rgba(15,22,32,.55) 100%);
}
[dir="rtl"] .hero-overlay {
  background: linear-gradient(245deg, rgba(9,12,17,.92) 10%, rgba(9,12,17,.78) 45%, rgba(15,22,32,.55) 100%);
}

.gear-pattern {
  background-image: radial-gradient(rgba(242,121,10,.15) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

/* ---------- Cards / hover lift ---------- */
.hover-lift {
  transition: transform .35s ease, box-shadow .35s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -18px rgba(15,22,32,.35);
}

.img-zoom {
  overflow: hidden;
}
.img-zoom img {
  transition: transform .6s ease;
}
.img-zoom:hover img {
  transform: scale(1.08);
}

/* ---------- Section badge ---------- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #FFF4E9;
  color: #A64F06;
  font-weight: 700;
  font-size: .8rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  letter-spacing: .02em;
}
.section-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #F2790A;
  display: inline-block;
}

/* ---------- Diagonal divider ---------- */
.diagonal-top {
  clip-path: polygon(0 4%, 100% 0, 100% 100%, 0% 100%);
}
[dir="rtl"] .diagonal-top {
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0% 100%);
}

/* ---------- Counter ---------- */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ---------- Fleet filter buttons ---------- */
.filter-btn {
  padding: .6rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .875rem;
  border: 1px solid #E4E7EB;
  color: #4A5361;
  transition: all .2s ease;
  white-space: nowrap;
}
.filter-btn:hover {
  border-color: #F2790A;
  color: #F2790A;
}
.filter-btn.active {
  background: #F2790A;
  border-color: #F2790A;
  color: #fff;
}

.fleet-card {
  transition: opacity .35s ease, transform .35s ease;
}
.fleet-card.fleet-hidden {
  display: none;
}

/* ---------- Lightbox ---------- */
#lightbox {
  transition: opacity .25s ease;
}

/* ---------- WhatsApp pulse ---------- */
@keyframes pulse-slow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  50% { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
}
.animate-pulse-slow {
  animation: pulse-slow 2.4s infinite;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Timeline / process connector ---------- */
.process-line::after {
  content: "";
  position: absolute;
  top: 2.25rem;
  inset-inline-start: 50%;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #FBB266 0 10px, transparent 10px 18px);
  z-index: 0;
}
.process-item:last-child .process-line::after {
  display: none;
}

/* ---------- Form ---------- */
.form-input {
  width: 100%;
  border: 1px solid #E4E7EB;
  border-radius: .65rem;
  padding: .85rem 1rem;
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
  background: #fff;
}
.form-input:focus {
  outline: none;
  border-color: #F2790A;
  box-shadow: 0 0 0 3px rgba(242,121,10,.15);
}
.form-label {
  display: block;
  font-weight: 600;
  font-size: .875rem;
  color: #232833;
  margin-bottom: .4rem;
}

/* Scrollbar for horizontal chip rows on mobile */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
