/* ==========================================================
   BusuJu Hardware — style.css
   Edit the colour tokens below to re-brand the whole site.
   ========================================================== */

:root {
  --navy: #0f1f33;
  --navy-2: #172b45;
  --orange: #f26b1d;
  --orange-dark: #d85a10;
  --ink: #1c2530;
  --muted: #5d6b7a;
  --line: #e2e6eb;
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --white: #ffffff;
  --green: #1f9d57;

  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --radius: 12px;
  --shadow: 0 6px 24px rgba(15, 31, 51, 0.1);
  --shadow-lg: 0 14px 40px rgba(15, 31, 51, 0.18);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--navy);
}
p { margin: 0 0 1em; }
.container { width: min(var(--container), 92%); margin-inline: auto; }
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 6px 18px rgba(242, 107, 29, 0.35); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-whatsapp { background: #25d366; color: #06310f; }
.btn-whatsapp:hover { background: #1ebd5a; }
.btn-outline { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); }
.btn-sm { padding: 10px 16px; font-size: 0.85rem; border-radius: 8px; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy); color: #c9d3de; font-size: 0.85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a:hover { color: var(--orange); }
.topbar-links { display: flex; gap: 22px; flex-wrap: wrap; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.header.scrolled { box-shadow: var(--shadow); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--orange); color: var(--white);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
}
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--navy); line-height: 1; }
.logo-text small { display: block; font-size: 0.62rem; letter-spacing: 0.32em; color: var(--orange); font-weight: 700; margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 10px 16px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; color: var(--navy);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--bg-soft); }
.nav-links a.active { color: var(--orange); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 0; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px;
  position: relative; transition: transform 0.25s, background 0.25s; margin-inline: auto;
}
.nav-toggle span::before { position: absolute; top: -8px; left: 0; }
.nav-toggle span::after { position: absolute; top: 8px; left: 0; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(15, 31, 51, 0.97) 40%, rgba(15, 31, 51, 0.8)),
    repeating-linear-gradient(45deg, #172b45 0 14px, #12253c 14px 28px);
  color: var(--white);
  overflow: hidden;
}
/* To use a real photo: replace the background above with
   url("images/hero.jpg") center/cover, keeping the navy overlay gradient. */
.hero::after {
  content: ""; position: absolute; right: -120px; top: -80px; bottom: -80px; width: 420px;
  background: var(--orange); transform: skewX(-14deg); opacity: 0.95;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; padding: 96px 0 104px; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 800; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lead { font-size: 1.15rem; color: #d3dce6; max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-card {
  background: var(--white); color: var(--ink); border-radius: 16px; padding: 28px;
  box-shadow: var(--shadow-lg); position: relative; z-index: 3;
}
.hero-card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.hero-card ul { list-style: none; padding: 0; margin: 0 0 18px; }
.hero-card li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-weight: 500; }
.hero-card li:last-child { border-bottom: 0; }
.hero-card li svg { width: 20px; height: 20px; color: var(--orange); flex: none; margin-top: 3px; }

