/* ═══════════════════════════════════════════════════════════
   NASENI TROMENT - Homepage Component Styles
   Loaded via functions.php only on front-page.php
   All design tokens defined in style.css (:root)
═══════════════════════════════════════════════════════════ */

/* ─── HERO ──────────────────────────────────────────────── */
.nt-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px; /* nav height */
}

.nt-hero__media {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2D3D95 0%, #2D3D95 60%, #2D3D95 100%);
  overflow: hidden;
}

.nt-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.nt-hero__media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nt-hero__media-placeholder-inner {
  border: 2px dashed rgba(255,255,255,0.12);
  border-radius: var(--nt-radius-md);
  padding: 24px 40px;
  text-align: center;
  color: rgba(255,255,255,0.2);
  font-size: 13px;
  line-height: 1.8;
  max-width: 360px;
}

.nt-hero__media-placeholder-inner strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.3);
}

.nt-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(45,61,149,0.88) 0%,
    rgba(45,61,149,0.75) 50%,
    rgba(45,61,149,0.3) 100%
  );
  pointer-events: none;
}

.nt-dots-motif {
  position: absolute;
  pointer-events: none;
  user-select: none;
}
.nt-hero__dots {
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.12;
  animation: nt-pulse-dot 6s ease-in-out infinite;
}

.nt-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 80px 0 100px;
}

.nt-hero__overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nt-gold-light);
  margin-bottom: 28px;
  opacity: 0;
  animation: nt-fade-up 0.8s 0.2s forwards;
}
.nt-hero__overline::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--nt-gold-light);
  flex-shrink: 0;
}

.nt-hero__h1 {
  font-family: var(--nt-font-display);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 400;
  line-height: 1.06;
  color: var(--nt-white);
  max-width: 720px;
  margin-bottom: 28px;
  opacity: 0;
  animation: nt-fade-up 0.8s 0.35s forwards;
}
.nt-hero__h1 em       { font-style: italic; color: var(--nt-gold-light); }
.nt-hero__h1-accent   { color: var(--nt-blue-soft); }

.nt-hero__sub {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 44px;
  opacity: 0;
  animation: nt-fade-up 0.8s 0.5s forwards;
}

.nt-hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: nt-fade-up 0.8s 0.65s forwards;
}

.nt-hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.3);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
  animation: nt-bounce 2.4s ease-in-out infinite;
}
.nt-hero__scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
}

/* ─── STATS BAR ─────────────────────────────────────────── */
.nt-stats-bar { background: var(--nt-near-black); }

.nt-stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.nt-stat-item {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
  position: relative;
  transition: var(--nt-transition);
}
.nt-stat-item:last-child { border-right: none; }
.nt-stat-item:hover      { background: rgba(255,255,255,0.03); }
.nt-stat-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 40px; height: 2px;
  background: var(--nt-gold);
  transition: var(--nt-transition);
}
.nt-stat-item:hover::after { transform: translateX(-50%) scaleX(1); }

.nt-stat-num {
  font-family: var(--nt-font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--nt-gold-light);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.nt-stat-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.4);
}

/* ─── STORY ─────────────────────────────────────────────── */
.nt-story { background: var(--nt-off-white); }

.nt-story__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--nt-gray-300);
  border-radius: var(--nt-radius-lg);
  overflow: hidden;
  margin-top: 64px;
}

.nt-story__act {
  background: var(--nt-white);
  padding: 44px 36px;
  position: relative;
  transition: var(--nt-transition);
}
.nt-story__act:hover { background: #f0f6ff; }

.nt-story__act-num {
  font-family: var(--nt-font-display);
  font-size: 72px;
  font-weight: 400;
  color: var(--nt-gray-100);
  line-height: 1;
  position: absolute;
  top: 24px; right: 28px;
  transition: var(--nt-transition);
  user-select: none;
}
.nt-story__act:hover .nt-story__act-num { color: var(--nt-blue-pale); }

.nt-story__act-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
.nt-story__act-tag--problem { color: var(--nt-gray-500); }
.nt-story__act-tag--solution { color: var(--nt-blue); }
.nt-story__act-tag--future  { color: var(--nt-gold); }

.nt-story__act h3 {
  font-family: var(--nt-font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--nt-navy);
  margin-bottom: 16px;
}
.nt-story__act p { font-size: 15px; color: var(--nt-gray-700); line-height: 1.75; }

.nt-story__act--active {
  background: var(--nt-navy) !important;
}
.nt-story__act--active .nt-story__act-num   { color: rgba(255,255,255,0.05); }
.nt-story__act--active .nt-story__act-tag--solution { color: var(--nt-blue-soft); }
.nt-story__act--active h3 { color: var(--nt-white); }
.nt-story__act--active p  { color: rgba(255,255,255,0.65); }

/* ─── FACILITY ──────────────────────────────────────────── */
.nt-facility { background: var(--nt-white); }

.nt-facility__image {
  position: relative;
  border-radius: var(--nt-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--nt-gray-100);
}
.nt-facility__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nt-facility__image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--nt-gray-500);
  font-size: 13px;
}
.nt-facility__image-placeholder svg { opacity: 0.3; }
.nt-facility__image-placeholder span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nt-gray-300);
}

