/*
Theme Name: BlastHub Theme
Theme URI: https://blasthub.id
Author: BlastHub
Author URI: https://blasthub.id
Description: Custom theme untuk BlastHub.id - Distributor Material Industri
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: blasthub
*/

/* ============================================================
   DESIGN TOKENS — BlastHub
   ============================================================ */
:root {
  /* Colors */
  --bh-bg:           #111722;
  --bh-bg-dark:      #0D1119;
  --bh-bg-card:      #1A2136;
  --bh-bg-card-hover:#212B44;
  --bh-border:       #2D3548;
  --bh-accent:       #E8521A;
  --bh-accent-dim:   rgba(232, 82, 26, 0.1);
  --bh-accent-border:rgba(232, 82, 26, 0.2);
  --bh-text:         #F0F2F5;
  --bh-muted:        #8B95A3;

  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --section-pad: 4rem 2rem;
  --radius:      8px;
  --radius-sm:   4px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800;900&family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bh-bg);
  color: var(--bh-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.bh-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--bh-bg-dark);
  border-bottom: 1px solid var(--bh-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.bh-logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--bh-text);
}
.bh-logo span { color: var(--bh-accent); }

/* WordPress menu override */
.bh-nav .menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bh-nav .menu a {
  color: var(--bh-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.bh-nav .menu a:hover,
.bh-nav .menu .current-menu-item > a { color: var(--bh-text); }

.bh-nav-cta {
  background: var(--bh-accent);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.bh-nav-cta:hover { opacity: 0.88; color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.bh-hero {
  position: relative;
  padding: 5rem 2rem 4rem;
  background: var(--bh-bg-dark);
  overflow: hidden;
}

.bh-hero-grit {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.bh-hero-accent-blob {
  position: absolute;
  top: -60px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--bh-accent);
  opacity: 0.07;
  filter: blur(80px);
  pointer-events: none;
}

.bh-hero-inner { position: relative; max-width: 820px; }

.bh-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bh-bg-card);
  border: 1px solid var(--bh-border);
  color: var(--bh-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
.bh-hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bh-accent);
  flex-shrink: 0;
}

.bh-hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 86px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--bh-text);
  margin-bottom: 1rem;
}
.bh-hero-title em,
.bh-hero-title .accent { color: var(--bh-accent); font-style: normal; }

.bh-hero-sub {
  font-size: 17px;
  color: var(--bh-muted);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.bh-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   BUTTONS
   ============================================================ */
.bh-btn-primary {
  background: var(--bh-accent);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
  text-decoration: none;
}
.bh-btn-primary:hover { opacity: 0.88; color: #fff; }

.bh-btn-secondary {
  background: transparent;
  color: var(--bh-text);
  border: 1px solid var(--bh-border);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s;
  text-decoration: none;
}
.bh-btn-secondary:hover { border-color: var(--bh-muted); }

.bh-btn-white {
  background: #fff;
  color: var(--bh-accent);
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.bh-btn-white:hover { opacity: 0.9; color: var(--bh-accent); }

/* ============================================================
   STATS BAR
   ============================================================ */
.bh-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bh-border);
  border-top: 1px solid var(--bh-border);
  border-bottom: 1px solid var(--bh-border);
}
.bh-stat {
  background: var(--bh-bg);
  padding: 1.5rem 2rem;
  text-align: center;
}
.bh-stat-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: var(--bh-text);
  line-height: 1;
}
.bh-stat-num span { color: var(--bh-accent); }
.bh-stat-label {
  font-size: 12px;
  color: var(--bh-muted);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ============================================================
   SECTION WRAPPERS
   ============================================================ */
.bh-section      { padding: var(--section-pad); }
.bh-section-dark { padding: var(--section-pad); background: var(--bh-bg-dark); }

.bh-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--bh-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.bh-section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--bh-text);
  margin-bottom: 0.5rem;
}
.bh-section-sub {
  font-size: 15px;
  color: var(--bh-muted);
  margin-bottom: 2.5rem;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.bh-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--bh-border);
  border: 1px solid var(--bh-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.bh-product-card {
  background: var(--bh-bg-card);
  padding: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bh-product-card:hover { background: var(--bh-bg-card-hover); }

.bh-product-icon {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--bh-bg-dark);
  border: 1px solid var(--bh-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.bh-product-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--bh-text);
  line-height: 1.2;
}
.bh-product-desc { font-size: 13px; color: var(--bh-muted); line-height: 1.5; }
.bh-product-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: var(--bh-bg-dark);
  color: var(--bh-accent);
  border: 1px solid var(--bh-accent-border);
  border-radius: 3px;
  padding: 2px 8px;
  margin-top: auto;
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.bh-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.bh-feature {
  padding: 1.5rem;
  border: 1px solid var(--bh-border);
  border-radius: var(--radius);
  background: var(--bh-bg-card);
}
.bh-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--bh-accent-dim);
  border: 1px solid var(--bh-accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 1rem;
}
.bh-feature-title { font-size: 15px; font-weight: 600; color: var(--bh-text); margin-bottom: 6px; }
.bh-feature-desc  { font-size: 13px; color: var(--bh-muted); line-height: 1.6; }

