@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
  --zp-gold: #D4AF37;
  --zp-gold-soft: #E8C547;
  --zp-navy: #0A1B2E;
  --zp-navy-2: #132337;
  --zp-slate: #3A4A5A;
  --zp-bg: #F1F3F6;
  --zp-white: #FFFFFF;
  --bb-navy: var(--zp-navy);
  --bb-navy-2: var(--zp-navy-2);
  --bb-blue: var(--zp-gold);
  --bb-blue-2: #B8942E;
  --bb-text: var(--zp-navy);
  --bb-muted: var(--zp-slate);
  --bb-border: #dde3ea;
  --bb-soft: var(--zp-bg);
  --bb-shadow: 0 12px 32px rgba(10, 27, 46, 0.12);
  --bb-radius: 10px;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: #fff;
  color: var(--bb-text);
  font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  letter-spacing: 0;
}

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

.bb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 14px rgba(1, 35, 74, 0.08);
}

.bb-header-top {
  max-width: 1332px;
  margin: 0 auto;
  height: 82px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 270px minmax(320px, 1fr) auto;
  align-items: center;
  gap: 28px;
  direction: ltr;
}

.bb-logo img {
  width: auto;
  height: 76px;
  max-width: 200px;
  object-fit: contain;
  object-position: right center;
}

.zp-site-logo,
.irpa-brand img,
.bb-inner-brand img {
  width: auto;
  height: 76px;
  max-width: 200px;
  object-fit: contain;
  object-position: center;
}

.bb-search {
  justify-self: center;
  width: min(470px, 100%);
  height: 46px;
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #d9e3ef;
  border-radius: 999px;
  box-shadow: inset 0 1px 5px rgba(0, 34, 72, 0.04);
  overflow: hidden;
}

.bb-search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 24px 0 62px;
  color: #24435f;
  background: transparent;
  text-align: right;
}

.bb-search input::placeholder { color: #8c9aab; }

.bb-search button {
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--zp-navy);
  background: linear-gradient(180deg, var(--zp-gold-soft), var(--zp-gold));
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.bb-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  direction: rtl;
}

.bb-contact,
.bb-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bb-navy);
  font-weight: 800;
  font-size: 13px;
}

.bb-contact i,
.bb-user i,
.bb-icon-btn i {
  font-size: 25px;
  line-height: 1;
}

.bb-user span {
  line-height: 1.25;
  font-weight: 700;
}

.bb-user strong {
  font-size: 12px;
  color: var(--bb-navy-2);
}

.bb-divider {
  width: 1px;
  height: 36px;
  background: #d9e3ef;
}

.bb-icon-btn {
  position: relative;
  color: var(--bb-navy);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

.bb-cart span {
  position: absolute;
  top: -4px;
  right: -5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--bb-navy);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.bb-nav {
  height: 48px;
  background: var(--zp-navy);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.bb-nav-inner {
  max-width: 1332px;
  margin: 0 auto;
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.bb-nav a {
  height: 100%;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.bb-nav a:hover,
.bb-nav a.is-active {
  background: rgba(212, 175, 55, 0.18);
  color: var(--zp-gold-soft);
  box-shadow: inset 0 -3px 0 var(--zp-gold);
}

.bb-hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--zp-navy) 0%, #132a45 45%, #1a3550 100%);
}

.bb-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 27, 46, 0.92) 0%, rgba(10, 27, 46, 0.58) 40%, rgba(10, 27, 46, 0.22) 62%, rgba(10, 27, 46, 0.08) 100%),
    url("/assets/images/zajil/hero-race.jpg") center center / cover no-repeat;
  opacity: 1;
}

.bb-hero-inner {
  position: relative;
  max-width: 1332px;
  margin: 0 auto;
  min-height: 420px;
  padding: 48px 82px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  direction: rtl;
}

.bb-hero-brand { display: none; }

.bb-hero-copy {
  text-align: right;
  padding-top: 0;
  direction: rtl;
  z-index: 2;
}

