:root {
  --brand: #145A32;
  --brand-dark: #0E4025;
  --accent: #E8600C;
  --accent-dark: #C24F09;
  --wa: #25D366;
  --wa-dark: #1DA851;
  --ink: #1E2323;
  --muted: #6B7370;
  --line: #E3E6E1;
  --bg: #F7F8F5;
  --card: #FFFFFF;
  --success: #1F8A4C;
  --radius: 10px;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--brand-dark); color: #cfe3d6; font-size: 12px; }
.topbar .container {
  display: flex; justify-content: space-between; align-items: center; height: 32px;
}
.topbar a { color: #cfe3d6; }
.topbar a:hover { color: #fff; }

/* ---------- Main header ---------- */
.header {
  background: var(--brand);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-img-wrap {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex; align-items: center; gap: 26px;
  font-size: 14px; font-weight: 600; color: #d9ead9;
}
.main-nav a:hover { color: #fff; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.btn-header-estimasi {
  background: var(--accent); color: #fff; padding: 10px 18px;
  border-radius: 7px; font-weight: 700; font-size: 13px; white-space: nowrap;
}
.btn-header-estimasi:hover { background: var(--accent-dark); }

/* ---------- Hero ---------- */
.hero-main {
  position: relative;
  color: #fff;
  padding: 64px 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(14,64,37,0.97) 0%,
    rgba(15,74,41,0.93) 30%,
    rgba(20,90,50,0.65) 55%,
    rgba(20,90,50,0.28) 80%,
    rgba(20,90,50,0.12) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}
.hero-main h1 { font-size: 36px; line-height: 1.2; margin: 0 0 14px; font-weight: 800; letter-spacing: -0.02em; }
.hero-main p { font-size: 15px; opacity: 0.9; max-width: 480px; margin: 0 0 22px; line-height: 1.6; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap;
}
.hero-stat .num { font-size: 26px; font-weight: 800; }
.hero-stat .label { font-size: 12px; opacity: 0.85; }

/* ---------- Promo strip ---------- */
.promo-strip { display: flex; gap: 14px; overflow-x: auto; padding: 22px 0; }
.promo-card {
  min-width: 300px; border-radius: var(--radius); padding: 20px; color: #fff;
  display: flex; flex-direction: column; gap: 8px; min-height: 130px; justify-content: flex-end;
}
.promo-card h4 { margin: 0; font-size: 16px; font-weight: 800; }
.promo-card p { margin: 0; font-size: 12.5px; opacity: 0.9; }
.promo-card .cta {
  align-self: flex-start; background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.5); color: #fff;
  padding: 6px 12px; border-radius: 6px; font-size: 11.5px; font-weight: 700; margin-top: 4px;
}

/* ---------- Sections ---------- */
.section { padding: 32px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { font-size: 22px; margin: 0; font-weight: 800; }
.section-head p.subtitle { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.section-head .link { font-size: 13px; font-weight: 700; color: var(--brand); }

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service-grid.preview { grid-template-columns: repeat(3, 1fr); }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; display: block;
}
.service-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); border-color: var(--brand); }
.service-media { position: relative; height: 140px; }
.service-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-chip {
  position: absolute; top: 12px; left: 12px;
  background: var(--brand); color: #fff;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 4px 10px; border-radius: 999px;
}
.service-body { padding: 16px; }
.service-num { font-size: 12px; font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.service-card .name { font-weight: 700; font-size: 15px; }
.service-card .desc { font-size: 12px; color: var(--muted); margin: 6px 0 10px; line-height: 1.5; min-height: 48px; }
.service-card .price { font-size: 12px; color: var(--muted); }
.service-card .price b { color: var(--brand); font-size: 13px; }

/* ---------- Portfolio cards ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.portfolio-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 0.15s;
}
.portfolio-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.portfolio-card { cursor: pointer; }
.portfolio-thumb {
  position: relative;
  height: 140px; background: linear-gradient(135deg, #dce7de, #eef2ec);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.portfolio-thumb img, .portfolio-thumb video {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s;
}
.portfolio-card:hover .portfolio-thumb img,
.portfolio-card:hover .portfolio-thumb video { transform: scale(1.04); }
.portfolio-photo-badge {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.6); color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 4px 9px; border-radius: 999px;
}
.thumb-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  background: rgba(0,0,0,0.25);
  pointer-events: none;
}
.portfolio-body { padding: 16px; }
.portfolio-cat {
  display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--brand);
  background: #E6F4EA; padding: 3px 9px; border-radius: 999px; margin-bottom: 8px;
}
.portfolio-title { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.portfolio-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.portfolio-desc { font-size: 12.5px; color: var(--ink); line-height: 1.5; }
.portfolio-budget { margin-top: 10px; font-size: 12px; color: var(--muted); }
.portfolio-budget b { color: var(--ink); }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-card {
  display: block;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.why-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.why-icon { width: 32px; height: 32px; margin-bottom: 10px; display: block; }
.why-card h4 { margin: 0 0 6px; font-size: 15px; }
.why-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testi-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.testi-card .stars { color: #E8A20C; font-size: 13px; margin-bottom: 8px; }
.testi-card .text { font-size: 13.5px; color: var(--ink); line-height: 1.6; margin-bottom: 12px; }
.testi-card .name { font-weight: 700; font-size: 13px; }
.testi-card .loc { font-size: 12px; color: var(--muted); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--accent); color: #fff; border-radius: var(--radius);
  padding: 34px 30px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.cta-banner h3 { margin: 0 0 6px; font-size: 20px; }
.cta-banner p { margin: 0; font-size: 13px; opacity: 0.95; }
.cta-banner .btn-white {
  background: #fff; color: var(--accent-dark); padding: 12px 22px; border-radius: 8px; font-weight: 800; font-size: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: none;
  padding: 11px 20px; border-radius: 7px; font-weight: 700; font-size: 14px;
}
.btn:hover { background: var(--accent-dark); }
.btn-outline-light { background: transparent; border: 1.5px solid #fff; color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }
.btn-outline { background: transparent; border: 1.5px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-wa { background: var(--wa); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Estimate form page ---------- */
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; max-width: 600px;
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block; font-size: 12px; font-weight: 700; color: var(--muted);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.03em;
}
.form-row select, .form-row input[type="number"], .form-row input[type="text"], .form-row input[type="tel"], .form-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; outline: none; font-family: inherit;
}
.form-row select:focus, .form-row input:focus, .form-row textarea:focus { border-color: var(--brand); }
.form-row-split { display: flex; gap: 14px; }
.form-row-split > div { flex: 1; }
.estimate-result {
  background: #F2F7F3; border: 1px solid #CFE3D3; border-radius: var(--radius);
  padding: 18px; margin-top: 6px;
}
.estimate-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 3px 0; }
.estimate-total {
  display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; color: var(--ink);
  border-top: 1px solid #CFE3D3; margin-top: 8px; padding-top: 8px;
}

