/* ==========================================================================
   SKG Company Profile — Design System
   Tokens disalin dari SKG-ERP (index.html :root) agar konsisten 1 keluarga visual
   ========================================================================== */

:root {
  /* Blue palette */
  --blue-1: #eef4ff;
  --blue-2: #d0e3ff;
  --blue-3: #93bbf5;
  --blue-4: #4c8ef0;
  --blue-5: #2563eb;
  --blue-6: #1a4ac0;
  --blue-7: #0f2d7a;

  /* Backgrounds */
  --bg: #f0f4ff;
  --bg2: #e8eeff;
  --bg3: #dce5fb;
  --surface: #ffffff;
  --card: #ffffff;
  --card2: #f7f9ff;

  /* Borders */
  --border: rgba(37, 99, 235, .08);
  --border2: rgba(37, 99, 235, .15);

  /* Text */
  --text: #0d1526;
  --text2: #3d4f72;
  --text3: #8fa3cc;
  --text-on-dark: #ffffff;
  --text-on-dark-2: #c3d2f5;

  /* Semantic */
  --amber: #c07f1a;
  --amber-lt: #fff3d6;
  --red: #c0392b;
  --red-lt: #fdecea;
  --teal: #0F6E56;
  --teal-lt: #d8f0ec;
  --green: #15803d;
  --green-lt: #dcfce7;

  /* Layout */
  --r: 12px;
  --r2: 16px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --max-width: 1160px;
  --hdr-h: 76px;

  /* Shadow */
  --shadow: 0 2px 8px rgba(37, 99, 235, .07), 0 0 0 1px rgba(37, 99, 235, .05);
  --shadow-md: 0 4px 16px rgba(37, 99, 235, .10);
  --shadow-lg: 0 12px 40px rgba(37, 99, 235, .14);

  --font: 'Plus Jakarta Sans', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; outline: none; background: none; }
ul { list-style: none; }

/* Fokus keyboard tetap terlihat (aksesibilitas) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue-5);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

/* ---- Typography helpers ---- */
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-5);
  margin-bottom: 12px;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; }
h3 { font-size: 19px; line-height: 1.35; }
p.lead { font-size: 17px; color: var(--text2); line-height: 1.65; }
.text-muted { color: var(--text2); }

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--hdr-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15.5px; color: var(--text); }
.brand img { height: 32px; width: auto; }
.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;
}

/* Logo di footer (background gelap) diberi chip putih supaya kontras tetap terjaga */
.site-footer .brand-logo-chip {
  background: #fff; border-radius: 10px; padding: 6px 10px;
  display: inline-flex; align-items: center;
}
.site-footer .brand-logo-chip img { height: 26px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  transition: background .15s, color .15s;
}
.nav-menu a:hover, .nav-menu a.active { background: var(--blue-1); color: var(--blue-6); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.btn-login-internal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  color: var(--text3);
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color .15s, color .15s;
}
.btn-login-internal:hover { border-color: var(--text3); color: var(--text2); }

.nav-toggle { display: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--blue-5); color: #fff; box-shadow: 0 6px 20px rgba(37,99,235,.28); }
.btn-primary:hover { background: var(--blue-6); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(37,99,235,.34); }

.btn-outline { background: #fff; color: var(--blue-6); border: 1.5px solid var(--blue-3); }
.btn-outline:hover { background: var(--blue-1); border-color: var(--blue-5); }

.btn-on-dark { background: #fff; color: var(--blue-6); }
.btn-on-dark:hover { background: var(--blue-1); }

.btn-lg { padding: 15px 28px; font-size: 15.5px; }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform .18s, box-shadow .18s;
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--blue-1);
  color: var(--blue-5);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  margin-bottom: 16px;
}

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: 88px 0; }
.section-bg-alt { background: var(--surface); }
.section-header { max-width: 620px; margin-bottom: 48px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--blue-7); color: var(--text-on-dark-2); padding: 64px 0 28px; }
.site-footer .brand { color: #fff; }
.site-footer a { color: var(--text-on-dark-2); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 13.5px; margin-bottom: 16px; letter-spacing: .03em; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  font-size: 13px;
  color: var(--text-on-dark-2);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-menu { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}

/* ==========================================================================
   Halaman Beranda — komponen khusus
   ========================================================================== */

/* Hero */
.hero {
  padding: 64px 0 90px;
  overflow: hidden;
  position: relative;
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero p.lead { margin-bottom: 32px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 0.92;
  background: linear-gradient(155deg, var(--blue-1) 0%, var(--bg2) 100%);
  border-radius: 28px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-visual .rack-illustration { width: 72%; }

/* rak renteng ilustrasi sederhana (SVG inline via CSS shapes) */
.rack {
  display: flex; flex-direction: column; gap: 14px; width: 100%;
}
.rack-row { display: flex; gap: 10px; justify-content: center; }
.rack-item {
  width: 34px; height: 78px;
  border-radius: 9px;
  box-shadow: var(--shadow-md);
}

.hero-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; color: var(--text);
}
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }

/* Stat bar */
.stat-bar { padding: 40px 0; }
.stat-card { text-align: center; padding: 26px 18px; }
.stat-num { font-size: 32px; font-weight: 800; color: var(--blue-5); letter-spacing: -0.02em; }
.stat-label { font-size: 13px; color: var(--text2); margin-top: 6px; }

/* Edukasi renteng */
.edu-block { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.edu-visual {
  background: var(--card2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow);
}
.flow-steps { display: flex; flex-direction: column; gap: 0; }
.flow-step { display: flex; gap: 14px; padding: 14px 0; position: relative; }
.flow-step:not(:last-child)::after {
  content: ''; position: absolute; left: 17px; top: 46px; bottom: -4px; width: 2px;
  background: var(--border2);
}
.flow-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-5); color: #fff; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.flow-text strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.flow-text span { font-size: 13px; color: var(--text2); }

/* Kategori produk preview */
.cat-card { padding: 0; overflow: hidden; }
.cat-card-visual {
  height: 150px;
  background: linear-gradient(135deg, var(--blue-1), var(--bg2));
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: var(--blue-4);
}
.cat-card-body { padding: 22px; }
.cat-card-body h3 { margin-bottom: 6px; }
.cat-card-body p { font-size: 13.5px; color: var(--text2); margin-bottom: 14px; }
.cat-card-body a { font-size: 13.5px; font-weight: 700; color: var(--blue-5); display: inline-flex; align-items: center; gap: 4px; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-5), var(--blue-7));
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: var(--text-on-dark-2); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .edu-block { grid-template-columns: 1fr; }
  .stat-bar .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Halaman dalam (Tentang Kami, Produk & Jasa, Kontak) — komponen khusus
   ========================================================================== */

/* Page hero kecil */
.page-hero { padding: 52px 0 44px; }
.breadcrumb { font-size: 13px; color: var(--text3); margin-bottom: 14px; }
.breadcrumb a { color: var(--blue-5); font-weight: 600; }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.page-hero p.lead { max-width: 560px; }

/* Legalitas badge */
.legal-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.legal-badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px; font-size: 13px;
}
.legal-badge i { color: var(--green); font-size: 18px; }
.legal-badge strong { display: block; font-size: 13px; }
.legal-badge span { color: var(--text3); font-size: 11.5px; }

