/*
Theme Name: BILI & DING Corporate Premium
Theme URI: https://biliding.com/
Author: OpenAI
Description: Thème WordPress corporate premium et responsive pour Hubei BILI & DING International Trading Co., Ltd. Compatible avec Elementor.
Version: 1.0.0
Text Domain: bili-ding-premium
*/

:root {
  --bd-green-dark: #021b11;
  --bd-green: #17c653;
  --bd-green-soft: rgba(23, 198, 83, 0.12);
  --bd-text: #0e1b13;
  --bd-text-light: #6d7a74;
  --bd-bg: #ffffff;
  --bd-bg-soft: #f5f8f6;
  --bd-border: rgba(1, 24, 11, 0.08);
  --bd-radius: 22px;
  --bd-shadow: 0 18px 45px rgba(1, 24, 11, 0.08);
  --bd-container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--bd-text);
  background: #fff;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1rem; }
h1, h2, h3, h4 {
  margin: 0 0 1rem;
  line-height: 1.15;
  color: var(--bd-text);
}
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: 1.2rem; }
ul { margin: 0; padding: 0; }

.bd-container {
  width: min(var(--bd-container), calc(100% - 40px));
  margin: 0 auto;
}

/* HEADER */
.bd-site-header {
  background: linear-gradient(90deg, #03180d 0%, #022315 60%, #03331e 100%);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 28px rgba(1, 24, 11, 0.16);
}

.bd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
}

.bd-branding {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  min-width: 0;
}

.bd-brand-link img,
.bd-brand-link .custom-logo {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
}

.custom-logo-link {
  display: block;
  line-height: 0;
}

.bd-brand-text {
  min-width: 0;
}

.bd-brand-title {
  font-size: clamp(2rem, 2vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
  white-space: nowrap;
}

.bd-brand-sub {
  color: rgba(255,255,255,.85);
  font-size: 0.88rem;
  line-height: 1.3;
  max-width: 360px;
}

.bd-primary-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.bd-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
  list-style: none;
}

.bd-menu > li {
  position: relative;
}

.bd-menu > li > a {
  display: block;
  padding: 14px 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
  border-radius: 999px;
}

.bd-menu > li:hover > a,
.bd-menu > li.current-menu-item > a,
.bd-menu > li.current-menu-ancestor > a {
  color: var(--bd-green);
  background: rgba(255,255,255,.05);
}

.bd-menu .menu-item-has-children > a::after {
  content: "▾";
  font-size: 0.72rem;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
}

.bd-menu .sub-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  list-style: none;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--bd-border);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--bd-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .2s ease;
}

.bd-menu .sub-menu li a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--bd-text);
  font-weight: 600;
}

.bd-menu .sub-menu li a:hover {
  background: var(--bd-bg-soft);
  color: var(--bd-green);
}

.bd-menu > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bd-header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.bd-lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
}

.bd-lang-switcher span {
  color: rgba(255,255,255,.76);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.bd-lang-switcher .is-current {
  color: #fff;
}

.bd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  background: var(--bd-green);
  color: #fff;
  box-shadow: 0 16px 26px rgba(23, 198, 83, 0.25);
}

.bd-btn:hover { transform: translateY(-1px); }
.bd-btn-small { padding: 14px 22px; }

.bd-btn-outline,
.bd-btn-outline-light {
  background: transparent;
  box-shadow: none;
  border: 1px solid currentColor;
}

.bd-btn-outline {
  color: var(--bd-green);
}

.bd-btn-outline-light {
  color: #fff;
}

.bd-mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.bd-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 999px;
}

/* MAIN */
.bd-site-main {
  min-height: 60vh;
}

.bd-section,
.bd-page-content {
  padding: 78px 0;
}

.bd-section-muted { background: var(--bd-bg-soft); }
.bd-section-dark {
  background: linear-gradient(180deg, #03180d 0%, #06361f 100%);
  color: #fff;
}
.bd-section-dark h2,
.bd-section-dark h3,
.bd-section-dark p,
.bd-section-dark li {
  color: #fff;
}

.bd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(255,255,255,.9);
  margin-bottom: 18px;
}

.bd-kicker-green {
  color: var(--bd-green);
}

.bd-section-title {
  max-width: 760px;
  margin-bottom: 28px;
}

.bd-hero,
.bd-hero-mini {
  position: relative;
  color: #fff;
  padding: 90px 0;
  background-size: cover;
  background-position: center;
  background-image:
    linear-gradient(90deg, rgba(2,27,17,.92) 0%, rgba(3,46,24,.8) 50%, rgba(2,27,17,.78) 100%),
    var(--bg, none);
}

.bd-hero {
  min-height: 76vh;
  display: flex;
  align-items: center;
}

.bd-hero-grid,
.bd-grid-2,
.bd-grid-3,
.bd-grid-4 {
  display: grid;
  gap: 26px;
}

.bd-hero-grid,
.bd-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bd-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bd-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.bd-hero h1,
.bd-hero-mini h1 {
  color: #fff;
  max-width: 760px;
  margin-bottom: 20px;
}

.bd-hero p,
.bd-hero-mini p {
  color: rgba(255,255,255,.92);
  max-width: 720px;
  font-size: 1.05rem;
}

.bd-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.bd-hero-card {
  display: flex;
  align-items: end;
  justify-content: end;
}