.bb-hero-copy h1 {
  margin: 0;
  color: var(--zp-white);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.2;
}

.bb-hero-lead {
  margin: 16px 0 0;
  color: var(--zp-gold);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  line-height: 1.35;
}

.bb-hero-sub {
  margin: 14px 0 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  max-width: 520px;
}

.bb-hero-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bb-btn {
  height: 46px;
  min-width: 160px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  border: 1px solid transparent;
}

.bb-btn-primary {
  color: var(--zp-navy);
  background: linear-gradient(180deg, var(--zp-gold-soft), var(--zp-gold));
  border-color: var(--zp-gold);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.35);
}

.bb-btn-light {
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.bb-hero-bird { display: none; }
.bb-hero-arrow, .bb-hero-dots { display: none !important; }

.bb-hero-badge {
  display: table;
  margin: 0 auto 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff1c2;
  color: #8a5a00;
  border: 1px solid rgba(207, 153, 32, 0.35);
  font-size: 14px;
  line-height: 1;
}

.bb-hero--auction .bb-hero-copy h1 {
  font-size: clamp(38px, 4.1vw, 64px);
}

.bb-hero--auction .bb-hero-bird img {
  width: 350px;
  max-height: 265px;
  object-fit: contain;
  border-radius: 8px;
}

.bb-hero-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bb-hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 0;
  background: var(--bb-navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  cursor: pointer;
}

.bb-prev { right: 48px; }
.bb-next { left: 48px; }

.bb-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.bb-hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #c7d3df;
}

.bb-hero-dots button.is-active { background: var(--bb-navy); }

.bb-trust {
  max-width: 1332px;
  margin: 6px auto 18px;
  height: 64px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  background: #fff;
  box-shadow: 0 7px 24px rgba(0, 33, 74, 0.08);
}

.bb-trust-item {
  height: 42px;
  padding: 0 22px;
  border-left: 1px solid var(--bb-border);
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  column-gap: 12px;
}

.bb-trust-item:last-child { border-left: 0; }
.bb-trust-item i {
  grid-row: 1 / span 2;
  color: var(--bb-blue-2);
  font-size: 28px;
}
.bb-trust-item strong {
  font-size: 13px;
  font-weight: 900;
  color: var(--bb-navy);
}
.bb-trust-item span {
  color: #445b77;
  font-size: 11px;
  font-weight: 700;
}

.bb-category-strip {
  max-width: 1332px;
  margin: 0 auto 12px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  direction: ltr;
}

.bb-cat-card {
  position: relative;
  min-height: 132px;
  border-radius: var(--bb-radius);
  overflow: hidden;
  background: linear-gradient(135deg, #e8f5ff, #ffffff);
  box-shadow: var(--bb-shadow);
  border: 1px solid #d9e8f5;
}

.bb-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.bb-cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.88), rgba(255,255,255,.26));
}

.bb-cat-card.bb-dark::after {
  background: linear-gradient(90deg, rgba(1, 37, 78, .94), rgba(2, 54, 102, .36));
}
.bb-cat-card.bb-blue::after {
  background: linear-gradient(90deg, rgba(8, 70, 123, .88), rgba(13, 121, 192, .28));
}

.bb-cat-card > div {
  position: relative;
  z-index: 2;
  min-height: 132px;
  padding: 22px 18px 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: var(--bb-navy);
  direction: rtl;
  text-align: right;
}

.bb-cat-card.bb-dark > div,
.bb-cat-card.bb-blue > div { color: #fff; }

.bb-cat-card h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 900;
}

.bb-cat-card p {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 800;
}

.bb-cat-card span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: var(--bb-blue-2);
  display: grid;
  place-items: center;
}

.bb-content-grid {
  max-width: 1332px;
  margin: 0 auto 12px;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 12px;
  direction: ltr;
}

.bb-panel {
  min-height: 218px;
  background: #fff;
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  box-shadow: 0 8px 24px rgba(0, 37, 83, 0.07);
  padding: 12px;
  direction: rtl;
}