/* Timeline perjalanan */
.timeline { display: flex; flex-direction: column; gap: 0; max-width: 640px; margin: 0 auto; }
.timeline-item { display: flex; gap: 20px; padding-bottom: 36px; position: relative; }
.timeline-item:not(:last-child)::after {
  content: ''; position: absolute; left: 21px; top: 48px; bottom: 0; width: 2px; background: var(--border2);
}
.timeline-dot {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-1); color: var(--blue-5); border: 2px solid var(--blue-3);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
  position: relative; z-index: 1;
}
.timeline-content strong { display: block; font-size: 15px; margin-bottom: 4px; }
.timeline-content p { font-size: 13.5px; color: var(--text2); }

/* Diagram alur renteng (produk-jasa) */
.flow-diagram { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 40px 0; }
.flow-node {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; text-align: center; box-shadow: var(--shadow); min-width: 130px;
}
.flow-node i { font-size: 24px; color: var(--blue-5); margin-bottom: 8px; display: block; }
.flow-node span { font-size: 12.5px; font-weight: 700; }
.flow-arrow { color: var(--blue-3); font-size: 20px; }

/* Kategori produk detail */
.product-detail-card { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0; overflow: hidden; padding: 0; align-items: stretch; }
.product-detail-card:nth-child(even) { direction: rtl; }
.product-detail-card:nth-child(even) > * { direction: ltr; }
.product-detail-visual {
  background: linear-gradient(135deg, var(--blue-1), var(--bg2));
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: var(--blue-4); min-height: 220px;
}
.product-detail-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.product-detail-body h3 { font-size: 21px; margin-bottom: 10px; }
.product-detail-body p { font-size: 14px; color: var(--text2); margin-bottom: 14px; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  background: var(--blue-1); color: var(--blue-6); font-size: 11.5px; font-weight: 700;
  padding: 5px 11px; border-radius: 100px;
}

/* Steps numbered (cara kerja kemitraan) */
.step-card { text-align: left; position: relative; padding-top: 40px; }
.step-badge {
  position: absolute; top: -16px; left: 24px;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--blue-5); color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(37,99,235,.3);
}

/* Kontak page */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; }
.contact-info-card i { font-size: 22px; color: var(--blue-5); margin-top: 2px; }
.contact-info-card strong { display: block; font-size: 14px; margin-bottom: 3px; }
.contact-info-card span, .contact-info-card a { font-size: 13.5px; color: var(--text2); }
.contact-info-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

/* Form */
.form-card { padding: 32px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--text2); margin-bottom: 7px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--border2); font-family: var(--font); font-size: 14px;
  background: var(--card2); color: var(--text); transition: border-color .15s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--blue-5); background: #fff; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 12px; color: var(--text3); margin-top: 10px; }

/* Kemitraan page */
.benefit-list { display: flex; flex-direction: column; gap: 16px; }
.benefit-item { display: flex; gap: 14px; align-items: flex-start; }
.benefit-item .card-icon { margin-bottom: 0; flex-shrink: 0; }
.benefit-item strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.benefit-item span { font-size: 13.5px; color: var(--text2); }

.requirement-box {
  background: var(--amber-lt); border: 1px solid rgba(192,127,26,.2);
  border-radius: var(--radius); padding: 22px 24px;
}
.requirement-box i { color: var(--amber); font-size: 20px; margin-bottom: 8px; display: block; }
.requirement-box p { font-size: 13.5px; color: var(--text2); line-height: 1.6; }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .product-detail-card, .product-detail-card:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
  .flow-diagram { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
}
