:root {
  --rust-dark: #5f1706;
  --rust: #ab3610;
  --orange: #ef5a1e;
  --ink: #2e1a11;
  --muted: #6f4a3a;
  --bg-light: #fdf5f0;
  --bg-alt: #fbeee5;
  --border: #ecd5c6;
  --white: #ffffff;
  --font: "Barlow", sans-serif;
  --font-cond: "Barlow Condensed", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2 {
  font-family: var(--font-cond);
  font-weight: 700;
  margin: 0;
  color: var(--rust);
  letter-spacing: 0.01em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--rust); color: var(--white); box-shadow: 0 10px 24px -12px rgba(171, 54, 16, 0.65); }
.btn-primary:hover { background: var(--orange); box-shadow: 0 14px 28px -12px rgba(239, 90, 30, 0.6); }
.btn-outline { border-color: var(--rust); color: var(--rust); }
.btn-outline:hover { background: var(--bg-alt); }
.btn-sm { padding: 8px 18px; font-size: 12.5px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 8px 24px -18px rgba(46, 26, 17, 0.4);
}
main { padding-top: 64px; }
#top, #produk, #video, #merek, #tentang, #kontak { scroll-margin-top: 76px; }
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand-logo { height: 38px; width: auto; }
.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav a { color: var(--ink); }
.nav a:hover { color: var(--rust); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  margin-left: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--rust);
  display: block;
}

/* Hero */
.hero {
  background:
    linear-gradient(100deg, rgba(253, 245, 240, 0.97) 0%, rgba(253, 245, 240, 0.88) 32%, rgba(253, 245, 240, 0.4) 62%, rgba(253, 245, 240, 0.18) 100%),
    url("../img/warehouse.webp") center 75%/cover no-repeat;
  position: relative;
}
/* Blobs get their own clipping layer so the hero itself can let the
   WhatsApp dropdown spill over the next section. */
.hero-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.hero-blob-a { width: 380px; height: 380px; background: var(--orange); top: -160px; right: -80px; }
.hero-blob-b { width: 300px; height: 300px; background: var(--rust); bottom: -140px; left: -60px; opacity: 0.2; }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 56px 24px 40px;
}
.eyebrow {
  font-family: var(--font-cond);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  font-size: 13px;
  margin: 0 0 10px;
}
.hero-copy h1 {
  font-size: 48px;
  line-height: 1.08;
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--rust);
  font-weight: 500;
}
.hero-sub {
  font-size: 17px;
  color: var(--ink);
  margin: 16px 0 28px;
  max-width: 40ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.online-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.online-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  flex-shrink: 0;
}

.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.hero-media-frame {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 20px 40px -20px rgba(95, 23, 6, 0.25);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  transition: transform 0.4s ease;
}
.hero-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.hero-media:hover .hero-media-frame { transform: translateY(-4px); }

.category-ribbon {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 3px solid var(--orange);
}
.category-ribbon span {
  padding: 12px 6px;
  text-align: center;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rust);
  border-right: 1px solid var(--border);
}
.category-ribbon span:last-child { border-right: none; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-light); }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: 34px; }
.section-sub {
  margin: 10px auto 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 15px;
}

/* Product tabs */
.product-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 32px 0 30px;
}
.product-tab {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.product-tab:hover { border-color: var(--orange); color: var(--rust); }
.product-tab.is-active { background: var(--rust); border-color: var(--rust); color: var(--white); }

.product-panel { display: none; }
.product-panel.is-active { display: block; }

.product-grid {
  --product-gap: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--product-gap);
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 28px -16px rgba(95, 23, 6, 0.35);
  border-color: var(--orange);
}
.product-thumb {
  background: var(--bg-alt);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.product-thumb img { max-height: 100%; max-width: 100%; object-fit: contain; }
.product-info { display: block; padding: 14px 16px 18px; }
.product-name {
  display: block;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 16px;
  color: var(--rust);
}
.product-spec { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

.product-more {
  margin-top: 36px;
  text-align: center;
}
.product-more p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14.5px;
}
.product-more-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Stock banner (real warehouse photo, overlay style) */
.stock-banner {
  position: relative;
  margin-top: 40px;
  border-radius: 20px;
  overflow: hidden;
  height: 340px;
  box-shadow: 0 20px 40px -20px rgba(95, 23, 6, 0.35);
}
.stock-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.stock-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 4, 4, 0.85) 0%, rgba(20, 4, 4, 0.55) 38%, rgba(20, 4, 4, 0.1) 72%);
}
.stock-banner-text {
  position: absolute;
  left: 32px;
  bottom: 28px;
  z-index: 1;
  max-width: 420px;
}
.stock-banner-text p.eyebrow-sm {
  margin: 0 0 6px;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffb3ac;
}
.stock-banner-text h3 {
  margin: 0 0 8px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 28px;
  color: var(--white);
  line-height: 1.1;
}
.stock-banner-text p.desc {
  margin: 0;
  font-size: 14.5px;
  color: #f0e3df;
  line-height: 1.55;
  max-width: 40ch;
}

