/*
Theme Name: MJ Logistics Enterprise
Theme URI: https://mjlogisticsenterprise.com
Author: MJ Logistics Enterprise
Description: B2B auto & industrial parts marketplace theme — vehicle fitment search, verified suppliers, tiered wholesale pricing, and RFQ workflow.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mj-logistics
*/

:root{
  --bg: #17181c;
  --surface: #1f2126;
  --surface-2: #262930;
  --surface-3: #2d3038;
  --border: #34373e;
  --border-soft: #2a2d34;
  --text: #edeef0;
  --text-muted: #9599a3;
  --text-faint: #6b6f79;
  --accent: #ff6a1a;
  --accent-hover: #ff7f3d;
  --accent-ink: #1a0d05;
  --steel: #5b84c4;
  --stamp: #3fa34d;
  --radius-s: 3px;
  --radius-m: 6px;
  --container: 1360px;
}
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--bg); color:var(--text);
  font-family:'Inter', system-ui, sans-serif; font-size:15px; line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
a{ color:inherit; text-decoration:none; }
button, input, select, textarea{ font-family:inherit; }
ul{ list-style:none; }
img{ max-width:100%; display:block; }
.wrap{ max-width:var(--container); margin:0 auto; padding:0 28px; }
.mono{ font-family:'JetBrains Mono', monospace; }
.display{ font-family:'Barlow Condensed', sans-serif; text-transform:uppercase; letter-spacing:.01em; }
::selection{ background:var(--accent); color:var(--accent-ink); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible{
  outline:2px solid var(--accent); outline-offset:2px;
}
.screen-reader-text{ position:absolute; left:-9999px; }

/* ---- top utility + nav ---- */
.utility-bar{ background:#0f1013; border-bottom:1px solid var(--border-soft); font-size:12px; color:var(--text-faint); }
.utility-bar .wrap{ display:flex; justify-content:space-between; align-items:center; height:34px; }
.utility-bar .tag{ color:var(--accent); font-weight:600; letter-spacing:.04em; }
.utility-links{ display:flex; gap:20px; }
.utility-links a:hover{ color:var(--text-muted); }

header.main{ background:var(--bg); border-bottom:1px solid var(--border); position:sticky; top:0; z-index:50; }
header.main .wrap{ display:flex; align-items:center; gap:32px; height:76px; }
.logo{ display:flex; align-items:center; gap:10px; font-family:'Barlow Condensed',sans-serif; font-weight:800; font-size:22px; letter-spacing:.02em; text-transform:uppercase; }
.logo .mark{ width:34px; height:34px; border-radius:var(--radius-s); background:var(--accent); display:flex; align-items:center; justify-content:center; color:var(--accent-ink); font-weight:900; }
nav.primary{ display:flex; gap:26px; flex:1; }
nav.primary ul{ display:flex; gap:26px; }
nav.primary a{ font-size:14px; font-weight:600; color:var(--text-muted); padding:8px 0; border-bottom:2px solid transparent; }
nav.primary a:hover, nav.primary .current-menu-item a{ color:var(--text); border-color:var(--accent); }
.header-actions{ display:flex; align-items:center; gap:14px; }
.btn{ display:inline-flex; align-items:center; gap:8px; padding:10px 18px; border-radius:var(--radius-s); font-weight:700; font-size:13px; border:1px solid transparent; cursor:pointer; }
.btn-accent{ background:var(--accent); color:var(--accent-ink); }
.btn-accent:hover{ background:var(--accent-hover); }
.btn-ghost{ border-color:var(--border); color:var(--text); background:transparent; }
.btn-ghost:hover{ border-color:var(--text-muted); }

/* ---- section rhythm ---- */
.section{ padding:64px 0; }
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:28px; gap:20px; }
.section-head h2{ font-family:'Barlow Condensed',sans-serif; font-size:32px; text-transform:uppercase; font-weight:800; }
.section-head p{ color:var(--text-muted); font-size:14px; max-width:480px; }
.eyebrow{ color:var(--accent); font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; margin-bottom:10px; }

/* ---- category grid ---- */
.category-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.category-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-m);
  padding:22px; display:flex; flex-direction:column; gap:14px; transition:border-color .15s, transform .15s;
}
.category-card:hover{ border-color:var(--accent); transform:translateY(-2px); }
.category-icon{
  width:56px; height:56px; border-radius:var(--radius-m); background:var(--surface-2);
  display:flex; align-items:center; justify-content:center; color:var(--accent); overflow:hidden;
}
.category-icon img{ width:100%; height:100%; object-fit:cover; }
.category-card h4{ font-size:15px; font-weight:700; }
.category-card span{ font-size:12px; color:var(--text-faint); }

