/* =====================================================================
   Dwiharta Trans — Stylesheet Publik
   Tema warna diambil dari logo: navy #1a3764 & merah maroon #78101a
   ===================================================================== */

:root {
  --navy: #16335e;
  --navy-dark: #0c2038;
  --navy-light: #24487f;
  --red: #7a1015;
  --red-dark: #57070b;
  --red-light: #a3222a;
  --gray-50: #f7f8fa;
  --gray-100: #eef0f4;
  --gray-200: #e1e4ea;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #1a1f2b;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(12, 32, 56, 0.08);
  --shadow-lg: 0 20px 50px rgba(12, 32, 56, 0.16);
  --container: 1180px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: all .2s ease; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { color: var(--navy); font-weight: 700; margin: 0 0 .5em; line-height: 1.25; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s ease;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(122,16,21,.35); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 20px; font-size: 13px; }

/* ---------- Section helpers ---------- */
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.section-gray { background: var(--gray-50); }
.section-navy { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #dbe3ee; }
.section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }
.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}
.section-navy .eyebrow { color: #ff8a8f; }
.section-head { max-width: 640px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: 34px; }
.section-head p { color: var(--gray-500); font-size: 16px; }
.section-navy .section-head p { color: #b7c3d6; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 18px rgba(12,32,56,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-weight: 500; color: var(--navy); font-size: 15px; padding: 6px 2px; position: relative; }
.main-nav a.active, .main-nav a:hover { color: var(--red); }
.main-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; background: var(--red); border-radius: 3px;
}
.btn-nav-cta {
  background: var(--red); color: var(--white) !important; padding: 11px 24px; border-radius: 50px; font-weight: 600;
}
.btn-nav-cta:hover { background: var(--red-dark); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 8px 24px rgba(37,211,102,.45);
  animation: pulse-wa 2.2s infinite;
}
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 55%, var(--red-dark) 130%);
  color: var(--white);
  padding: 110px 0 130px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(122,16,21,.45), transparent 45%);
}
.hero-inner { position: relative; z-index: 2; max-width: 680px; }
.hero h1 { color: var(--white); font-size: 46px; margin-bottom: 20px; }
.hero p.lead { font-size: 18px; color: #cfd9e8; margin-bottom: 34px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 60px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 28px; color: var(--white); }
.hero-stats div span { font-size: 13px; color: #b7c3d6; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Page hero (halaman dalam) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: 36px; margin-bottom: 10px; }
.page-hero .breadcrumb { color: #b7c3d6; font-size: 14px; }
.page-hero .breadcrumb a { color: #dbe3ee; }
.page-hero .breadcrumb a:hover { color: var(--white); }

/* ---------- Grid cards ---------- */
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all .3s ease;
  border: 1px solid var(--gray-100);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: 40px;
  position: relative;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .placeholder-tag {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.35); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 20px;
}
.card-body { padding: 26px; }
.card-body h3 { font-size: 19px; margin-bottom: 10px; }
.card-body p { color: var(--gray-500); font-size: 14.5px; margin-bottom: 16px; }
.card-link { color: var(--red); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.card-link i { transition: transform .2s; }
.card-link:hover i { transform: translateX(4px); }

/* Layanan icon card */
.service-card { padding: 34px 28px; text-align: left; }
.service-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; margin-bottom: 20px;
}

/* Armada card badge */
.fleet-card .card-body .badge {
  display: inline-block; background: var(--gray-100); color: var(--navy);
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-bottom: 10px;
}

/* ---------- About / split section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media {
  border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 4/5; background: linear-gradient(150deg, var(--navy), var(--red-dark));
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); font-size: 60px;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Misi list ---------- */
.misi-list { display: grid; gap: 18px; margin-top: 20px; }
.misi-item { display: flex; gap: 16px; align-items: flex-start; }
.misi-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}

/* ---------- Keunggulan (numbered, dark bg) ---------- */
.adv-list { display: grid; gap: 34px; margin-top: 10px; }
.adv-item { display: flex; gap: 20px; }
.adv-num { font-size: 34px; font-weight: 800; color: var(--red-light); width: 60px; flex-shrink: 0; }
.adv-item p { color: #cfd9e8; margin: 0; font-size: 15px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--red-dark), var(--red));
  border-radius: var(--radius);
  padding: 60px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-banner h3 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.cta-banner p { color: #ffd9db; margin: 0; }

/* ---------- Artikel ---------- */
.article-meta { display: flex; gap: 16px; color: var(--gray-500); font-size: 13px; margin-bottom: 10px; flex-wrap: wrap; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-body { font-size: 16px; color: var(--gray-700); }
.article-body p { margin-bottom: 1.2em; }
.article-body img { border-radius: var(--radius); margin: 20px 0; }
.article-hero-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; aspect-ratio: 16/9; background: linear-gradient(135deg,var(--navy),var(--navy-dark)); display:flex; align-items:center; justify-content:center; color: rgba(255,255,255,.5); font-size: 50px; }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Galeri ---------- */
.gallery-item { aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .card-media { height: 100%; }

/* ---------- Kontak ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 46px; }
.contact-info-card {
  background: var(--navy); color: #dbe3ee; border-radius: var(--radius); padding: 36px; margin-bottom: 20px;
}
.contact-info-card h4 { color: #fff; }
.contact-info-card ul li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14.5px; align-items: flex-start; }
.contact-info-card ul li i { color: var(--red-light); margin-top: 3px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 8px; font-size: 14px; }
.form-control {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 14.5px; color: var(--gray-900); background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22,51,94,.1); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: 14.5px; }
.alert-success { background: #e6f7ee; color: #0f7a44; border: 1px solid #b8ecd0; }
.alert-error { background: #fdecec; color: #a3222a; border: 1px solid #f6c3c5; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 70px 20px; color: var(--gray-500); }
.empty-state i { font-size: 44px; color: var(--gray-200); margin-bottom: 16px; display: block; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 46px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--navy); background: var(--gray-100);
}
.pagination a:hover { background: var(--navy); color: #fff; }
.pagination .current { background: var(--red); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #aab6c9; padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-logo { height: 42px; margin-bottom: 18px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 11px; font-size: 14.5px; }
.footer-col ul li a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact li i { color: var(--red-light); margin-top: 3px; width: 14px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.footer-social a:hover { background: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; text-align: center; font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; aspect-ratio: 16/9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 82px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 18px;
    box-shadow: 0 12px 20px rgba(12,32,56,.1);
    display: none;
  }
  .main-nav.open { display: flex; }
  .btn-nav-cta { width: 100%; justify-content: center; }
  .hero h1 { font-size: 32px; }
  .hero { padding: 70px 0 90px; }
  .section { padding: 60px 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px; flex-direction: column; text-align: center; }
  .section-head h2 { font-size: 26px; }
  .hero-stats { gap: 26px; }
}