/* ============================================================
   ARTICLES GRID
   ============================================================ */
.bh-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.bh-article {
  border: 1px solid var(--bh-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
  background: var(--bh-bg);
}
.bh-article:hover { border-color: var(--bh-accent); }

.bh-article-img {
  height: 130px;
  background: var(--bh-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  border-bottom: 1px solid var(--bh-border);
}
/* WordPress featured image inside article card */
.bh-article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bh-article-body { padding: 1.25rem; }
.bh-article-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--bh-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.bh-article-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--bh-text);
  line-height: 1.4;
  margin-bottom: 8px;
}
.bh-article-excerpt { font-size: 13px; color: var(--bh-muted); line-height: 1.5; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.bh-cta-banner {
  background: var(--bh-accent);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  margin: 0 2rem 4rem;
}
.bh-cta-banner h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5rem;
}
.bh-cta-banner p {
  color: #fff;
  opacity: 0.85;
  font-size: 15px;
  margin-bottom: 1.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.bh-footer {
  background: var(--bh-bg-dark);
  border-top: 1px solid var(--bh-border);
  padding: 2.5rem 2rem 1.5rem;
}
.bh-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.bh-footer-brand p {
  font-size: 13px;
  color: var(--bh-muted);
  margin-top: 0.75rem;
  line-height: 1.6;
  max-width: 300px;
}
.bh-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--bh-text);
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
/* WordPress nav menu in footer */
.bh-footer-col .menu { list-style: none; margin: 0; padding: 0; }
.bh-footer-col .menu li { margin-bottom: 6px; }
.bh-footer-col .menu a,
.bh-footer-col a {
  display: block;
  font-size: 13px;
  color: var(--bh-muted);
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.2s;
}
.bh-footer-col .menu a:hover,
.bh-footer-col a:hover { color: var(--bh-accent); }

.bh-footer-bottom {
  border-top: 1px solid var(--bh-border);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--bh-muted);
}

/* ============================================================
   WORDPRESS CONTENT AREA (pages & posts)
   ============================================================ */
.bh-content-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.bh-content-wrap h1,
.bh-content-wrap h2,
.bh-content-wrap h3 {
  font-family: var(--font-display);
  color: var(--bh-text);
  margin-bottom: 0.75rem;
}
.bh-content-wrap h1 { font-size: 48px; font-weight: 900; }
.bh-content-wrap h2 { font-size: 32px; font-weight: 800; margin-top: 2rem; }
.bh-content-wrap h3 { font-size: 22px; font-weight: 700; margin-top: 1.5rem; }
.bh-content-wrap p  { color: var(--bh-muted); margin-bottom: 1rem; }
.bh-content-wrap a  { color: var(--bh-accent); }
.bh-content-wrap ul, .bh-content-wrap ol { color: var(--bh-muted); padding-left: 1.5rem; margin-bottom: 1rem; }
.bh-content-wrap li { margin-bottom: 4px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .bh-nav .menu { display: none; } /* Ganti dengan hamburger menu */

  .bh-stats { grid-template-columns: repeat(2, 1fr); }

  .bh-footer-top { grid-template-columns: 1fr; }

  .bh-cta-banner { margin: 0 1rem 3rem; padding: 2rem 1.25rem; }

  .bh-hero { padding: 3rem 1.25rem 2.5rem; }
  .bh-section, .bh-section-dark { padding: 3rem 1.25rem; }
}

@media (max-width: 480px) {
  .bh-stats { grid-template-columns: 1fr 1fr; }
  .bh-hero-title { font-size: 44px; }
}
