/* Agro Nusantara Sejahtera — style.css */
/* Palet: #15803d (hijau utama), #ca8a04 (emas aksen), tema terang */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --hijau:    #15803d;
  --hijau-d:  #0f5f2e;
  --hijau-l:  #dcfce7;
  --emas:     #ca8a04;
  --emas-l:   #fef9c3;
  --emas-d:   #92400e;
  --putih:    #ffffff;
  --abu-1:    #f0fdf4;
  --abu-2:    #e2e8f0;
  --teks:     #1a2e1a;
  --teks-2:   #475569;
  --radius:   10px;
  --shadow:   0 2px 16px rgba(21,128,61,.10);
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--teks);
  background: var(--putih);
  line-height: 1.65;
  font-size: 16px;
}

/* ── DEMOBAR ── */
.demobar {
  background: var(--emas);
  color: #1a1000;
  font-size: .82rem;
  padding: .45rem 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 200;
}
.demobar a { color: #1a1000; font-weight: 700; text-decoration: underline; }
.demobar a:hover { color: var(--hijau-d); }

/* ── HEADER & NAV ── */
header {
  background: var(--hijau);
  position: sticky;
  top: 2.15rem; /* di bawah demobar */
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.25rem;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--putih);
}
.brand-icon {
  width: 38px; height: 38px;
  background: var(--emas);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-icon svg { display: block; }
.brand-name { font-size: 1.05rem; font-weight: 800; line-height: 1.2; }
.brand-tagline { font-size: .7rem; color: #bbf7d0; font-weight: 400; }

/* checkbox hack */
#nav { display: none; }
.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: .3rem;
}
.burger span {
  display: block;
  width: 26px; height: 3px;
  background: var(--putih);
  border-radius: 2px;
  transition: all .25s;
}
ul.menu {
  list-style: none;
  display: flex;
  gap: .25rem;
}
ul.menu a {
  display: block;
  padding: .45rem .85rem;
  color: #bbf7d0;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
ul.menu a:hover,
ul.menu a.active {
  background: var(--emas);
  color: #1a1000;
}

/* ── MOBILE NAV ── */
@media (max-width: 820px) {
  .burger { display: flex; }
  ul.menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--hijau-d);
    flex-direction: column;
    padding: .5rem 1rem 1rem;
    gap: .15rem;
  }
  #nav:checked ~ ul.menu { display: flex; }
  header { position: sticky; top: 2.15rem; }
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--hijau-d) 0%, var(--hijau) 55%, #166534 100%);
  color: var(--putih);
  padding: 5rem 1.25rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(202,138,4,.15) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(255,255,255,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: var(--emas);
  color: #1a1000;
  font-size: .78rem;
  font-weight: 800;
  padding: .3rem .9rem;
  border-radius: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 1rem;
}
.hero h1 em { color: #fde68a; font-style: normal; }
.hero p { font-size: 1.08rem; color: #bbf7d0; max-width: 580px; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: .72rem 1.6rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn-emas { background: var(--emas); color: #1a1000; }
.btn-outline { background: transparent; border: 2px solid var(--putih); color: var(--putih); }
.btn-hijau { background: var(--hijau); color: var(--putih); }
.btn-sm { padding: .5rem 1.1rem; font-size: .88rem; }

/* ── SECTIONS ── */
section { padding: 3.5rem 1.25rem; }
.section-center { max-width: 1100px; margin: 0 auto; }
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--hijau-d);
  margin-bottom: .5rem;
}
.section-sub {
  color: var(--teks-2);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
}
.divider {
  width: 52px; height: 4px;
  background: var(--emas);
  border-radius: 2px;
  margin-bottom: 1.1rem;
}

/* bg warna selang-seling */
.bg-hijau-l { background: var(--abu-1); }
.bg-emas-l  { background: var(--emas-l); }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--hijau-d);
  color: var(--putih);
  padding: 1.75rem 1.25rem;
}
.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--emas);
  line-height: 1;
}
.stat-label { font-size: .85rem; color: #bbf7d0; margin-top: .25rem; }

/* ── CARDS ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--putih);
  border: 1px solid var(--abu-2);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(21,128,61,.13); }
.card-icon {
  width: 52px; height: 52px;
  background: var(--hijau-l);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg { color: var(--hijau); }
.card h3 { font-size: 1.05rem; font-weight: 700; color: var(--hijau-d); margin-bottom: .5rem; }
.card p { font-size: .9rem; color: var(--teks-2); }

/* ── LAYANAN BESAR ── */
.layanan-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}
.layanan-item {
  background: var(--putih);
  border-left: 5px solid var(--hijau);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}
.layanan-item h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--hijau-d);
  margin-bottom: .4rem;
}
.layanan-item .tag {
  display: inline-block;
  background: var(--emas-l);
  color: var(--emas-d);
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 4px;
  margin-bottom: .75rem;
}
.layanan-item p { font-size: .9rem; color: var(--teks-2); }

