/* ================= RESET & BASE ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: #ffffff;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: #1f2937;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* ❗ padding global DIMATIKAN agar section tidak nyatu */
section {
  padding: 0;
}

/* ================= NAVBAR ================= */

header.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 4px 14px rgba(15,23,42,0.08);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 40px;
}

.brand-text {
  font-weight: 600;
  font-size: 18px;
  color: #0f172a;
}

.nav-menu {
  display: flex;
  gap: 28px;
}

.nav-menu a {
  position: relative;
  font-size: 16px;
  font-weight: 500;
  color: #334155;
  padding-bottom: 4px;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width .25s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #0f172a;
  border-radius: 2px;
}

/* ================= HERO ================= */

.hero {
  position: relative;
  height: 85vh;
  overflow: hidden;
  padding: 80px 0;
}

/* container supaya konten kiri */
.hero .container {
  display: flex;
  align-items: center;
  height: 100%;
}

/* slider */
.hero-slider {
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .8s ease;
}

/* overlay (dibikin lebih balance) */
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.55);
}

.slide.active {
  opacity: 1;
}

/* konten */
.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* 🔥 kiri */
  text-align: left;        /* 🔥 kiri */
  max-width: 650px;
  color: #ffffff;
  margin-left: 40px;       /* 🔥 biar gak nempel kiri */
}

/* headline */
.hero-content h1 {
  font-size: 52px;        /* 🔥 lebih kuat */
  line-height: 1.2;
  margin-bottom: 16px;
}

/* subtext */
.hero-content p {
  font-size: 17px;
  margin-bottom: 24px;
  color: #e5e7eb;
}

/* CTA wrapper */
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

/* tombol utama */
.btn-primary {
  background: #2563eb;
  color: #ffffff;
  padding: 14px 30px;     /* 🔥 lebih besar */
  font-weight: 600;
  border-radius: 6px;
  width: fit-content;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #1d4ed8;
}

/* tombol secondary (kalau ada) */
.btn-secondary {
  color: #ffffff;
  padding: 14px 24px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* ================= CLIENT LOGOS ================= */

.client-logos {
  overflow: hidden;
  padding: 30px 0;
  background: #fff;
  text-align: center;
}

.client-title {
  font-size: 13px;
  letter-spacing: 2px;
  color: #888;
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* track jalan */
.logo-track {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: scroll 20s linear infinite;
}

/* logo */
.logo-track img {
  height: 60px;
  width: auto;
  opacity: 0.7;
  transition: 0.3s;
}

/* hover effect */
.logo-track img:hover {
  opacity: 1;
}

/* animasi */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* optional: pause saat hover */
.client-logos:hover .logo-track {
  animation-play-state: paused;
}


/* ================= ABOUT ================= */
section[id] {
  scroll-margin-top: 75px;
}

.about {
  background: #ffffff;
  padding: 80px 0;
  
}

.about-wrap {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
}

.about-content p {
  margin-bottom: 16px;
  color: #475569;
  text-align: justify;
}

.about-content p {
  margin-bottom: 16px;
  color: #475569;
}

.about-points ul {
  list-style: none;
  border-left: 3px solid #e5e7eb;
  padding-left: 20px;
}

.about-points li {
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

/* ================= PRODUCT CATEGORY ================= */
.product-categories {
  padding: 80px 0;
  background: #f8fafc;
}

.pc-container {
  width: min(1200px, 90%);
  margin: auto;
}

/* HEADER */
.pc-header {
  margin-bottom: 48px;
}

.pc-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.pc-divider {
  display: block;
  width: 60px;
  height: 3px;
  background: #2563eb;
}

/* GRID */
.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

/* CARD */
.pc-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform .3s ease, box-shadow .3s ease;
  border-color: #0f172a;
}

.pc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.1);
}

.pc-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* BODY */
.pc-body {
  padding: 24px;
}

.pc-body h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #0f172a;
}

.pc-body p {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 20px;
}

/* CTA */
.pc-link {
  font-size: 15px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pc-link:hover {
  text-decoration: underline;
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-weight: 500;
  color: #2563eb;
}

.category-link:hover {
  text-decoration: underline;
}


/* ================= CATALOG ================= */

.catalog {
  padding: 64px 0;
}

.catalog .section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 8px;
}