.nt-facility__badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: var(--nt-white);
  border-radius: var(--nt-radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(45,61,149,0.12);
}
.nt-facility__badge-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--nt-blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nt-facility__badge-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--nt-navy);
  line-height: 1;
  margin-bottom: 3px;
}
.nt-facility__badge-text span { font-size: 11px; color: var(--nt-gray-500); }

.nt-facility__features { display: flex; flex-direction: column; gap: 24px; margin: 36px 0; }

.nt-feature { display: flex; gap: 16px; align-items: flex-start; }
.nt-feature__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--nt-blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.nt-feature__text h4 { font-size: 15px; font-weight: 600; color: var(--nt-navy); margin-bottom: 4px; }
.nt-feature__text p  { font-size: 14px; color: var(--nt-gray-500); line-height: 1.6; }

/* ─── PRODUCTS ──────────────────────────────────────────── */
.nt-products { background: var(--nt-off-white); }

.nt-products__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 40px;
  flex-wrap: wrap;
}
.nt-products__filters { display: flex; gap: 8px; }

.nt-filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--nt-gray-300);
  background: var(--nt-white);
  color: var(--nt-gray-700);
  transition: var(--nt-transition);
  cursor: pointer;
}
.nt-filter-btn.is-active,
.nt-filter-btn:hover {
  background: var(--nt-blue);
  color: var(--nt-white);
  border-color: var(--nt-blue);
}

/* ─── PULL QUOTE ────────────────────────────────────────── */
.nt-pullquote {
  background: var(--nt-navy);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.nt-pullquote__dots {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  opacity: 0.06;
  pointer-events: none;
}
.nt-pullquote__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.nt-pullquote__mark {
  font-family: var(--nt-font-display);
  font-size: 120px;
  line-height: 0.6;
  color: rgba(255,255,255,0.04);
  display: block;
  margin-bottom: -20px;
  user-select: none;
}
.nt-pullquote__text {
  font-family: var(--nt-font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  font-style: italic;
  color: var(--nt-white);
  line-height: 1.55;
  margin-bottom: 28px;
}
.nt-pullquote__text em { color: var(--nt-gold-light); font-style: normal; }
.nt-pullquote__source {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

/* ─── PARTNERS ──────────────────────────────────────────── */
.nt-partners { background: var(--nt-white); }

.nt-partner__logo-placeholder {
  height: 52px;
  background: var(--nt-gray-100);
  border-radius: var(--nt-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nt-gray-500);
  margin-bottom: 24px;
  font-weight: 600;
}
.nt-partner__name { font-family: var(--nt-font-display); font-size: 22px; font-weight: 600; color: var(--nt-navy); margin-bottom: 6px; }
.nt-partner__role { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nt-blue); margin-bottom: 16px; }
.nt-partner__desc { font-size: 14px; color: var(--nt-gray-700); line-height: 1.7; }

/* ─── IMPACT ────────────────────────────────────────────── */
.nt-impact {
  position: relative;
  overflow: hidden;
}
.nt-impact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2D3D95 0%, #2D3D95 100%);
}
.nt-impact > .nt-container { position: relative; z-index: 2; }

.nt-impact__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--nt-radius-lg);
  overflow: hidden;
}
.nt-impact__stat {
  background: rgba(0,0,0,0.15);
  padding: 32px 28px;
  transition: var(--nt-transition);
}
.nt-impact__stat:hover { background: rgba(0,0,0,0.2); }
.nt-impact__stat-num {
  font-family: var(--nt-font-display);
  font-size: 40px;
  font-weight: 600;
  color: var(--nt-white);
  line-height: 1;
  margin-bottom: 8px;
}
.nt-impact__stat-label { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.5; }