.bb-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.bb-panel-head h2 {
  margin: 0;
  color: var(--bb-navy);
  font-size: 17px;
  font-weight: 900;
}

.bb-panel-head a {
  color: var(--bb-blue);
  font-size: 13px;
  font-weight: 800;
}

.bb-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.bb-product {
  min-width: 0;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 5px;
}

.bb-product img {
  height: 80px;
  width: 100%;
  object-fit: contain;
  border-bottom: 1px solid #eef3f8;
}

.bb-product strong {
  color: var(--bb-navy);
  font-size: 11px;
  font-weight: 900;
}

.bb-product span {
  color: var(--bb-navy);
  font-size: 12px;
  font-weight: 900;
}

.bb-product button {
  width: 78px;
  height: 24px;
  border: 1px solid #d8e5f1;
  border-radius: 999px;
  color: var(--bb-blue-2);
  background: #fff;
  cursor: pointer;
}

.bb-auction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.bb-auction {
  min-height: 166px;
  background: #f8fbff;
  border: 1px solid #dfeaf5;
  border-radius: var(--bb-radius);
  overflow: hidden;
  display: grid;
  text-align: center;
  box-shadow: 0 8px 18px rgba(6, 42, 87, 0.07);
}

.bb-auction img {
  width: 100%;
  height: 70px;
  object-fit: cover;
}

.bb-auction strong {
  padding: 5px 7px 0;
  color: var(--bb-navy);
  font-size: 12px;
  font-weight: 900;
}

.bb-auction time {
  font-family: "Segoe UI", sans-serif;
  direction: ltr;
  color: var(--bb-navy);
  font-size: 19px;
  font-weight: 900;
}

.bb-auction span {
  color: var(--bb-navy);
  font-size: 13px;
  font-weight: 900;
}

.bb-news-list {
  display: grid;
  gap: 8px;
}

.bb-news-list a {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf2f7;
}

.bb-news-list a:last-child { border-bottom: 0; }

.bb-news-list img {
  width: 108px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
}

