/* ============================================
   BIBI GENERAL TRADING — Design Tokens
   Ink:     #1C1815  (near-black, warm undertone)
   Orange:  #E0691C  (brand primary)
   Steel:   #6B6459  (muted graphite — automotive)
   Saddle:  #9C6B3E  (leather tan — leather line)
   Paper:   #F6F2EB  (warm off-white background)
   Line:    #DED5C4  (hairline rule)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #1C1815;
  --orange: #E0691C;
  --orange-dark: #B85315;
  --steel: #6B6459;
  --saddle: #9C6B3E;
  --paper: #F6F2EB;
  --paper-dim: #EFE9DD;
  --line: #DED5C4;
  --white: #FFFFFF;

  --display: 'Bebas Neue', Impact, sans-serif;
  --body: 'IBM Plex Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;

  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  letter-spacing: 0.02em;
  line-height: 1.05;
  font-weight: 400;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 46px; width: auto; }

.brand-name {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.03em;
  line-height: 1;
}

.brand-name span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--steel);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }

.nav a.active { color: var(--orange-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.btn:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-orange {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}
.btn-orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

/* ---------------- Hero ---------------- */
.hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-size: clamp(44px, 6.5vw, 92px);
  max-width: 900px;
  margin: 18px 0 26px;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero p.lede {
  font-size: 18px;
  max-width: 560px;
  color: var(--steel);
  margin-bottom: 36px;
}

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

/* ---------------- Route diagram (signature element) ---------------- */
.route {
  padding: 56px 0 72px;
  overflow-x: auto;
}

.route svg { width: 100%; height: auto; min-width: 640px; }

.route-caption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  text-align: center;
  margin-top: 18px;
}

/* ---------------- Sections ---------------- */
section { padding: 88px 0; }
section.tight { padding: 64px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 52px);
  margin-top: 10px;
}

.section-head p {
  max-width: 420px;
  color: var(--steel);
  font-size: 15px;
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
}

/* ---------------- Two-lane (auto / leather) ---------------- */
.lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.lane {
  background: var(--paper);
  padding: 48px;
  position: relative;
}

.lane.auto { border-top: 3px solid var(--steel); }
.lane.leather { border-top: 3px solid var(--saddle); }

.lane .tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: inline-block;
}
.lane.auto .tag { color: var(--steel); }
.lane.leather .tag { color: var(--saddle); }

.lane h3 { font-size: 34px; margin-bottom: 16px; }
.lane p { color: var(--steel); margin-bottom: 24px; font-size: 15px; }

.lane ul { list-style: none; }
.lane li {
  font-size: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}
.lane li:first-of-type { border-top: none; }
.lane li .spec { font-family: var(--mono); color: var(--steel); font-size: 12px; }

@media (max-width: 800px) {
  .lanes { grid-template-columns: 1fr; }
}

/* ---------------- Cards / grid ---------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  border: 1px solid var(--line);
  padding: 32px;
  background: var(--white);
}

.card .num {
  font-family: var(--mono);
  color: var(--orange);
  font-size: 13px;
  margin-bottom: 18px;
  display: block;
}

.card h4 { font-size: 22px; margin-bottom: 12px; }
.card p { color: var(--steel); font-size: 14px; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* ---------------- Stats strip ---------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 32px;
  border-left: 1px solid var(--line);
  text-align: center;
}
.stat:first-child { border-left: none; }

.stat .figure {
  font-family: var(--display);
  font-size: 44px;
  color: var(--orange);
}
.stat .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 6px;
}

@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
}

/* ---------------- Spec table ---------------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.spec-table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 500;
}

/* ---------------- CTA band ---------------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0;
}
.cta-band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.cta-band h2 { color: var(--paper); font-size: clamp(28px, 4vw, 44px); max-width: 560px; }
.cta-band .eyebrow { color: var(--orange); }

/* ---------------- Footer ---------------- */
.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h5 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a:hover { color: var(--orange); }

.footer-brand img { height: 38px; margin-bottom: 14px; }
.footer-brand p { color: var(--steel); font-size: 14px; max-width: 320px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--steel);
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------------- Contact page ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-item {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.contact-item:first-child { border-top: none; }
.contact-item .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.contact-item .value { font-size: 20px; }
.contact-item a:hover { color: var(--orange); }

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------------- Page header (non-home pages) ---------------- */
.page-head {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(38px, 5vw, 64px); margin-top: 14px; }
.page-head p { color: var(--steel); max-width: 540px; margin-top: 18px; font-size: 16px; }

/* ---------------- Responsive nav ---------------- */
@media (max-width: 860px) {
  .nav { position: fixed; top: 84px; left: 0; right: 0; bottom: 0;
    background: var(--paper); flex-direction: column; align-items: flex-start;
    padding: 32px; gap: 24px; transform: translateX(100%);
    transition: transform 0.25s ease; overflow-y: auto; }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 20px; }
  .nav-toggle { display: flex; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .grid-3 { gap: 20px; }
  .lane { padding: 32px 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
