/*
Theme Name: BizTalk
Theme URI: https://digitalmarketingsbd.com
Author: BizTalk
Description: Custom standalone theme for the BizTalk B2B sourcing marketplace. Trade Wind design system.
Version: 0.3.0
Text Domain: biztalk
*/

/* ============ Trade Wind Design Tokens ============ */
:root {
  --bt-primary: #29B7E8;
  --bt-primary-dark: #1C9BCB;
  --bt-navy: #16233F;
  --bt-navy-2: #1F3157;
  --bt-gold: #F2A93B;
  --bt-gold-dark: #D98F1F;
  --bt-bg: #F6F9FC;
  --bt-surface: #FFFFFF;
  --bt-text: #1F2933;
  --bt-muted: #64748B;
  --bt-success: #16A34A;
  --bt-danger: #DC2626;
  --bt-border: #E2E8F0;
  --bt-radius: 12px;
  --bt-shadow: 0 4px 14px rgba(22, 35, 63, .08);
  --bt-shadow-lg: 0 12px 32px rgba(22, 35, 63, .12);
  --bt-font-head: 'Lexend', 'Noto Sans SC', sans-serif;
  --bt-font-body: 'Inter', 'Noto Sans SC', sans-serif;
  --bt-font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bt-bg);
  color: var(--bt-text);
  font-family: var(--bt-font-body);
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: var(--bt-font-head); color: var(--bt-navy); line-height: 1.2; margin: 0 0 .5em; }
a { color: var(--bt-primary); text-decoration: none; }
a:hover { color: var(--bt-primary-dark); }
img { max-width: 100%; height: auto; }