/* ── PORTOFOLIO GRID ── */
.porto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.porto-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--abu-2);
  background: var(--putih);
}
.porto-thumb {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.porto-thumb svg { width: 64px; height: 64px; opacity: .9; }
.porto-body { padding: 1.2rem 1.25rem 1.5rem; }
.porto-body h3 { font-size: .98rem; font-weight: 800; color: var(--hijau-d); margin-bottom: .3rem; }
.porto-body .meta { font-size: .8rem; color: var(--emas-d); font-weight: 600; margin-bottom: .5rem; }
.porto-body p { font-size: .88rem; color: var(--teks-2); }

/* ── ABOUT SPLIT ── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-visual {
  background: linear-gradient(135deg, var(--hijau-l), var(--emas-l));
  border-radius: 16px;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-visual::after {
  content: "";
  position: absolute;
  bottom: -20px; right: -20px;
  width: 120px; height: 120px;
  background: var(--emas);
  opacity: .15;
  border-radius: 50%;
}
.about-text h2 { margin-bottom: .5rem; }
.about-text p { color: var(--teks-2); margin-bottom: 1rem; }
.check-list { list-style: none; margin-bottom: 1.5rem; }
.check-list li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .4rem 0;
  font-size: .93rem;
  color: var(--teks);
}
.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--hijau-l);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: .1rem;
}

/* ── TIM ── */
.tim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.tim-card {
  background: var(--putih);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--abu-2);
}
.tim-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--putih);
}
.tim-card h3 { font-size: .98rem; font-weight: 700; color: var(--hijau-d); }
.tim-card .jabatan { font-size: .82rem; color: var(--emas-d); font-weight: 600; margin-bottom: .5rem; }
.tim-card p { font-size: .83rem; color: var(--teks-2); }

/* ── FORM KONTAK ── */
.kontak-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.kontak-info h2 { margin-bottom: .5rem; }
.kontak-info p { color: var(--teks-2); margin-bottom: 1.5rem; }
.info-item {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}
.info-icon {
  width: 40px; height: 40px;
  background: var(--hijau-l);
  border-radius: 8px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.info-item strong { display: block; font-size: .88rem; color: var(--hijau-d); }
.info-item span { font-size: .9rem; color: var(--teks-2); }

.form-card {
  background: var(--putih);
  border: 1px solid var(--abu-2);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--hijau-d); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--teks); margin-bottom: .35rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--abu-2);
  border-radius: 7px;
  font-size: .93rem;
  font-family: inherit;
  color: var(--teks);
  background: var(--abu-1);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--hijau);
  background: var(--putih);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: .78rem; color: var(--teks-2); text-align: center; margin-top: .75rem; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(120deg, var(--hijau-d), var(--hijau));
  color: var(--putih);
  padding: 3.5rem 1.25rem;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; margin-bottom: .6rem; }
.cta-banner p { color: #bbf7d0; margin-bottom: 1.75rem; }

/* ── FOOTER ── */
footer {
  background: #0a1f0a;
  color: #9ca3af;
  padding: 2.5rem 1.25rem 1.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand-name { color: var(--putih); font-size: 1rem; font-weight: 800; margin-bottom: .4rem; }
.footer-brand-desc { font-size: .85rem; line-height: 1.6; }
footer h4 { color: var(--putih); font-size: .88rem; font-weight: 700; margin-bottom: .75rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: .4rem; }
footer ul a { color: #9ca3af; font-size: .87rem; text-decoration: none; transition: color .2s; }
footer ul a:hover { color: var(--emas); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid #1f2f1f;
  font-size: .8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  background: linear-gradient(120deg, var(--hijau-d) 0%, var(--hijau) 100%);
  color: var(--putih);
  padding: 3.5rem 1.25rem 3rem;
  text-align: center;
}
.page-header h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 900; margin-bottom: .5rem; }
.page-header p { color: #bbf7d0; font-size: 1rem; max-width: 540px; margin: 0 auto; }
.breadcrumb { font-size: .82rem; color: #86efac; margin-bottom .8rem; }
.breadcrumb a { color: #86efac; text-decoration: none; }
.breadcrumb a:hover { color: var(--emas); }

/* ── NILAI PERUSAHAAN ── */
.nilai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.nilai-item {
  background: var(--putih);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  border-top: 4px solid var(--hijau);
  box-shadow: var(--shadow);
}
.nilai-item.emas-top { border-top-color: var(--emas); }
.nilai-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--hijau);
  line-height: 1;
  margin-bottom: .4rem;
}
.nilai-item.emas-top .nilai-num { color: var(--emas-d); }
.nilai-item h4 { font-size: .95rem; font-weight: 700; color: var(--teks); margin-bottom: .35rem; }
.nilai-item p { font-size: .85rem; color: var(--teks-2); }

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .about-split,
  .kontak-wrap {
    grid-template-columns: 1fr;
  }
  .about-visual { min-height: 200px; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 500px) {
  .hero { padding: 3.5rem 1rem 3rem; }
  section { padding: 2.5rem 1rem; }
}
