/* ==========================================================================
   HUKAMA STEEL - Unified Corporate Stylesheet
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Typography
   --------------------------------------------------------------------------- */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .font-heading {
  font-family: 'Barlow', sans-serif;
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------------------
   Card Hover Effect
   --------------------------------------------------------------------------- */
.card-hover {
  transition:
    transform    0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow   0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s  ease;
}

.card-hover:hover {
  transform:    translateY(-4px);
  box-shadow:   0 16px 32px -8px rgba(15, 23, 42, 0.12);
  border-color: #dc2626;
}

/* ---------------------------------------------------------------------------
   Catalog Filter Buttons
   --------------------------------------------------------------------------- */
.filter-btn {
  transition: all 0.2s ease;
}

.filter-btn.active {
  background-color: #dc2626 !important;
  color:            #ffffff !important;
  border-color:     #dc2626 !important;
  box-shadow:       0 2px 8px rgba(220, 38, 38, 0.25);
}

/* ---------------------------------------------------------------------------
   Custom Scrollbar
   --------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width:  8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background:    #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ---------------------------------------------------------------------------
   Infinite Client Logo Marquee
   --------------------------------------------------------------------------- */
.marquee-wrapper {
  display:     flex;
  overflow:    hidden;
  user-select: none;
  gap:         2.5rem;
  position:    relative;
  width:       100%;
}

.marquee-group {
  flex-shrink:     0;
  display:         flex;
  align-items:     center;
  justify-content: space-around;
  gap:             2.5rem;
  min-width:       100%;
  animation:       scroll-seamless 35s linear infinite;
}

.marquee-wrapper:hover .marquee-group {
  animation-play-state: paused;
}

@keyframes scroll-seamless {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - 2.5rem)); }
}

.client-logo-item {
  display:         flex;
  align-items:     center;
  justify-content: center;
  filter:          grayscale(100%) opacity(60%);
  transition:      filter 0.25s ease, transform 0.25s ease;
  flex-shrink:     0;
}

.client-logo-item:hover {
  filter:    grayscale(0%) opacity(100%);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------------------
   Floating WhatsApp Button
   --------------------------------------------------------------------------- */
.wa-float-btn {
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
}

.wa-float-btn:hover {
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.65);
}

/* ---------------------------------------------------------------------------
   Custom Elegant Select Dropdown
   --------------------------------------------------------------------------- */
.custom-select-trigger:focus {
  outline:    none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.custom-select-dropdown.active {
  display:   block;
  opacity:   1;
  transform: translateY(0);
}

.custom-select-scroll::-webkit-scrollbar       { width: 5px; }
.custom-select-scroll::-webkit-scrollbar-track { background: #f8fafc; border-radius: 9999px; }
.custom-select-scroll::-webkit-scrollbar-thumb { background: #cbd5e1;  border-radius: 9999px; }
.custom-select-scroll::-webkit-scrollbar-thumb:hover { background: #dc2626; }

.custom-select-option {
  cursor:     pointer;
  transition: all 0.15s ease;
}

.custom-select-option:hover   { background-color: #fef2f2; color: #991b1b; }
.custom-select-option.selected { background-color: #fee2e2; color: #991b1b; font-weight: 600; }

/* ---------------------------------------------------------------------------
   Technical Modal Spec List
   --------------------------------------------------------------------------- */
#modalSpecs ul {
  display:        flex;
  flex-direction: column;
  gap:            0.5rem;
  list-style:     none;
  padding:        0;
  margin:         0;
}

#modalSpecs li {
  display:          flex;
  flex-direction:   column;
  gap:              0.25rem;
  padding:          0.5rem 0.75rem;
  background-color: #f8fafc;
  border-radius:    0.5rem;
  border:           1px solid #e2e8f0;
  font-size:        0.8125rem;
  line-height:      1.4;
  color:            #334155;
}

@media (min-width: 640px) {
  #modalSpecs li {
    flex-direction: row;
    align-items:    baseline;
    gap:            0.75rem;
  }

  #modalSpecs li strong {
    min-width:  160px;
    flex-shrink: 0;
  }
}

#modalSpecs li strong {
  color:       #0f172a;
  font-weight: 700;
}

/* ---------------------------------------------------------------------------
   Toast Notification — Salin Alamat
   --------------------------------------------------------------------------- */
.copy-toast {
  position:      fixed;
  bottom:        2rem;
  left:          50%;
  transform:     translateX(-50%) translateY(80px);
  background:    #0f172a;
  color:         #f8fafc;
  padding:       0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size:     0.8125rem;
  font-weight:   600;
  display:       flex;
  align-items:   center;
  gap:           0.625rem;
  box-shadow:    0 10px 25px -5px rgba(0, 0, 0, 0.35);
  z-index:       60;
  opacity:       0;
  transition:    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                 opacity   0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  border:        1px solid #334155;
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity:   1;
}

/* ---------------------------------------------------------------------------
   Article Modal Prose Typography
   --------------------------------------------------------------------------- */
.article-prose h4 {
  font-family:   'Barlow', sans-serif;
  font-size:     1.125rem;
  font-weight:   800;
  color:         #0f172a;
  margin-top:    1.5rem;
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
}

.article-prose p {
  color:         #334155;
  font-size:     0.875rem;
  line-height:   1.7;
  margin-bottom: 0.875rem;
}

.article-prose ul {
  list-style-type: disc;
  padding-left:    1.25rem;
  margin-bottom:   1rem;
  color:           #334155;
  font-size:       0.875rem;
  line-height:     1.65;
}

.article-prose li {
  margin-bottom: 0.375rem;
}

.article-prose blockquote {
  border-left:   3px solid #dc2626;
  padding:       0.75rem 1rem;
  color:         #0f172a;
  background:    #f8fafc;
  border-radius: 0 0.5rem 0.5rem 0;
  margin:        1.25rem 0;
  font-size:     0.875rem;
  line-height:   1.6;
}

.article-prose strong {
  color:       #0f172a;
  font-weight: 700;
}

/* ---------------------------------------------------------------------------
   Hero Crossfade Slideshow & Ken Burns Zoom (5-Second Rotation)
   --------------------------------------------------------------------------- */
.hero-slide {
  opacity: 0;
  transform: scale(1.0);
  transition: opacity 1.0s cubic-bezier(0.4, 0, 0.2, 1), transform 5.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.05);
}

