:root {
  --green: #215a2b;
  --green-d: #174421;
  --mint: #86efac;
  --ink: #101828;
  --mute: #475467;
  --line: #d0d5dd;
  --bg: #fff;
  --soft: #f3f7f4;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
a:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 3px solid #86d19a;
  outline-offset: 2px;
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.brand small {
  display: block;
  font-size: 12px;
  color: var(--mute);
}
nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
nav a {
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
nav a.on {
  background: var(--green);
  color: #fff;
}
nav a:hover:not(.on) {
  background: var(--soft);
}

/* ---------- Hero (Beranda) ---------- */
.hero {
  background: var(--green);
  color: #fff;
  padding: 64px 0;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.hero p.k {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  font-weight: 600;
}
.hero h1 span {
  color: var(--mint);
}
.hero p.d {
  margin: 0 0 24px;
  font-size: 17px;
  max-width: 56ch;
  opacity: 0.95;
}
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid #fff;
  color: #fff;
  margin: 0 8px 8px 0;
}
.btn.f {
  background: #fff;
  color: var(--ink);
}
.btn.o {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
  font-size: 13.5px;
  padding: 8px 16px;
}
.btn.o:hover {
  border-color: var(--green);
  color: var(--green);
}
.art {
  max-width: 340px;
  width: 100%;
  justify-self: center;
}
.art svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Page head (Layanan, Tentang) ---------- */
.pagehead {
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.pagehead .wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
}
.pagehead h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  font-weight: 600;
}
.pagehead p {
  margin: 0;
  color: var(--mute);
  font-size: 17px;
  max-width: 56ch;
}
.pagehead .art {
  max-width: 260px;
}

/* ---------- Blocks ---------- */
.block {
  padding: 56px 0 64px;
}
.block.alt {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.block h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  line-height: 1.2;
}
.block p.sub {
  margin: 0 0 28px;
  color: var(--mute);
  max-width: 60ch;
}
.search {
  width: 100%;
  max-width: 480px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  margin-bottom: 28px;
  background: #fff;
}

/* ---------- Kartu layanan ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.card:hover,
.card:focus-within {
  border-color: var(--green);
  box-shadow: 0 4px 16px rgba(33, 90, 43, 0.15);
}
.thumb {
  height: 200px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px;
  display: grid;
  place-items: center;
  color: var(--green-d);
  font-size: 40px;
  font-weight: 700;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}
.body p {
  margin: 0 0 18px;
  color: var(--mute);
  font-size: 14.5px;
  flex: 1;
}
.body a {
  color: var(--green);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
}
.body a:hover {
  text-decoration: underline;
}
.empty {
  color: var(--mute);
}
.more {
  margin-top: 24px;
}

/* ---------- Kartu fungsi ---------- */
.fgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 kolom x 2 baris */
  gap: 16px;
}
.fgrid .fcard {
  padding: 20px;
}
.fgrid .fcard h3 {
  font-size: 16px;
}
@media (max-width: 980px) {
  .fgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .fgrid {
    grid-template-columns: 1fr;
  }
}
.fcard {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: #fff;
}
.ficon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.ficon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fcard h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}
.fcard p {
  margin: 0;
  color: var(--mute);
  font-size: 14.5px;
}

/* ---------- Tentang ---------- */
.two {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
}
.prose p {
  margin: 0 0 16px;
  color: var(--ink);
  max-width: 62ch;
}
.prose h2 {
  margin-top: 0;
}
.kontak {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: var(--soft);
}
.kontak h3 {
  margin: 0 0 14px;
  font-size: 17px;
}
.kontak dl {
  margin: 0;
}
.kontak dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 12px;
}
.kontak dt:first-child {
  margin-top: 0;
}
.kontak dd {
  margin: 2px 0 0;
  color: var(--mute);
  font-size: 14.5px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--soft);
  border-top: 3px solid var(--green);
  color: var(--mute);
  font-size: 14px;
}
.fcols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 32px;
  padding: 40px 20px 32px;
}
.fcols h4 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink);
}
.fcols a {
  display: block;
  color: var(--mute);
  text-decoration: none;
  margin-bottom: 6px;
}
.fcols a:hover {
  color: var(--green);
  text-decoration: underline;
}
.fcols p {
  margin: 8px 0 0;
}
.fcols .logo {
  margin-bottom: 8px;
}
.fcols b {
  color: var(--ink);
}
.copy {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 13px;
}

