/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered reveal: children fade in one by one */
.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
/* Fallback: show everything if observer hasn't fired after 2s */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .stagger > * { opacity: 1; transform: none; }
  .hero-in { opacity: 1 !important; transform: none !important; }
}

/* ===== Premium typography ===== */
html { -webkit-font-smoothing: antialiased; }
body { letter-spacing: 0.01em; }
h1, h2, h3 { letter-spacing: -0.02em; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ===== Section header (premium) ===== */
.sec-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #C41230;
  padding: 0.375rem 0.875rem;
  border: 1px solid rgba(196,18,48,0.18);
  border-radius: 999px;
  background: rgba(196,18,48,0.04);
  margin-bottom: 1.25rem;
}
.sec-tag::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: #C41230;
  box-shadow: 0 0 0 3px rgba(196,18,48,0.15);
}
.sec-title { font-size: 1.875rem; font-weight: 800; color: #111827; line-height: 1.2; margin-bottom: 0.75rem; }
@media (min-width: 1024px) { .sec-title { font-size: 2.375rem; } }
.sec-sub { color: #6b7280; max-width: 42rem; margin-inline: auto; line-height: 1.7; }

/* ===== Card hover lift (global) ===== */
.lift {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -12px rgba(17, 24, 39, 0.18);
}

/* ===== Gradient text accent ===== */
.text-grad {
  background: linear-gradient(120deg, #C41230 0%, #E8354F 60%, #ff7a59 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Hero entrance ===== */
.hero-in {
  opacity: 0;
  transform: translateY(26px);
  animation: heroIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Marquee (brand wall) ===== */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 0.625rem;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Tilt card ===== */
.tilt {
  transition: transform 0.25s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ===== Nav underline ===== */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--color-brand, #cc0000);
  transition: width 0.25s ease, left 0.25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; left: 0; }

/* ===== Scroll progress bar (top of page) ===== */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #cc0000, #ff5a5a);
  z-index: 60;
  transition: width 0.1s linear;
}

/* ===== Navbar hide-on-scroll-down / show-on-scroll-up ===== */
#navbar {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s, box-shadow 0.3s;
}
#navbar.nav-hidden { transform: translateY(-100%); }

/* ===== Back-to-top progress ring ===== */
#backTop svg.ring { position: absolute; inset: 0; transform: rotate(-90deg); pointer-events: none; }
#backTop svg.ring circle { fill: none; stroke-width: 3; }
#backTop svg.ring .ring-bg { stroke: rgba(255,255,255,0.25); }
#backTop svg.ring .ring-fg { stroke: #fff; stroke-linecap: round; transition: stroke-dashoffset 0.15s linear; }

/* ===== Hero parallax layers ===== */
.parallax { will-change: transform; }

/* ===== Product card hover ===== */

/* ===== Product card hover ===== */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(80, 107, 138, 0.15);
}
.product-card .card-icon {
  transition: transform 0.3s ease;
}
.product-card:hover .card-icon {
  transform: scale(1.08);
}

/* ===== Equipment card ===== */
.equip-card {
  background: linear-gradient(135deg, #f8f9fc 0%, #fff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 160px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.equip-card:hover {
  border-color: #c41230;
  box-shadow: 0 4px 20px rgba(196, 18, 48, 0.08);
}

/* ===== Quality grid item ===== */
.quality-item {
  background: #fff;
  border: 1px solid #f1f3f7;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.quality-item:hover {
  border-color: #c41230;
  box-shadow: 0 4px 20px rgba(196, 18, 48, 0.06);
}

/* ===== Strength card ===== */
.strength-card {
  background: #fff;
  border: 1px solid #f1f3f7;
  border-radius: 1rem;
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.strength-card:hover {
  border-color: #c41230;
  box-shadow: 0 20px 40px -12px rgba(80, 107, 138, 0.12);
  transform: translateY(-4px);
}

/* ===== Lead time bar ===== */
.lt-bar {
  height: 8px;
  border-radius: 4px;
  background: #e5e7eb;
  overflow: hidden;
}
.lt-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #c41230, #e8354f);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0;
}

/* ===== Smooth scroll ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* ===== Equipment swiper ===== */
.equipSwiper {
  padding-bottom: 52px !important;
}
.equipSwiper .swiper-slide {
  position: relative;
}
.eq-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(17, 24, 39, 0.75);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}
.equipSwiper .swiper-pagination-bullet {
  background: #c41230;
  opacity: 0.35;
}
.equipSwiper .swiper-pagination-bullet-active {
  opacity: 1;
}
.equipSwiper .swiper-button-prev,
.equipSwiper .swiper-button-next {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(4px);
}
.equipSwiper .swiper-button-prev::after,
.equipSwiper .swiper-button-next::after {
  font-size: 18px;
  color: #c41230;
  font-weight: 700;
}
.equipSwiper .swiper-button-prev:hover,
.equipSwiper .swiper-button-next:hover {
  background: #fff;
}

/* ===== Strength card image fix ===== */
.strength-card img {
  width: 100%;
  display: block;
}

/* ===== Selection ===== */
::selection {
  background: rgba(196, 18, 48, 0.15);
  color: #111827;
}

/* ===== Map fallback (when static tiles unavailable) ===== */
.map-grid {
  background-color: #f8f9fc;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
}
