/* ============================================
   NAMSEZANA TRADING & PROJECTS
   Hero Section Styles
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--industrial-darker);
  overflow: hidden;
}

/* Background Image & Overlays */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%; /* Shifting down to keep faces in frame */
  opacity: 0.4;
  filter: grayscale(0.5) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(var(--color-dominant-dark-rgb), 0.1) 0%, transparent 50%),
    linear-gradient(to bottom,
      rgba(var(--color-dominant-dark-rgb), 0.85) 0%,
      rgba(var(--color-dominant-dark-rgb), 0.5) 40%,
      var(--industrial-darker) 100%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(var(--palette-white-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--palette-white-rgb), 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}

/* WebGL Particles Container */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.webgl-canvas {
  width: 100% !important;
  height: 100% !important;
}

/* CSS Fallback Particles */
.particles-fallback {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.css-particle {
  position: absolute;
  background: rgba(136, 136, 136, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 1;
  /* Mathematically balanced: Account for Navbar at top, match with bottom space for visual centering */
  padding-top: calc(var(--navbar-height) + var(--space-20));
  padding-bottom: var(--space-20);
}

.hero-text {
  max-width: 900px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--safety-yellow);
  margin-bottom: var(--space-6);
}

.label-line {
  width: 40px;
  height: 2px;
  background: var(--safety-yellow);
}

.hero-title {
  font-family: var(--font-secondary);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.title-line {
  display: block;
}

.title-accent {
  color: var(--safety-yellow);
  font-size: var(--text-3xl);
  margin-top: var(--space-2);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(var(--palette-white-rgb), 0.8);
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: var(--space-8);
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero-ctas .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-ctas .btn svg {
  width: 18px;
  height: 18px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-32);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(var(--palette-white-rgb), 0.6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  animation: bounce 2s ease-in-out infinite;
  z-index: 1;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(var(--palette-white-rgb), 0.5), transparent);
}

/* =============================================
   HERO TRUST BAR — White background, dark text
   ============================================= */
.hero-trust-bar {
  position: relative;
  z-index: 1;
  background: var(--color-dominant);
  /* White / OKLCH 97% */
  border-top: 3px solid var(--color-accent);
  /* Yellow accent line at intersection */
  box-shadow: 0 4px 24px rgba(26, 58, 92, 0.08);
  margin-top: auto;
}

.trust-bar-inner {
  display: flex;
  align-items: stretch;
  /* Generous height — these are PRIMARY trust signals */
  min-height: 100px;
}

/* Left zone: business stats */
.trust-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1; /* Allow it to take available space */
  min-width: 0; /* Prevent overflow */
}

.trust-divider {
  width: 1px;
  align-self: stretch;
  background: var(--gray-300);
  margin: var(--space-4) 0;
}

/* Vertical separator between stat zone and ISO zone */
.trust-separator {
  width: 1px;
  align-self: stretch;
  background: var(--gray-300);
  margin: 0 var(--space-6);
  flex-shrink: 0;
}

.trust-iso {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex: 1;
  flex-wrap: wrap;
}

/* ---- Single ISO Certification Block ---- */
.iso-single-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.iso-single-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Hierarchy level 1: concept name */
.iso-single-heading {
  font-family: var(--font-secondary);
  font-size: 1rem;
  /* matches --text-base, readable */
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Hierarchy level 2: standard numbers */
.iso-standards-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.iso-std {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  /* clearly readable, not micro-text */
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: 0.02em;
}

.iso-std-sep {
  color: var(--color-accent);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

/* Legacy styles hidden — old multi-badge components no longer used */
.trust-iso-label,
.iso-badges-row,
.iso-badge-inline,
.iso-badge-img,
.iso-svg-icon,
.iso-badge-text,
.iso-badge-num,
.iso-badge-desc {
  display: none;
}

/* Hero Stat styles */
.hero-stat {
  text-align: left;
  padding: var(--space-4) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
  min-width: 140px; /* Minimum width before potentially stacking or shrinking */
}

.hero-stat .stat-value {
  font-family: var(--font-secondary);
  /* Raised to ensure readability — matches visual weight of ISO heading */
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1;
}

.hero-stat .stat-label {
  font-family: var(--font-primary);
  /* Raised from 0.6rem — mono micro-text was unreadable */
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-600);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

/* Mobile: stack vertically */
@media (max-width: 900px) {
  .trust-bar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .trust-separator {
    width: auto;
    height: 1px;
    margin: 0;
    background: var(--gray-200);
  }

  .trust-stats {
    flex-wrap: wrap; /* Allow stats to wrap if needed */
    justify-content: center;
  }

  .hero-stat {
    padding: var(--space-4);
    text-align: center;
    align-items: center;
    flex: 1 1 30%; /* Three per row if possible */
  }

  .trust-divider {
    display: none; /* Hide dividers when stacking or wrapping */
  }

  .trust-iso {
    padding: var(--space-6);
    gap: var(--space-4);
    justify-content: center;
    text-align: center;
  }

  .iso-single-text {
    align-items: center;
  }

  .iso-standards-row {
    justify-content: center;
  }
}

/* Mobile specific stacking for stats */
@media (max-width: 600px) {
  .hero-stat {
    flex: 1 1 100%; /* Full width on mobile */
    border-bottom: 1px solid var(--gray-200);
  }

  .hero-stat:last-child {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .iso-badge-inline {
    padding: var(--space-2) var(--space-3);
  }

  .iso-badge-desc {
    display: none;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: var(--text-4xl);
  }

  .title-accent {
    font-size: var(--text-2xl);
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
}