/* ---- product grid ---- */
.product-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.product-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-m); overflow:hidden; display:flex; flex-direction:column; }
.product-media{ aspect-ratio:1/1; background:var(--surface-2); display:flex; align-items:center; justify-content:center; color:var(--steel); border-bottom:1px solid var(--border); position:relative; overflow:hidden; }
.product-media img{ width:100%; height:100%; object-fit:cover; }
.fitment-badge{ position:absolute; top:10px; left:10px; background:var(--stamp); color:#0f1013; font-size:10px; font-weight:800; padding:4px 8px; border-radius:20px; text-transform:uppercase; letter-spacing:.03em; z-index:2; }
.product-body{ padding:16px; display:flex; flex-direction:column; gap:8px; flex:1; }
.product-sku{ font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--text-faint); }
.product-body h4{ font-size:14px; font-weight:700; line-height:1.3; }
.product-price{ margin-top:auto; display:flex; align-items:baseline; gap:6px; }
.product-price .amt{ font-size:20px; font-weight:800; color:var(--accent); }
.product-price .unit{ font-size:11px; color:var(--text-faint); }
.tier-hint{ font-size:11px; color:var(--text-muted); }

/* ---- vehicle selector ---- */
.selector-panel{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-m); padding:22px; display:grid; grid-template-columns:repeat(4,1fr) auto; gap:12px; align-items:end; }
.field label{ display:block; font-size:11px; color:var(--text-faint); margin-bottom:6px; text-transform:uppercase; letter-spacing:.04em; }
.field select, .field input{ width:100%; background:var(--surface-3); border:1px solid var(--border); color:var(--text); padding:11px 12px; border-radius:var(--radius-s); font-size:14px; }

/* ---- hero ---- */
.hero{ background:linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-bottom:1px solid var(--border); padding:56px 0 48px; }
.hero h1{ font-family:'Barlow Condensed',sans-serif; font-size:52px; line-height:1.02; font-weight:900; text-transform:uppercase; max-width:720px; }
.hero h1 span{ color:var(--accent); }
.hero p.lead{ color:var(--text-muted); max-width:560px; margin:18px 0 26px; font-size:15px; }

/* ---- tables ---- */
table.data{ width:100%; border-collapse:collapse; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-m); overflow:hidden; }
table.data th{ text-align:left; background:var(--surface-2); font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--text-faint); padding:12px 16px; border-bottom:1px solid var(--border); }
table.data td{ padding:14px 16px; border-bottom:1px solid var(--border-soft); font-size:14px; }
table.data tr:last-child td{ border-bottom:none; }
.badge{ display:inline-block; padding:3px 9px; border-radius:20px; font-size:11px; font-weight:700; }
.badge-open{ background:rgba(63,163,77,.15); color:var(--stamp); }
.badge-quoted{ background:rgba(91,132,196,.15); color:var(--steel); }
.badge-awarded, .badge-pending{ background:rgba(255,106,26,.15); color:var(--accent); }
.badge-closed{ background:rgba(255,255,255,.08); color:var(--text-faint); }

/* ---- forms ---- */
.card-form{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-m); padding:28px; }
.card-form label{ display:block; font-size:12px; color:var(--text-muted); margin:16px 0 6px; }
.card-form label:first-child{ margin-top:0; }
.card-form input, .card-form select, .card-form textarea{
  width:100%; background:var(--surface-3); border:1px solid var(--border); color:var(--text);
  padding:12px; border-radius:var(--radius-s); font-size:14px;
}
.card-form textarea{ resize:vertical; min-height:100px; }
.notice-success{ background:rgba(63,163,77,.12); border:1px solid var(--stamp); color:var(--stamp); padding:14px 16px; border-radius:var(--radius-s); font-size:13px; margin-bottom:20px; }
.notice-error{ background:rgba(255,106,26,.12); border:1px solid var(--accent); color:var(--accent); padding:14px 16px; border-radius:var(--radius-s); font-size:13px; margin-bottom:20px; }

footer.site{ background:#0f1013; border-top:1px solid var(--border-soft); padding:48px 0 24px; margin-top:40px; }
footer.site .cols{ display:grid; grid-template-columns:2fr repeat(4,1fr); gap:24px; margin-bottom:32px; }
footer.site h5{ font-size:13px; margin-bottom:14px; color:var(--text); }
footer.site a{ display:block; font-size:13px; color:var(--text-muted); padding:5px 0; }
footer.site a:hover{ color:var(--accent); }
.footer-bottom{ border-top:1px solid var(--border-soft); padding-top:20px; display:flex; justify-content:space-between; font-size:12px; color:var(--text-faint); }

@media (max-width:1024px){
  .category-grid, .product-grid{ grid-template-columns:repeat(2,1fr); }
  .selector-panel{ grid-template-columns:1fr 1fr; }
  .hero h1{ font-size:38px; }
  footer.site .cols{ grid-template-columns:1fr 1fr; }
}