.bd-card {
  background: #fff;
  border: 1px solid var(--bd-border);
  border-radius: var(--bd-radius);
  padding: 28px;
  box-shadow: var(--bd-shadow);
}

.bd-card h3 { margin-bottom: 12px; }

.bd-card-overlay {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  color: #fff;
  border-color: rgba(255,255,255,.12);
  max-width: 420px;
}

.bd-card-overlay h3,
.bd-card-overlay p { color: #fff; }

.bd-image-card img,
.bd-service-card img,
.bd-product-card img,
.bd-team-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
}

.bd-service-card,
.bd-product-card,
.bd-team-card {
  background: #fff;
  border: 1px solid var(--bd-border);
  border-radius: var(--bd-radius);
  padding: 18px;
  box-shadow: var(--bd-shadow);
}

.bd-service-card h3,
.bd-product-card h3,
.bd-team-card h3 {
  margin-top: 16px;
  margin-bottom: 10px;
}

.bd-team-role {
  display: inline-flex;
  margin-top: 4px;
  margin-bottom: 12px;
  color: var(--bd-green);
  font-weight: 800;
  font-size: 0.9rem;
}

.bd-link,
.bd-link-invert {
  color: var(--bd-green);
  font-weight: 800;
}

.bd-link-invert { color: #fff; }

.bd-check-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.bd-check-list li {
  position: relative;
  padding-left: 30px;
}

.bd-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--bd-green);
  font-weight: 900;
}

.bd-card-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bd-card-dark {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  color: #fff;
  box-shadow: none;
}

.bd-faq-list {
  display: grid;
  gap: 16px;
}

.bd-faq-item {
  background: #fff;
  border: 1px solid var(--bd-border);
  border-radius: 18px;
  overflow: hidden;
}

.bd-faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--bd-text);
  cursor: pointer;
  position: relative;
}

.bd-faq-question::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--bd-green);
}

.bd-faq-item.is-open .bd-faq-question::after {
  content: "−";
}

.bd-faq-answer {
  display: none;
  padding: 0 24px 24px;
  color: var(--bd-text-light);
}

.bd-faq-item.is-open .bd-faq-answer {
  display: block;
}

.bd-contact-form {
  display: grid;
  gap: 14px;
}

.bd-contact-form label {
  font-weight: 700;
  font-size: .95rem;
}

.bd-contact-form input,
.bd-contact-form textarea,
.bd-contact-form select {
  width: 100%;
  border: 1px solid rgba(1,24,11,.12);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  background: #fff;
}

.bd-contact-form textarea { resize: vertical; }

.bd-contact-box {
  align-self: start;
}

.bd-testimonials .bd-card {
  padding: 24px;
}

/* FOOTER */
.bd-site-footer {
  background: linear-gradient(180deg, #021b11 0%, #01170d 100%);
  color: #fff;
  padding-top: 70px;
}

.bd-site-footer h3,
.bd-site-footer h4,
.bd-site-footer p,
.bd-site-footer a {
  color: #fff;
}

.bd-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}

.bd-footer-menu {
  list-style: none;
  display: grid;
  gap: 10px;
}

.bd-footer-menu a {
  color: rgba(255,255,255,.86);
}

.bd-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0;
  margin-top: 42px;
}

/* WORDPRESS */
.screen-reader-text {
  position: absolute;
  left: -9999px;
}

.alignwide,
.alignfull {
  width: 100%;
}

/* RESPONSIVE */
@media (max-width: 1220px) {
  .bd-menu > li > a {
    padding-inline: 8px;
    font-size: 0.96rem;
  }

  .bd-brand-sub {
    max-width: 290px;
  }
}

@media (max-width: 1040px) {
  .bd-header-inner {
    min-height: 86px;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .bd-mobile-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .bd-primary-nav {
    width: 100%;
    order: 3;
    display: none;
  }

  .bd-primary-nav.is-open {
    display: block;
  }

  .bd-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 0 6px;
  }

  .bd-menu > li > a {
    padding: 14px 12px;
  }

  .bd-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    padding: 4px 0 8px 18px;
    background: transparent;
  }

  .bd-menu .sub-menu li a {
    color: rgba(255,255,255,.86);
    padding: 10px 12px;
  }

  .bd-header-tools {
    gap: 10px;
  }

  .bd-hero-grid,
  .bd-grid-2,
  .bd-grid-3,
  .bd-grid-4,
  .bd-footer-grid,
  .bd-card-group {
    grid-template-columns: 1fr;
  }

  .bd-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .bd-container {
    width: min(var(--bd-container), calc(100% - 24px));
  }

  .bd-brand-link img,
  .bd-brand-link .custom-logo {
    width: 62px;
    height: 62px;
  }

  .bd-brand-title {
    font-size: 1.55rem;
  }

  .bd-brand-sub {
    font-size: 0.82rem;
    max-width: 220px;
  }

  .bd-lang-switcher {
    display: none;
  }

  .bd-btn-small {
    padding: 12px 16px;
  }

  .bd-site-header {
    position: static;
  }

  .bd-section,
  .bd-page-content,
  .bd-hero,
  .bd-hero-mini {
    padding: 56px 0;
  }

  .bd-service-card img,
  .bd-product-card img,
  .bd-team-card img,
  .bd-image-card img {
    height: 220px;
  }
}