.catalog .section-desc {
  text-align: center;
  margin-bottom: 48px;
  color: #555;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.catalog-card {
  background: #ffffff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.catalog-card p {
  margin-bottom: 24px;
}

.btn-catalog {
  align-self: flex-start;
  padding: 12px 20px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 4px;
}

/* ================= CATALOG ACTION ================= */

.catalog-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}


.catalog-btn.primary {
  background: #0f172a;
  color: #fff;
  padding: 12px 22px;
  border-radius: 6px;
}

/* --- refine View Catalog alignment --- */
.catalog-actions .catalog-btn.outline {
  padding: 0;                 /* hilangkan rasa button */
  border: none;
  background: transparent;

  font-size: 15px;
  font-weight: 500;
  line-height: 1;

  color: #0f172a;

  display: inline-flex;
  align-items: center;

  position: relative;
  top: 1px;                   /* micro optical alignment */
}

.catalog-actions .catalog-btn.outline:hover {
  text-decoration: underline;
}


/* ====================== CONTACT SECTION ====================== */

.contact {
  padding: 80px 0;
  background: #ffffff;
}

.contact-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

/* LEFT */
.contact-info h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.contact-desc {
  color: #555;
  margin-bottom: 24px;
}

.contact-info h3 {
  margin-bottom: 12px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.contact-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.contact-social a {
  display: inline-block;
  margin-right: 16px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.contact-social a:hover {
  text-decoration: underline;
}

/* RIGHT */
.contact-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.contact-form textarea {
  grid-column: 1 / -1;
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  grid-column: 1 / -1;
  width: fit-content;
}

.contact-container {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

.contact-info {
  flex: 1;
}

.contact-map {
  flex: 1;
  min-height: 225px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column !important;
  }

  .contact-map {
    width: 100%;
    height: 300px;
  }
}


/* MAP */
.contact-map iframe {
  width: 100%;
  height: 260px;
  border: none;
  border-radius: 12px;
}

/* MOBILE */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}


/* =========================
   FOOTER - FINAL VERSION
========================= */

.site-footer {
  background: #0f172a;
  color: #ffffff;
  padding: 16px 16px;
}

.site-footer * {
  box-sizing: border-box;
}

/* Container */
.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Copyright text */
.site-footer p {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
}

/* Social Icons */
.site-footer .footer-social {
  display: flex;
  gap: 18px;
}

.site-footer .footer-social a {
  color: #cbd5e1;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.site-footer .footer-social a:hover {
  color: #38bdf8;
  transform: translateY(-2px);
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .site-footer .footer-inner {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}


/* ================= WHATSAPP ================= */

/* CONTAINER */
.wa-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999999;

  transform: none !important; /* 🔥 paksa keluar dari stacking */
}


/* TOMBOL FLOAT */
.wa-float {
  background-color: #25D366;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;

  display: flex;              /* FIX CENTER ICON */
  align-items: center;
  justify-content: center;

  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: 0.2s;
}

.wa-float:hover {
  background-color: #1ebe5d;
  transform: scale(1.05);
}


/* ICON SVG */
.wa-icon {
  width: 28px;
  height: 28px;
  fill: white;
}


/* POPUP BOX */
.wa-popup {
  display: none;
  flex-direction: column;
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 220px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  border: 1px solid #e5e5e5;

  animation: waFadeIn 0.2s ease;
}


/* HEADER */
.wa-header {
  background: #25D366;
  color: #ffffff;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}


/* ITEM MENU */
.wa-popup a {
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
}

.wa-popup a:hover {
  background: #25D366;
  color: #ffffff;
}


/* ANIMASI MASUK */
@keyframes waFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

  /* ===== TYPOGRAPHY ===== */
  .about-content p {
    text-align: left;
  }

  /* ===== NAVBAR IMPROVEMENT ===== */
  .nav-wrap {
    height: 60px;              /* lebih compact */
    padding: 0 12px;           /* kasih napas kiri kanan */
  }

  .brand-logo {
    height: 28px;              /* 🔥 biar gak ketekan */
  }

  .brand-text {
    font-size: 16px;
  }

  /* ===== NAV MENU ===== */
  .nav-menu {
    position: fixed;           /* 🔥 penting (anti ganggu WA) */
    top: 60px;
    right: 0;

    background: #ffffff;
    flex-direction: column;
    width: 220px;

    padding: 22px 20px;
    gap: 18px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.1);

    transform: translateX(100%);
    transition: transform .3s ease;

    z-index: 1100;

    pointer-events: none;      /* 🔥 biar gak nutup WA saat hidden */
  }

  .nav-menu.active {
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-menu a {
    font-size: 15px;
    padding: 6px 0;
  }

  .nav-toggle {
    display: flex;
  }

  /* ===== HERO ===== */
  .hero-content {
    margin-left: 0;
    padding: 0 10px;
  }

  .hero-content h1 {
    font-size: 32px;
    line-height: 1.25;
  }

  /* ===== LAYOUT ===== */
  .about-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .category-image {
    height: 180px;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

}

/* ================= PLTU NEW SYSTEM (FINAL BALANCED) ================= */

/* SECTION */
.product-layout {
  padding: 40px 0 60px; /* 🔥 jangan pakai padding kiri kanan di sini */
}

/* 🔥 CONTAINER CENTER (INI KUNCI UTAMA) */
.layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;

  max-width: 1200px;     /* 🔥 bikin center */
  margin: 0 auto;        /* 🔥 center ke tengah */
  padding: 0 20px;       /* 🔥 space kiri kanan */
}

/* ================= SIDEBAR ================= */

.sidebar {
  width: 230px;
  flex-shrink: 0;

  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;

  box-shadow: 0 4px 12px rgba(0,0,0,0.04); /* 🔥 subtle depth */
  height: fit-content;
}

/* Label */
.sidebar::before {
  content: "PRODUCT CATEGORY";
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #64748b; /* lebih kebaca */
  margin-bottom: 14px;
  letter-spacing: 0.6px;
}

/* List */
.menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Item */
.menu-item {
  color: #334155;
  padding: 12px 14px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;

  font-size: 14px;        /* 🔥 naik */
  font-weight: 500;       /* 🔥 lebih berisi */
}

/* Hover */
.menu-item:hover {
  background: rgba(59,130,246,0.08);
  color: #1d4ed8;
  transform: translateX(3px); /* 🔥 subtle motion */
}

/* Active */
.menu-item.active {
  background: rgba(59,130,246,0.15);
  color: #1d4ed8;
  font-weight: 600;
  position: relative;
}

/* Indicator kiri */
.menu-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: #3b82f6;
  border-radius: 2px;
}

