/* ============================================================
   Kementerian Transmigrasi RI — style.css
   Color system: navy #1B3560 | gold #C49A28 | light #F5F7FA
   | green accent #2E7D4F | white #FFFFFF | text #1A1A2E
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;900&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1B3560;
  --navy-deep: #0F2240;
  --gold:   #C49A28;
  --gold-light: #E2B84A;
  --green:  #2E7D4F;
  --green-light: #3A9960;
  --light:  #F5F7FA;
  --white:  #FFFFFF;
  --text:   #1A1A2E;
  --muted:  #5C6A82;
  --border: #D6DDE8;
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body: 'Source Sans 3', Arial, sans-serif;
  --max-w: 1200px;
  --radius: 4px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  color: var(--navy-deep);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin-bottom: 1.1rem; max-width: 72ch; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--muted);
  font-weight: 300;
}

/* ---- Gold Divider ---- */
.section-eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.gold-bar {
  width: 48px; height: 3px;
  background: var(--gold);
  margin: 12px 0 28px;
}
.gold-bar.centered { margin-left: auto; margin-right: auto; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--navy-deep);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}

.topbar {
  background: var(--navy);
  font-size: 0.78rem;
  color: rgba(255,255,255,.65);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
}
.topbar a { color: rgba(255,255,255,.65); }
.topbar a:hover { color: var(--gold-light); }
.topbar-right { display: flex; gap: 20px; }

.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.navbar-brand {
  display: flex; align-items: center; gap: 14px;
}
.navbar-brand img { width: 50px; height: 50px; object-fit: contain; }
.brand-text { color: var(--white); }
.brand-text strong {
  display: block; font-size: 1rem; font-weight: 700;
  font-family: var(--ff-display); letter-spacing: .02em;
}
.brand-text span { font-size: 0.7rem; color: rgba(255,255,255,.55); letter-spacing: .04em; }

.nav-menu {
  display: flex; list-style: none; gap: 4px; align-items: center;
}
.nav-menu a {
  display: block; color: rgba(255,255,255,.85);
  font-size: 0.88rem; font-weight: 500;
  padding: 8px 14px; border-radius: 2px;
  transition: color .2s, background .2s;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--white); background: rgba(255,255,255,.1);
}
.nav-menu .nav-cta a {
  background: var(--gold); color: var(--navy-deep);
  font-weight: 700; border-radius: 2px;
}
.nav-menu .nav-cta a:hover { background: var(--gold-light); color: var(--navy-deep); }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); min-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  border-top: 3px solid var(--gold);
  list-style: none; z-index: 100;
}
.dropdown-menu li a {
  color: var(--text); padding: 11px 18px;
  font-size: 0.86rem; border-bottom: 1px solid var(--border);
  display: block;
}
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover { color: var(--navy); background: var(--light); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { width: 24px; height: 2px; background: var(--white); display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #1B4A6B 100%);
  padding: 96px 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/peta-kawasan.png') center/cover no-repeat;
  opacity: 0.07;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; position: relative; z-index: 1;
}
.hero-tag {
  display: inline-block;
  background: rgba(196,154,40,.2); border: 1px solid var(--gold);
  color: var(--gold-light); font-size: 0.78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 2px; margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero .lead { color: rgba(255,255,255,.72); max-width: 55ch; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-body); font-weight: 600; font-size: 0.9rem;
  padding: 13px 28px; border-radius: 3px; cursor: pointer;
  transition: all .2s; border: 2px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy-deep); border-color: var(--gold-light); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-deep); }

.hero-visual { position: relative; }
.hero-img-wrap {
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
  border: 3px solid rgba(196,154,40,.35);
}
.hero-stat-row {
  display: flex; gap: 20px; margin-top: 20px;
}
.hero-stat {
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px; padding: 14px 20px; flex: 1;
}
.hero-stat strong { display: block; font-size: 1.8rem; font-weight: 700; color: var(--gold-light); font-family: var(--ff-display); }
.hero-stat span { font-size: 0.78rem; color: rgba(255,255,255,.65); }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--gold);
  padding: 20px 0;
}
.stats-strip-inner {
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px;
}
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 2rem; font-weight: 900; font-family: var(--ff-display); color: var(--navy-deep); }
.stat-item span { font-size: 0.8rem; color: var(--navy); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* ============================================================
   SECTIONS GENERAL
   ============================================================ */
.section { padding: 80px 0; }
.section-light { background: var(--light); }
.section-navy { background: var(--navy-deep); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .lead { color: rgba(255,255,255,.7); }
.section-navy p { color: rgba(255,255,255,.82); max-width: 70ch; }
.section-green { background: var(--green); color: var(--white); }
.section-green h2, .section-green h3 { color: var(--white); }

.section-head { margin-bottom: 52px; }
.section-head.centered { text-align: center; }
.section-head.centered .gold-bar { margin-left: auto; margin-right: auto; }
.section-head.centered p { max-width: 62ch; margin-left: auto; margin-right: auto; }

/* ============================================================
   PROGRAM CARDS
   ============================================================ */
.program-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 28px;
}
.program-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  padding: 32px 28px;
  transition: box-shadow .25s, border-top-color .25s;
}
.program-card:hover {
  box-shadow: 0 12px 40px rgba(27,53,96,.12);
  border-top-color: var(--gold);
}
.program-card .icon {
  width: 52px; height: 52px; background: var(--light);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 1.5rem;
}
.program-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.program-card p { font-size: 0.92rem; color: var(--muted); margin-bottom: 16px; }
.program-card a { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.program-card a:hover { color: var(--gold); }

/* ============================================================
   NEWS GRID
   ============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.news-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--white);
  transition: box-shadow .25s, transform .25s;
}
.news-card:hover { box-shadow: 0 10px 36px rgba(0,0,0,.12); transform: translateY(-3px); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-card-body { padding: 22px 20px; }
.news-label {
  display: inline-block; background: var(--navy); color: var(--white);
  font-size: 0.7rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 2px;
  margin-bottom: 10px;
}
.news-label.green { background: var(--green); }
.news-label.gold  { background: var(--gold); color: var(--navy-deep); }
.news-card h3 { font-size: 1.05rem; margin-bottom: 8px; line-height: 1.4; }
.news-card p { font-size: 0.88rem; color: var(--muted); }
.news-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--muted);
}
.news-card-footer a { font-weight: 600; color: var(--navy); font-size: 0.82rem; }
.news-card-footer a:hover { color: var(--gold); }

/* ============================================================
   MAP SECTION
   ============================================================ */
.map-section { background: var(--navy-deep); padding: 72px 0; }
.map-section img { border-radius: 6px; width: 100%; box-shadow: 0 16px 48px rgba(0,0,0,.4); }
.map-caption {
  display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px;
  justify-content: center;
}
.map-caption-item {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  padding: 10px 18px; border-radius: 3px;
  color: var(--white); font-size: 0.85rem;
}
.dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: #4CAF50; }
.dot-orange { background: #FF7043; }
.dot-yellow { background: #FFD600; }

/* ============================================================
   LAYANAN GRID
   ============================================================ */
.layanan-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
}
.layanan-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 24px 18px; text-align: center;
  transition: box-shadow .2s, border-color .2s;
}
.layanan-card:hover { box-shadow: 0 8px 28px rgba(27,53,96,.1); border-color: var(--navy); }
.layanan-card img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 14px; }
.layanan-card h4 { font-size: 0.9rem; margin-bottom: 6px; }
.layanan-card p { font-size: 0.8rem; color: var(--muted); margin: 0; max-width: none; }

