/* ============================================================
   ESKA METALWORKS – Slider & Mobile Enhancements
   slider.css
   ============================================================ */

/* ── Hero Slider ──────────────────────────────────────────── */
.hero-slider {
  position: relative;
  min-height: 75vh;
  overflow: hidden;
  background: linear-gradient(135deg, #050916 0%, #070f1b 55%, #050813 100%);
  touch-action: pan-y;
}

.hero-slider__track {
  display: flex;
  width: 100%;
  min-height: 100%;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  touch-action: pan-y;
}

.hero-slide {
  min-width: 100%;
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 2rem) 0 4rem;
  overflow: hidden;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.05), transparent 35%);
  pointer-events: none;
}

.hero-slide__bg {
  position: absolute;
  top: 50%;
  right: 5%;
  width: 48%;
  height: 70%;
  transform: translateY(-50%);
  background-size: cover;
  background-position: center;
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  transition: transform 0.8s ease;
  will-change: transform;
}

.hero-slide.active .hero-slide__bg {
  transform: translateY(-50%) scale(1.02);
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 9, 20, 0.94) 0%, rgba(5, 9, 20, 0.20) 42%, rgba(5, 9, 20, 0.94) 100%);
  pointer-events: none;
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  max-width: 470px;
  padding: 2.5rem 2rem;
  background: rgba(6, 13, 28, 0.82);
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

.hero-slide.active .hero-slide__content {
  opacity: 1;
  transform: translateY(0);
}

/* Slider Controls */
.hero-slider__prev,
.hero-slider__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 107, 0, 0.15);
  border: 1.5px solid rgba(255, 107, 0, 0.4);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.hero-slider__prev { left: var(--space-6); }
.hero-slider__next { right: var(--space-6); }

.hero-slider__prev:hover,
.hero-slider__next:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
}

/* Slider Dots */
.hero-slider__dots {
  position: absolute;
  bottom: var(--space-12);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-3);
  z-index: 10;
}

.hero-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-slider__dot.active {
  background: var(--color-primary);
  width: 28px;
  border-radius: 4px;
}

/* Scroll indicator */
.hero-slider__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  z-index: 10;
  text-decoration: none;
}

.hero-slider__scroll-dot {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  animation: heroFloat 2s ease-in-out infinite;
}

/* ── Testimonials Slider ───────────────────────────────────── */
.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonials-slide {
  min-width: 100%;
}

.testimonials-slide-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.testimonials-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-dark-4);
  background: transparent;
  color: var(--color-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonials-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(255, 107, 0, 0.08);
}

.testimonials-dots {
  display: flex;
  gap: var(--space-2);
}

.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-dark-4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.testimonials-dot.active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 4px;
}

/* ── Services Horizontal Scroll (mobile) ─────────────────── */
.services-slider-wrap {
  position: relative;
}

/* ── Why Choose Us Cards ──────────────────────────────────── */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.why-us-card {
  background: var(--color-dark-3);
  border: 1px solid var(--color-dark-4);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.why-us-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(255, 107, 0, 0.12);
}

.why-us-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 107, 0, 0.1);
  border: 1.5px solid rgba(255, 107, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--color-primary);
  margin: 0 auto var(--space-5);
  transition: all 0.3s ease;
}

.why-us-card:hover .why-us-card__icon {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.why-us-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-3);
}

.why-us-card__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
}

/* ── CTA Strip ────────────────────────────────────────────── */
.cta-strip {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-strip::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,0,0,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-strip__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.cta-strip__text h2 {
  font-size: var(--text-4xl);
  color: #fff;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.cta-strip__text p {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-base);
}

.cta-strip__btns {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.btn-white:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* ── Mobile Enhancements ─────────────────────────────────── */
@media (max-width: 900px) {
  .hero-slider {
    min-height: 85vh;
  }

  .hero-slider__prev,
  .hero-slider__next {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  .hero-slider__prev { left: var(--space-4); }
  .hero-slider__next { right: var(--space-4); }

  .hero-slide__content {
    max-width: 88%;
    margin: 0 auto;
  }

  .hero-slider__scroll {
    display: none;
  }

  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-slide-inner {
    grid-template-columns: 1fr;
  }

  .cta-strip__inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-strip__btns {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-slider {
    min-height: auto;
  }

  .hero-slide {
    padding-top: calc(var(--nav-height) + 1.5rem);
    padding-bottom: 3rem;
  }

  .hero-slide__bg {
    width: calc(100% - 2rem);
    height: 320px;
    top: 1.5rem;
    right: 50%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 24px;
  }

  .hero-slide__content {
    padding: 2rem 1.5rem;
    max-width: 100%;
    margin-top: 20rem;
    background: rgba(6, 13, 28, 0.97);
  }

  .hero__title {
    font-size: 2rem;
    line-height: 1.1;
  }

  .hero__desc {
    font-size: 0.96rem;
    line-height: 1.85;
  }

  .hero-slider__prev,
  .hero-slider__next {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .hero-slider__dots {
    bottom: var(--space-5);
    gap: var(--space-2);
  }

  .hero-slider__scroll {
    display: none;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .cta-strip__text h2 {
    font-size: var(--text-3xl);
  }
}

/* ── Touch-friendly FABs on Mobile ───────────────────────── */
@media (max-width: 768px) {
  .fab-group {
    bottom: var(--space-5);
    right: var(--space-4);
    gap: var(--space-2);
  }

  .fab {
    width: 50px;
    height: 50px;
  }

  .fab .app-icon {
    width: 42px;
    height: 42px;
  }
}

/* ── Mobile contact form full-width ──────────────────────── */
@media (max-width: 768px) {
  #contact .grid-2 {
    grid-template-columns: 1fr;
  }

  .contact-form .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Prevent overflow on very small screens ──────────────── */
@media (max-width: 480px) {
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-slide {
    padding-inline: var(--space-4);
  }

  .btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.8rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
