/* ============================================
   KlikKemas - Main Stylesheet
   Clean, modern, mobile-first
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --orange: #F97316;
  --orange-dark: #EA580C;
  --orange-light: #FFF7ED;
  --dark: #1A1A2E;
  --text: #374151;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --bg: #FFFFFF;
  --bg-soft: #F9FAFB;
  --green: #22C55E;
  --green-dark: #16A34A;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --transition: 0.2s ease;
}

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

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 700; color: var(--dark); }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); }
p { line-height: 1.7; }

/* ---- Layout ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { margin-bottom: 12px; }
.section-title p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: none; transition: all var(--transition); white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-block { width: 100%; }

/* ---- Navigation ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 1.9rem; color: var(--dark);
  text-decoration: none;
}
.nav-logo span { color: var(--orange); }
.nav-logo img {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-weight: 500; color: var(--text-muted); font-size: 0.9rem;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); background: var(--orange-light); }
.nav-wa {
  display: flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff;
  padding: 9px 16px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.85rem;
  transition: all var(--transition);
}
.nav-wa:hover { background: var(--green-dark); }
.nav-wa svg { width: 16px; height: 16px; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: all var(--transition); }
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 20px 16px; border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 11px 14px; border-radius: var(--radius-sm);
  font-weight: 500; color: var(--text); font-size: 0.95rem;
}
.mobile-menu a:hover { background: var(--bg-soft); color: var(--orange); }
.mobile-menu .btn-wa { justify-content: center; margin-top: 4px; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2d2d4e 60%, #1e3a5f 100%);
  color: #fff; padding: 80px 0 72px; overflow: hidden; position: relative;
}
.hero::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(249,115,22,0.2); color: var(--orange);
  border: 1px solid rgba(249,115,22,0.3);
  padding: 6px 14px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 600; margin-bottom: 20px;
}
.hero-title { font-size: clamp(1.9rem, 4vw, 2.9rem); color: #fff; margin-bottom: 16px; }
.hero-title em { font-style: normal; color: var(--orange); }
.hero-desc { color: rgba(255,255,255,0.75); font-size: 1rem; line-height: 1.75; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-coverage {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 0.85rem; color: rgba(255,255,255,0.85); margin-top: 20px;
  width: fit-content;
}
.hero-coverage svg { color: var(--orange); flex-shrink: 0; }
.hero-visual { display: flex; justify-content: center; }
.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 400px; }
.hero-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 20px 16px; text-align: center;
}
.hero-card:first-child { grid-column: 1 / -1; }
.hero-card-icon { font-size: 1.8rem; margin-bottom: 8px; }
.hero-card h4 { font-size: 0.9rem; color: #fff; font-weight: 600; }
.hero-card p { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ---- Advantages ---- */
.advantages { background: var(--bg-soft); }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.adv-card {
  background: #fff; padding: 28px 20px; border-radius: var(--radius);
  text-align: center; border: 1px solid var(--border);
  transition: all var(--transition); box-shadow: var(--shadow);
}
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.adv-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  background: var(--orange-light); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.adv-card h3 { font-size: 1rem; margin-bottom: 8px; }
.adv-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ---- Products ---- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.product-card-img {
  aspect-ratio: 4/3; background: var(--bg-soft);
  overflow: hidden; position: relative;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 0.75rem; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.product-card-body h3 { font-size: 1rem; margin-bottom: 8px; }
.product-card-body p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.product-card .btn { margin-top: auto; }

/* ---- Category Filter ---- */
.cat-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.cat-filter {
  padding: 8px 18px; border-radius: 100px;
  border: 1px solid var(--border); background: #fff;
  font-size: 0.88rem; font-weight: 500; cursor: pointer;
  transition: all var(--transition); color: var(--text-muted);
}
.cat-filter:hover, .cat-filter.active {
  background: var(--orange); color: #fff; border-color: var(--orange);
}

/* ---- Product Detail ---- */
.product-detail { padding: 48px 0; }
.product-detail-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-main-img {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 1;
  background: var(--bg-soft);
}
.product-main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 { margin-bottom: 16px; }
.product-desc { color: var(--text-muted); line-height: 1.8; margin-bottom: 28px; white-space: pre-line; }
.variant-group { margin-bottom: 20px; }
.variant-label { font-size: 0.85rem; font-weight: 600; color: var(--dark); margin-bottom: 10px; display: block; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-btn {
  padding: 7px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: #fff;
  font-size: 0.85rem; cursor: pointer; transition: all var(--transition);
  color: var(--text);
}
.variant-btn:hover, .variant-btn.selected {
  border-color: var(--orange); color: var(--orange); background: var(--orange-light);
}
.product-cta { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.product-cta .btn { font-size: 1rem; padding: 15px 24px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 32px;
}
.breadcrumb a { color: var(--orange); }
.breadcrumb span { color: var(--border); }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-content h2 { margin-bottom: 20px; }
.about-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; white-space: pre-line; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.about-stat {
  padding: 20px; background: var(--bg-soft);
  border-radius: var(--radius); border: 1px solid var(--border);
}
.about-stat strong { display: block; font-size: 1.6rem; color: var(--orange); margin-bottom: 4px; }
.about-stat span { font-size: 0.85rem; color: var(--text-muted); }
.about-img { border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.about-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); line-height: 1.8; margin-bottom: 28px; }
.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px; background: var(--bg-soft);
  border-radius: var(--radius); border: 1px solid var(--border);
}
.contact-item-icon {
  width: 40px; height: 40px; background: var(--orange-light);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: 1.1rem;
}
.contact-item strong { display: block; font-size: 0.85rem; color: var(--dark); margin-bottom: 4px; }
.contact-item p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.contact-wa {
  background: linear-gradient(135deg, var(--dark), #2d4a6e);
  color: #fff; padding: 36px; border-radius: var(--radius);
}
.contact-wa h3 { color: #fff; margin-bottom: 12px; }
.contact-wa p { color: rgba(255,255,255,0.75); margin-bottom: 24px; }

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff; text-align: center; padding: 72px 0;
}
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.85); max-width: 480px; margin: 0 auto 32px; }
.cta-section .btn-wa { background: #fff; color: var(--green-dark); }
.cta-section .btn-wa:hover { background: #f0fdf4; }

/* ---- Footer ---- */
.footer {
  background: var(--dark); color: rgba(255,255,255,0.8);
  padding: 48px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .nav-logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; opacity: 0.7; }
.footer-links h4 { color: #fff; font-size: 0.9rem; margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.85rem; opacity: 0.7; transition: opacity var(--transition); }
.footer-links a:hover { opacity: 1; color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 0.82rem; opacity: 0.6;
}

/* ---- Floating WA ---- */
.floating-wa {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  background: var(--green); color: #fff;
  padding: 12px 20px; border-radius: 100px;
  font-weight: 600; font-size: 0.88rem;
  box-shadow: 0 4px 20px rgba(34,197,94,0.4);
  transition: all var(--transition);
}
.floating-wa:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(34,197,94,0.5); }
.floating-wa svg { width: 20px; height: 20px; }

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 100px; font-size: 0.75rem; font-weight: 600;
}
.badge-orange { background: var(--orange-light); color: var(--orange-dark); }

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ---- Alert ---- */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 0.9rem; margin-bottom: 16px;
}
.alert-success { background: #f0fdf4; color: var(--green-dark); border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .product-detail-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-wa { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-ctas { flex-direction: column; }
  .floating-wa span { display: none; }
  .floating-wa { padding: 14px; border-radius: 50%; }
}