/* ============================================================
   PUBLICATIONS
   ============================================================ */
.pub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pub-card {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 24px; align-items: start;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; background: var(--white);
  transition: box-shadow .2s;
}
.pub-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.pub-card img { border-radius: 3px; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.pub-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.pub-card p { font-size: 0.88rem; color: var(--muted); }
.pub-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; }
.pub-meta span { margin-right: 12px; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--navy) 100%);
  padding: 72px 0; text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,.8); max-width: 56ch; margin: 0 auto 32px; }
.cta-banner .btn-primary { font-size: 1rem; padding: 15px 36px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-bar {
  background: var(--light); border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  list-style: none; font-size: 0.82rem; color: var(--muted);
}
.breadcrumb a { color: var(--navy); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li::after { content: '›'; margin-left: 8px; }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb li:last-child { color: var(--text); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 60px 0 52px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 400px; height: 400px;
  background: var(--gold); opacity: 0.04;
  border-radius: 50%;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.6rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.7); max-width: 60ch; margin: 0; }

/* ============================================================
   CONTENT LAYOUT (inner pages)
   ============================================================ */
.content-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start;
  padding: 60px 0;
}
.prose h2 { font-size: 1.7rem; margin: 2rem 0 0.75rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.prose h2:first-child { border-top: none; margin-top: 0; }
.prose h3 { font-size: 1.3rem; margin: 1.5rem 0 0.6rem; color: var(--navy); }
.prose p { color: #2C2C3E; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 1.1rem; }
.prose li { margin-bottom: 6px; }
.prose blockquote {
  border-left: 4px solid var(--gold);
  margin: 2rem 0; padding: 16px 24px;
  background: var(--light); font-style: italic;
  color: var(--muted); border-radius: 0 var(--radius) var(--radius) 0;
}
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.prose th { background: var(--navy); color: var(--white); padding: 10px 14px; text-align: left; font-size: 0.9rem; }
.prose td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.prose tr:nth-child(even) td { background: var(--light); }

/* Sidebar */
.sidebar-widget {
  background: var(--light); border: 1px solid var(--border);
  border-top: 4px solid var(--gold); padding: 24px; margin-bottom: 28px;
}
.sidebar-widget h4 { font-size: 1rem; margin-bottom: 14px; color: var(--navy-deep); }
.sidebar-list { list-style: none; }
.sidebar-list li { border-bottom: 1px solid var(--border); padding: 8px 0; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { font-size: 0.88rem; color: var(--navy); }
.sidebar-list a:hover { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); }
.footer-main {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding: 64px 0 40px;
}
.footer-brand img { width: 60px; margin-bottom: 16px; }
.footer-brand h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 8px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 { color: var(--gold-light); font-size: 0.9rem; margin-bottom: 18px; letter-spacing: .06em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: 0.88rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; font-size: 0.8rem; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .program-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .layanan-grid { grid-template-columns: repeat(2,1fr); }
  .content-layout { grid-template-columns: 1fr; }
  .content-layout .sidebar { order: -1; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .pub-grid { grid-template-columns: 1fr; }
  .pub-card { grid-template-columns: 120px 1fr; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-deep); padding: 16px; }
  .nav-menu.open { display: flex; }
  .hamburger { display: flex; }
  .navbar { position: relative; }
  .topbar .topbar-right { display: none; }
  .footer-main { grid-template-columns: 1fr; }
  .stats-strip-inner { gap: 24px; }
  .section { padding: 56px 0; }
  .has-dropdown .dropdown-menu { position: static; box-shadow: none; background: rgba(255,255,255,.05); }
  .has-dropdown .dropdown-menu a { color: rgba(255,255,255,.7); }
}

@media (max-width: 480px) {
  .pub-card { grid-template-columns: 1fr; }
  .hero-stat-row { display: none; }
  .layanan-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
