/* =============================================
   SAPPFUEL — home.css
   Homepage-specific styles
   ============================================= */

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

/* RIGHT — image carousel side */
.hero-carousel-side {
  position: relative;
  width: 52%;
  flex-shrink: 0;
  order: 2;
}

.hero-carousel-side .swiper,
.hero-carousel-side .swiper-wrapper,
.hero-carousel-side .swiper-slide {
  height: 100vh;
}

.hero-carousel-side .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* fade carousel into text side (left) */
.hero-carousel-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    transparent 40%,
    rgba(13,35,71,.6) 75%,
    var(--blue-dark) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* badge pinned on the carousel */
.hero-carousel-side .hero-img-badge {
  position: absolute;
  bottom: 100px;
  left: 32px;
  z-index: 3;
  background: var(--red-main);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(220,38,38,.4);
}

.hero-swiper-pagination {
  position: absolute;
  bottom: 60px !important;
  left: 0 !important;
  width: auto !important;
  padding-left: 32px;
  z-index: 4;
  display: flex;
  gap: 6px;
}

.hero-swiper-pagination .swiper-pagination-bullet {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.4);
  opacity: 1;
  transition: var(--transition);
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--red-main);
  width: 48px;
}

/* LEFT — text side */
.hero-text-side {
  flex: 1;
  order: 1;
  background: var(--blue-dark);
  display: flex;
  align-items: center;
  padding: var(--nav-h) 56px 120px 48px;
  position: relative;
}

.hero-text-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,.015) 40px,
      rgba(255,255,255,.015) 80px
    );
  pointer-events: none;
}

.hero-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red-main);
  flex-shrink: 0;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-title-main {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.0;
  text-transform: uppercase;
}

.hero-title-accent {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.4);
  letter-spacing: 0.04em;
  line-height: 1.0;
  text-transform: uppercase;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  line-height: 1.75;
  max-width: 420px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 100px;
  right: 40px;
  z-index: 10;
}

.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px; height: 8px;
  background: rgba(255,255,255,.5);
  border-radius: 2px;
  animation: scrollWheel 2s ease infinite;
}

@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* Stats strip */
.hero-bottom-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(10,22,40,.88);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.08);
  z-index: 10;
}

.hero-stat-strip {
  max-width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
}

.hero-stat {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat .stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.hero-stat .stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

.hero-stat-divider {
  width: 1px;
  background: rgba(255,255,255,.08);
  margin: 12px 0;
}

/* badge reuse */
.badge-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.badge-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.9;
  line-height: 1.4;
  margin-top: 4px;
}

/* ── Operational Area ── */
.ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.ops-provinces {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.province-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue-mid);
  transition: var(--transition);
}

.province-tag:hover {
  background: var(--blue-pale);
  border-color: var(--blue-light);
  color: var(--blue-main);
}

.province-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red-main);
  flex-shrink: 0;
}

.ops-map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  height: 360px;
}

#kalimantan-map {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  z-index: 1;
}

.leaflet-popup-content-wrapper {
  border-radius: 6px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.15) !important;
  border-left: 3px solid var(--red-main) !important;
}

.leaflet-control-attribution {
  font-size: 9px !important;
  opacity: 0.4;
}

/* ── Scope Section ── */
.scope-section {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}

.scope-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-dark) 50%, var(--blue-mid) 100%);
}

.scope-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 60px,
    rgba(255,255,255,.015) 60px,
    rgba(255,255,255,.015) 120px
  );
}

.scope-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.scope-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.scope-feat {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.scope-feat:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  transform: translateX(6px);
}

.scope-feat-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scope-feat h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.scope-feat p {
  font-size: 0.88rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}

/* ── Partners marquee ── */
.partners-section {
  background: var(--gray-50);
  overflow: hidden;
}

.section-header-center {
  text-align: center;
  margin-bottom: 48px;
}

.section-header-center .section-label {
  justify-content: center;
}

.section-header-center .section-label::before { display: none; }

.section-header-center .section-label::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--red-main);
}

.marquee-wrap {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  margin-top: 0;
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item { flex-shrink: 0; }

.marquee-item .logo-item {
  width: 180px;
  min-height: 110px;
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.marquee-item .logo-item img {
  height: 60px;
  max-width: 140px;
  filter: none;
  opacity: 1;
}

/* ── CTA Strip ── */
.cta-strip {
  background: linear-gradient(135deg, var(--blue-main) 0%, var(--blue-mid) 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 80px,
    rgba(255,255,255,.03) 80px,
    rgba(255,255,255,.03) 160px
  );
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-text h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.cta-text p {
  color: rgba(255,255,255,.7);
  font-size: 1rem;
}

/* ── WhatsApp Floating Button ── */
.wa-btn {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: var(--white);
  padding: 13px 20px 13px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: var(--transition);
  animation: heroFadeUp 0.6s cubic-bezier(0.4,0,0.2,1) 1.2s both;
}

.wa-btn:hover {
  background: #1ebe5d;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,.55);
}

.wa-label {
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero { flex-direction: column; min-height: auto; }
  .hero-carousel-side { width: 100%; height: 60vh; order: 0; }
  .hero-carousel-side .swiper,
  .hero-carousel-side .swiper-wrapper,
  .hero-carousel-side .swiper-slide { height: 60vh; }
  .hero-carousel-fade {
    background: linear-gradient(to bottom, transparent 50%, var(--blue-dark) 100%);
  }
  .hero-text-side {
    padding: 48px 24px 120px;
    background: var(--blue-dark);
    justify-content: center;
    text-align: center;
    order: 0;
  }
  .hero-ctas { justify-content: center; }
  .hero-sub { margin: 0 auto; }
  .hero-scroll { display: none; }
  .ops-grid { grid-template-columns: 1fr; gap: 48px; }
  .scope-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .hero-stat-strip { flex-wrap: wrap; }
  .hero-stat { flex: 0 0 50%; }
  .hero-stat-divider { display: none; }
  .cta-inner { flex-direction: column; text-align: center; }
  .hero-title-main, .hero-title-accent { font-size: clamp(2rem, 8vw, 3rem); }
  .wa-btn { bottom: 20px; left: 20px; padding: 12px 16px; }
  .wa-label { display: none; }
}

