:root {
  --pc-green: #14532d;
  --pc-green-2: #166534;
  --pc-gold: #f59e0b;
}

body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1f2937; }

.site-nav {
  background: rgba(20, 83, 45, .95);
  backdrop-filter: blur(6px);
}
.site-nav .navbar-brand, .site-nav .nav-link { color: #fff; }
.site-nav .nav-link:hover { color: #d1fae5; }

.hero {
  position: relative;
  min-height: 88vh;
  background: linear-gradient(135deg, var(--pc-green) 0%, #052e16 100%);
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  background-size: cover; background-position: center;
  opacity: .28;
}
.hero-text { padding-top: 96px; padding-bottom: 48px; }
.hero .btn-outline-light:hover { color: var(--pc-green); }

/* ===== Merek: logo di navbar, hero & footer =====
   Ukuran tinggi saja; lebar mengikuti rasio berkas (814:450 lockup,
   256:256 badge). Menentukan width+height tetap seperti 176x52 dulu
   membuat logo asli tampak gepeng karena rasionya berbeda. */
.site-nav .navbar-brand.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand-mark {
  display: block; width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, .28);
}
.brand-text { color: #fff; letter-spacing: .2px; line-height: 1.15; }
.brand-text small { display: block; font-size: .68rem; font-weight: 500; color: #a7f3d0; }
@media (min-width: 992px) {
  .site-nav .brand-mark { width: 40px; height: 40px; }
}
.hero-logo { display: block; height: 60px; width: auto; }
@media (min-width: 768px) { .hero-logo { height: 76px; } }
.site-footer .footer-logo { display: block; height: 46px; width: auto; margin: 0 auto .75rem; }
@media (min-width: 768px) { .site-footer .footer-logo { height: 52px; } }

/* ===== Chip kata kunci (SEO + tautan internal) ===== */
.kw-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.kw-chip {
  display: inline-block; padding: .35rem .85rem; border-radius: 999px;
  background: #ecfdf5; border: 1px solid #a7f3d0; color: var(--pc-green);
  font-size: .875rem; text-decoration: none; transition: background .15s ease;
}
.kw-chip:hover { background: #d1fae5; color: #052e16; }

/* ===== Header beranda: foto statis + scrim agar teks tetap terbaca =====
   Hanya untuk .hero--static (index.php). Header layanan.php tetap memakai
   foto CMS yang dibuat redup (opacity .28) seperti sebelumnya. */
.hero--static .hero-bg {
  opacity: 1;
  /* foto vertikal: ambil bagian tengah-atas supaya tidak terpotong aneh */
  object-position: center 32%;
  background-position: center 32%;
}
.hero--static .hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,46,22,.92) 0%, rgba(5,46,22,.78) 40%,
      rgba(5,46,22,.46) 70%, rgba(5,46,22,.22) 100%),
    linear-gradient(180deg, rgba(5,46,22,.55) 0%, rgba(5,46,22,0) 32%,
      rgba(5,46,22,.38) 100%);
}
.hero--static .container { z-index: 2; }
.hero--static .hero-text { text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.hero--static .card, .hero--static .btn-light { text-shadow: none; }

@media (max-width: 767.98px) {
  .hero--static { min-height: 84vh; }
  .hero--static .hero-bg { background-position: center 24%; }
  /* di layar sempit teks menutupi hampir seluruh lebar: scrim lebih rata */
  .hero--static .hero-scrim {
    background: linear-gradient(180deg,
      rgba(5,46,22,.86) 0%, rgba(5,46,22,.72) 55%, rgba(5,46,22,.86) 100%);
  }
}

.service-card { transition: transform .15s ease; }
.service-card:hover { transform: translateY(-4px); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #dcfce7; color: var(--pc-green);
  font-size: 1.5rem;
}

.gallery-item { background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.gallery-item img { width: 100%; height: 190px; object-fit: cover; display: block; }
.gallery-item figcaption { color: #4b5563; }

.about-placeholder { background: #ecfdf5; height: 320px; }

.pricing-card { border-top: 4px solid transparent !important; transition: transform .15s ease; }
.pricing-card:hover { transform: translateY(-4px); }
.pricing-highlight { border-top-color: var(--pc-gold) !important; }

.avatar-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--pc-green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .9rem; flex: 0 0 36px;
}

.contact-list li { margin-bottom: .6rem; }

.site-footer { background: #052e16; color: #d1fae5; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

/* ===== Galeri: filter, badge video, play button ===== */
.filter-btn { border-radius: 50rem; padding-left: .9rem; padding-right: .9rem; }

.gallery-item-wrap { transition: opacity .15s ease; }

.video-thumb { display: block; }
.video-thumb img { transition: transform .2s ease; }
.video-thumb:hover img { transform: scale(1.04); }

.play-badge {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(220, 38, 38, .92); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transition: transform .15s ease, background .15s ease;
  pointer-events: none;
}
.video-thumb:hover .play-badge { transform: translate(-50%, -50%) scale(1.08); background: #dc2626; }
.play-badge i { margin-left: 3px; }

/* ===== Video facade (klik-untuk-muat iframe YouTube) ===== */
.video-facade {
  position: relative; aspect-ratio: 16 / 9;
  background: #052e16; cursor: pointer;
}
.video-facade:focus-visible { outline: 3px solid var(--pc-gold); outline-offset: 2px; }
.video-facade img { transition: transform .25s ease; }
.video-facade:hover img { transform: scale(1.03); }
.video-facade::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.25) 100%);
  pointer-events: none;
}
.video-facade .play-badge { z-index: 2; width: 68px; height: 68px; font-size: 2.3rem; }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ===== Ikon sosial media (footer + panel WA) ===== */
.social-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.social-link {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .12); color: #d1fae5;
  font-size: 1.15rem; line-height: 1; text-decoration: none;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.social-link:hover { background: var(--pc-gold); color: #052e16; transform: translateY(-2px); }
.social-link:focus-visible { outline: 3px solid var(--pc-gold); outline-offset: 2px; }
.social-links--light .social-link { background: #ecfdf5; color: var(--pc-green); }
.social-links--light .social-link:hover { background: var(--pc-green); color: #fff; }

/* ===== Daftar marketing di bagian kontak ===== */
.agent-list { display: grid; gap: .55rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.agent-list a {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .75rem; border-radius: 12px;
  border: 1px solid #dcfce7; background: #fff; color: inherit;
  text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.agent-list a:hover { border-color: var(--pc-green); box-shadow: 0 2px 10px rgba(20, 83, 45, .12); }
.agent-list .avatar-circle { background: #dcfce7; color: var(--pc-green); }
.agent-list strong { display: block; font-size: .95rem; }
.agent-list small { color: #6b7280; }
.agent-list .bi-whatsapp { margin-left: auto; color: #25d366; font-size: 1.35rem; }

/* ===== Tombol WhatsApp mengambang ===== */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 1050;
  display: flex; flex-direction: column; align-items: flex-end; gap: .6rem;
  font-family: inherit;
}
.wa-float__btn {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  border: 0; border-radius: 50rem; padding: .75rem 1.05rem;
  background: #25d366; color: #fff; cursor: pointer;
  font-size: 1.05rem; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
}
.wa-float__btn:hover { background: #1ebe5b; }
.wa-float__btn:focus-visible { outline: 3px solid var(--pc-green); outline-offset: 3px; }
.wa-float__btn > .bi-whatsapp { font-size: 1.45rem; line-height: 1; }
.wa-float__label { display: none; }
@media (min-width: 576px) { .wa-float__label { display: inline; } }

.wa-float__pulse {
  position: absolute; top: 10px; right: 12px; width: 10px; height: 10px;
  border-radius: 50%; background: #facc15; box-shadow: 0 0 0 0 rgba(250, 204, 21, .7);
  animation: waPulse 2s infinite;
}
.wa-float__btn.is-open .wa-float__pulse { background: #22c55e; }
@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(250, 204, 21, .55); }
  70%  { box-shadow: 0 0 0 12px rgba(250, 204, 21, 0); }
  100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); }
}

.wa-panel {
  width: min(320px, calc(100vw - 32px));
  max-height: min(72vh, 520px); overflow-y: auto;
  background: #fff; border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .26);
  padding: .85rem;
}
.wa-panel[hidden] { display: none; }
.wa-panel__head { display: flex; align-items: center; gap: .6rem; padding-bottom: .6rem; border-bottom: 1px solid #f1f5f9; }
.wa-panel__head strong { display: block; font-size: .95rem; color: var(--pc-green); }
.wa-panel__head small { color: #6b7280; font-size: .72rem; }
.wa-live { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; flex: 0 0 10px; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.wa-panel__list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .4rem; }
.wa-panel__list a {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem; border-radius: 12px; text-decoration: none; color: inherit;
}
.wa-panel__list a:hover { background: #f0fdf4; }
.wa-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  background: #dcfce7; color: var(--pc-green);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
}
.wa-names { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.wa-names strong { font-size: .88rem; }
.wa-names small { font-size: .74rem; color: #6b7280; }
.wa-send { margin-left: auto; color: #25d366; font-size: 1.25rem; }
.wa-panel__foot { padding-top: .6rem; margin-top: .35rem; border-top: 1px solid #f1f5f9; }
.wa-panel__foot:empty { display: none; }

@media print { .wa-float { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .wa-float__pulse { animation: none; }
  .social-link, .video-thumb:hover img { transition: none; }
}

/* Modal video: header transparan di atas iframe gelap */
#videoModal .modal-content { background: transparent; }
#videoModal .modal-header { min-height: 42px; }

/* Badge kategori layanan pada caption galeri */
.gallery-item figcaption .badge { font-weight: 500; }