.nt-impact__list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  padding: 0;
}
.nt-impact__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}
.nt-impact__list li::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #33CDFA;
  flex-shrink: 0;
  margin-top: 8px;
}

/* ─── NEWS ──────────────────────────────────────────────── */
.nt-news { background: var(--nt-off-white); }

/* ─── CTA ───────────────────────────────────────────────── */
.nt-cta-section { background: var(--nt-white); }

.nt-cta-inner {
  background: var(--nt-navy);
  border-radius: var(--nt-radius-lg);
  padding: 72px 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.nt-cta-inner::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
}
.nt-cta-inner::after {
  content: '';
  position: absolute;
  right: 80px; bottom: -80px;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
}

.nt-cta-inner__title {
  font-family: var(--nt-font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  color: var(--nt-white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.nt-cta-inner__desc {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 480px;
}
.nt-cta-inner__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.nt-cta-inner__actions .nt-btn {
  white-space: nowrap;
  justify-content: center;
  min-width: 200px;
}

/* ─── ANIMATIONS ────────────────────────────────────────── */
@keyframes nt-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes nt-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}
@keyframes nt-pulse-dot {
  0%, 100% { opacity: 0.12; }
  50%       { opacity: 0.2; }
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nt-cta-inner {
    grid-template-columns: 1fr;
    padding: 48px 40px;
    gap: 40px;
  }
  .nt-cta-inner__actions { flex-direction: row; flex-wrap: wrap; }
  .nt-cta-inner__actions .nt-btn { min-width: 0; }
  .nt-story__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nt-hero { min-height: 90vh; }
  .nt-hero__h1 { font-size: 36px; }
  .nt-hero__sub { font-size: 16px; }
  .nt-stats-bar__inner { grid-template-columns: repeat(3, 1fr); }
  .nt-stats-bar__inner .nt-stat-item:nth-child(4),
  .nt-stats-bar__inner .nt-stat-item:nth-child(5) { display: none; }
  .nt-impact__stats { grid-template-columns: 1fr 1fr; }
  .nt-cta-inner { padding: 40px 24px; }
  .nt-cta-inner__actions { flex-direction: column; }
  .nt-products__header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .nt-hero__actions { flex-direction: column; align-items: flex-start; }
  .nt-impact__stats { grid-template-columns: 1fr; }
  .nt-stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .nt-stats-bar__inner .nt-stat-item:nth-child(3),
  .nt-stats-bar__inner .nt-stat-item:nth-child(4),
  .nt-stats-bar__inner .nt-stat-item:nth-child(5) { display: none; }
}

/* ═══════════════════════════════════════════════════════
   PRODUCTS CAROUSEL (homepage "300+ diagnostic solutions")
   4 cards visible, horizontal scroll, prev/next arrows
═══════════════════════════════════════════════════════ */
.nt-products-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.nt-products-carousel__track {
  display: grid;
  grid-auto-flow: column;
  /* Each card is 1/4 of the track width minus the gaps */
  grid-auto-columns: calc((100% - (3 * 20px)) / 4);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px;
  flex: 1;
  min-width: 0;
  /* Hide scrollbar but keep functionality */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nt-products-carousel__track::-webkit-scrollbar { display: none; }

.nt-products-carousel__track > .nt-product-card {
  scroll-snap-align: start;
}

/* Nav arrow buttons */
.nt-products-carousel__nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--nt-gray-300, #d5dbe6);
  background: var(--nt-white, #fff);
  color: var(--nt-navy, #2D3D95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}
.nt-products-carousel__nav:hover:not(.is-disabled) {
  background: var(--nt-navy, #2D3D95);
  border-color: var(--nt-navy, #2D3D95);
  color: #fff;
  transform: scale(1.06);
}
.nt-products-carousel__nav.is-disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* Responsive: 3 cards on tablet, 2 on small tablet, 1.2 on mobile */
@media (max-width: 1024px) {
  .nt-products-carousel__track {
    grid-auto-columns: calc((100% - (2 * 20px)) / 3);
  }
}
@media (max-width: 768px) {
  .nt-products-carousel__track {
    grid-auto-columns: calc((100% - 20px) / 2);
  }
  .nt-products-carousel__nav { width: 38px; height: 38px; }
}
@media (max-width: 480px) {
  .nt-products-carousel__track {
    grid-auto-columns: 78%;
  }
  /* On mobile, hide arrows and let users swipe */
  .nt-products-carousel__nav { display: none; }
}