/* ---------- About page ---------- */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.about-visual {
  border-radius: var(--radius);
  min-height: 220px;
  overflow: hidden;
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.legal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.legal-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: center; }
.legal-card .ico { width: 28px; height: 28px; flex-shrink: 0; }
.legal-card .title { font-weight: 700; font-size: 13.5px; }
.legal-card .sub { font-size: 12px; color: var(--muted); }
.area-tags span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; margin: 0 6px 6px 0; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 100;
  background: var(--wa); color: #fff; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.wa-float:hover { background: var(--wa-dark); }

/* ---------- Footer ---------- */
.footer { background: var(--brand-dark); color: #cfe3d6; margin-top: 40px; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; padding: 36px 20px; }
.footer h5 { color: #fff; font-size: 13px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer p, .footer a { display: block; font-size: 13px; color: #cfe3d6; margin-bottom: 8px; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); text-align: center; font-size: 12px; padding: 16px; color: #9fc2ac; }

/* ---------- Breadcrumb ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--brand); margin: 18px 0 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-main { min-height: 420px; padding: 44px 0; }
  .hero-content { max-width: 100%; }
  .hero-bg-overlay {
    background: linear-gradient(180deg,
      rgba(14,64,37,0.97) 0%,
      rgba(15,74,41,0.95) 55%,
      rgba(20,90,50,0.85) 100%);
  }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .why-grid, .testi-grid { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .footer .container { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .header .container { height: auto; padding: 12px 20px; }
}

/* ---------- Lightbox galeri portofolio ---------- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 20, 15, 0.92);
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-scroll {
  max-width: 90vw;
  max-height: 88vh;
  overflow-y: auto;
  padding: 4px;
}
.lightbox-content {
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-content img {
  max-width: 88vw;
  max-height: 58vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.lightbox-content video {
  max-width: 88vw;
  max-height: 58vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  background: #000;
}
.lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
}
.lightbox-counter {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}
.lightbox-share {
  display: inline-block;
  margin-top: 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
}
.lightbox-share:hover { background: rgba(255,255,255,0.22); }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  color: #fff; font-size: 36px;
  line-height: 1; cursor: pointer;
  opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 600px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 22px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 14px; font-size: 30px; }
}

/* ---------- Filter kategori: capsule button hijau ---------- */
#category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  background: var(--card);
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  user-select: none;
}
.pill:hover {
  background: #E6F4EA;
  transform: translateY(-1px);
}
.pill-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.pill-active:hover { background: var(--brand); }

/* ---------- Lightbox: panel detail konsep & tag ---------- */
.lightbox-details {
  width: 100%;
  max-width: 560px;
  margin: 18px auto 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: left;
}
.lightbox-concept {
  color: rgba(255,255,255,0.88);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.lightbox-tag-group { margin-bottom: 14px; }
.lightbox-tag-group:last-child { margin-bottom: 0; }
.lightbox-tag-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 8px;
}
.lightbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lightbox-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.lightbox-tag-benefit {
  background: rgba(20, 90, 50, 0.35);
  border-color: rgba(90, 200, 130, 0.4);
}
