/* ==========================================================================
   COMPONENT: ARMADA SHOWCASE (PT RAFSTAR LOGISTIC) - HARMONIZED
   File: component-fleet.css
   Layout: Split Visual (Shutter Reveal) + Unit Specifications
   ========================================================================== */

.section-fleet {
  padding-top: var(--_sizes---spacing--spacing-massive, 5rem);
  padding-bottom: var(--_sizes---spacing--spacing-massive, 5rem);
  background-color: var(--nx-bg-body, #ffffff);
}

.fleet-header {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 3.5rem;
}

.fleet-header .nx-h2 {
  color: var(--nx-c-heading, #02091c);
  line-height: 1.2;
}

.fleet-header .nx-body {
  color: var(--nx-c-body, #334155);
}

/* Pembungkus Baris Armada */
.fleet-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
}

/* Induk Kartu: Split 2 Kolom */
.fleet-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  background-color: var(--nx-bg-surface, #ffffff);
  border: 1px solid var(--nx-border-subtle, #dbe3fe);
  border-radius: var(--nx-radius-lg, 24px);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(2, 9, 28, 0.04);
  transition: border-color var(--nx-dur-normal, 300ms) ease,
              box-shadow var(--nx-dur-normal, 300ms) ease;
}

.fleet-row:hover {
  border-color: rgba(27, 67, 254, 0.3);
  box-shadow: 0 16px 36px -8px rgba(27, 67, 254, 0.1);
}

/* ==========================================================================
   SISI KIRI: VISUAL FOTO DENGAN TIRAI SHUTTER REVEAL
   ========================================================================== */
.fleet-visual-card {
  position: relative;
  min-height: 380px;
  background-color: var(--nx-bg-dark-base, #02091c);
  overflow: hidden;
  isolation: isolate;
}

.fleet-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. KONDISI AWAL: Tirai Menutup 100% Foto (Deep Obsidian Glass) */
.fleet-visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: rgba(2, 9, 28, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  
  /* Posisi menutup penuh */
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;

  transition: 
    transform 850ms cubic-bezier(0.16, 1, 0.3, 1), 
    opacity 750ms ease;
  will-change: transform, opacity;
}

/* 2. KONDISI AKTIF: Tirai Membuka ke Bawah Saat Masuk Viewport */
.fleet-visual-card.is-inview::before,
.fleet-row.is-inview .fleet-visual-card::before {
  transform: translateY(105%);
  opacity: 0;
  pointer-events: none;
}

/* Zoom halus pada foto ketika tirai terbuka */
.fleet-visual-card.is-inview .fleet-visual-img,
.fleet-row.is-inview .fleet-visual-img {
  transform: scale(1.05);
}

/* Panel Judul Armada di Bagian Bawah */
.fleet-visual-curtain {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(180deg, rgba(2, 9, 28, 0) 0%, rgba(2, 9, 28, 0.88) 100%);
  display: flex;
  align-items: flex-end;
}

.fleet-category-title {
  font-family: var(--font-heading, "Helvetica Now Display", sans-serif);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   SISI KANAN: RINCIAN TEKS SPESIFIKASI
   ========================================================================== */
.fleet-detail-card {
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  background-color: var(--nx-bg-surface, #ffffff);
  z-index: 2;
}

.fleet-unit-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fleet-unit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fleet-unit-name {
  font-family: var(--font-heading, "Helvetica Now Display", sans-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--nx-c-heading, #02091c);
  margin: 0;
}

/* Badge Tonase: Aksen Biru Elektrik */
.fleet-unit-badge {
  font-family: var(--font-body, "Aspekta", sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nx-c-primary, #1b43fe);
  background-color: rgba(27, 67, 254, 0.08);
  border: 1px solid rgba(27, 67, 254, 0.22);
  padding: 0.25rem 0.7rem;
  border-radius: var(--nx-radius-pill, 9999px);
  letter-spacing: 0.02em;
}

.fleet-unit-desc {
  font-family: var(--font-body, "Aspekta", sans-serif);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--nx-c-body, #334155);
  margin: 0;
}

.fleet-divider {
  height: 1px;
  width: 100%;
  background-color: var(--nx-border-subtle, #dbe3fe);
}

/* ==========================================================================
   PENYESUAIAN KHUSUS MOBILE
   ========================================================================== */
@media screen and (max-width: 860px) {
  .fleet-row {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .fleet-visual-card {
    min-height: unset;
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .fleet-detail-card {
    padding: 1.5rem;
    gap: 1.25rem;
  }
}
.fleet-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.fleet-tech-card {
  background: #ffffff;
  border: 1px solid #dbe3fe;
  border-radius: 18px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.fleet-tech-card:hover {
  transform: translateY(-4px);
  border-color: var(--nx-c-primary, #1b43fe);
  box-shadow: 0 16px 36px -10px rgba(2, 9, 28, 0.08);
}

.fleet-tech-card.is-featured {
  border-color: var(--nx-c-primary, #1b43fe);
  box-shadow: 0 8px 24px -6px rgba(27, 67, 254, 0.12);
}

.fleet-tech-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.fleet-tech-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f4f6ff;
  color: var(--nx-c-primary, #1b43fe);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fleet-tech-tag {
  font-family: var(--font-heading, "Helvetica Now Display", sans-serif);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
}

.fleet-tech-title {
  font-family: var(--font-heading, "Helvetica Now Display", sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #02091c;
  margin: 0 0 0.5rem 0;
}

.fleet-tech-summary {
  font-family: var(--font-body, "Aspekta", sans-serif);
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0 0 1.5rem 0;
}

.fleet-spec-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid #edf2f7;
}

.fleet-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fleet-spec-name {
  font-family: var(--font-body, "Aspekta", sans-serif);
  font-size: 0.875rem;
  color: #334155;
  font-weight: 500;
}

.fleet-spec-val {
  font-family: var(--font-heading, "Helvetica Now Display", sans-serif);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--nx-c-primary, #1b43fe);
  background: rgba(27, 67, 254, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

@media screen and (max-width: 991px) {
  .fleet-tech-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FLEET SPECIFICATIONS (NO-IMAGE DATA CARD SYSTEM)
   ========================================================================== */

/* Grid Kolom Armada */
.fleet-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

/* Base Card Kategori */
.fleet-card-block {
  background: #ffffff;
  border: 1.5px solid #dbe3fe;
  border-radius: 20px;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
  box-shadow: 0 10px 30px -10px rgba(2, 9, 28, 0.04);
}

.fleet-card-block:hover {
  transform: translateY(-4px);
  border-color: var(--nx-c-primary, #1b43fe);
  box-shadow: 0 18px 40px -12px rgba(27, 67, 254, 0.12);
}

/* Header Card: Icon + Title Group */
.fleet-card-block__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.fleet-card-block__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #f4f6ff;
  border: 1px solid #dbe3fe;
  color: var(--nx-c-primary, #1b43fe);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fleet-card-block__title {
  font-family: var(--font-heading, "Helvetica Now Display", sans-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: #02091c;
  line-height: 1.25;
  margin: 0 0 0.25rem 0;
}

.fleet-card-block__sub {
  font-family: var(--font-body, "Aspekta", sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  display: block;
}

/* Body & Unit Items */
.fleet-card-block__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}

.fleet-spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.fleet-spec-item__top {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fleet-spec-item__name {
  font-family: var(--font-heading, "Helvetica Now Display", sans-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #02091c;
  margin: 0;
}

.fleet-spec-item__cap {
  font-family: var(--font-heading, "Helvetica Now Display", sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nx-c-primary, #1b43fe);
  background: rgba(27, 67, 254, 0.08);
  border: 1px solid rgba(27, 67, 254, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fleet-spec-item__desc {
  font-family: var(--font-body, "Aspekta", sans-serif);
  font-size: 0.875rem;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

.fleet-spec-item__divider {
  width: 100%;
  height: 1px;
  background-color: #f1f5f9;
  margin: 0.25rem 0;
}

/* Responsif Tablet & Mobile */
@media screen and (max-width: 1024px) {
  .fleet-full-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   FLEET ROW: GRAPHIC PANEL VARIANT (TANPA GAMBAR)
   ========================================================================== */
.fleet-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.fleet-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: #ffffff;
  border: 1px solid #dbe3fe;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(2, 9, 28, 0.04);
  transition: border-color 200ms ease, transform 200ms ease;
}

.fleet-row:hover {
  border-color: var(--nx-c-primary, #1b43fe);
  transform: translateY(-2px);
}

/* Sisi Kiri: Panel Navy Bersih */
.fleet-visual-card.is-graphic {
  background: linear-gradient(145deg, #02091c 0%, #061338 100%);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 240px;
}

/* Nomor Kategori Armada: Kontras & Selaras dengan Royal Blue Primary */
/* Nomor Kategori Armada: Ice Blue Bersih Translusen */
.fleet-category-num {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading, "Helvetica Now Display", sans-serif);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(219, 234, 254, 0.85) !important; /* Ice Blue dengan 85% opacity */
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  width: fit-content;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-shadow: 0 0 12px rgba(27, 67, 254, 0.35); /* Pendaran halus senada Royal Blue */
}

.fleet-category-info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.fleet-category-route {
  font-family: var(--font-heading, "Helvetica Now Display", sans-serif);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.fleet-visual-card.is-graphic .fleet-category-title {
  font-family: var(--font-heading, "Helvetica Now Display", sans-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
}

/* Efek Cahaya Radial Halus di Sudut */
.fleet-category-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(27, 67, 254, 0.35) 0%, rgba(27, 67, 254, 0) 70%);
  pointer-events: none;
}

/* Sisi Kanan: Detail Unit */
.fleet-detail-card {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  background: #ffffff;
}

.fleet-unit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.fleet-unit-name {
  font-family: var(--font-heading, "Helvetica Now Display", sans-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #02091c;
  margin: 0;
}

.fleet-unit-badge {
  font-family: var(--font-heading, "Helvetica Now Display", sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nx-c-primary, #1b43fe);
  background: rgba(27, 67, 254, 0.08);
  border: 1px solid rgba(27, 67, 254, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.fleet-unit-desc {
  font-family: var(--font-body, "Aspekta", sans-serif);
  font-size: 0.875rem;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

.fleet-divider {
  width: 100%;
  height: 1px;
  background-color: #f1f5f9;
}

/* Responsif Mobile & Layar Kecil */
@media screen and (max-width: 900px) {
  .fleet-row {
    grid-template-columns: 1fr;
  }

  .fleet-visual-card.is-graphic {
    min-height: auto;
    padding: 1.75rem;
    gap: 1.5rem;
  }

  .fleet-detail-card {
    padding: 1.75rem;
  }

  .fleet-unit-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}