.bg-radial-vignette {
  background: radial-gradient(circle at center, transparent 35%, rgba(2, 6, 23, 0.85) 100%);
}

.hero-dot {
  position: relative;
  cursor: pointer;
  border: none;
  padding: 0;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Invisible touch target expander for mobile accessibility (WCAG 44px minimum) */
.hero-dot::after {
  content: '';
  position: absolute;
  top: -16px;
  bottom: -16px;
  left: -8px;
  right: -8px;
}

.hero-dot:focus-visible {
  ring: 2px solid #ef4444;
}

/* ---------------------------------------------------------------------------
   UI Hardening: Anti-Accidental Caret & Text Selection
   Mencegah kursor ketik berkedip (|) atau blok teks biru tak disengaja
   pada menu navbar, tombol, judul, dan area hero saat diklik.
   --------------------------------------------------------------------------- */
header,
header nav,
header a,
.mobile-nav-link,
#heroSection,
#heroSection h1,
#heroSection p,
button,
.btn,
.navbar-link,
.hero-dot,
.catalog-filter-btn,
.tab-btn,
.badge,
.font-heading,
h1, h2, h3, h4, h5, h6,
.brand-logo,
.client-logo-item,
.wa-float-btn,
.stat-counter,
[role="button"],
[role="tab"],
[role="tablist"] {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

h1, h2, h3, h4, h5, h6 {
  cursor: default;
}

a,
button,
.btn,
.hero-dot,
.tab-btn,
.filter-btn,
.catalog-filter-btn,
.copy-address-btn,
.custom-select-trigger,
.custom-select-option {
  cursor: pointer;
}

/* ---------------------------------------------------------------------------
   Reduced Motion Accessibility
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration:   0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration:  0.01ms !important;
    scroll-behavior:      auto !important;
  }
}

/* ---------------------------------------------------------------------------
   Hero Slide Responsive Background Images (Guaranteed fail-safe on all devices)
   --------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-slide[data-index="0"] {
    background-image: url('../images/facility/slide-facade-m.jpg?v=2.3') !important;
  }
  .hero-slide[data-index="1"] {
    background-image: url('../images/facility/slide-welding-m.jpg?v=2.3') !important;
  }
  .hero-slide[data-index="2"] {
    background-image: url('../images/facility/slide-machinery-m.jpg?v=2.3') !important;
  }
  .hero-slide[data-index="3"] {
    background-image: url('../images/facility/slide-truck-m.jpg?v=2.3') !important;
  }
}

@media (min-width: 769px) {
  .hero-slide[data-index="0"] {
    background-image: url('../images/facility/slide-facade.jpg?v=2.3');
  }
  .hero-slide[data-index="1"] {
    background-image: url('../images/facility/slide-welding.jpg?v=2.3');
  }
  .hero-slide[data-index="2"] {
    background-image: url('../images/facility/slide-machinery.jpg?v=2.3');
  }
  .hero-slide[data-index="3"] {
    background-image: url('../images/facility/slide-truck.jpg?v=2.3');
  }
}



