/* ============================================================
   IMI JATIM — Base (design system v2, port dari amanahofficial.com)
   File : public/assets/css/base.css
   Palet dari logo IMI Jatim: biru navy perisai + kuning.
   Mobile-first; breakpoint: 640px (tablet), 1024px (desktop).
   ============================================================ */

/* ── FONT: Outfit (variable, self-hosted, subset Latin) ── */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/outfit/outfit-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand — navy & kuning logo IMI Jatim */
  --brand: #2E2C8A;
  --brand-dark: #1D1B57;
  --brand-50: #EFEFFA;
  --brand-100: #DCDBF3;
  --brand-grad: linear-gradient(180deg, #2E2C8A 0%, #1D1B57 100%);
  --accent: #F2D900;
  --accent-ink: #161543;

  /* Netral */
  --ink: #161543;
  --ink-2: #4A4A68;
  --muted: #7C7C96;
  --line: #E6E6F0;
  --bg: #F4F5F9;
  --surface: #FFFFFF;

  /* Status */
  --price: #2E2C8A;
  --star: #FFB400;
  --success: #1F9E8A;
  --warning: #E69500;
  --danger: #D93A3A;

  /* Bentuk */
  --r-xs: 4px;
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 12px;
  --shadow-1: 0 1px 2px rgba(22, 21, 67, .06), 0 1px 1px rgba(22, 21, 67, .04);
  --shadow-2: 0 6px 18px rgba(22, 21, 67, .10);
  --shadow-3: 0 12px 32px rgba(22, 21, 67, .16);

  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;

  /* Tinggi elemen tetap (dipakai offset sticky & padding body) */
  --header-h: 64px;
  --bottom-nav-h: 58px;

  --container: 1200px;
}

/* ── RESET (amanah memakai reset dari amanah.css legacy; di sini ditulis ringkas) ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg, video { max-width: 100%; display: block; }
svg.ic { display: inline-block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
.container { width: 100%; margin: 0 auto; }

/* ── BASE ── */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Outfit di semua elemen teks (aturan font semua project). */
body, body *:not(code):not(pre):not(kbd) { font-family: var(--font) !important; }

h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.25; font-weight: 700; }

.container { max-width: var(--container); padding: 0 12px; }
@media (min-width: 640px)  { .container { padding: 0 16px; } }
@media (min-width: 1024px) { .container { padding: 0 24px; } }

/* ── IKON (sprite icons.svg) ── */
.ic {
  width: 20px; height: 20px;
  flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: middle;
}
.ic-xs { width: 12px; height: 12px; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 26px; height: 26px; }
.ic-fill { fill: currentColor; }

/* ── AVATAR ── */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-100); color: var(--brand-dark);
  font-weight: 700; overflow: hidden; flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 24px; height: 24px; font-size: 12px; }

/* ── TOMBOL ── */
.btn2 {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 18px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: 14px; font-weight: 600; line-height: 1;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
  text-decoration: none;
}
.btn2-primary { background: var(--brand); color: #fff; }
.btn2-primary:hover { background: var(--brand-dark); }
.btn2-outline { background: var(--brand-50); color: var(--brand); border-color: var(--brand); }
.btn2-outline:hover { background: var(--brand-100); }
.btn2-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn2-ghost:hover { border-color: var(--muted); }
.btn2-accent { background: var(--accent); color: var(--accent-ink); }
.btn2-accent:hover { filter: brightness(.95); }
.btn2-danger { background: var(--surface); color: var(--danger); border-color: var(--danger); }
.btn2-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn2-lg { min-height: 48px; padding: 0 24px; font-size: 15px; }
.btn2:disabled, .btn2[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn2-block { width: 100%; }

/* ── KARTU / SEKSI ── */
.card2 {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
}
.section2 { margin: 12px 0; }
.section2-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.section2-title {
  font-size: 16px; font-weight: 700; color: var(--brand);
  text-transform: uppercase; letter-spacing: .02em;
  display: flex; align-items: center; gap: 8px;
}
.section2-link { font-size: 14px; color: var(--brand); display: inline-flex; align-items: center; gap: 2px; }

/* ── UTIL ── */
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .hide-desktop { display: none !important; } }