/* ================= CONTENT ================= */

.content {
  flex: 1;
  min-width: 0; /* 🔥 penting biar grid gak overflow */
}

#category-title {
  font-size: 22px;
  margin-bottom: 18px;
  color: #1e293b;
}

/* ================= GRID ================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  max-width: 100%;
}

/* tablet */
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* mobile */
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= CARD ================= */

.product-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;

  border: 1px solid rgba(0,0,0,0.06);

  transition: all 0.25s ease; /* 🔥 ini kuncinya */
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.product-card h4 {
  font-size: 15px;
  padding: 16px;
  color: #0f172a;
  line-height: 1.4;
  font-weight: 600;
}

.product-card h4::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: #3b82f6;
  margin-top: 8px;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    display: flex;
    overflow-x: auto;
    border-radius: 0;
  }

  .menu {
    display: flex;
    gap: 6px;
  }

  .menu-item {
    white-space: nowrap;
  }
}




/* ================= HERO MINI ================= */
.page-intro {
  text-align: center;
  padding: 40px 20px 30px;
}

.page-intro h1 {
  font-size: 32px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 10px;
}

.page-intro p {
  font-size: 15px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.page-intro h1::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #3b82f6;
  margin: 12px auto 0;
}

/* ================= SECTION ================= */
/* garis */
section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* variasi background */
section:nth-child(even) {
  background: #fafafa;
}

/* optional: buang garis terakhir */
section:last-of-type {
  border-bottom: none;
}



.client-logos {
  position: relative;
}

.client-logos::before,
.client-logos::after {
  content: "";
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  z-index: 2;
}

.client-logos::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}

.client-logos::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}