/* Video */
.video-frame {
  position: relative;
  width: 100%;
  max-width: 325px;
  margin: 0 auto;
  aspect-ratio: 325 / 738;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(95, 23, 6, 0.35);
  border: 1px solid var(--border);
  background: var(--white);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Brand list */
.brand-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.brand-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  min-width: 108px;
  padding: 0 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.brand-chip:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: 0 10px 20px -14px rgba(95, 23, 6, 0.35);
}
.brand-chip img {
  max-height: 26px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
}
.brand-chip-tall img { max-height: 42px; }
.brand-chip-text {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Dark stats band */
.section-dark {
  position: relative;
  background: linear-gradient(90deg, var(--rust-dark), var(--rust)), url("../img/warehouse.webp") center/cover no-repeat;
  background-blend-mode: multiply;
  padding: 64px 0;
}
.stats-row { position: relative; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 42px;
  color: var(--white);
  margin: 0;
  line-height: 1;
}
.stat-label {
  font-family: var(--font-cond);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12.5px;
  color: #ffd9c2;
  margin: 8px 0 0;
}

/* CTA / Contact */
.cta-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-blob {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.15;
  filter: blur(50px);
  top: -100px;
  right: -60px;
  pointer-events: none;
}
.cta-text, .cta-actions { position: relative; z-index: 1; }
.cta-text h2 { font-size: 28px; margin-bottom: 6px; }
.cta-text p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-info {
  margin-top: 28px;
  text-align: center;
  color: var(--ink);
  font-size: 14.5px;
}
.contact-info p { margin: 0 0 8px; }
.contact-info p:last-child { margin-bottom: 0; }
.contact-info strong { color: var(--ink); font-weight: 700; }

/* Footer */
.site-footer {
  background: var(--ink);
  padding: 22px 0;
}
.footer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d9c3b8;
  font-size: 13px;
}
.footer-mark { height: 30px; width: auto; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Floating WhatsApp button */
.wa-float {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 30px -8px rgba(37, 211, 102, 0.7);
}
.wa-float-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.55;
  animation: wa-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
  z-index: -1;
}
@keyframes wa-ping {
  0% { transform: scale(1); opacity: 0.55; }
  75%, 100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float-ping { animation: none; display: none; }
}
@media (max-width: 540px) {
  .wa-float { right: 20px; bottom: 20px; width: 52px; height: 52px; }
  .wa-float svg { width: 26px; height: 26px; }
}

/* WhatsApp contact chooser */
.wa-choice { position: relative; display: inline-flex; }
.wa-choice-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 32px -12px rgba(46, 26, 17, 0.25);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 70;
}
.wa-choice.is-open .wa-choice-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.wa-choice-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--font);
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}
.wa-choice-item:hover { background: var(--bg-alt); }
.wa-choice-item small { color: var(--muted); font-weight: 500; font-size: 12.5px; }

.wa-float-choice { position: fixed; right: 32px; bottom: 32px; z-index: 60; }
.wa-float-choice .wa-float { position: static; }
.wa-float-choice .wa-choice-menu { top: auto; bottom: calc(100% + 14px); right: 0; }
@media (max-width: 540px) {
  .wa-float-choice { right: 20px; bottom: 20px; }
}

/* Responsive */
@media (max-width: 860px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(253, 245, 240, 0.77) 0%, rgba(253, 245, 240, 0.74) 55%, rgba(253, 245, 240, 0.65) 100%),
      url("../img/warehouse.webp") center 75%/cover no-repeat;
  }
  .hero-blob { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-copy { text-align: center; }
  .hero-actions { justify-content: center; }
  .online-badge { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-media { margin-top: 20px; }
  .category-ribbon { grid-template-columns: repeat(3, 1fr); }
  .category-ribbon span:nth-child(3) { border-right: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  /* Lone last card in a 2-col row: center it instead of leaving a gap on the right */
  .product-grid > .product-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - var(--product-gap) / 2);
    justify-self: center;
  }
  .stats-row { grid-template-columns: 1fr; gap: 28px; }
  .cta-card { justify-content: center; text-align: center; }
  .stock-banner { height: 300px; }
  .stock-banner-text { left: 20px; right: 20px; max-width: none; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .header-row .btn-sm { display: none; }
}

@media (max-width: 540px) {
  .hero-copy h1 { font-size: 36px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); --product-gap: 12px; }
  .product-thumb { height: 110px; padding: 10px; }
  .product-info { padding: 10px 12px 14px; }
  .product-name { font-size: 13.5px; }
  .product-spec { font-size: 11.5px; }
  .category-ribbon { grid-template-columns: repeat(2, 1fr); }
  .category-ribbon span:nth-child(3) { border-right: 1px solid var(--border); }
  .category-ribbon span:nth-child(2n) { border-right: none; }
  .product-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, black calc(100% - 28px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 28px), transparent 100%);
  }
  .product-tab { flex-shrink: 0; }

  .cta-card { padding: 28px 22px; gap: 16px; }
  .cta-text h2 { font-size: 23px; }
  .cta-actions { flex-direction: column; width: 100%; gap: 10px; }
  .cta-actions .btn { width: 100%; }
  .contact-info { margin-top: 22px; }

  .brand-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    scroll-snap-type: x proximity;
    padding-bottom: 6px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
    -webkit-overflow-scrolling: touch;
  }
  .brand-chip { flex-shrink: 0; scroll-snap-align: start; }
}
