/* =====================================================================
   SCKB Group Website v2 : tampilan publik
   Warna tema bisa diganti di bagian :root di bawah ini.
   ===================================================================== */

:root {
  --anggur: #5b1a24;        /* merah anggur dari latar */
  --anggur-tua: #2a1418;
  --arang: #1f2628;         /* abu arang dari latar */
  --emas: #cfa24e;          /* garis dan aksen emas */
  --emas-muda: #ead3a0;
  --bara: #e8872a;          /* oranye logo, dipakai untuk tombol utama */
  --bara-tua: #c96d16;
  --gading: #fbf7ef;        /* latar terang */
  --tinta: #2b2320;         /* teks di latar terang */
  --tinta-lembut: #5a4d46;
  --teks-terang: #f4eee3;   /* teks di latar gelap */
  --teks-redup: #d9cfc0;

  --huruf-judul: "Marcellus", "Georgia", "Times New Roman", serif;
  --huruf-isi: "Nunito Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --lebar: 1180px;
  --tinggi-kepala: 88px;
  --sudut: 6px;
}

/* Ukuran huruf dasar seluruh website */
html { font-size: 19px; scroll-behavior: smooth; }
@media (max-width: 640px) {
  html { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--huruf-isi);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--teks-terang);
  background: var(--anggur-tua);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Latar utama: foto merah anggur dengan titik cahaya emas, diam saat halaman digulir */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background: url("../img/latar-utama.jpg") center / cover no-repeat;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 10, 12, .35) 0%, rgba(20, 10, 12, .55) 60%, rgba(18, 12, 12, .8) 100%);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--huruf-judul); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; letter-spacing: .005em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--emas-muda); outline-offset: 3px; }

.lewati {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--gading); color: var(--tinta); padding: .6em 1em; border-radius: var(--sudut);
}
.lewati:focus { top: 12px; }

