
/* ================================================================
   YUNMAO TRADING — V3.1 BRAND SYSTEM
   Brand colors sampled from the supplied Design Option 1 board.
   ================================================================ */

body{color:var(--ink);background:#fff}
a{transition:color .2s ease}
::selection{background:#287BC4;color:#fff}

/* Main parent-brand lockup */
.brand-v31{
  display:flex!important;
  align-items:center;
  flex:0 0 auto;
  width:clamp(220px,22vw,292px);
  max-width:100%;
  gap:0!important;
}
.brand-lockup-v31{
  display:block;
  width:100%;
  height:auto;
  max-height:52px;
  object-fit:contain;
  object-position:left center;
}
.site-header{
  background:rgba(255,255,255,.97)!important;
  border-bottom:1px solid #dce7f1!important;
  box-shadow:0 5px 22px rgba(0,57,110,.06)!important;
}
.site-header.is-scrolled{
  background:rgba(255,255,255,.94)!important;
  box-shadow:0 12px 32px rgba(0,57,110,.12)!important;
}
.desktop-nav{gap:clamp(13px,1.55vw,24px)!important}
.nav-link{color:#46627a!important}
.nav-link:hover,.nav-link.active{color:var(--navy)!important}
.nav-link:after{background:var(--orange)!important}
.menu-toggle{border-color:#d4e1ed!important}
.menu-toggle span{background:var(--navy)!important}
.btn-orange,.btn.btn-orange{
  background:var(--orange)!important;
  color:#fff!important;
  border-color:var(--orange)!important;
  box-shadow:0 8px 20px rgba(248,118,5,.18);
}
.btn-orange:hover,.btn.btn-orange:hover{
  background:#e36a00!important;
  border-color:#e36a00!important;
  transform:translateY(-2px);
}
.brand-footer{
  width:min(285px,100%)!important;
}
.brand-footer .brand-lockup-v31{
  max-height:48px;
  filter:none;
  opacity:.96;
}
.site-footer{
  background:#062B4D!important;
  border-top:4px solid var(--orange);
}
.footer-grid h4{color:#8fc8f2!important}
.footer-grid>div>a:hover{color:#ffad58!important}
.footer-social a{border-color:#ffffff55!important}
.footer-social a:hover{background:var(--orange)!important;border-color:var(--orange)!important}
.footer-bottom{border-color:#ffffff25!important}
.topbar{background:var(--navy)!important;color:#fff!important}
.topbar-right{color:#d7e8f6!important}
.topbar-right b{color:#ffad58!important}

/* Banner imagery: retain contrast while showing the machinery clearly */
.hero-backdrop img{
  opacity:1!important;
  filter:saturate(.98) contrast(1.12) brightness(1.02)!important;
}
.hero-shade{
  background:
    linear-gradient(90deg,rgba(2,31,58,.91) 0%,rgba(2,39,72,.78) 34%,rgba(2,39,72,.49) 60%,rgba(2,39,72,.14) 100%),
    linear-gradient(0deg,rgba(2,31,58,.28),transparent 60%)!important;
}
.hero-copy h1 em,.page-hero h1 em,.line-copy h2 em{color:#8cc9f3!important}
.hero-copy p{color:#e3edf5!important}
.hero-proof .proof-mark{color:#ff9b3c!important;border-color:#ff9b3c!important}
.hero-side-card{background:rgba(0,48,91,.72)!important;border-color:#ffffff42!important}
.hero-side-card .flow-icon{background:#287bc433!important;color:#ff9b3c!important}
.page-hero-image img{
  opacity:.96!important;
  filter:saturate(.95) contrast(1.1) brightness(1.02)!important;
}
.page-hero-shade{
  background:linear-gradient(90deg,rgba(3,39,70,.91) 0%,rgba(3,39,70,.78) 35%,rgba(3,39,70,.49) 58%,rgba(3,39,70,.10) 100%)!important;
}
.page-hero-dark p,.page-hero-lines p,.page-hero-contact p{color:#e1ebf3!important}

/* Brand accent refinements */
.eyebrow{color:var(--green)!important}
.eyebrow:before{background:var(--orange)!important}
.text-link,.equipment-card-link-v24{color:var(--blue)!important}
.text-link:hover,.equipment-card-link-v24:hover{color:var(--orange)!important}
.product-card:hover,.equipment-card-v24:hover{box-shadow:0 22px 48px rgba(0,57,110,.14)!important}
.image-tag,.gallery-label{background:var(--navy)!important;color:#fff!important}
.image-corner-label{background:rgba(0,57,110,.9)!important;color:#fff!important}
.selection-steps b,.aside-number{color:var(--orange)!important}

/* V3.1 catalogue */
.equipment-card-grid-v24{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:22px!important;
}
.equipment-card-v24{
  border:1px solid #dce7f0!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(0,57,110,.055);
  transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease;
}
.equipment-card-v24:hover{
  transform:translateY(-5px);
  border-color:#9fc5e4!important;
}
.equipment-card-image-v24{
  background:#eaf3fa!important;
}
.equipment-card-image-v24 img{
  object-fit:cover;
}
.equipment-card-aux-v31 .equipment-card-image-v24 img{
  object-fit:cover;
  padding:0;
}
.equipment-card-body-v24 h3 a{color:var(--navy)!important}
.equipment-card-body-v24 p{min-height:88px}
.equipment-card-labels-v24 i{
  color:var(--green)!important;
  background:#eaf4ed!important;
}
.equipment-card-meta-v24{
  border-top:1px solid #e4edf4!important;
}
.equipment-card-meta-v24 b{color:var(--navy)!important}
.equipment-filter-btn-v24.active,.equipment-stage-btn-v24.active{
  background:var(--navy)!important;
  border-color:var(--navy)!important;
  color:#fff!important;
}
.equipment-filter-btn-v24:hover,.equipment-stage-btn-v24:hover{
  border-color:var(--blue)!important;
  color:var(--blue)!important;
}
.equipment-filter-btn-v24.active:hover,.equipment-stage-btn-v24.active:hover{color:#fff!important}
.equipment-results-count-v24 b{color:var(--orange)!important}
.equipment-lines-banner-v24{background:linear-gradient(120deg,#062b4d,#075087)!important}
.equipment-lines-visual-v24{background:rgba(255,255,255,.06)!important}
.equipment-lines-flow-v24 span{background:rgba(255,255,255,.10)!important;border:1px solid rgba(255,255,255,.16)!important;color:#fff!important}
.equipment-lines-flow-v24 b{color:#ff9b3c!important}

/* V3.1 line architecture — process map + equipment groups */
.line-architecture-v31{
  margin:42px 0 8px;
  padding:28px;
  background:linear-gradient(135deg,#f6faff 0%,#edf5fb 100%);
  border:1px solid #d9e7f2;
  border-top:4px solid var(--blue);
  border-radius:8px;
  box-shadow:0 12px 32px rgba(0,57,110,.055);
}
.line-architecture-head-v31{display:grid;grid-template-columns:1fr;gap:6px;margin-bottom:24px}
.line-architecture-kicker-v31{
  color:var(--green);
  font-size:9px;
  font-weight:900;
  letter-spacing:.18em;
}
.line-architecture-head-v31 h3{
  margin:0;
  color:var(--navy);
  font-size:clamp(22px,2.3vw,30px);
}
.line-architecture-head-v31 p{
  max-width:760px;
  margin:0;
  color:#627b8f;
  font-size:12px;
}
.line-flow-v31{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  align-items:stretch;
  gap:8px;
  margin-bottom:22px;
}
.line-flow-step-v31{
  position:relative;
  min-height:126px;
  padding:15px 12px 13px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:8px;
  background:#fff;
  border:1px solid #d9e6ef;
  border-radius:6px;
}
.line-flow-num-v31{
  width:25px;height:25px;
  display:grid;place-items:center;
  background:var(--navy);
  color:#fff;
  border-radius:50%;
  font-size:9px;
  font-weight:900;
}
.line-flow-step-v31 b{font-size:12px;color:var(--navy);line-height:1.3}
.line-flow-step-v31 small{font-size:9px;line-height:1.45;color:#6e8495}
.line-flow-arrow-v31{
  display:none;
}
.line-module-groups-v31{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.line-module-group-v31{
  padding:16px 17px;
  background:#fff;
  border:1px solid #dce7f0;
  border-radius:5px;
}
.line-module-label-v31{
  display:block;
  margin-bottom:8px;
  color:var(--green);
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
}
.line-module-group-v31 p{
  margin:0;
  color:#526c80;
  font-size:11px;
  line-height:1.7;
}
.line-output-v31{
  display:flex;
  align-items:center;
  gap:16px;
  margin-top:14px;
  padding:14px 17px;
  background:var(--navy);
  color:#fff;
  border-radius:5px;
}
.line-output-v31 span{
  flex:0 0 auto;
  color:#ffb36e;
  font-size:8px;
  font-weight:900;
  letter-spacing:.15em;
}
.line-output-v31 b{font-size:12px;line-height:1.5}
.line-config-note-v31{
  margin:12px 0 0!important;
  color:#718596!important;
  font-size:9px!important;
  line-height:1.65!important;
}

/* Responsive */
@media(max-width:1100px){
  .brand-v31{width:235px}
  .equipment-card-grid-v24{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .line-flow-v31{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  .brand-v31{width:220px}
  .brand-lockup-v31{max-height:40px}
}
@media(max-width:700px){
  .brand-v31{width:205px}
  .brand-lockup-v31{max-height:34px}
  .equipment-card-grid-v24{grid-template-columns:1fr!important}
  .line-architecture-v31{padding:19px 15px;margin-top:28px}
  .line-flow-v31{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .line-flow-step-v31{min-height:112px;padding:12px 10px}
  .line-module-groups-v31{grid-template-columns:1fr}
  .line-output-v31{align-items:flex-start;flex-direction:column;gap:7px}
}
@media(max-width:390px){
  .brand-v31{width:184px}
  .line-flow-v31{grid-template-columns:1fr 1fr}
}

/* V3.1 homepage auxiliary-equipment ribbon */
.line-support-v31-home{
  margin-top:22px;
  padding:17px 18px;
  border:1px solid #dce8f1;
  border-left:3px solid var(--orange);
  background:#f6faff;
  border-radius:5px;
}
.line-support-v31-home>b{
  display:block;
  margin-bottom:10px;
  color:var(--navy);
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.line-support-v31-home .line-support-pills-v30 span{
  background:#fff;
  border-color:#d6e3ed;
  color:#315c7c;
}

/* Mobile header: keep the brand + menu toggle only; search/CTA live in the mobile nav. */
@media (max-width: 540px) {
  .nav-actions > .nav-link,
  .nav-actions .btn-small { display: none !important; }
  .nav-actions { gap: 6px; }
  .brand-lockup-v31 { max-width: 190px; height: auto; }
}