.bb-news-list strong {
  color: var(--bb-navy);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.bb-news-list span {
  display: block;
  margin-top: 4px;
  color: #8794a3;
  font-size: 11px;
  font-weight: 700;
}

.bb-stats {
  min-height: 86px;
  background: linear-gradient(90deg, #00366d, #052a58 55%, #003b78);
  display: grid;
  grid-template-columns: 270px repeat(5, 1fr);
  align-items: center;
  padding: 0 calc((100vw - 1332px) / 2);
  color: #fff;
  overflow: hidden;
  direction: ltr;
}

.bb-stats > div {
  min-height: 52px;
  padding: 0 28px;
  border-left: 1px solid rgba(255,255,255,.13);
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  column-gap: 12px;
  direction: rtl;
}

.bb-stats .bb-stats-brand {
  border-left: 0;
  display: flex;
  justify-content: center;
}

.bb-stats-brand img {
  width: 170px;
  filter: brightness(0) invert(1);
}

.bb-stats i {
  grid-row: 1 / span 2;
  color: #fff;
  font-size: 32px;
}

.bb-stats strong {
  font-size: 24px;
  font-weight: 900;
}

.bb-stats span {
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .bb-header-top {
    grid-template-columns: 220px 1fr;
    height: auto;
    padding-block: 12px;
  }
  .bb-header-actions {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .bb-nav {
    height: auto;
  }
  .bb-nav-inner {
    overflow-x: auto;
    justify-content: flex-start;
  }
  .bb-nav a {
    flex: 0 0 auto;
    height: 43px;
  }
  .bb-hero-inner {
    grid-template-columns: 220px 1fr 260px;
    padding-inline: 56px;
  }
  .bb-category-strip,
  .bb-content-grid {
    padding-inline: 14px;
  }
  .bb-category-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .bb-content-grid {
    grid-template-columns: 1fr;
  }
  .bb-stats {
    grid-template-columns: repeat(3, 1fr);
    padding: 14px;
  }
  .bb-stats .bb-stats-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .bb-header-top {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bb-logo,
  .bb-search {
    justify-self: center;
  }
  .bb-header-actions {
    gap: 12px;
    flex-wrap: wrap;
  }
  .bb-contact,
  .bb-divider {
    display: none;
  }
  .bb-hero {
    min-height: auto;
  }
  .bb-hero-inner {
    grid-template-columns: 1fr;
    padding: 28px 20px 48px;
    text-align: center;
  }
  .bb-hero-brand img {
    width: 150px;
    margin-inline: auto;
  }
  .bb-hero-bird {
    justify-self: center;
  }
  .bb-hero-bird img {
    width: 230px;
  }
  .bb-hero-copy h1 {
    font-size: 44px;
  }
  .bb-hero-lead {
    font-size: 22px;
  }
  .bb-hero-sub {
    font-size: 15px;
  }
  .bb-hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .bb-hero-arrow {
    display: none;
  }
  .bb-trust {
    height: auto;
    margin-inline: 14px;
    grid-template-columns: 1fr;
  }
  .bb-trust-item {
    border-left: 0;
    border-bottom: 1px solid var(--bb-border);
  }
  .bb-trust-item:last-child {
    border-bottom: 0;
  }
  .bb-category-strip {
    grid-template-columns: 1fr;
  }
  .bb-product-grid,
  .bb-auction-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bb-news-list a {
    grid-template-columns: 92px 1fr;
  }
  .bb-stats {
    grid-template-columns: 1fr;
  }
  .bb-stats > div {
    border-left: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
}

/* ─── Brand stats & features (identity guide) ─── */
.zp-stats-bar {
  background: var(--zp-white);
  border-bottom: 1px solid var(--bb-border);
  box-shadow: 0 4px 20px rgba(10, 27, 46, 0.06);
}
.zp-stats-inner {
  max-width: 1332px;
  margin: 0 auto;
  padding: 28px 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  text-align: center;
}
.zp-stat strong { display: block; font-size: 28px; font-weight: 900; color: var(--zp-navy); }
.zp-stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--zp-slate); font-weight: 600; }
.zp-stat i { display: block; font-size: 22px; color: var(--zp-gold); margin-bottom: 8px; }
.zp-features { background: var(--zp-bg); padding: 48px 18px 56px; }
.zp-features-inner {
  max-width: 1332px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.zp-feature {
  background: var(--zp-white); border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius); padding: 24px 16px; text-align: center; box-shadow: var(--bb-shadow);
}
.zp-feature i { font-size: 32px; color: var(--zp-navy); margin-bottom: 12px; display: block; }
.zp-feature h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; color: var(--zp-navy); }
.zp-feature p { margin: 0; font-size: 13px; color: var(--zp-slate); line-height: 1.55; }
.zp-slogan {
  background: var(--zp-navy); color: rgba(255,255,255,.88);
  text-align: center; padding: 32px 18px; font-size: 18px; font-weight: 700;
}
.zp-slogan em { color: var(--zp-gold); font-style: normal; }
.zp-header-auth { display: flex; align-items: center; gap: 10px; }
.zp-btn-outline {
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--zp-navy);
  color: var(--zp-navy); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; background: #fff;
}
.zp-btn-gold {
  height: 40px; padding: 0 20px; border-radius: 999px; border: 0; color: var(--zp-navy);
  font-weight: 800; font-size: 13px; display: inline-flex; align-items: center;
  background: linear-gradient(180deg, var(--zp-gold-soft), var(--zp-gold));
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}
@media (max-width: 900px) {
  .zp-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .zp-features-inner { grid-template-columns: 1fr 1fr; }
  .bb-hero-inner { grid-template-columns: 1fr; padding: 36px 24px; min-height: 360px; }
  .bb-header-top { grid-template-columns: 1fr auto; height: auto; padding: 12px 14px; gap: 12px; }
  .bb-search { display: none; }
  .zp-header-auth .zp-btn-outline span { display: none; }
}
