/*
 * JagoUMKM — desain website publik dari Figma (file "Jago UMKM", frame Home 42:11).
 * Token warna & tipografi, navbar kapsul, footer, tombol, dan animasi muncul saat di-scroll.
 * Dimuat setelah site.css; halaman lama tetap memakai komponen site.css.
 */
:root {
  --jg-green-dark: #04532b;
  --jg-green-light: #71c01e;
  --jg-green-a: #6bc021;
  --jg-green-b: #2bb15a;
  --jg-footer: #002c16;
  --jg-footer-text: #88a798;
  --jg-black: #323232;
  --jg-black-2: #2e2e2e;
  --jg-orange: #fcbb03;
  --jg-orange-2: #ff7513;
  --jg-yellow: #ffdb74;
  --jg-card: #f6f6f6;
  --jg-tag: #e3e3e3;
  --jg-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --jg-display: "Barlow", "Manrope", system-ui, sans-serif;
  --jg-display-cond: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --jg-container: 1140px;
  --jg-ease: cubic-bezier(.22, 1, .36, 1);
  --bs-body-font-family: var(--jg-font);
  --bs-body-color: var(--jg-black);
}

body { font-family: var(--jg-font); color: var(--jg-black); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.jg-container { width: min(var(--jg-container), calc(100% - 40px)); margin-inline: auto; }
.jg-display { font-family: var(--jg-display); font-weight: 600; color: var(--jg-green-dark); letter-spacing: 0; }
.jg-accent { color: var(--jg-green-light); }
.jg-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Tombol ---------- */
.jg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 30px; font-family: var(--jg-font); font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; border: 0; -webkit-tap-highlight-color: transparent; transition: transform .35s var(--jg-ease), box-shadow .35s var(--jg-ease), background-position .6s var(--jg-ease), color .25s, border-color .25s, background-color .25s; }
.jg-btn:focus-visible { outline: 3px solid rgba(113, 192, 30, .45); outline-offset: 3px; }
.jg-btn-green { padding: 17px 25px; color: #fff; background-image: linear-gradient(101.25deg, #5ec52e 0.4%, #17a62d 50%, #5ec52e 99.6%); background-size: 200% 100%; background-position: 0 0; box-shadow: 0 4px 10px rgba(28, 211, 56, .45); }
.jg-btn-green:hover { color: #fff; background-position: 100% 0; transform: translateY(-3px); box-shadow: 0 12px 26px rgba(28, 211, 56, .45); }
.jg-btn-outline-light { padding: 17px 25px; color: #fff; font-weight: 500; border: 1.5px solid #fff; background: transparent; }
.jg-btn-outline-light:hover { color: var(--jg-green-dark); background: #fff; transform: translateY(-3px); }
.jg-btn-pill { height: 35px; padding: 0 20px; border-radius: 60px; }
.jg-btn-ghost { color: #6c6c6c; border: 1px solid #707070; background: #fff; }
.jg-btn-ghost:hover { color: var(--jg-green-dark); border-color: var(--jg-green-dark); }
.jg-btn-orange { color: #fff; background-image: linear-gradient(-68.25deg, #fcc703 1.57%, #ff8000 114.11%); background-size: 160% 100%; }
.jg-btn-orange:hover { color: #fff; background-position: 90% 0; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255, 128, 0, .35); }

/* ---------- Navbar kapsul ---------- */
.jg-header { position: -webkit-sticky; position: sticky; top: 0; z-index: 1030; padding-top: 13px; pointer-events: none; }
.jg-nav { pointer-events: auto; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 80px; padding: 0 23px 0 30px; background: #fff; border-radius: 100px; box-shadow: 0 20px 50px rgba(0, 0, 0, .1); transition: height .4s var(--jg-ease), box-shadow .4s var(--jg-ease), transform .4s var(--jg-ease); }
.jg-header.is-scrolled .jg-nav { height: 68px; box-shadow: 0 14px 40px rgba(4, 83, 43, .14); }
.jg-brand { display: inline-flex; flex-shrink: 0; }
.jg-brand img { width: 151px; height: 51px; object-fit: contain; transition: transform .4s var(--jg-ease); }
.jg-brand:hover img { transform: scale(1.04) rotate(-1deg); }
.jg-menu { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.jg-menu a { position: relative; display: inline-block; padding: 6px 0; font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--jg-black); text-decoration: none; transition: color .25s; }
.jg-menu a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 2px; border-radius: 2px; background: var(--jg-green-light); transition: left .35s var(--jg-ease), right .35s var(--jg-ease); }
.jg-menu a:hover { color: var(--jg-green-dark); }
.jg-menu a:hover::after { left: 0; right: 0; }
.jg-menu a.is-active { font-weight: 800; color: var(--jg-green-dark); }
.jg-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.jg-toggle { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f3f8ef; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.jg-toggle span { position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px; background: var(--jg-green-dark); transition: transform .35s var(--jg-ease), opacity .25s, top .35s var(--jg-ease); }
.jg-toggle span:nth-child(1) { top: 15px; }
.jg-toggle span:nth-child(2) { top: 21px; }
.jg-toggle span:nth-child(3) { top: 27px; }
.jg-header.is-open .jg-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.jg-header.is-open .jg-toggle span:nth-child(2) { opacity: 0; }
.jg-header.is-open .jg-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1199.98px) {
  .jg-menu { gap: 20px; }
  .jg-nav { padding: 0 18px 0 22px; }
}
@media (max-width: 991.98px) {
  .jg-header { padding-top: 10px; }
  .jg-nav { height: 64px; padding: 0 10px 0 18px; }
  .jg-header.is-scrolled .jg-nav { height: 60px; }
  .jg-brand img { width: 122px; height: 41px; }
  .jg-toggle { display: inline-block; }
  .jg-panel { position: absolute; left: 0; right: 0; top: calc(100% + 10px); padding: 18px; background: #fff; border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .14); opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top center; transition: opacity .3s var(--jg-ease), transform .35s var(--jg-ease), visibility 0s linear .35s; }
  .jg-header.is-open .jg-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .jg-menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .jg-menu a { display: block; padding: 12px 14px; border-radius: 12px; font-size: 16px; }
  .jg-menu a::after { display: none; }
  .jg-menu a:hover, .jg-menu a.is-active { background: #f3f8ef; }
  .jg-actions { margin-top: 12px; padding-top: 14px; border-top: 1px solid #eef1ec; }
  .jg-actions .jg-btn { flex: 1; height: 44px; }
}
@media (min-width: 992px) {
  .jg-panel { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 20px; }
  .jg-panel .jg-menu { margin-inline: auto; }
}

/* ---------- Footer ---------- */
.jg-footer { background: var(--jg-footer); color: var(--jg-footer-text); padding: 28px 0 0; font-size: 15px; }
.jg-footer a { color: inherit; text-decoration: none; transition: color .25s, padding .3s var(--jg-ease); }
.jg-footer-grid { display: grid; grid-template-columns: 394px 218px 219px 1fr; align-items: start; min-height: 250px; }
.jg-footer-brand img { width: 222px; height: 74px; object-fit: contain; margin-left: 21px; }
.jg-footer-brand p { width: 338px; max-width: 100%; margin: 21px 0 0 29px; font-weight: 500; line-height: 23px; }
.jg-footer h3 { margin: 0 0 18px; font-family: var(--jg-font); font-size: 15px; font-weight: 800; line-height: 1.2; color: #fff; }
.jg-footer-col { padding-top: 30px; }
.jg-footer-col ul { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; line-height: 26px; }
.jg-footer-col a:hover { color: #fff; padding-left: 4px; }
.jg-footer-contact { padding-top: 24px; }
.jg-footer-contact h3 { font-family: var(--jg-display-cond); font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.jg-footer-phone { display: block; font-size: 30px; font-weight: 600; line-height: 1.2; letter-spacing: 0; }
.jg-footer-mail { display: inline-block; margin-top: 8px; font-family: var(--jg-display-cond); font-size: 16px; color: var(--jg-orange) !important; }
.jg-footer-phone:hover, .jg-footer-mail:hover { color: #fff !important; }
.jg-footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.jg-footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(136, 167, 152, .14); color: #fff; }
.jg-footer-socials a:hover { background: var(--jg-green-light); transform: translateY(-2px); }
/* Sosmed UMKM di footer detail Direktori UMKM */
.jg-footer-umkm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 4px 0 24px; padding: 16px 20px; border-radius: 16px; background: rgba(136, 167, 152, .1); border: 1px solid rgba(136, 167, 152, .22); }
.jg-footer-umkm .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.jg-footer-umkm .who img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #fff; flex-shrink: 0; }
.jg-footer-umkm .who small { display: block; font-size: 13px; }
.jg-footer-umkm .who strong { display: block; color: #fff; font-size: 16px; line-height: 1.3; }
.jg-footer-umkm .jg-footer-socials { margin-top: 0; flex-wrap: wrap; }
.jg-footer-umkm .jg-footer-socials a { width: auto; height: 36px; padding: 0 14px; gap: 6px; border-radius: 18px; font-size: 14px; font-weight: 600; }
.jg-footer-umkm .jg-footer-socials a:hover { background: var(--c, var(--jg-green-light)); }
@media (max-width: 575.98px) { .jg-footer-umkm .jg-footer-socials a { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; } .jg-footer-umkm .jg-footer-socials a span { display: none; } }
.jg-footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 0; padding: 14px 0 38px; border-top: 1px solid rgba(136, 167, 152, .22); font-weight: 500; }
.jg-footer-bottom span:last-child { margin-right: 4px; }
@media (max-width: 1199.98px) {
  .jg-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 24px; }
  .jg-footer-brand img, .jg-footer-brand p { margin-left: 0; }
  .jg-footer-phone { font-size: 24px; }
}
@media (max-width: 991.98px) {
  .jg-footer { padding-top: 36px; }
  .jg-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .jg-footer-brand, .jg-footer-contact { grid-column: 1 / -1; }
  .jg-footer-col, .jg-footer-contact { padding-top: 0; }
  .jg-footer h3 { margin-bottom: 14px; }
  .jg-footer-bottom { flex-direction: column; margin-top: 36px; text-align: center; }
}

/* ---------- Animasi muncul saat di-scroll ---------- */
.jg-js [data-reveal] { opacity: 0; transition: opacity .9s var(--jg-ease), transform 1s var(--jg-ease), filter .9s var(--jg-ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.jg-js [data-reveal="up"] { transform: translate3d(0, 48px, 0); }
.jg-js [data-reveal="down"] { transform: translate3d(0, -36px, 0); }
.jg-js [data-reveal="left"] { transform: translate3d(-64px, 0, 0); }
.jg-js [data-reveal="right"] { transform: translate3d(64px, 0, 0); }
.jg-js [data-reveal="zoom"] { transform: scale(.88); }
.jg-js [data-reveal="rise"] { transform: translate3d(0, 90px, 0) scale(.96); }
.jg-js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .jg-js [data-reveal] { opacity: 1; transform: none; filter: none; }
}
.jg-footer-legal { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; margin-left: 14px; font-size: 13px; }
.jg-footer-legal a { opacity: .8; }
.jg-footer-legal a:hover { color: #fff; opacity: 1; }
@media (max-width: 767.98px) { .jg-footer-legal { display: flex; justify-content: center; margin: 8px 0 0; } }

/* Menu yang belum dibuka: redup & tidak bisa diklik */
.jg-menu .is-disabled { display: inline-block; padding: 6px 0; font-size: 15px; font-weight: 600; line-height: 1.2; color: #a3a3a3; cursor: not-allowed; user-select: none; }
.jg-btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: auto; }
.jg-btn.is-disabled:hover { color: #6c6c6c; border-color: #707070; transform: none; }
.jg-footer-col .is-disabled { color: rgba(136, 167, 152, .5); cursor: not-allowed; }
@media (max-width: 991.98px) { .jg-menu .is-disabled { display: block; padding: 12px 14px; font-size: 16px; } }
.jg-footer-line { display: flex; align-items: flex-start; gap: 8px; max-width: 320px; margin: 12px 0 0; font-size: 14px; line-height: 21px; color: var(--jg-footer-text); }
.jg-footer-line i { flex-shrink: 0; margin-top: 2px; color: var(--jg-green-light); }
a.jg-footer-line:hover { color: #fff; }
.jg-footer-company { opacity: .85; }
@media (max-width: 767.98px) { .jg-footer-company { display: block; } .jg-footer-company .sep { display: none; } }

/* Label kecil (dipakai beranda & halaman lain) */
.jg-tag { display: inline-block; padding: 6px 10px; border-radius: 10px 0 10px 0; background: var(--jg-tag); font-size: 15px; line-height: 18px; color: var(--jg-green-dark); }
.jg-footer-bottom > span:last-child { flex-shrink: 0; text-align: right; }
@media (max-width: 767.98px) { .jg-footer-bottom > span:last-child { text-align: center; } }
