/* =========================================
   K3 Modern Theme (White + Yellow)
   Premium + Video Background + Loader
   + ZOOM EFFECT (PC hover + Mobile tap)
   ========================================= */

:root{
  --bg:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;

  --yellow:#FFC400;     /* K3 Yellow */
  --yellow2:#FFB000;
  --yellowSoft:#FFF4CC;

  --dark:#111827;
  --card:#ffffff;
  --shadow: 0 18px 50px rgba(17,24,39,.10);
  --shadow2: 0 10px 25px rgba(17,24,39,.08);

  --r12:12px;
  --r16:16px;
  --r20:20px;
  --r28:28px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  overflow-x:hidden;
}

/* ===== Background Video (SEMUA halaman) ===== */
.bg-video{
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #000;
}
.bg-video video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}
.bg-video__overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.92)),
    radial-gradient(900px 520px at 10% -10%, rgba(255,196,0,.22), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(255,176,0,.18), transparent 60%);
}

/* ===== Base Layout ===== */
a{ color:inherit; text-decoration:none; }
.container{ width:100%; max-width:1140px; margin:0 auto; padding:0 18px; }
.content{ padding: 22px 18px 64px; }

/* ===== Topbar ===== */
.topbar{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  display:flex;
  align-items:center;
  gap:14px;
  padding: 14px 0;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand__logo{
  width:46px; height:46px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  font-weight: 900;
  letter-spacing:.3px;
  background: linear-gradient(135deg, var(--yellow), var(--yellow2));
  color:#1f2937;
  box-shadow: 0 12px 30px rgba(255,196,0,.35);
}
.brand__title{ font-weight: 900; font-size: 14px; }
.brand__subtitle{ font-size: 12px; color: var(--muted); margin-top: 2px; }

.nav{ margin-left:auto; display:flex; align-items:center; gap:8px; }
.nav a{
  font-size: 13px;
  color: #111827;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all .18s ease;
}
.nav a:hover{
  background: rgba(255,196,0,.20);
  border-color: rgba(255,196,0,.30);
  transform: translateY(-1px);
}
.nav__cta{
  background: linear-gradient(135deg, var(--yellow), var(--yellow2));
  border-color: rgba(255,176,0,.55) !important;
  box-shadow: 0 10px 25px rgba(255,196,0,.30);
}
.nav__cta:hover{
  background: linear-gradient(135deg, var(--yellow2), var(--yellow));
}

.nav__toggle{
  display:none;
  margin-left:auto;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  cursor:pointer;
  box-shadow: var(--shadow2);
}

/* ===== Typography ===== */
.section-title{
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: .2px;
}
.subtle{ color: var(--muted); line-height: 1.75; }

/* ===== Cards / Grid ===== */
.grid{ display:grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.card{
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: var(--r20);
  padding: 16px;
  box-shadow: var(--shadow2);
}
.card h3{ margin:0 0 8px; font-size: 14px; }
.card p{ margin:0; color: var(--muted); line-height: 1.75; font-size: 13px; }

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--dark);
  transition: all .18s ease;
  box-shadow: var(--shadow2);
}
.btn:hover{ transform: translateY(-2px); }
.btn.primary{
  background: linear-gradient(135deg, var(--yellow), var(--yellow2));
  border-color: rgba(255,176,0,.55);
}
.btn.ghost{
  background: transparent;
  border-color: rgba(17,24,39,.12);
}