@media (max-width: 760px) {
  .hero .wrap,
  .pagehead .wrap,
  .two,
  .fcols {
    grid-template-columns: 1fr;
  }
  .art {
    display: none;
  }
  header {
    position: static;
  }
  header .wrap {
    height: auto;
    padding: 12px 20px;
    flex-wrap: wrap;
  }
}
/* ---------- Contact Hero ---------- */
.contact-hero {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 56px 0 64px;
}
.contact-hero h2 {
  margin: 0 0 24px;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  line-height: 1.2;
}
.cgrid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 16px;
}
.citem {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.clabel {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.citem p,
.citem a {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.citem p {
  color: var(--ink);
}
.citem a {
  color: var(--green);
  font-weight: 600;
}
.citem a:hover {
  text-decoration: underline;
}
@media (max-width: 760px) {
  .cgrid {
    grid-template-columns: 1fr;
  }
}

/* footer */
.fbrand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fcols .logo {
  margin: 0 -5px; /* buang ruang kosong transparan di tepi logo */
}

.two {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
}
.two .art {
  align-self: center;
}

/* =====================================================
   ANIMASI & EFEK (tahap 1)
   ===================================================== */

/* Header kaca */
header {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
nav a,
.btn {
  transition: background 0.25s, color 0.25s, border-color 0.25s,
    transform 0.25s, box-shadow 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.btn.f:hover {
  box-shadow: 0 8px 24px rgba(134, 239, 172, 0.45);
}

/* Hero: gradasi bergerak + bentuk melayang */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #174421, #215a2b, #2f7a3c, #215a2b);
  background-size: 300% 300%;
  animation: gradMove 16s ease-in-out infinite;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
}
.hero::before {
  width: 320px;
  height: 320px;
  background: #86efac;
  top: -120px;
  left: -80px;
  animation: blobA 12s ease-in-out infinite;
}
.hero::after {
  width: 260px;
  height: 260px;
  background: #4ade80;
  bottom: -120px;
  right: 8%;
  animation: blobB 14s ease-in-out infinite;
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.hero .wrap > div:first-child > * {
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero .wrap > div:first-child > :nth-child(1) { animation-delay: 0.05s; }
.hero .wrap > div:first-child > :nth-child(2) { animation-delay: 0.15s; }
.hero .wrap > div:first-child > :nth-child(3) { animation-delay: 0.3s; }
.hero .wrap > div:first-child > :nth-child(4) { animation-delay: 0.42s; }
.hero .wrap > div:first-child > :nth-child(5) { animation-delay: 0.5s; }
.hero .art svg,
.pagehead .art svg {
  animation: floaty 6s ease-in-out infinite;
}

/* Kartu layanan */
.card {
  animation: cardIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.15s; }
.card:nth-child(3) { animation-delay: 0.25s; }
.card:nth-child(4) { animation-delay: 0.35s; }
.card:nth-child(5) { animation-delay: 0.45s; }
.card:nth-child(n + 6) { animation-delay: 0.55s; }
.card:hover,
.card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(33, 90, 43, 0.22);
}
.thumb {
  overflow: hidden;
}
.thumb img {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover .thumb img {
  transform: scale(1.07);
}
.body a {
  display: inline-block;
  transition: transform 0.25s;
}
.card:hover .body a {
  transform: translateX(4px);
}

/* Kartu fungsi & kontak */
.fcard,
.citem {
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.fcard:hover,
.citem:hover {
  transform: translateY(-6px);
  border-color: var(--green);
  box-shadow: 0 14px 32px rgba(33, 90, 43, 0.16);
}
.ficon {
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.3s;
}
.fcard:hover .ficon {
  transform: rotate(-8deg) scale(1.12);
  background: var(--green-d);
}

/* Pencarian */
.search {
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(134, 239, 172, 0.4);
}

/* Muncul saat di-scroll (Chrome/Edge terbaru; browser lain tampil biasa) */
@supports (animation-timeline: view()) {
  .fcard,
  .citem,
  .prose,
  .block h2,
  .block p.sub {
    animation: revealUp linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
}

@keyframes gradMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes blobA {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(80px, 60px); }
}
@keyframes blobB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-70px, -50px); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes cardIn {
  from { opacity: 0; translate: 0 36px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes revealUp {
  from { opacity: 0; translate: 0 40px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}