/* ---------- Stats strip ---------- */
.stats { background: var(--navy); color: var(--white); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 20px; text-align: center; border-right: 1px solid rgba(255, 255, 255, 0.1); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--orange); }
.stat span { color: #b9c5d2; font-size: 0.9rem; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: block;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--orange); }
.cat-icon {
  width: 56px; height: 56px; border-radius: 14px; background: #fff1e8; color: var(--orange);
  display: grid; place-items: center; margin-bottom: 18px;
}
.cat-icon svg { width: 28px; height: 28px; }
.cat-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.cat-card p { color: var(--muted); font-size: 0.93rem; margin: 0 0 14px; }
.cat-card .more { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--orange); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-media {
  position: relative; aspect-ratio: 4 / 4.2; border-radius: 18px; overflow: hidden;
  background: linear-gradient(140deg, #dfe5ec, #c3ccd7);
  display: grid; place-items: center; color: #7d8b9b; font-weight: 600; text-align: center;
}
/* Replace with: <img src="images/store.jpg" alt="BusuJu Hardware store"> */
.about-media .badge {
  position: absolute; left: 20px; bottom: 20px; background: var(--orange); color: var(--white);
  padding: 16px 22px; border-radius: 12px; font-family: var(--font-head); box-shadow: var(--shadow-lg);
}
.about-media .badge b { display: block; font-size: 1.9rem; line-height: 1; }
.about-media .badge span { font-size: 0.8rem; font-weight: 600; }
.check-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.check-list svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 2px; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { background: var(--white); border-radius: var(--radius); padding: 30px; border-left: 5px solid var(--orange); box-shadow: 0 2px 10px rgba(15, 31, 51, 0.06); }
.why-card h3 { font-size: 1.1rem; }
.why-card p { color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); color: var(--white); }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 54px 0; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { margin: 0; opacity: 0.95; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-dark:hover { background: #000; }

/* ---------- Page banner ---------- */
.page-banner { background: var(--navy); color: var(--white); padding: 64px 0 60px; position: relative; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; right: -80px; top: 0; bottom: 0; width: 260px; background: var(--orange); transform: skewX(-14deg); }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin-bottom: 8px; }
.page-banner p { color: #c9d3de; margin: 0; max-width: 560px; }
.crumbs { font-size: 0.85rem; color: #9fb0c2; margin-bottom: 14px; }
.crumbs a:hover { color: var(--orange); }

/* ---------- Products page ---------- */
.toolbar { display: grid; gap: 18px; margin-bottom: 30px; }
.search-box { position: relative; max-width: 520px; }
.search-box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.search-box input {
  width: 100%; padding: 15px 16px 15px 46px; font: inherit; border: 2px solid var(--line);
  border-radius: 10px; background: var(--white); transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242, 107, 29, 0.15); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--white);
  font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--navy); cursor: pointer;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--orange); color: var(--orange); }
.chip.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.result-count { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-img {
  aspect-ratio: 4 / 3; background: linear-gradient(140deg, #e8ecf1, #d3dae3);
  display: grid; place-items: center; color: #8a97a6; position: relative;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img svg { width: 44px; height: 44px; }
.product-img .tag {
  position: absolute; top: 12px; left: 12px; background: var(--navy); color: var(--white);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 6px; font-family: var(--font-head);
}
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.02rem; margin-bottom: 6px; }
.product-body p { color: var(--muted); font-size: 0.88rem; margin-bottom: 16px; flex: 1; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); display: none; }
.empty.show { display: block; }
.empty h3 { color: var(--navy); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.info-card h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.info-card h3 svg { width: 22px; height: 22px; color: var(--orange); }
.info-card p { color: var(--muted); margin-bottom: 6px; }
.info-card a.link { color: var(--navy); font-weight: 700; }
.info-card a.link:hover { color: var(--orange); }
.action-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 8px; font-size: 0.95rem; }
.hours li:nth-child(odd) { background: var(--bg-soft); }
.hours li.today { background: #fff1e8; font-weight: 700; color: var(--navy); outline: 2px solid var(--orange); }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.85rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status.open { background: #e5f6ec; color: var(--green); }
.status.closed { background: #fdeaea; color: #c0392b; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); position: sticky; top: 100px; }
.map-wrap iframe { width: 100%; height: 520px; border: 0; display: block; }
.map-caption { padding: 16px 20px; background: var(--white); font-size: 0.92rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #b9c5d2; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--orange); }
.footer .logo-text { color: var(--white); }
.footer-about { margin-top: 16px; font-size: 0.93rem; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, 0.08);
  display: grid; place-items: center; transition: background 0.2s, transform 0.2s;
}
.socials a:hover { background: var(--orange); color: var(--white); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 0; font-size: 0.85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Floating WhatsApp ---------- */
.float-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}
.float-wa:hover { transform: scale(1.08); }
.float-wa svg { width: 30px; height: 30px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
  .cat-grid, .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero .container, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero::after { display: none; }
  .hero .container { padding: 64px 0 72px; }
  .why-grid { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .map-wrap { position: static; }
  .about-media { aspect-ratio: 16 / 10; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch;
    padding: 12px 4%; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; }
  .nav-cta { margin: 6px 0 4px; }
  .nav-cta .btn { width: 100%; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-body { padding: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-links { gap: 14px; }
  .page-banner::after { display: none; }
}
@media (max-width: 420px) {
  .cat-grid, .product-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