.wadah { width: min(var(--lebar), 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .wadah { width: calc(100% - 32px); } }

/* ---------- Tombol ---------- */
.tombol {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 54px; padding: .7em 1.5em;
  border-radius: var(--sudut); border: 2px solid transparent;
  font-family: var(--huruf-isi); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .2s, border-color .2s, color .2s;
}
.tombol-bara { background: var(--bara); color: #2a1406; }
.tombol-bara:hover { background: #f39a42; }
.tombol-garis { border-color: var(--emas); color: var(--emas-muda); background: rgba(20, 10, 12, .25); }
.tombol-garis:hover { background: var(--emas); color: var(--anggur-tua); }
.deret-tombol { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.4em; }

.tautan { color: var(--emas-muda); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; font-weight: 600; }
.tautan:hover { color: #fff; }
.tautan.besar { font-size: 1.3rem; font-family: var(--huruf-judul); font-weight: 400; }

/* ---------- Kepala (header) ---------- */
.kepala {
  position: sticky; top: 0; z-index: 50;
  background: var(--gading);
  border-bottom: 1px solid rgba(207, 162, 78, .55);
  box-shadow: 0 6px 24px rgba(20, 8, 10, .25);
  color: var(--tinta);
}
.kepala-dalam {
  width: min(var(--lebar), 100% - 48px); margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
  min-height: var(--tinggi-kepala);
}
.logo img { height: 56px; width: auto; }
.menu { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.menu a {
  display: block; white-space: nowrap; padding: .55em .8em; text-decoration: none; font-weight: 600;
  color: var(--tinta); border-radius: var(--sudut); position: relative;
}
.menu a:hover { background: #f1e7d4; }
.menu a[aria-current="page"] { color: var(--anggur); }
.menu a[aria-current="page"]::after {
  content: ""; position: absolute; left: .8em; right: .8em; bottom: .3em; height: 2px; background: var(--bara);
}
.kepala-cta { min-height: 48px; padding: .55em 1.2em; white-space: nowrap; }

.tombol-menu {
  display: none; margin-left: auto; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 16px; border: 1px solid #d8c7a6; border-radius: var(--sudut);
  background: #fff; cursor: pointer; font-weight: 700; color: var(--tinta);
}
.tombol-menu .garis, .tombol-menu .garis::before, .tombol-menu .garis::after {
  display: block; width: 22px; height: 2px; background: var(--tinta); position: relative; transition: transform .2s;
}
.tombol-menu .garis::before, .tombol-menu .garis::after { content: ""; position: absolute; left: 0; }
.tombol-menu .garis::before { top: -7px; }
.tombol-menu .garis::after { top: 7px; }
.tombol-menu[aria-expanded="true"] .garis { background: transparent; }
.tombol-menu[aria-expanded="true"] .garis::before { transform: translateY(7px) rotate(45deg); }
.tombol-menu[aria-expanded="true"] .garis::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1140px) {
  :root { --tinggi-kepala: 76px; }
  .kepala-dalam { width: calc(100% - 32px); gap: 12px; }
  .logo img { height: 46px; }
  .tombol-menu { display: inline-flex; }
  .kepala-cta { display: none; }
  .menu {
    position: fixed; left: 0; right: 0; top: var(--tinggi-kepala); bottom: 0;
    background: var(--gading); flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px 32px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu.terbuka { transform: none; opacity: 1; visibility: visible; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu a { font-size: 1.25rem; padding: .85em .6em; border-bottom: 1px solid #eadfca; border-radius: 0; }
  .menu a[aria-current="page"]::after { left: .6em; right: auto; width: 40px; bottom: .5em; }
  body.menu-buka { overflow: hidden; }
}

/* ---------- Banner ---------- */
.banner {
  position: relative; overflow: hidden;
  /* Tinggi kotak banner. Ubah angka ini kalau banner ingin lebih tinggi atau pendek. */
  height: clamp(340px, 55vh, 560px);
  background: #140b0d;
  border-bottom: 1px solid rgba(207, 162, 78, .45);
}
@media (max-width: 640px) { .banner { height: auto; aspect-ratio: 16 / 9; min-height: 220px; } }
.banner-slides, .banner-slide { position: absolute; inset: 0; }
.banner { touch-action: pan-y; }
.banner-slides { touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.banner.sedang-geser .banner-slides { cursor: grabbing; }
.banner-slide img { transition: transform .3s ease; -webkit-user-drag: none; }
.banner.sedang-geser .banner-slide img { transition: none; }
.banner-slide { opacity: 0; transition: opacity .9s ease; }
.banner-slide.aktif { opacity: 1; }
.banner-slide img { position: relative; width: 100%; height: 100%; }
/* Mode fit: foto utuh, sisi kosong diisi versi buram dari foto yang sama */
.banner.mode-fit .banner-slide::before {
  content: ""; position: absolute; inset: -40px;
  background: var(--foto) center / cover no-repeat;
  filter: blur(28px) brightness(.55); transform: scale(1.1);
}
.banner.mode-fit .banner-slide img { object-fit: contain; }
.banner.mode-penuh .banner-slide img { object-fit: cover; }
.banner.mode-tarik .banner-slide img { object-fit: fill; }
.banner-teks {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 80px max(24px, calc((100% - var(--lebar)) / 2)) 48px;
  pointer-events: none; /* supaya banner tetap bisa digeser dari area tulisan */
  background: linear-gradient(0deg, rgba(20, 8, 10, .82) 0%, rgba(20, 8, 10, .45) 60%, rgba(20, 8, 10, 0) 100%);
}
.banner-teks h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 22ch; margin-bottom: .3em; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.banner-teks p { font-size: 1.15rem; max-width: 52ch; margin: 0; color: var(--teks-redup); }
@media (max-width: 640px) {
  .banner-teks { position: static; padding: 22px 16px; background: rgba(20, 8, 10, .9); }
  .banner { overflow: visible; }
  .banner-slides { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
}
.banner-titik { position: absolute; right: 24px; bottom: 18px; z-index: 3; display: flex; gap: 8px; }
.banner-titik button { width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 2px solid var(--emas-muda); background: transparent; cursor: pointer; }
.banner-titik button[aria-current="true"] { background: var(--emas-muda); }
@media (max-width: 640px) {
  .banner { aspect-ratio: auto; }
  .banner-titik { top: calc(100vw * 9 / 16 - 30px); bottom: auto; right: 14px; }
}

/* ---------- Pembuka (tampil kalau belum ada banner) ---------- */
.pembuka { padding: clamp(80px, 13vh, 150px) 0 clamp(70px, 10vh, 120px); }
.pembuka h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); max-width: 17ch; margin-bottom: .35em; color: #fff8ec; }
.pembuka-sub { font-size: 1.25rem; max-width: 46ch; color: var(--teks-redup); }

/* ---------- Bagian umum ---------- */
.bagian { padding: clamp(56px, 7vw, 96px) 0; }
.bagian-rapat { padding-top: 24px; }
.judul-bagian { margin-bottom: 40px; max-width: 60ch; }
.judul-bagian h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); color: #fff8ec; }
.judul-bagian h2::after { content: ""; display: block; width: 64px; height: 2px; background: var(--emas); margin-top: .45em; }
.judul-bagian p { color: var(--teks-redup); font-size: 1.1rem; }
.carousel.statis + .petunjuk .jika-geser { display: none; }
.petunjuk { text-align: center; color: var(--teks-redup); font-size: .92rem; margin: 26px auto 0; width: calc(100% - 32px); }
.kosong {
  padding: 48px 28px; text-align: center; font-size: 1.15rem; color: var(--teks-redup);
  border: 1px solid rgba(207, 162, 78, .4); border-radius: var(--sudut); background: rgba(20, 8, 10, .35);
}

.kepala-halaman { padding: clamp(56px, 8vw, 96px) 0 36px; }
.kepala-halaman h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); color: #fff8ec; margin-bottom: .25em; }
.kepala-halaman h1::after { content: ""; display: block; width: 72px; height: 2px; background: var(--emas); margin-top: .4em; }
.kepala-halaman p { font-size: 1.15rem; color: var(--teks-redup); max-width: 56ch; }

/* ---------- Kartu produk ---------- */
.kartu {
  display: flex; flex-direction: column; text-align: left;
  padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
/* Bingkai foto: garis emas ganda, kotak rasio 3:4 */
.kartu-foto {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 3px; background: #241315;
  box-shadow: 0 0 0 1px rgba(234, 211, 160, .75), 0 0 0 6px rgba(20, 8, 10, .6), 0 0 0 7px rgba(207, 162, 78, .45), 0 18px 40px rgba(0, 0, 0, .45);
  transition: box-shadow .25s;
}
.kartu-foto img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* Deskripsi di bagian atas foto (area polos pada poster produk) */
.kartu-lapis {
  position: absolute; left: 0; right: 0; top: 0; padding: 18px 18px 46px;
  background: linear-gradient(180deg, rgba(20, 8, 10, .78) 0%, rgba(20, 8, 10, .5) 65%, rgba(20, 8, 10, 0) 100%);
  color: #fff; font-size: .85rem; line-height: 1.5;
}
.kartu-lapis span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kartu-teks { display: flex; flex-direction: column; gap: 2px; padding: 20px 4px 0; }
.kartu-nama { font-family: var(--huruf-judul); font-size: 1.35rem; line-height: 1.25; color: #fff8ec; }
.kartu-aksi { color: var(--emas-muda); font-weight: 700; font-size: .95rem; text-decoration: underline; text-underline-offset: 4px; }
.kartu:hover .kartu-foto, .kartu:focus-visible .kartu-foto {
  box-shadow: 0 0 0 2px var(--emas-muda), 0 0 0 6px rgba(20, 8, 10, .6), 0 0 0 7px var(--emas), 0 22px 48px rgba(0, 0, 0, .55);
}

/* ---------- Carousel produk ---------- */
.carousel { position: relative; width: min(1320px, 100%); margin-inline: auto; padding: 0 76px; }
.carousel-jendela { overflow: hidden; padding: 12px 10px 18px; touch-action: pan-y; cursor: grab; }
.carousel-jendela.sedang-geser { cursor: grabbing; }
/* Jumlah kartu yang tampil sekaligus: --jumlah-tampil (laptop 3, tablet 2, HP 1).
   Jarak antar kartu: --jarak. */
.carousel-rel { --jarak: 34px; --jumlah-tampil: 3; display: flex; gap: var(--jarak); will-change: transform; }
.carousel-rel .kartu { flex: 0 0 calc((100% - (var(--jumlah-tampil) - 1) * var(--jarak)) / var(--jumlah-tampil)); min-width: 0; }
@media (max-width: 900px) { .carousel-rel { --jumlah-tampil: 2; --jarak: 26px; } }
.carousel-rel.animasi { transition: transform .55s cubic-bezier(.25, .7, .25, 1); }
.carousel-jendela.sedang-geser .kartu { pointer-events: none; }
.carousel-panah {
  position: absolute; top: calc(50% - 40px); transform: translateY(-50%); z-index: 2;
  width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid var(--emas); background: rgba(20, 8, 10, .6); color: var(--emas-muda);
  font-size: 2.1rem; line-height: 1; cursor: pointer;
}
.carousel-panah:hover { background: var(--emas); color: var(--anggur-tua); }
.carousel-panah.kiri { left: 10px; }
.carousel-panah.kanan { right: 10px; }
.carousel.statis .carousel-panah { display: none; }
.carousel.statis .carousel-jendela { cursor: default; }
.carousel.statis .carousel-rel { justify-content: center; }
@media (max-width: 640px) {
  .carousel { padding: 0; }
  .carousel-jendela { padding-inline: 16px; }
  .carousel-rel { --jarak: 40px; --jumlah-tampil: 1; }
  .carousel-panah { top: auto; bottom: -86px; transform: none; width: 52px; height: 52px; }
  .carousel-panah.kiri { left: calc(50% - 64px); }
  .carousel-panah.kanan { right: calc(50% - 64px); }
  #produk .petunjuk { margin-top: 90px; }
}

.kisi-produk { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 48px 36px; }

/* ---------- Tentang ---------- */
.tentang-ringkas, .tentang-penuh { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; align-items: stretch; }
.tentang-foto { margin: 0; position: relative; z-index: 1; }
.tentang-foto img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(234, 211, 160, .75), 0 0 0 8px rgba(20, 8, 10, .55), 0 0 0 9px rgba(207, 162, 78, .45), 0 24px 60px rgba(0, 0, 0, .5);
}
.tentang-penuh .tentang-foto img { height: auto; }
.tentang-foto figcaption { margin-top: 14px; font-size: .9rem; color: var(--teks-redup); }
/* Panel kertas krem (dari foto IMG_8158) */
.tentang-kertas {
  color: var(--tinta);
  background: linear-gradient(rgba(251, 247, 239, .9), rgba(251, 247, 239, .9)), url("../img/latar-krem.jpg") center / cover;
  padding: clamp(32px, 5vw, 64px); margin: 40px 0 40px -8px;
  border-radius: 0 var(--sudut) var(--sudut) 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  border: 1px solid rgba(207, 162, 78, .6);
}
.tentang-kertas h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); color: var(--anggur); }
.tentang-kertas h2::after { content: ""; display: block; width: 56px; height: 2px; background: var(--bara); margin-top: .45em; }
.tentang-kertas p { font-size: 1.05rem; line-height: 1.8; max-width: 62ch; }
.tentang-kertas .tombol-garis { color: var(--anggur); border-color: var(--anggur); background: transparent; }
.tentang-kertas .tombol-garis:hover { background: var(--anggur); color: #fff; }
@media (max-width: 860px) {
  .tentang-ringkas, .tentang-penuh { grid-template-columns: 1fr; }
  .tentang-foto img { height: auto; }
  .tentang-kertas { margin: -12px 10px 0; border-radius: 0 0 var(--sudut) var(--sudut); }
}

/* ---------- Kotak mitra (Beranda dan halaman Tentang Kami) ----------
   Panel krem tetap setinggi foto profil seperti semula. Kalau ada kotak mitra,
   judul, teks, dan tombol dibuat lebih kecil supaya semuanya muat. */
.ada-mitra .tentang-kertas { padding: clamp(24px, 2.6vw, 36px) clamp(26px, 3.2vw, 44px); }
.ada-mitra .tentang-kertas h2 { font-size: clamp(1.45rem, 2vw, 1.8rem); margin-bottom: .35em; }
.ada-mitra .tentang-kertas h2::after { margin-top: .35em; }
.ada-mitra .tentang-kertas p { font-size: .9rem; line-height: 1.6; margin-bottom: .5em; }
.ada-mitra .tentang-kertas .deret-tombol { margin-top: .7em; }
.ada-mitra .tentang-kertas .tombol { min-height: 42px; padding: .5em 1.1em; font-size: .88rem; }
/* Kedua kotak sama besar. Ubah --tinggi-mitra untuk mengatur tinggi kotak. */
.mitra-kisi { --tinggi-mitra: 72px; display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
.mitra-item h3 { font-family: var(--huruf-isi); font-weight: 700; font-size: .88rem; color: var(--anggur); margin: 0 0 6px; }
/* Gambar tampil utuh di tengah kotak, tidak pernah terpotong */
.mitra-kotak { height: var(--tinggi-mitra); display: grid; place-items: center; padding: 6px; border: 1px solid rgba(207, 162, 78, .55); border-radius: var(--sudut); background: #fff; box-shadow: 0 6px 18px rgba(60, 30, 20, .08); overflow: hidden; }
.mitra-kotak img { max-width: 100%; max-height: calc(var(--tinggi-mitra) - 12px); width: auto; height: auto; object-fit: contain; }
@media (max-width: 1100px) and (min-width: 861px) {
  .mitra-kisi { --tinggi-mitra: 56px; gap: 10px; margin-top: 12px; }
  .ada-mitra .tentang-kertas p { font-size: .86rem; line-height: 1.5; }
  .ada-mitra .tentang-kertas h2 { font-size: 1.35rem; }
}
@media (max-width: 860px) {
  .mitra-kisi { --tinggi-mitra: 90px; }
}

/* ---------- Galeri berjalan ----------
   Gerakan pita diatur oleh JavaScript (assets/js/main.js, GALERI_KECEPATAN),
   bukan animasi CSS, karena animasi CSS berkedip di Safari iPhone. */
.pita-galeri { overflow: hidden; padding: 10px 0; position: relative; }
.pita-rel { display: flex; gap: 22px; width: max-content; will-change: transform; transform: translate3d(0, 0, 0); }
.pita-item { flex: 0 0 auto; padding: 0; border: 0; background: none; cursor: zoom-in; }
/* Ukuran kotak foto tetap (4:3), supaya lebar pita tidak berubah-ubah saat foto sedang dimuat */
.pita-item img { height: clamp(180px, 24vw, 290px); width: calc(clamp(180px, 24vw, 290px) * 4 / 3); max-width: none; object-fit: cover; background: #241315; border-radius: 3px; box-shadow: 0 0 0 1px rgba(234, 211, 160, .6), 0 12px 30px rgba(0,0,0,.4); }

.kisi-galeri { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.galeri-item { padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.galeri-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(234, 211, 160, .6), 0 12px 30px rgba(0,0,0,.4); }
.galeri-item span { display: block; margin-top: 10px; color: var(--teks-redup); font-size: .95rem; }

/* ---------- Kontak ---------- */
.kontak-kisi { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: stretch; }
.kontak-kartu { background: var(--gading); color: var(--tinta); padding: clamp(28px, 4vw, 48px); border-radius: var(--sudut); border: 1px solid rgba(207, 162, 78, .6); }
.kontak-baris { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #eadfca; }
.kontak-baris:last-of-type { border-bottom: 0; }
.kontak-baris h2 { font-family: var(--huruf-isi); font-weight: 700; font-size: .95rem; color: var(--anggur); margin-bottom: .3em; }
.kontak-baris p { margin-bottom: .4em; font-size: 1.1rem; }
.kontak-kartu .tautan { color: var(--anggur); }
.kontak-peta { min-height: 460px; border-radius: var(--sudut); overflow: hidden; border: 1px solid rgba(207, 162, 78, .6); background: #241315; }
.kontak-peta iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }
@media (max-width: 860px) { .kontak-kisi { grid-template-columns: 1fr; } .kontak-peta, .kontak-peta iframe { min-height: 360px; } }

/* ---------- Ajakan ---------- */
.ajakan { padding: clamp(80px, 8vw, 110px) 0 clamp(64px, 9vw, 110px); }
.ajakan-dalam {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  min-height: 280px;
  /* ruang kanan dipakai foto petugas */
  padding: clamp(32px, 4vw, 52px) clamp(300px, 36%, 460px) clamp(32px, 4vw, 52px) clamp(28px, 4vw, 52px);
  border: 1px solid rgba(207, 162, 78, .55); border-radius: var(--sudut);
  background: linear-gradient(120deg, rgba(91, 26, 36, .75), rgba(31, 38, 40, .75));
}
.ajakan h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: #fff8ec; margin-bottom: .3em; }
.ajakan p { margin: 0; color: var(--teks-redup); max-width: 52ch; }
.ajakan .deret-tombol { margin-top: 1.4em; }
/* Foto petugas: tinggi = tinggi kotak + 64px, jadi kepala selalu keluar di atas kotak
   dan dasar foto menempel di garis bawah kotak */
.ajakan-foto {
  position: absolute; right: clamp(12px, 3vw, 48px); top: -64px; bottom: 0;
  height: calc(100% + 64px); width: auto; max-width: none;
  object-fit: contain; object-position: bottom right;
  pointer-events: none;
}
@media (max-width: 1024px) {
  .ajakan { padding-top: 24px; }
  .ajakan-dalam { padding: 0 22px 28px; min-height: 0; }
  /* Di HP: foto kecil di atas kotak, dasarnya menempel ke garis atas kotak */
  .ajakan-foto {
    position: static; order: -1; align-self: center;
    height: 170px; max-width: none; margin: -150px 0 18px;
    top: auto; bottom: auto;
  }
  .ajakan-dalam { margin-top: 150px; }
  .ajakan .deret-tombol { width: 100%; }
  .ajakan .deret-tombol .tombol { flex: 1 1 100%; }
}

/* ---------- Kaki (footer) ---------- */
.kaki { background: rgba(16, 9, 10, .92); border-top: 1px solid rgba(207, 162, 78, .45); padding: 64px 0 28px; }
.kaki-dalam { width: min(var(--lebar), 100% - 48px); margin-inline: auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 40px; }
.kaki-merek img { height: 58px; width: auto; margin-bottom: 18px; }
.kaki-merek p, .kaki-kolom p { color: var(--teks-redup); font-size: .95rem; }
.kaki-kolom h2 { font-family: var(--huruf-isi); font-weight: 700; font-size: 1rem; color: var(--emas-muda); margin-bottom: .8em; }
.kaki-kolom ul { list-style: none; margin: 0; padding: 0; }
.kaki-kolom li { margin-bottom: .55em; }
.kaki-kolom a { color: var(--teks-redup); text-decoration: none; font-size: .95rem; }
.kaki-kolom a:hover { color: #fff; text-decoration: underline; }
.kaki-hak { width: min(var(--lebar), 100% - 48px); margin: 44px auto 0; padding-top: 22px; border-top: 1px solid rgba(207, 162, 78, .25); color: #a99d8e; font-size: .85rem; }
@media (max-width: 900px) { .kaki-dalam { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .kaki-dalam { grid-template-columns: 1fr; width: calc(100% - 32px); } .kaki-hak { width: calc(100% - 32px); } }

.wa-melayang {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: #1faa53; color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
}
.wa-melayang:hover { background: #22c05e; }

/* ---------- Popup produk dan lightbox ---------- */
.popup { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.popup[hidden] { display: none; }
.popup-latar { position: absolute; inset: 0; background: rgba(14, 7, 8, .85); }
.popup-kotak {
  position: relative; width: min(1060px, 100%); max-height: calc(100vh - 40px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  background: var(--gading); color: var(--tinta); border-radius: var(--sudut);
  border: 1px solid var(--emas); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); overflow: hidden;
  animation: popup-masuk .25s ease;
}
@keyframes popup-masuk { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.popup-tutup {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 16px;
  border-radius: var(--sudut); border: 1px solid #cdb88d; background: #fff; color: var(--tinta);
  font-weight: 700; cursor: pointer;
}
.popup-tutup span { font-size: 1.6rem; line-height: 1; }
.popup-media { position: relative; background: #241315; height: min(80vh, 680px); }
.popup-slide { position: absolute; inset: 0; display: grid; place-items: center; }
.popup-slide img { width: 100%; height: 100%; object-fit: contain; }
.popup-teks-slide {
  width: 100%; height: 100%; overflow-y: auto; padding: 48px 78px;
  background: linear-gradient(160deg, var(--anggur) 0%, var(--arang) 100%); color: var(--teks-terang);
  font-size: 1.1rem; line-height: 1.8; display: flex; flex-direction: column; justify-content: center;
}
.popup-teks-slide p:first-child { font-family: var(--huruf-judul); font-size: 1.7rem; line-height: 1.3; color: var(--emas-muda); }
.popup-panah {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(234, 211, 160, .8);
  background: rgba(20, 8, 10, .7); color: var(--emas-muda); font-size: 2rem; line-height: 1; cursor: pointer;
}
.popup-panah.kiri { left: 12px; } .popup-panah.kanan { right: 12px; }
.popup-panah[hidden] { display: none; }
.popup-titik { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.popup-titik button { width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 2px solid var(--emas-muda); background: rgba(20,8,10,.5); cursor: pointer; }
.popup-titik button[aria-current="true"] { background: var(--emas-muda); }
.popup-info { padding: 76px clamp(24px, 3.4vw, 44px) 36px; overflow-y: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.popup-info h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); color: var(--anggur); margin-bottom: 0; }
.popup-info p { font-size: 1.1rem; line-height: 1.8; white-space: pre-line; }
.popup-info .tombol { width: 100%; }
.popup-info .tombol-garis { color: var(--anggur); border-color: var(--anggur); background: transparent; }
.popup-info .tombol-garis:hover { background: var(--anggur); color: #fff; }
@media (max-width: 800px) {
  .popup { padding: 0; place-items: stretch; }
  .popup-kotak { display: block; max-height: none; height: 100%; border-radius: 0; overflow-y: auto; border: 0; }
  .popup-media { height: min(133vw, 68vh); }
  .popup-info { padding: 24px 20px 36px; overflow: visible; }
  .popup-teks-slide { padding: 70px 64px 40px; justify-content: flex-start; }
}
body.popup-buka { overflow: hidden; }

.lightbox-isi { position: relative; width: min(1200px, 100%); height: calc(100vh - 40px); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox-isi img { max-width: 100%; max-height: calc(100% - 110px); object-fit: contain; border-radius: 3px; box-shadow: 0 0 0 1px rgba(234, 211, 160, .6); }
.lightbox-isi p { margin: 16px 0 0; color: var(--teks-terang); text-align: center; min-height: 1.7em; }
.lightbox-isi .popup-tutup { top: 0; right: 0; }

/* ---------- Halaman Karir ---------- */
.karir-kartu { max-width: 760px; background: var(--gading); color: var(--tinta); padding: clamp(28px, 4vw, 48px); border-radius: var(--sudut); border: 1px solid rgba(207, 162, 78, .6); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.karir-kartu h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); color: var(--anggur); margin-bottom: .8em; }
.formulir label { display: block; font-weight: 700; margin-bottom: 20px; color: var(--tinta); }
.formulir input[type=text], .formulir input[type=tel], .formulir select {
  display: block; width: 100%; margin-top: 8px; min-height: 54px; padding: 12px 14px;
  font: inherit; font-weight: 400; color: var(--tinta); background: #fff;
  border: 1px solid #cbbda5; border-radius: var(--sudut);
}
.formulir input:focus, .formulir select:focus { border-color: var(--anggur); outline: 3px solid rgba(91, 26, 36, .15); }
.formulir-dua { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.unggah-cv { padding: 16px; border: 1px dashed #bfa77a; border-radius: var(--sudut); background: #fffdf8; }
.unggah-cv input[type=file] { display: block; margin-top: 10px; font: inherit; font-weight: 400; max-width: 100%; }
.bantuan-formulir { display: block; margin-top: 6px; font-weight: 400; font-size: .9rem; color: var(--tinta-lembut); }
.formulir .setuju { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; line-height: 1.6; }
.formulir .setuju input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--anggur); }
.formulir .tombol { width: 100%; }
.jebakan { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.karir-error { background: #fbeceb; border-left: 5px solid #b3261e; color: #7d1a14; padding: 14px 18px; border-radius: var(--sudut); margin-bottom: 22px; }
.karir-error p { margin: 0 0 .4em; font-weight: 700; }
.karir-error ul { margin: 0; padding-left: 1.2em; }
.karir-berhasil h2 { margin-bottom: .4em; }
.karir-berhasil p { font-size: 1.05rem; }
.tombol-garis-gelap { border-color: var(--anggur); color: var(--anggur); background: transparent; }
.tombol-garis-gelap:hover { background: var(--anggur); color: #fff; }
.karir-kosong { margin: 0; font-size: 1.1rem; }
@media (max-width: 640px) { .formulir-dua { grid-template-columns: 1fr; } }