.bt-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ Header ============ */
.bt-header { background: var(--bt-navy); position: sticky; top: 0; z-index: 100; box-shadow: var(--bt-shadow); }
.bt-header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.bt-logo img { height: 44px; width: auto; display: block; }
.bt-logo { display: flex; align-items: center; gap: 10px; }
.bt-site-name { color: #fff; font-family: var(--bt-font-head); font-weight: 700; font-size: 22px; letter-spacing: .3px; }
.bt-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.bt-nav a { color: #C9D6EA; font-weight: 500; font-size: 15px; }
.bt-nav a:hover, .bt-nav .current-menu-item > a { color: #fff; }
.bt-nav .current-menu-item > a { border-bottom: 2px solid var(--bt-primary); padding-bottom: 4px; }
.bt-header-cta { display: flex; gap: 12px; align-items: center; }
.bt-menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }

/* ============ Buttons ============ */
.bt-btn { display: inline-block; padding: 13px 28px; border-radius: 8px; font-family: var(--bt-font-head); font-weight: 600; font-size: 15px; transition: .15s; border: 0; cursor: pointer; }
.bt-btn-gold { background: var(--bt-gold); color: var(--bt-navy); }
.bt-btn-gold:hover { background: var(--bt-gold-dark); color: var(--bt-navy); }
.bt-btn-outline { border: 2px solid #fff; color: #fff; background: transparent; }
.bt-btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.bt-btn-primary { background: var(--bt-primary); color: #fff; }
.bt-btn-primary:hover { background: var(--bt-primary-dark); color: #fff; }
.bt-btn-sm { padding: 9px 18px; font-size: 14px; }

/* ============ Hero ============ */
.bt-hero { background: linear-gradient(135deg, var(--bt-navy) 0%, var(--bt-navy-2) 60%, #27467E 100%); color: #fff; padding: 96px 0 80px; }
.bt-hero h1 { color: #fff; font-size: 52px; font-weight: 700; max-width: 720px; }
.bt-hero .bt-sub { font-size: 20px; color: #C9D6EA; max-width: 640px; margin-bottom: 36px; }
.bt-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.bt-trustbar { background: var(--bt-navy-2); color: #C9D6EA; padding: 16px 0; font-size: 15px; }
.bt-trustbar .bt-container { display: flex; gap: 36px; flex-wrap: wrap; justify-content: center; }
.bt-trustbar span::before { content: "✓ "; color: var(--bt-gold); font-weight: 700; }

/* ============ Sections ============ */
.bt-section { padding: 72px 0; }
.bt-section-alt { background: var(--bt-surface); }
.bt-section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.bt-section-head h2 { font-size: 36px; }
.bt-section-head p { color: var(--bt-muted); font-size: 18px; }

/* ============ Cards / Grids ============ */
.bt-grid { display: grid; gap: 24px; }
.bt-grid-3 { grid-template-columns: repeat(3, 1fr); }
.bt-grid-4 { grid-template-columns: repeat(4, 1fr); }
.bt-card { background: var(--bt-surface); border: 1px solid var(--bt-border); border-radius: var(--bt-radius); padding: 28px; box-shadow: var(--bt-shadow); }
.bt-card h3 { font-size: 20px; }
.bt-card p { color: var(--bt-muted); margin: 0; }
.bt-card .bt-icon { font-size: 34px; margin-bottom: 14px; }
.bt-step-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bt-primary); color: #fff; font-family: var(--bt-font-head); font-weight: 700; font-size: 20px; margin-bottom: 16px; }

/* ============ CTA Band ============ */
.bt-cta-band { background: linear-gradient(135deg, var(--bt-primary) 0%, var(--bt-primary-dark) 100%); color: #fff; text-align: center; padding: 64px 0; }
.bt-cta-band h2 { color: #fff; font-size: 34px; }
.bt-cta-band p { color: rgba(255,255,255,.9); font-size: 18px; margin-bottom: 28px; }

/* ============ Badges ============ */
.bt-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.bt-badge-verified { background: #FDF3E0; color: var(--bt-gold-dark); border: 1px solid var(--bt-gold); }
.bt-badge-verified::before { content: "✓"; font-weight: 800; }

/* ============ Footer ============ */
.bt-footer { background: var(--bt-navy); color: #93A5C4; padding: 56px 0 24px; font-size: 14px; }
.bt-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.bt-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.bt-footer ul { list-style: none; margin: 0; padding: 0; }
.bt-footer li { margin-bottom: 8px; }
.bt-footer a { color: #93A5C4; }
.bt-footer a:hover { color: #fff; }
.bt-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; }

/* ============ Page Content ============ */
.bt-page { padding: 56px 0; }
.bt-page-title { font-size: 40px; margin-bottom: 24px; }
.bt-page-content { max-width: 860px; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .bt-grid-3, .bt-grid-4 { grid-template-columns: 1fr 1fr; }
  .bt-hero h1 { font-size: 38px; }
  .bt-nav { display: none; }
  .bt-menu-toggle { display: block; }
  .bt-nav.bt-open { display: block; position: absolute; top: 72px; left: 0; right: 0; background: var(--bt-navy); padding: 16px 24px; }
  .bt-nav.bt-open ul { flex-direction: column; gap: 14px; }
  .bt-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .bt-grid-3, .bt-grid-4 { grid-template-columns: 1fr; }
  .bt-hero { padding: 64px 0 48px; }
  .bt-hero h1 { font-size: 30px; }
}

/* ============ Lead Forms ============ */
.bt-form-wrap { max-width: 640px; margin: 0 auto; }
.bt-form { background: var(--bt-surface); border: 1px solid var(--bt-border); border-radius: var(--bt-radius); padding: 32px; box-shadow: var(--bt-shadow); }
.bt-form label { display: block; font-weight: 600; font-size: 14px; color: var(--bt-navy); margin-bottom: 16px; }
.bt-form input[type=text], .bt-form input[type=email], .bt-form input[type=url], .bt-form select, .bt-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1px solid var(--bt-border); border-radius: 8px; font-family: var(--bt-font-body); font-size: 15px;
  background: #fff; color: var(--bt-text);
}
.bt-form input:focus, .bt-form select:focus, .bt-form textarea:focus { outline: 2px solid var(--bt-primary); border-color: var(--bt-primary); }
.bt-form .bt-btn { width: 100%; font-size: 16px; padding: 15px; }
.bt-hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.bt-alert { border-radius: 8px; padding: 14px 18px; margin-bottom: 18px; font-weight: 500; }
.bt-alert-success { background: #E8F7EE; color: var(--bt-success); border: 1px solid var(--bt-success); }
.bt-alert-error { background: #FDECEC; color: var(--bt-danger); border: 1px solid var(--bt-danger); }

/* ============ Pricing Tables ============ */
.bt-price { font-family: var(--bt-font-head); font-size: 44px; font-weight: 700; color: var(--bt-navy); margin: 8px 0 4px; }
.bt-price small { font-size: 15px; color: var(--bt-muted); font-weight: 500; }
.bt-price-card { position: relative; display: flex; flex-direction: column; }
.bt-price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.bt-price-card li { padding: 8px 0 8px 26px; position: relative; color: var(--bt-text); }
.bt-price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--bt-success); font-weight: 700; }
.bt-price-featured { border: 2px solid var(--bt-gold); }
.bt-price-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--bt-gold); color: var(--bt-navy); font-size: 13px; font-weight: 700; padding: 4px 16px; border-radius: 999px; }

/* ============ Comparison Table ============ */
.bt-table { width: 100%; border-collapse: collapse; background: var(--bt-surface); border-radius: var(--bt-radius); overflow: hidden; box-shadow: var(--bt-shadow); }
.bt-table th, .bt-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--bt-border); }
.bt-table th { background: var(--bt-navy); color: #fff; font-family: var(--bt-font-head); font-size: 14px; }
.bt-table tr:last-child td { border-bottom: 0; }
.bt-yes { color: var(--bt-success); font-weight: 700; }
.bt-no { color: var(--bt-danger); font-weight: 700; }

/* ============ Accessibility & Interaction (ui-ux-pro-max checklist) ============ */
.bt-skip-link { position: absolute; left: -9999px; top: 0; background: var(--bt-gold); color: var(--bt-navy); padding: 12px 20px; font-weight: 600; z-index: 999; border-radius: 0 0 8px 0; }
.bt-skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--bt-primary); outline-offset: 2px; border-radius: 4px;
}
.bt-btn, .bt-nav a, button { cursor: pointer; }
.bt-btn, .bt-card, .bt-nav a { transition: all .2s ease; }
.bt-card:hover { box-shadow: var(--bt-shadow-lg); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .bt-card:hover { transform: none; }
}

/* ============ SVG Icons (replaces emoji) ============ */
.bt-ico { width: 36px; height: 36px; margin-bottom: 14px; color: var(--bt-primary); }
.bt-ico svg { width: 100%; height: 100%; }

/* ============ Hero Search (Marketplace pattern) ============ */
.bt-search { display: flex; max-width: 640px; margin: 0 0 20px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--bt-shadow-lg); }
.bt-search input { flex: 1; border: 0; padding: 16px 20px; font-size: 16px; font-family: var(--bt-font-body); color: var(--bt-text); min-height: 56px; }
.bt-search input:focus { outline: none; }
.bt-search button { border: 0; background: var(--bt-gold); color: var(--bt-navy); font-family: var(--bt-font-head); font-weight: 700; font-size: 16px; padding: 0 28px; min-height: 56px; }
.bt-search button:hover { background: var(--bt-gold-dark); }
.bt-popular { color: #C9D6EA; font-size: 14px; margin-top: 4px; }
.bt-popular a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ============ Supplier Cards (Featured Listings) ============ */
.bt-sup-card { text-align: left; }
.bt-sup-card .bt-badge { margin-bottom: 10px; }
.bt-sup-meta { color: var(--bt-muted); font-size: 14px; margin-top: 10px; }

/* ============ M3: Dashboards & Directory ============ */
.bt-panel { background: var(--bt-surface); border: 1px solid var(--bt-border); border-radius: var(--bt-radius); padding: 28px; box-shadow: var(--bt-shadow); margin-bottom: 24px; }
.bt-panel h2, .bt-panel h3 { margin-top: 0; color: var(--bt-navy); }
.bt-muted { color: var(--bt-muted); }
.bt-mono { font-family: var(--bt-font-mono); font-size: 14px; }
.bt-empty { text-align: center; padding: 48px 28px; }

.bt-dash-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.bt-dash-head h2 { margin: 0; color: var(--bt-navy); }
.bt-dash-logout { margin-left: auto; font-size: 14px; color: var(--bt-muted); }
.bt-dash-company { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 18px; }

.bt-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bt-bg); color: var(--bt-muted); border: 1px solid var(--bt-border); }
.bt-pill-cyan { background: #E3F6FD; color: var(--bt-primary-dark); border-color: var(--bt-primary); }
.bt-pill-navy { background: #E8EDF7; color: var(--bt-navy); border-color: var(--bt-navy-2); }
.bt-badge-pending { background: #F1F5F9; color: var(--bt-muted); border: 1px solid var(--bt-border); }
.bt-badge-rejected { background: #FDECEC; color: var(--bt-danger); border: 1px solid var(--bt-danger); }

.bt-form-plain { box-shadow: none; border: 0; padding: 0; }
.bt-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bt-form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bt-form-actions .bt-btn { width: auto !important; }
.bt-btn-primary { background: var(--bt-primary); color: #fff; }
.bt-btn-primary:hover { background: var(--bt-primary-dark); }
.bt-btn-ghost { background: transparent; color: var(--bt-navy); border: 2px solid var(--bt-border); }
.bt-btn-danger { background: var(--bt-danger); color: #fff; }
.bt-btn-danger:hover { opacity: .9; }

.bt-login-wrap { max-width: 420px; }
.bt-login-wrap .bt-form p { margin-bottom: 14px; }
.bt-login-wrap label { display: block; font-weight: 600; font-size: 14px; color: var(--bt-navy); margin-bottom: 12px; }
.bt-login-wrap input[type=text], .bt-login-wrap input[type=password] {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1px solid var(--bt-border); border-radius: 8px; font-size: 15px;
}
.bt-login-wrap input[type=submit] { width: 100%; border: 0; background: var(--bt-gold); color: var(--bt-navy); font-family: var(--bt-font-head); font-weight: 700; font-size: 16px; padding: 14px; border-radius: 8px; cursor: pointer; }
.bt-login-wrap input[type=submit]:hover { background: var(--bt-gold-dark); }
.bt-login-wrap .login-remember label { font-weight: 400; }
.bt-login-links { text-align: center; font-size: 14px; margin-top: 14px; }

/* Directory */
.bt-dir-intro { max-width: 720px; }
.bt-dir-search { margin: 20px 0 32px; box-shadow: var(--bt-shadow); }
.bt-dir-grid { margin-bottom: 24px; }
.bt-sup-thumb { display: block; border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.bt-sup-thumb img { width: 100%; height: auto; display: block; }
.bt-sup-name { font-size: 20px; color: var(--bt-navy); margin: 8px 0; }
a.bt-sup-card { text-decoration: none; color: var(--bt-text); display: block; }
a.bt-sup-card:hover .bt-sup-name { color: var(--bt-primary-dark); }
.bt-pagination { margin: 24px 0; }
.bt-pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--bt-border); border-radius: 8px; margin-right: 6px; background: #fff; }
.bt-pagination .current { background: var(--bt-navy); color: #fff; border-color: var(--bt-navy); }

/* Company profile */
.bt-company-head { display: flex; gap: 24px; align-items: center; }
.bt-company-logo img { max-width: 160px; height: auto; border-radius: 8px; display: block; }
.bt-company-head .bt-page-title { margin-bottom: 8px; }
.bt-company-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.bt-company-side .bt-panel { position: sticky; top: 24px; }
.bt-company-side .bt-panel + .bt-panel { position: static; }
.bt-info-table th { background: var(--bt-bg); color: var(--bt-navy); width: 180px; }
.bt-info-table th, .bt-info-table td { border-bottom: 1px solid var(--bt-border); }
.bt-product-hero { border-radius: var(--bt-radius); overflow: hidden; margin: 16px 0; }
.bt-product-hero img { width: 100%; height: auto; display: block; }
.bt-company-mini .bt-btn, .bt-inquiry-panel .bt-btn { display: block; text-align: center; margin-top: 14px; }

@media (max-width: 900px) {
  .bt-company-cols { grid-template-columns: 1fr; }
  .bt-form-row { grid-template-columns: 1fr; }
  .bt-company-side .bt-panel { position: static; }
  .bt-company-head { flex-direction: column; align-items: flex-start; }
}
