/* ==========================================================================
   Libolon v3 — restyle layer
   Dimuat SETELAH main.css. Markup HTML asli tidak diubah.
   Prinsip: pertahankan identitas hijau Libolon, rapikan tipografi + spasi.
   ========================================================================== */

:root {
  --green: #2dcc70;
  --green-dark: #24a259;
  --ink: #16202c;
  --body: #33414f;
  --muted: #5b6b7c;
  --line: #e3e8ee;
  --surface: #f6f8fa;
  --dark: #1f2933;
}

/* ---------- 1. Tipografi dasar ---------- */
body {
  padding-top: 78px;
  font-family: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

body h1,
body h2,
body h3,
body h4,
body .created {
  font-family: "Fjalla One", "Plus Jakarta Sans", sans-serif;
  font-weight: normal;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.2;
}

body h1 { font-size: 42px; }
body h2 { font-size: 34px; }
body h3 { font-size: 26px; }
body h4 { font-size: 19px; }
body h5 { font-size: 15px; font-weight: 600; }

p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

.center h3 { margin-bottom: 6px; }
.center .lead {
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
}

/* Fokus keyboard tetap terlihat */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(45, 204, 112, 0.55);
  outline-offset: 2px;
}

/* ---------- 2. Warna & tautan ---------- */
a { color: var(--green-dark); }

a:hover,
a:focus {
  color: var(--ink);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--green);
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--green-dark);
}

.btn-success {
  background-color: var(--green);
  border-radius: 6px;
  font-weight: 600;
}

.btn-success:hover,
.btn-success:focus { background-color: var(--green-dark); }

/* ---------- 3. Header / navigasi ---------- */
header.navbar .navbar-inner {
  background: #fff !important;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(16, 32, 48, 0.06);
}

header #logo {
  width: 220px;
  height: 72px;
  background-position: 0 50%;
}

header.navbar .nav { margin-top: 13px; }

header.navbar .nav > li > a {
  position: relative;
  padding: 12px 12px;
  color: var(--body);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.055em;
  transition: color 160ms ease;
}

header.navbar .nav > li > a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

header.navbar .nav > li > a:hover::after,
header.navbar .nav > li.active > a::after,
header.navbar .nav > li.open > a::after { transform: scaleX(1); }

header.navbar .nav > li > a:hover,
header.navbar .nav > li.active > a,
header.navbar .nav > li.dropdown.open > a.dropdown-toggle { color: var(--green-dark); }

header .dropdown-menu {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 32, 48, 0.1);
  overflow: hidden;
}

header .dropdown-menu > li > a {
  padding: 9px 16px;
  font-size: 13px;
  color: var(--body);
}

header .dropdown-menu > li > a:hover,
header .dropdown-menu > li > a:focus {
  background: var(--surface);
  color: var(--green-dark);
}

/* ---------- 4. Slider — Ken Burns + overlay dinamis ---------- */
#slide-show { background: var(--dark); }

#slide-show .sl-slide {
  animation: slideIn 0.8s ease-out forwards;
  position: relative;
}

@keyframes slideIn {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

#slide-show .sl-slide-inner {
  position: relative;
}

#slide-show .sl-slide-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(31, 41, 51, 0.58) 0%, rgba(31, 41, 51, 0) 70%);
  pointer-events: none;
  z-index: 50;
}

.sl-slider h2 {
  padding: 140px 0 0;
  font-size: clamp(32px, 5.2vw, 62px);
  line-height: 1.1;
  letter-spacing: 0.005em;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 100;
}

.sl-slider h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  max-width: 640px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 100;
}

.sl-slider h3.gap {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--green);
  display: inline-block;
}

.sl-slide-inner img.pull-right {
  max-width: 42%;
  height: auto;
  margin-top: 80px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.28));
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#slide-show .sl-slide.active .sl-slide-inner img.pull-right {
  transform: scale(1.06);
}

.nav-arrow-prev,
.nav-arrow-next {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 200ms ease;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 24px !important;
  line-height: 1 !important;
}

.nav-arrow-prev:hover,
.nav-arrow-next:hover {
  background: var(--green) !important;
  color: #fff !important;
  transform: scale(1.1);
}

/* ---------- 5. Jarak antar section (lebih rapat) ---------- */
body > section { padding: 44px 0; }
body > section#slide-show { padding: 0; }

.gap { margin-bottom: 28px; }
.big-gap { margin-bottom: 48px; }

/* ---------- 6. Banner info perusahaan ---------- */
.main-info {
  background: #fff;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.main-info h4 {
  margin-bottom: 6px;
  color: var(--ink);
}

.main-info p { max-width: 720px; }

/* ---------- 7. Section hijau gelap (Green Energy) ---------- */
#services {
  background: var(--dark);
  color: #b7c2cf;
}

