/*
Theme Name: Boniu Bearing
Author: Zhejiang Boniu Bearing Co., Ltd.
Description: Custom industrial catalogue homepage with original product photography, responsive navigation and email enquiry drafts. Settings: Appearance > Customize > Boniu 首页设置.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boniu-bearing
*/
:root{--navy:#102848;--blue:#0069ce;--ink:#162b46;--muted:#53657b;--line:#dce4ec;--pale:#eff3f7;--white:#fff}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:105px}body{margin:0;background:#fff;color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.65}img{max-width:100%;height:auto;display:block}button,input,textarea{font:inherit}a{color:inherit;text-decoration:none}button,a{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #da9438;outline-offset:5px}button{cursor:pointer}.wrap{width:min(1200px,calc(100% - 80px));margin:auto}.section{padding:86px 0}.eyebrow{font-size:11px;letter-spacing:.21em;font-weight:700;margin:0 0 15px;color:#527294}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.16;letter-spacing:-.035em;color:var(--navy)}h1{font-size:clamp(38px,4.1vw,60px);margin-bottom:24px;max-width:650px}h2{font-size:clamp(30px,3vw,43px);margin-bottom:18px}h3{font-size:19px;letter-spacing:-.018em}p{color:var(--muted)}.button{border:1px solid var(--blue);background:var(--blue);border-radius:4px;padding:13px 22px;display:inline-flex;align-items:center;justify-content:center;gap:22px;color:white;font-size:13px;font-weight:700;line-height:1.4;transition:background .18s,transform .18s}.button:hover{background:#0058ae;transform:translateY(-1px)}.button.outline{background:transparent;color:var(--blue)}.button.outline:hover{background:#eaf3fc}.site-header{height:90px;background:white;border-bottom:1px solid #e8edf3;position:sticky;top:0;z-index:20}.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:10px;color:#064f98;font-weight:800;font-size:19px;letter-spacing:-.04em;white-space:nowrap}.brand img{width:39px;height:48px;object-fit:contain}.brand-light{font-weight:500;margin-left:4px}#primary-nav{display:flex;align-items:center;gap:25px;font-size:12px;font-weight:600}#primary-nav>a:not(.button){padding:15px 0;position:relative}#primary-nav>a:hover{color:var(--blue)}#primary-nav>a[aria-current="location"]:after{content:'';position:absolute;height:2px;background:var(--blue);bottom:7px;left:0;right:0}.nav-quote{margin-left:8px;padding:12px 15px;font-size:12px;gap:12px}.menu-toggle{display:none}.hero{background:linear-gradient(110deg,#fff 32%,#f3f6f9 100%);overflow:hidden;border-bottom:1px solid var(--line)}.hero-grid{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;min-height:525px;gap:25px}.hero-copy{padding:58px 0 40px;position:relative;z-index:1}.intro{max-width:510px;font-size:16px;line-height:1.75;margin-bottom:28px}.actions{display:flex;gap:14px;flex-wrap:wrap}.hero-benefits{list-style:none;padding:0;margin:43px 0 0;display:flex;gap:0;font-size:11px;line-height:1.5;color:#334c69}.hero-benefits li{padding:0 17px;display:flex;align-items:center;border-right:1px solid #cfd9e3;gap:9px}.hero-benefits li:first-child{padding-left:0}.hero-benefits li:last-child{border:0}.feature-icon{font-size:31px;color:#477ca9;font-weight:400}.hero-visual{height:405px;position:relative}.hero-orbit{position:absolute;width:90%;height:75%;left:7%;top:12%;border:1px solid #dce5ed;border-radius:50%;transform:rotate(-23deg);background:radial-gradient(ellipse,#fff,#edf2f6)}.hero-visual img{position:absolute;object-fit:contain;filter:drop-shadow(0 20px 12px rgba(56,49,28,.13))}.hero-straight{width:57%;left:0;top:29%;z-index:2}.hero-flanged{width:51%;right:0;top:0;z-index:1}.hero-caption{position:absolute;bottom:5px;right:7%;font-size:9px;letter-spacing:.2em;color:#688095}.products{background:var(--pale);padding-top:62px;padding-bottom:64px}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:50px;margin-bottom:30px}.section-heading h2{margin:0}.section-heading>p{font-size:14px;max-width:410px;margin-bottom:4px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.product-card{background:white;padding:13px;border-radius:5px;display:flex;flex-direction:column;border:1px solid #e7edf2;transition:box-shadow .2s}.product-card:hover{box-shadow:0 9px 28px #172d4410}.product-image{height:213px;background:#f6f8fa;display:flex;align-items:center;justify-content:center;overflow:hidden}.product-image img{width:auto;height:auto;max-height:185px;max-width:86%;object-fit:contain}.product-copy{padding:17px 3px 7px;display:flex;flex-direction:column;flex:1}.product-copy h3{margin:0 0 10px;font-size:18px}.product-copy p{font-size:13px;line-height:1.65;margin-bottom:16px}.text-link{padding:0;background:none;border:0;color:var(--blue);font-size:13px;font-weight:700;display:inline-flex;align-items:center;gap:16px;align-self:flex-start;margin-top:auto}.text-link:hover{text-decoration:underline}.custom-band{background:var(--navy);color:white;overflow:hidden}.band-inner{padding:46px 0;display:flex;align-items:center;position:relative}.band-inner>div:first-child{position:relative;z-index:2}.custom-band h2{color:white;margin-bottom:13px}.custom-band p{color:#c9d7e6;font-size:14px}.custom-band .eyebrow{color:#9cb6d3;font-size:10px}.drawing{position:absolute;width:380px;height:270px;right:0;opacity:.27;transform:rotate(-25deg)}.ring{position:absolute;border:1px solid #c3d9ee;width:205px;height:160px;border-radius:50%;top:30px;left:45px;box-shadow:inset 0 0 0 15px #ffffff08}.ring:after{content:'';position:absolute;inset:30px;border:1px solid #c3d9ee;border-radius:50%}.ring-two{top:100px;left:115px}.drawing span{position:absolute;bottom:0;font-size:8px;letter-spacing:3px}.factory .section-heading>p{max-width:450px}.factory-photo{width:100%;max-height:440px;object-fit:cover;margin:25px 0 35px;border-radius:5px}.process-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:36px;margin-top:40px}.process-grid article{border-top:1px solid #d5dfe8;padding-top:20px}.process-grid span{color:#2879bd;font-size:12px;font-weight:bold}.process-grid h3{margin:12px 0;font-size:20px}.process-grid p{font-size:14px;margin:0}.about-section{background:#f3f6f8;padding:64px 0}.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}.about-grid h2{font-size:35px;margin:0}.about-grid p:not(.eyebrow){font-size:15px}.contact-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:75px}.contact-grid>div>p:not(.eyebrow){font-size:15px}.contact-panel{padding:28px;background:#f4f7fa;border:1px solid #e0e7ee;border-radius:5px}.contact-panel h3{font-size:24px}.contact-panel ul{padding-left:20px;color:var(--muted);font-size:15px}.contact-email{color:var(--blue);font-weight:bold;overflow-wrap:anywhere}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}label{display:block;font-size:12px;color:#314d6c;font-weight:700;margin-bottom:16px}input,textarea{width:100%;background:white;border:1px solid #cdd8e3;border-radius:3px;padding:10px 12px;color:var(--ink);font-size:14px;margin-top:5px}textarea{resize:vertical;min-height:115px}.small{font-size:12px;line-height:1.6}.setup-note{font-size:13px;border-left:3px solid var(--blue);padding-left:12px}.footer{border-top:1px solid var(--line);padding:28px 0;background:white}.footer-inner{display:flex;align-items:center;gap:25px;flex-wrap:wrap}.footer .brand{font-size:14px}.footer .brand img{width:27px;height:34px}.footer p{font-size:10px;margin:0;border-left:1px solid #c6d4e1;padding-left:22px}.footer nav{display:flex;gap:20px;font-size:10px;margin-left:auto}.product-dialog{border:0;border-radius:8px;padding:45px;max-width:820px;width:calc(100% - 32px);max-height:90vh;overflow:auto;color:var(--ink);box-shadow:0 25px 80px #061f4b44}.product-dialog[open]{display:grid;grid-template-columns:.7fr 1fr;gap:32px;align-items:center}.product-dialog::backdrop{background:#071c37aa}.product-dialog img{width:100%;height:240px;object-fit:contain}.product-dialog h2{font-size:30px}.product-dialog h3{font-size:16px;margin-top:24px}.product-dialog p{font-size:14px}.dialog-close{position:absolute;right:13px;top:8px;background:none;border:0;font-size:30px;color:var(--navy);padding:4px 10px}.page-content{min-height:65vh}.page-content article{margin-bottom:48px}.page-content h1{font-size:40px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-100px;left:12px;background:white;color:var(--navy);padding:10px;z-index:200}.skip-link:focus{top:5px}.admin-bar .site-header{top:32px}
@media(min-width:1500px){.hero-grid{min-height:565px}.hero-visual{height:430px}}
@media(max-width:1050px){.wrap{width:calc(100% - 48px)}#primary-nav{gap:16px}.brand{font-size:16px}.brand img{width:32px;height:42px}.nav-quote{padding:11px;font-size:11px}.hero-benefits li{padding:0 10px}.hero-grid{gap:10px}.hero-visual{height:340px}.product-copy h3{font-size:16px}.contact-grid{gap:36px}.footer nav{margin-left:0}}
@media(max-width:850px){.site-header{height:74px}.menu-toggle{display:flex;gap:12px;align-items:center;background:white;border:1px solid #d2dde7;border-radius:4px;padding:8px 13px;color:var(--navy);font-size:13px}#primary-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;padding:20px 24px;border-bottom:1px solid #d8e3ed;box-shadow:0 18px 22px #122c4410;align-items:stretch;gap:0}#primary-nav.is-open{display:flex;flex-direction:column}#primary-nav>a:not(.button){padding:12px 0}.nav-quote{margin:12px 0 0;align-self:flex-start}.hero-grid{grid-template-columns:1fr 1fr}.hero-benefits{flex-wrap:wrap;gap:15px}.hero-benefits li{border:0;padding:0}.hero-visual{height:300px}.product-grid{gap:15px}.product-image{height:165px}.product-image img{max-height:145px}.section-heading{gap:25px}.contact-grid{grid-template-columns:1fr 1fr;gap:28px}.form-row{grid-template-columns:1fr;gap:0}.about-grid{gap:32px}.process-grid{gap:24px}}
@media(max-width:600px){html{scroll-padding-top:90px}.wrap{width:calc(100% - 36px)}.section{padding:52px 0}.hero-grid{display:flex;flex-direction:column;gap:0}.hero-copy{padding:38px 0 0;width:100%}h1{font-size:39px;max-width:390px;margin-bottom:18px}.intro{font-size:14px;margin-bottom:23px}.eyebrow{font-size:9px}.button{padding:12px 17px;font-size:12px;gap:14px}.hero-benefits{margin-top:26px;justify-content:space-between;gap:8px;font-size:9px}.feature-icon{font-size:25px}.hero-benefits li{gap:5px}.hero-visual{height:265px;width:min(360px,100%);margin:18px 0 20px}.hero-straight{width:55%;top:29%}.hero-flanged{width:48%}.hero-caption{bottom:0;font-size:7px}.section-heading{display:block;margin-bottom:24px}.section-heading>p{margin-top:17px;font-size:13px}.product-grid{grid-template-columns:1fr;gap:17px}.product-image{height:220px}.product-image img{max-height:190px}.product-copy{padding:17px 9px 12px}.product-copy h3{font-size:21px}.product-copy p{font-size:14px}.text-link{font-size:14px}.band-inner{padding:37px 0}.custom-band h2{font-size:33px}.custom-band p{max-width:280px;font-size:13px}.drawing{right:-140px;opacity:.12}.process-grid{grid-template-columns:1fr;gap:25px;margin-top:30px}.about-section{padding:45px 0}.about-grid,.contact-grid{grid-template-columns:1fr;gap:25px}.about-grid h2{font-size:30px}.contact-panel{padding:22px}.footer-inner{gap:14px}.footer p{border:0;padding-left:0;width:100%}.footer nav{gap:16px;flex-wrap:wrap;font-size:11px}.product-dialog[open]{grid-template-columns:1fr;padding:35px 23px;gap:12px}.product-dialog img{height:170px}.product-dialog h2{font-size:27px}.admin-bar .site-header{top:46px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important}}
/* Keep supplied white photo backgrounds visually integrated without changing image files. */
.hero-visual img{filter:none;mix-blend-mode:multiply}.product-image img{width:86%;height:185px;mix-blend-mode:multiply}
@media(max-width:850px) and (min-width:601px){.product-image img{height:145px}}
@media(max-width:600px){.product-image img{height:190px}}