/* ===== Hero ===== */
.hero{
  border: 1px solid var(--line);
  border-radius: var(--r28);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  overflow:hidden;
  position: relative;
  padding: 22px;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: center;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,196,0,.35);
  background: rgba(255,196,0,.16);
  color: #1f2937;
  font-size: 12px;
  width: fit-content;
}
.badge .dot{
  width: 10px; height: 10px; border-radius: 99px;
  background: var(--yellow2);
  box-shadow: 0 0 0 6px rgba(255,196,0,.22);
}
.hero h1{
  margin: 12px 0 10px;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: .2px;
}
.hero h1 span{
  background: linear-gradient(135deg, #111827, #111827, var(--yellow2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p{
  margin:0;
  color: #4b5563;
  line-height: 1.75;
  font-size: 14px;
  max-width: 62ch;
}
.hero__cta{ margin-top: 14px; display:flex; gap:10px; flex-wrap:wrap; }

/* ===== Media Cards (gambar + teks rapi) ===== */
.media-grid{ display:grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.media-card{
  grid-column: span 4;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: var(--r20);
  overflow:hidden;
  box-shadow: var(--shadow2);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* DESKTOP DEFAULT: tetap premium (cover = boleh crop) */
.media-img{
  width:100%;
  height: 170px;
  object-fit: cover;
  display:block;
  background:#ffffff;
}
.media-body{ padding: 14px 14px 16px; }
.media-title{ margin:0 0 6px; font-size: 14px; font-weight: 900; }
.media-text{ margin:0; font-size: 13px; color: var(--muted); line-height: 1.75; }
.media-tag{
  display:inline-flex;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,196,0,.35);
  background: rgba(255,196,0,.16);
  font-size: 12px;
}

/* =========================================
   ZOOM EFFECT (PC hover + Mobile tap)
   ========================================= */

/* card siap animasi */
.media-card{
  position: relative;
  transform: translateZ(0);
  will-change: transform;
}

/* gambar & body ikut transform */
.media-card .media-img,
.media-card .media-body{
  transition: transform .28s ease, filter .28s ease;
  will-change: transform;
}

/* PC/Laptop: hover zoom */
.media-card:hover,
.media-card:focus-within{
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 55px rgba(17,24,39,.14);
  border-color: rgba(255,176,0,.55);
}
.media-card:hover .media-img,
.media-card:focus-within .media-img{
  transform: scale(1.12);
  filter: saturate(1.08) contrast(1.05);
}
.media-card:hover .media-body,
.media-card:focus-within .media-body{
  transform: scale(1.03);
}

/* Mobile/Touch: class is-zoom dari JS */
.media-card.is-zoom{
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 55px rgba(17,24,39,.14);
  border-color: rgba(255,176,0,.55);
  z-index: 5;
}
.media-card.is-zoom .media-img{
  transform: scale(1.12);
  filter: saturate(1.08) contrast(1.05);
}
.media-card.is-zoom .media-body{
  transform: scale(1.03);
}

/* Device touch: matikan hover “palsu” */
@media (hover: none){
  .media-card:hover{
    transform: none;
    box-shadow: var(--shadow2);
    border-color: var(--line);
  }
  .media-card:hover .media-img,
  .media-card:hover .media-body{
    transform: none;
    filter: none;
  }
}

/* ===== Table ===== */
.table{ width:100%; border-collapse: collapse; margin-top: 10px; overflow:hidden; border-radius: 16px; }
.table th, .table td{
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align:left;
  font-size: 13px;
}
.table th{
  background: rgba(255,196,0,.18);
  border-bottom-color: rgba(255,196,0,.25);
}

/* ===== Contact icons ===== */
.icon-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 10px; }
.icon-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow2);
  transition: transform .18s ease;
}
.icon-btn:hover{ transform: translateY(-2px); }
.icon{ width: 22px; height: 22px; display:inline-block; }

/* ===== Map ===== */
.map-wrap{
  border-radius: var(--r20);
  overflow:hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  background: rgba(255,255,255,.94);
}
.map-wrap iframe{ width:100%; height: 380px; border:0; display:block; }

/* ===== Page loader overlay ===== */
.page-loader{
  position: fixed;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events:none;
  transition: opacity .22s ease;
  z-index: 9999;
}
.page-loader.show{ opacity:1; pointer-events: all; }
.loader-card{
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.loader-ring{
  width: 42px;
  height: 42px;
  border-radius: 99px;
  border: 4px solid rgba(255,196,0,.25);
  border-top-color: rgba(255,176,0,.95);
  animation: spin 0.9s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }
.loader-title{ font-weight: 900; font-size: 14px; }
.loader-sub{ color: var(--muted); font-size: 12px; margin-top: 2px; }

body.preload #page{ opacity: 0; transform: translateY(6px); }
#page{
  transition: opacity .25s ease, transform .25s ease;
  opacity: 1;
  transform: translateY(0);
}

/* ===== Footer ===== */
.footer{
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  padding: 18px 0;
}
.footer__inner{ display:flex; align-items:center; justify-content:space-between; gap: 12px; }
.footer__brand{ font-weight: 900; }
.footer__muted{ color: var(--muted); font-size: 12px; }
.footer__right small{ color: var(--muted); }

/* ===== Responsive ===== */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .hero h1{ font-size: 30px; }
  .media-card{ grid-column: span 6; }
}
@media (max-width: 860px){
  .nav{ display:none; width:100%; flex-direction:column; padding: 10px 0; }
  .nav.show{ display:flex; }
  .nav__toggle{ display:inline-flex; }
  .topbar__inner{ flex-wrap:wrap; }
  .media-card{ grid-column: span 12; }
}

/* NOTE:
   Tidak ada pengaturan khusus mobile untuk object-fit contain,
   karena permintaan terakhir kamu: gambar boleh crop (cover),
   namun saat hover/tap card akan auto zoom. */
