/* =========================================================
   CetakCepat Digital — Design System (Premium, Mobile First)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy: #1A365D;
  --navy-dark: #10233D;
  --orange: #F5822A;
  --orange-dark: #DA6D18;
  --whatsapp: #25D366;
  --bg: #F4F6F8;
  --card: #FFFFFF;
  --text: #333333;
  --text-muted: #6B7280;
  --border: #E5E9EF;
  --success: #2F855A;
  --error: #C53030;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(16, 35, 61, .08);
  --shadow-soft: 0 4px 14px rgba(16, 35, 61, .06);
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 .5em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}
.brand .dot { color: var(--orange); }
.nav-links {
  display: none;
  gap: 22px;
  align-items: center;
  font-weight: 500;
  font-size: .95rem;
}
.nav-links a:hover { color: var(--orange); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hamburger {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  width: 22px; height: 2px; background: var(--navy); border-radius: 2px;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 18px 18px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 48px;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(245,130,42,.28); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--navy); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1EBE59; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; min-height: 38px; font-size: .85rem; }
.btn-danger { background: var(--error); color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section-tight { padding: 28px 0; }
.section-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}
.section-title p { color: var(--text-muted); font-size: 1rem; margin-top: 8px; }
.eyebrow {
  display: inline-block;
  background: rgba(245,130,42,.12);
  color: var(--orange-dark);
  font-weight: 600;
  font-size: .78rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: .03em;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #223F68 100%);
  color: #fff;
  padding: 56px 0 64px;
  border-radius: 0 0 32px 32px;
}
.hero .eyebrow { background: rgba(255,255,255,.12); color: #FFD9B3; }
.hero h1 { color: #fff; font-size: 2rem; }
.hero p.lead { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-stats { display: flex; gap: 24px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: 'Poppins'; font-size: 1.3rem; }
.hero-stats div span { font-size: .82rem; color: rgba(255,255,255,.7); }

@media (min-width: 860px) {
  .hero h1 { font-size: 2.7rem; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  padding: 22px;
}
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: box-shadow .2s ease, transform .2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card .thumb {
  height: 160px;
  background: linear-gradient(135deg, #EAF0F8, #F7F1E8);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-family: 'Poppins'; font-weight: 700; font-size: 1rem;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-card .price-from { color: var(--orange-dark); font-weight: 700; font-family: 'Poppins'; }
.product-card .meta { font-size: .82rem; color: var(--text-muted); }

.benefit-card { text-align: center; padding: 26px 20px; }
.benefit-card .icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: rgba(26,54,93,.08); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 1.4rem;
}

.testi-card p { color: var(--text-muted); font-style: italic; }
.testi-card .who { margin-top: 12px; font-weight: 600; color: var(--navy); font-style: normal; font-size: .9rem; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  color: var(--navy);
  margin-bottom: 6px;
}
input[type=text], input[type=tel], input[type=email], input[type=password],
input[type=number], select, textarea, input[type=file] {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(245,130,42,.12);
}
.hint { font-size: .78rem; color: var(--text-muted); margin-top: 5px; }
.file-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 26px 16px;
  text-align: center;
  cursor: pointer;
  background: #FAFBFC;
}
.file-drop.has-file { border-color: var(--success); background: rgba(47,133,90,.06); }

/* ---------- Alerts / Flash ---------- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success { background: rgba(47,133,90,.1); color: var(--success); border: 1px solid rgba(47,133,90,.25); }
.alert-error { background: rgba(197,48,48,.08); color: var(--error); border: 1px solid rgba(197,48,48,.25); }
.alert-info { background: rgba(26,54,93,.06); color: var(--navy); border: 1px solid rgba(26,54,93,.15); }

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 2.4rem; margin-bottom: 12px; }

/* ---------- Badges / Status ---------- */
.badge {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
}

/* ---------- Progress Tracker ---------- */
.tracker { display: flex; justify-content: space-between; margin: 26px 0; position: relative; }
.tracker::before {
  content: ''; position: absolute; top: 15px; left: 5%; right: 5%; height: 3px; background: var(--border); z-index: 0;
}
.tracker-step { position: relative; z-index: 1; text-align: center; flex: 1; }
.tracker-step .dot {
  width: 32px; height: 32px; border-radius: 50%; background: var(--border);
  color: #fff; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px; font-weight: 700; font-size: .85rem;
}
.tracker-step.done .dot { background: var(--success); }
.tracker-step.active .dot { background: var(--orange); }
.tracker-step span.label { font-size: .74rem; color: var(--text-muted); display: block; }
.tracker-step.done span.label, .tracker-step.active span.label { color: var(--navy); font-weight: 600; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 640px; }
th, td { padding: 12px 16px; text-align: left; font-size: .88rem; border-bottom: 1px solid var(--border); }
th { background: #FAFBFC; color: var(--navy); font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.75); padding: 36px 0 90px; margin-top: 40px; }
.site-footer .brand { color: #fff; }
.site-footer a:hover { color: var(--orange); }
.footer-cols { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-cols { grid-template-columns: 2fr 1fr 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 18px; font-size: .8rem; }

/* ---------- Sticky mobile WA bar ---------- */
.wa-float {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 200;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(37,211,102,.4);
  font-size: 1.5rem;
}

/* ---------- Utility ---------- */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.w-100 { width: 100%; }
.small { font-size: .82rem; }
.bold { font-weight: 700; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }

/* ---------- Auth pages ---------- */
.auth-wrap {
  max-width: 440px;
  margin: 40px auto;
  padding: 0 18px;
}

/* ---------- Dashboard sidebar (admin) ---------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; background: var(--navy-dark); color: #fff; padding: 22px 16px;
  display: none; flex-shrink: 0;
}
.admin-sidebar a {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px;
  color: rgba(255,255,255,.75); font-size: .9rem; font-weight: 500; margin-bottom: 4px;
}
.admin-sidebar a.active, .admin-sidebar a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-main { flex: 1; min-width: 0; }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.admin-content { padding: 20px 18px 90px; max-width: 1200px; }
.admin-mobile-nav {
  display: flex; overflow-x: auto; gap: 8px; padding: 10px 14px; background: var(--navy-dark);
}
.admin-mobile-nav a {
  color: rgba(255,255,255,.8); font-size: .8rem; white-space: nowrap; padding: 8px 12px;
  border-radius: 999px; background: rgba(255,255,255,.08);
}
.admin-mobile-nav a.active { background: var(--orange); color: #fff; }

@media (min-width: 960px) {
  .admin-sidebar { display: block; }
  .admin-mobile-nav { display: none; }
}

.stat-card { padding: 20px; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--border); }
.stat-card strong { display: block; font-family: 'Poppins'; font-size: 1.6rem; color: var(--navy); }
.stat-card span { font-size: .82rem; color: var(--text-muted); }