#services h3 { color: #fff; }
#services .lead { color: #93a1b1; }

#services .media { padding: 0 4px; }

#services .media-heading {
  color: #fff;
  font-size: 18px;
  margin-bottom: 10px;
}

#services p { font-size: 15px; color: #b7c2cf; }

#services .icon-medium {
  background: var(--green);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  padding: 13px;
  line-height: 18px;
  font-size: 18px;
  margin-right: 4px;
}

/* ---------- 8. Galeri fasilitas ---------- */
#recent-works {
  background: #eef2f5;
  color: var(--ink);
}

#recent-works .center .lead { color: var(--muted); }

ul.gallery li .preview {
  margin: 10px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 32, 48, 0.08);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

ul.gallery li .preview:hover {
  box-shadow: 0 8px 20px rgba(16, 32, 48, 0.14);
  transform: translateY(-2px);
}

ul.gallery li .preview img { display: block; width: 100%; height: auto; }

ul.gallery li .preview .overlay { background: rgba(31, 41, 51, 0.55); }

ul.gallery li .desc { margin: 0 10px 14px; }

ul.gallery li .desc h5 {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

ul.gallery li .preview .links > a {
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--green);
  text-shadow: none;
}

ul.gallery li .preview .links > a:hover { background: var(--green-dark); color: #fff; }

/* ---------- 9. Sertifikasi ---------- */
#clients {
  background: #fff;
  padding: 44px 0;
}

#clients .span2 { position: relative; }

#clients .span2 .clearfix {
  display: block;
  margin-bottom: 10px;
}

#clients h4 {
  float: none !important;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--green);
  display: inline-block;
}

#clients .span2 p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 14px;
}

/* Tombol carousel */
#clients .prev,
#clients .next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  line-height: 1;
  transition: all 180ms ease;
}

#clients .prev:hover,
#clients .next:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

#clients .prev i,
#clients .next i { font-size: 17px; }

/* Grid logo sebagai kartu */
#clients .clients ul.thumbnails { margin: 0; }

#clients .clients ul.thumbnails > li { margin-bottom: 16px; }

#clients .clients ul.thumbnails > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 118px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

#clients .clients ul.thumbnails > li > a:hover {
  border-color: rgba(45, 204, 112, 0.5);
  box-shadow: 0 6px 18px rgba(16, 32, 48, 0.08);
  transform: translateY(-2px);
}

#clients .clients ul.thumbnails img {
  max-height: 62px;
  max-width: 100%;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 180ms ease, opacity 180ms ease;
}

#clients .clients ul.thumbnails > li > a:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ---------- 10. Kontak bawah + footer ---------- */
#bottom {
  background: var(--dark);
  color: #aab6c3;
  font-size: 15px;
}

#bottom h4 { color: #fff; font-size: 17px; margin-bottom: 14px; }
#bottom a { color: #aab6c3; }
#bottom a:hover { color: var(--green); }

#bottom ul.address > li { margin-top: 12px; padding-left: 22px; }
#bottom ul.address > li > i { color: var(--green); top: 4px; }

#bottom iframe {
  width: 100% !important;
  max-width: 100%;
  height: 300px;
  border: 0;
  border-radius: 8px;
  display: block;
}

ul.arrow li { margin-bottom: 6px; }

#footer {
  background: #18212a;
  color: #8794a2;
  font-size: 14px;
  padding: 14px 0;
}

#footer a { color: #8794a2; }
#footer a:hover { color: var(--green); }

#footer #gototop {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 20px;
  transition: background 160ms ease;
}

#footer #gototop:hover { background: var(--green); color: #fff; }

ul.social > li > a { font-size: 22px; color: #8794a2; }
ul.social > li > a:hover { color: var(--green); }

/* ---------- 11. Form ---------- */
select,
textarea,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
input[type="number"],
.uneditable-input {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--body);
  font-size: 15px;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
.uneditable-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 204, 112, 0.18);
}

.input-block-level { min-height: 46px; }

textarea#message { height: 190px; padding: 12px 14px; }

form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

/* Halaman kontak */
#contact-page { padding-top: 36px; padding-bottom: 36px; }

#contact-page h4 { margin-bottom: 12px; }

#contact-page .span8 h4 { margin-bottom: 16px; }

/* ---------- 12. Judul halaman + breadcrumb ---------- */
.title {
  background: var(--dark);
  padding: 18px 0;
}

.title h1 {
  font-size: 30px;
  color: #fff;
  margin: 8px 0;
}

