/*
Theme Name: YEHAO Project Engineering
Theme URI: https://example.com/
Author: YEHAO Site Team
Description: YEHAO B2B project supplier WordPress theme based on client-approved Demo B.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: yehao
*/

:root{
 --ink:#0d1515;--muted:#6e7774;--navy:#101d1f;--teal:#0d4d48;--lime:#d9e38d;--sand:#ece7dd;--paper:#f7f7f3;--white:#fff;--line:#d9ddda;--max:1320px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:var(--paper);color:var(--ink);line-height:1.55}img{display:block;max-width:100%}a{color:inherit;text-decoration:none}.container{width:min(var(--max),calc(100% - 52px));margin:auto}
.topnote{background:var(--lime);color:#22302d;text-align:center;font-weight:700;font-size:12px;padding:8px 14px}
header{background:var(--navy);color:white;position:sticky;top:0;z-index:30}.header{height:78px;display:flex;align-items:center;gap:30px}.brand{font-size:22px;font-weight:900;letter-spacing:.08em}.brand em{font-style:normal;color:var(--lime)}.nav{margin-left:auto;display:flex;gap:24px;align-items:center;font-size:13px;font-weight:700}.nav a{opacity:.88}.nav a:hover{opacity:1}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 20px;border-radius:6px;font-weight:800;font-size:13px;border:1px solid transparent}.btn.primary{background:var(--lime);color:#10211d}.btn.secondary{border-color:#9ca9a4;background:white;color:var(--teal)}.menu-toggle{display:none;margin-left:auto;background:none;border:0;color:white;font-size:24px}
.hero{background:var(--navy);color:#fff;padding:78px 0 70px}.hero-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:46px;align-items:center}.hero h1{font-size:clamp(48px,6.2vw,86px);line-height:.98;letter-spacing:-.055em;margin:0 0 24px}.hero h1 span{color:var(--lime)}.hero p{color:#bdcac5;font-size:18px;max-width:620px}.hero-media{display:grid;grid-template-columns:1.15fr .85fr;gap:12px}.hero-media img{width:100%;height:515px;object-fit:cover;border-radius:8px}.hero-media .stack{display:grid;grid-template-rows:1fr 1fr;gap:12px}.hero-media .stack img{height:251px}.hero-meta{margin-top:30px;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid rgba(255,255,255,.18)}.hero-meta div{padding:18px 18px 0 0}.hero-meta b{display:block;color:white;font-size:16px}.hero-meta span{font-size:11px;color:#8fac9f;text-transform:uppercase;letter-spacing:.1em}
.section{padding:96px 0}.section.alt{background:#edeae2}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.15em;font-weight:900;color:var(--teal);margin-bottom:12px}.section-title{display:grid;grid-template-columns:.7fr 1.3fr;gap:50px;align-items:end;margin-bottom:38px}.section-title h2{font-size:clamp(36px,4.2vw,58px);line-height:1.03;letter-spacing:-.045em;margin:0}.section-title p{color:var(--muted);max-width:720px;margin:0}
.band{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}.band a{background:white;min-height:255px;padding:28px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);transition:.2s}.band a:hover{background:var(--navy);color:white}.band a:hover p{color:#bdcac5}.band small{font-weight:900;color:#7b8a85}.band h3{font-size:25px;margin:55px 0 10px;line-height:1.12}.band p{font-size:13px;color:var(--muted)}
.feature-row{display:grid;grid-template-columns:1.3fr .7fr;gap:16px}.feature-row .big{position:relative;min-height:600px;overflow:hidden;border-radius:8px}.feature-row .big img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.feature-row .big:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 40%,rgba(9,22,20,.85))}.feature-row .overlay{position:absolute;z-index:2;bottom:30px;left:30px;right:30px;color:white}.feature-row .overlay h3{font-size:34px;max-width:650px;margin:0 0 8px}.feature-row .overlay p{color:#d7e1dd;max-width:600px}.feature-row .side{display:grid;gap:16px}.mini{background:white;border:1px solid var(--line);border-radius:8px;overflow:hidden}.mini img{width:100%;height:240px;object-fit:cover}.mini .body{padding:20px}.mini h3{font-size:20px;margin:0 0 6px}.mini p{font-size:13px;color:var(--muted);margin:0}
.metric{background:var(--teal);color:#fff;padding:54px 0}.metric-grid{display:grid;grid-template-columns:1.1fr repeat(3,1fr);gap:25px;align-items:center}.metric h2{font-size:42px;margin:0;line-height:1.05}.metric .m{border-left:1px solid rgba(255,255,255,.24);padding-left:24px}.metric .m b{display:block;font-size:17px}.metric .m span{font-size:12px;color:#c7d7d1}
.process{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.step{background:#fff;border:1px solid var(--line);border-radius:8px;padding:24px}.step span{font-size:10px;color:var(--teal);font-weight:900}.step h3{font-size:19px;margin:24px 0 8px}.step p{font-size:13px;color:var(--muted)}
.cta{background:var(--lime);padding:48px;border-radius:8px;display:flex;justify-content:space-between;align-items:center;gap:25px}.cta h2{font-size:46px;line-height:1.02;margin:0;max-width:760px}.cta p{color:#47544f;margin:7px 0 0}.cta .actions{display:flex;gap:10px}
footer{background:#091517;color:white;padding:60px 0 24px}.footer{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:35px}.footer p,.footer a{color:#adbbb6;font-size:13px}.footer a{display:block;margin:7px 0}.footer h4{font-size:11px;color:var(--lime);text-transform:uppercase;letter-spacing:.13em}
.reveal{opacity:0;transform:translateY(14px);transition:.45s}.reveal.show{opacity:1;transform:none}
@media(max-width:980px){.nav{display:none}.menu-toggle{display:block}.nav.open{display:flex;position:absolute;top:78px;left:0;right:0;background:var(--navy);padding:24px;flex-direction:column;align-items:flex-start}.hero-grid,.section-title,.feature-row,.metric-grid{grid-template-columns:1fr}.hero-media img{height:400px}.hero-media .stack img{height:194px}.band{grid-template-columns:repeat(2,1fr)}.metric .m{border-left:0;border-top:1px solid rgba(255,255,255,.2);padding:18px 0 0}.footer{grid-template-columns:1.4fr 1fr 1fr}}
@media(max-width:620px){.container{width:min(100% - 30px,var(--max))}.hero{padding:54px 0}.hero h1{font-size:47px}.hero-media{grid-template-columns:1fr}.hero-media .stack{grid-template-columns:1fr 1fr;grid-template-rows:auto}.hero-media .stack img{height:160px}.hero-meta{grid-template-columns:1fr}.band{grid-template-columns:1fr}.process{grid-template-columns:1fr 1fr}.cta{display:block;padding:30px}.cta h2{font-size:36px}.cta .actions{margin-top:18px;flex-wrap:wrap}.footer{grid-template-columns:1fr 1fr}.footer>div:first-child{grid-column:1/-1}}

/* WordPress integration */
.admin-bar header{top:32px}
.yehao-page{min-height:55vh;padding:70px 0}
.yehao-content{max-width:860px;margin:0 auto}
.yehao-content img{height:auto}
.yehao-products-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.yehao-product-card{background:#172c28;border:1px solid #35524c;border-radius:12px;overflow:hidden}
.yehao-product-card img{width:100%;aspect-ratio:4/3;object-fit:cover}
.yehao-product-card .inner{padding:22px}
.yehao-product-card h3{font-size:21px}
.yehao-product-card a{color:inherit}
.yehao-form{display:grid;gap:12px;max-width:660px}
.yehao-form input,.yehao-form select,.yehao-form textarea{width:100%;padding:14px;border:1px solid #9faeaa;border-radius:5px;background:white;color:#142620}
.yehao-form label{font-weight:600}
.yehao-form button{cursor:pointer}
.yehao-error{color:#a32a20}.yehao-success{color:#216b43}
.yehao-tax-links{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:25px}
.yehao-tax-links a{padding:8px 12px;border:1px solid #4c655d;border-radius:5px}
@media(max-width:780px){.yehao-products-grid{grid-template-columns:1fr}.admin-bar header{top:46px}}

/* V1.1 live-site refinements */
.section{padding:88px 0}
.hero{padding-top:70px}
.feature-row .big img,.mini img{object-position:center}
.feature-row .big{min-height:560px}
.band a{min-height:235px}
@media(max-width:980px){.section{padding:72px 0}}
@media(max-width:620px){.section{padding:60px 0}.feature-row .big{min-height:420px}}


/* =========================================================
   V1.2 PRODUCT CENTER
   ========================================================= */
.yh-products-hero{background:var(--navy);color:#fff;padding:76px 0 72px}
.yh-products-hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:70px;align-items:end}
.yh-products-hero h1,.yh-tax-hero h1,.yh-single-product-hero h1{font-size:clamp(46px,5.4vw,76px);line-height:.98;letter-spacing:-.052em;margin:0}
.yh-products-hero p{color:#bdcac5;font-size:18px;max-width:570px;margin:0 0 25px}
.yh-category-section,.yh-product-list-section,.yh-related-products{padding:88px 0}
.yh-category-section{background:#edeae2}
.yh-section-heading{display:grid;grid-template-columns:.8fr 1.2fr;gap:50px;align-items:end;margin-bottom:34px}
.yh-section-heading h2,.yh-two-col h2{font-size:clamp(32px,3.8vw,50px);line-height:1.04;letter-spacing:-.04em;margin:0}
.yh-section-heading p{color:var(--muted);margin:0;max-width:620px}
.yh-category-grid{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}
.yh-category-card{min-height:240px;background:white;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:26px;display:flex;flex-direction:column;justify-content:space-between;transition:.2s}
.yh-category-card:hover{background:var(--navy);color:white}
.yh-category-card:hover p,.yh-category-card:hover small{color:#bdcac5}
.yh-category-card>span{font-size:11px;font-weight:900;color:#74847e}
.yh-category-card h3{font-size:24px;margin:46px 0 8px;line-height:1.1}
.yh-category-card p{font-size:13px;color:var(--muted);margin:0 0 15px}
.yh-category-card small{font-size:11px;color:#7b8783;text-transform:uppercase;letter-spacing:.09em;font-weight:800}
.yh-products-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.yh-product-card{background:white;border:1px solid var(--line);border-radius:9px;overflow:hidden;transition:.2s}
.yh-product-card:hover{transform:translateY(-4px);box-shadow:0 14px 35px rgba(9,32,29,.08)}
.yh-product-image{display:block;background:#e8ebe8;aspect-ratio:4/3;overflow:hidden}
.yh-product-image img{width:100%;height:100%;object-fit:cover}
.yh-product-placeholder,.yh-detail-placeholder{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#dce3df,#eef0eb);color:var(--teal);font-size:20px;font-weight:900;letter-spacing:.12em}
.yh-product-card-body{padding:20px}
.yh-card-kicker{display:block;color:var(--teal);font-size:10px;text-transform:uppercase;letter-spacing:.12em;font-weight:900}
.yh-product-card h3{font-size:20px;line-height:1.15;margin:9px 0 6px}
.yh-model{font-size:11px;color:#7c8581;font-weight:800;letter-spacing:.05em}
.yh-product-card p{font-size:13px;color:var(--muted);margin:12px 0}
.yh-text-link{font-size:12px;font-weight:900;color:var(--teal)}
.yh-pagination{margin-top:38px}
.yh-empty-state{background:white;border:1px solid var(--line);padding:34px;border-radius:8px}
.yh-tax-hero{background:var(--navy);color:white;padding:58px 0 66px}
.yh-large-copy{font-size:18px;color:#6b7772;max-width:760px}
.yh-tax-hero .yh-large-copy{color:#bdcac5;margin-top:18px}
.yh-breadcrumb{display:flex;flex-wrap:wrap;gap:8px;font-size:12px;color:#71807b;margin-bottom:28px}
.yh-tax-hero .yh-breadcrumb,.yh-single-product-hero .yh-breadcrumb{color:#9fb4ac}
.yh-breadcrumb a{font-weight:700}
.yh-category-cta{padding:40px 0 86px}
.yh-single-product-hero{background:var(--navy);color:white;padding:52px 0 78px}
.yh-product-detail-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:54px;align-items:start}
.yh-product-main-media{background:white;border-radius:10px;overflow:hidden;aspect-ratio:4/3}
.yh-product-main-media img{width:100%;height:100%;object-fit:cover}
.yh-detail-placeholder{min-height:440px}
.yh-product-summary{padding-top:12px}
.yh-model-large{display:inline-flex;border:1px solid rgba(255,255,255,.22);padding:8px 11px;border-radius:5px;color:#d5e2dd;font-size:12px;font-weight:800;margin:6px 0 20px}
.yh-product-summary .yh-large-copy{color:#bdcac5}
.yh-quick-specs{display:grid;grid-template-columns:1fr 1fr;margin:26px 0;border-top:1px solid rgba(255,255,255,.18)}
.yh-quick-specs>div{padding:15px 12px 15px 0;border-bottom:1px solid rgba(255,255,255,.18)}
.yh-quick-specs span,.yh-trade-grid span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#8fa69d;font-weight:800}
.yh-quick-specs strong{display:block;margin-top:3px}
.yh-product-actions{display:flex;gap:10px;flex-wrap:wrap}
.yh-review-note{font-size:11px;color:#9ab0a8;margin-top:18px;max-width:560px}
.yh-spec-section,.yh-product-content-section,.yh-trade-section{padding:82px 0}
.yh-spec-section,.yh-trade-section{background:#edeae2}
.yh-two-col{display:grid;grid-template-columns:.75fr 1.25fr;gap:65px;align-items:start}
.yh-spec-table{width:100%;border-collapse:collapse;background:white}
.yh-spec-table th,.yh-spec-table td{padding:15px 18px;border-bottom:1px solid var(--line);text-align:left}
.yh-spec-table th{width:36%;font-size:12px;color:#68736f;background:#f8f8f5}
.yh-spec-table td{font-size:14px;font-weight:650}
.yh-trade-grid{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #cfd5d1;border-left:1px solid #cfd5d1}
.yh-trade-grid>div{background:white;padding:20px;border-right:1px solid #cfd5d1;border-bottom:1px solid #cfd5d1}
.yh-trade-grid strong{display:block;margin-top:5px}
.yh-related-products{background:#f7f7f3}
@media(max-width:980px){
  .yh-products-hero-grid,.yh-section-heading,.yh-product-detail-grid,.yh-two-col{grid-template-columns:1fr}
  .yh-category-grid{grid-template-columns:repeat(2,1fr)}
  .yh-products-grid{grid-template-columns:repeat(2,1fr)}
  .yh-trade-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:620px){
  .yh-products-hero,.yh-category-section,.yh-product-list-section,.yh-related-products,.yh-spec-section,.yh-product-content-section,.yh-trade-section{padding:58px 0}
  .yh-products-hero h1,.yh-tax-hero h1,.yh-single-product-hero h1{font-size:42px}
  .yh-category-grid,.yh-products-grid,.yh-trade-grid{grid-template-columns:1fr}
  .yh-category-card{min-height:205px}
  .yh-quick-specs{grid-template-columns:1fr}
  .yh-product-main-media{aspect-ratio:1/1}
}
