/*
Theme Name: BizMarket Malaysia
Theme URI: https://example.com/bizmarket-malaysia
Author: Generated for BizMarket Malaysia
Author URI: https://example.com
Description: Companion theme for the BizMarket Malaysia plugin. Provides the branded header, footer and homepage (ink/gold/jade palette, Fraunces + IBM Plex fonts) that the plugin's marketplace, listing, dashboard and sell-form pages render inside of. Activate the BizMarket Malaysia plugin first, then this theme.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bizmarket-theme
*/

/* This file MUST stay at the theme's root with the header above intact —
   it's how WordPress recognises the folder as an installable theme. */

:root {
  --ink: #10192B;
  --ink-2: #17233B;
  --paper: #F5F3EE;
  --paper-2: #ECE7DA;
  --line: #DBD5C7;
  --line-ink: rgba(255,255,255,.14);
  --jade: #1F6F5C;
  --jade-soft: #E4EFEC;
  --gold: #A97324;
  --gold-soft: #F3E7D3;
  --rust: #A9432F;
  --slate: #5B6472;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

.bm-display { font-family: 'Fraunces', Georgia, serif; }
.bm-mono { font-family: 'IBM Plex Mono', monospace; }

a { color: inherit; }
img { max-width: 100%; display: block; }

.bm-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ------------------------------- header --------------------------------- */

.bm-site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245,243,238,.95); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.bm-site-header .bm-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap;
}
.bm-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.bm-logo-mark {
  width: 32px; height: 32px; border-radius: 12px; background: var(--ink);
  position: relative; overflow: hidden; flex-shrink: 0;
}
.bm-logo-mark span {
  position: absolute; background-image: repeating-linear-gradient(135deg,#0A0B0D,#0A0B0D 3px,#1E2024 3px,#1E2024 6px);
  border-radius: 3px;
}
.bm-logo-mark span:first-child { width: 16px; height: 6px; top: 8px; left: 8px; }
.bm-logo-mark span:last-child { width: 12px; height: 6px; bottom: 8px; right: 8px; }
.bm-logo b { display: block; font-size: 15px; font-weight: 600; line-height: 1.1; }
.bm-logo small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-family: 'IBM Plex Mono', monospace; }

.bm-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; color: var(--slate); flex-wrap: wrap; }
.bm-nav a { text-decoration: none; }
.bm-nav a:hover { color: var(--ink); }

.bm-header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bm-btn {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); text-decoration: none; cursor: pointer;
}
.bm-btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bm-btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }

/* -------------------------------- hero ----------------------------------- */

.bm-hero { padding: 64px 0 56px; display: grid; gap: 40px; }
@media (min-width: 900px) { .bm-hero { grid-template-columns: 1fr 1fr; align-items: center; } }
.bm-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: .05em; background: var(--jade-soft); color: var(--jade);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.bm-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--jade); }
.bm-hero h1 { font-size: 44px; line-height: 1.08; margin: 0 0 18px; }
.bm-hero h1 em { font-style: normal; color: var(--gold); }
.bm-hero p.lead { color: var(--slate); font-size: 17px; max-width: 440px; margin: 0 0 28px; }
.bm-hero-search { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.bm-hero-search input {
  flex: 1; min-width: 200px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px;
  font-size: 14px; background: #fff;
}
.bm-hero-stats { display: flex; flex-wrap: wrap; gap: 26px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--slate); }
.bm-hero-stats b { display: block; font-size: 17px; color: var(--ink); font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; }

.bm-hero-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.bm-hero-card .bm-redacted-line { display: inline-flex; align-items: center; gap: 6px; }
.bm-hero-card .bar { display: inline-block; height: 14px; width: 90px; border-radius: 3px; background-image: repeating-linear-gradient(135deg,#0A0B0D,#0A0B0D 5px,#1E2024 5px,#1E2024 10px); }

/* ---------------------------- how it works -------------------------------- */

.bm-section { padding: 56px 0; }
.bm-section h2 { font-size: 30px; margin: 6px 0 32px; }
.bm-steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); }
.bm-step { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: #fff; }
.bm-step .n { font-family: 'IBM Plex Mono', monospace; font-size: 26px; font-weight: 700; color: var(--line); }
.bm-step h3 { margin: 10px 0 6px; font-size: 17px; }
.bm-step p { color: var(--slate); font-size: 14px; margin: 0; }

/* ------------------------------- security -------------------------------- */

.bm-security { background: var(--ink); color: var(--paper); border-radius: 28px; padding: 44px 36px; }
.bm-security .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.bm-security .tags span { font-family: 'IBM Plex Mono', monospace; font-size: 11px; border: 1px solid var(--line-ink); padding: 5px 12px; border-radius: 999px; color: rgba(245,243,238,.8); }
.bm-security h2 { color: var(--paper); max-width: 480px; }
.bm-security p.lead { color: rgba(245,243,238,.7); max-width: 560px; margin-bottom: 30px; }
.bm-security-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); }
.bm-security-grid .item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(245,243,238,.9); }
.bm-security-grid .ico { width: 30px; height: 30px; border-radius: 12px; background: rgba(255,255,255,.1); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #4FBFA3; font-weight: 700; }

/* -------------------------------- seller cta ------------------------------ */

.bm-seller-cta { background: var(--paper-2); border: 1px solid var(--line); border-radius: 28px; padding: 40px 36px; display: grid; gap: 24px; }
@media (min-width: 800px) { .bm-seller-cta { grid-template-columns: 1fr 1fr; align-items: center; } }
.bm-seller-cta h2 { margin: 6px 0 10px; }
.bm-seller-cta p { color: var(--slate); }

/* -------------------------------- footer ---------------------------------- */

.bm-site-footer { background: var(--ink); color: rgba(245,243,238,.7); margin-top: 40px; }
.bm-site-footer .bm-wrap { padding: 40px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.bm-site-footer .brand { color: var(--paper); font-size: 18px; margin-bottom: 4px; }
.bm-site-footer a { color: rgba(245,243,238,.7); text-decoration: none; }

/* -------------------------------- generic page ----------------------------- */

.bm-page-header { padding: 40px 0 8px; }
.bm-page-header h1 { font-size: 30px; margin: 0; }