ul.breadcrumb { margin: 12px 0 0; }
ul.breadcrumb > li > a,
ul.breadcrumb > li .divider { color: #b7c2cf; }
ul.breadcrumb > li > a:hover { color: var(--green); }
ul.breadcrumb > li.active { color: #fff; }

/* ---------- 13. Halaman produk ---------- */
.services .center img {
  border-radius: 8px;
  transition: transform 180ms ease;
}

.services .center img:hover { transform: translateY(-2px); }

.services .center h2 { font-size: 22px; }
.services .center h4 { font-size: 17px; }

.services hr,
section.services > .container > hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

.services h5 {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}

/* ---------- 14. Modal tetap rapi ---------- */
.modal.modal-gallery { border-radius: 10px; }
.modal .modal-header > h4 { font-size: 16px; letter-spacing: 0.04em; }

/* ==========================================================================
   15. Responsif — grid Bootstrap 2 asli, hanya penyesuaian tampilan
   ========================================================================== */

@media (max-width: 979px) {
  body { padding-top: 70px; }

  header #logo { height: 60px; background-size: contain; }

  header.navbar .nav { margin-top: 8px; }

  header.navbar .nav > li > a { padding: 10px 9px; font-size: 12px; }

  .sl-slider h2 { padding-top: 90px; font-size: 40px; }
  .sl-slide-inner img.pull-right { margin-top: 40px; max-width: 34%; }

  body h1 { font-size: 34px; }
  body h2 { font-size: 28px; }
  body h3 { font-size: 23px; }

  /* Galeri: 2 kolom di tablet */
  ul.gallery.col-4 li { width: 50%; }
  ul.gallery.col-4 li:nth-child(4n + 1) { clear: none; }
  ul.gallery.col-4 li:nth-child(2n + 1) { clear: left; }

  #clients .clients ul.thumbnails img { max-height: 50px; }
  #clients .clients ul.thumbnails > li > a { height: 104px; }
}

@media (max-width: 767px) {
  body { font-size: 15px; padding-top: 64px; }

  body > section { padding: 32px 0; }

  header.navbar .nav > li > a::after { display: none; }

  .container { padding-left: 16px; padding-right: 16px; }

  /* Slider: teks jangan meluber */
  .sl-slider h2 {
    padding-top: 70px;
    font-size: 30px;
    line-height: 1.2;
    margin: 0 0 10px;
  }

  .sl-slider h3 { font-size: 15px; line-height: 1.5; }
  .sl-slide-inner img.pull-right { display: none; }

  .nav-arrow-prev,
  .nav-arrow-next { transform: scale(0.8); }

  /* Banner + tombol milestone jadi bertumpuk, tidak melayang */
  .main-info .span3 { margin-top: 14px; }

  .main-info .btn.pull-right,
  .btn.pull-right { float: none !important; display: inline-block; }

  /* Galeri tetap 2 kolom di HP */
  .gap { margin-bottom: 20px; }
  .big-gap { margin-bottom: 32px; }

  #bottom,
  #footer { text-align: center; }

  #bottom iframe { height: 240px; }

  #contact-page .span3 { margin-bottom: 20px; }

  .title { padding: 14px 0; }
  .title h1 { font-size: 24px; }
  ul.breadcrumb { margin-top: 6px; }

  .services .center { margin-bottom: 24px; }

  /* Sertifikasi: judul di tengah, logo 2 kolom */
  #clients { padding: 32px 0; }
  #clients .span2 { text-align: center; }
  #clients .span2 .clearfix { display: block; }
  #clients h4 { font-size: 16px; }
  #clients .span2 p {
    max-width: 460px;
    margin: 0 auto 14px;
  }
  #clients .clients ul.thumbnails { margin-left: 0; }
  #clients .clients ul.thumbnails > li {
    width: 50%;
    float: left;
    margin-left: 0;
    padding: 0 8px;
    box-sizing: border-box;
  }
  #clients .clients ul.thumbnails > li > a { height: 92px; padding: 12px; }
  #clients .clients ul.thumbnails img { max-height: 44px; }
}

@media (max-width: 480px) {
  body h1 { font-size: 28px; }
  body h2 { font-size: 23px; }
  body h3 { font-size: 20px; }

  .sl-slider h2 { padding-top: 56px; font-size: 24px; }
  .sl-slider h3 { font-size: 14px; }

  /* Galeri 1 kolom */
  ul.gallery.col-4 li { width: 100%; float: none; clear: left; }
  ul.gallery.col-4 li:nth-child(2n + 1) { clear: none; }

  #clients .clients ul.thumbnails > li { width: 50%; float: left; }
  #clients .clients ul.thumbnails img { max-height: 40px; }
}

/* Hormati preferensi motion pengguna */
@media (prefers-reduced-motion: reduce) {
  a, .btn, .preview, .icon-medium, #gototop, .social a,
  ul.gallery li .preview, .services .center img {
    transition: none !important;
  }

  header.navbar .nav > li > a::after { transition: none !important; }
}
