/*
Theme Name: soonhi.cn
Theme URI: https://www.soonhi.cn/
Author: Soonhi
Description: Soonhi Graphite Electrode — rebuilt on the original saturnthemes-industry layout, no page builder.
Version: 2.0.0
Text Domain: soonhi-cn
*/

/* ------------------------------------------------------------------
 * Home hero slider
 * ---------------------------------------------------------------- */
.sh-hero{position:relative;height:600px;overflow:hidden;background:#111}
.sh-hero-slide{position:absolute;inset:0;background-size:cover;background-position:center center;opacity:0;transition:opacity .8s ease;display:flex;align-items:center;justify-content:center;text-align:center}
.sh-hero-slide:before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.35)}
.sh-hero-slide.is-active{opacity:1;z-index:2}
.sh-hero-inner{position:relative;z-index:3;max-width:1100px;padding:0 20px;color:#fff}
.sh-hero-line{font-size:50px;line-height:1.1;font-weight:700;color:#fff;margin:0 0 6px;text-transform:none}
h2.sh-hero-line{font-size:50px}
.sh-hero-sub{font-size:18px;line-height:1.6;color:rgba(255,255,255,.92);margin:18px 0 26px}
.sh-hero .button.primary-button{display:inline-block}
.sh-hero-nav{position:absolute;left:0;right:0;bottom:34px;z-index:4;text-align:center}
.sh-hero-nav span{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;margin:0 5px;border:1px solid rgba(255,255,255,.6);color:#fff;cursor:pointer}
.sh-hero-nav span:hover{background:#890000;border-color:#890000}

/* ------------------------------------------------------------------
 * Section rhythm (mirrors the original vc_custom_* paddings)
 * ---------------------------------------------------------------- */
.sh-section{padding:50px 0 30px}
.sh-section-about{border-top:1px solid #eee;padding:54px 0 59px}
.sh-section-products{padding:50px 0 30px}
.sh-section-logos{background:#eee;padding:54px 0 59px}
.sh-section-equipment{padding:45px 0 26px}
.sh-section-subscribe{padding:80px 0 60px}
.sh-band{position:relative;background-size:cover;background-position:center center;padding:46px 0 26px;color:#fff}
.sh-band:before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.45)}
.sh-band>.container,.sh-band>.sh-band-quote-inner{position:relative;z-index:2}
.sh-band-quote{padding:50px 0 55px;text-align:center}
.sh-band-quote:before{background:rgba(0,0,0,.28)}
.sh-quote-line{font-size:26px;line-height:1.6;color:#fff;font-weight:400;margin:0}
.sh-quote-line.primary-color strong{font-weight:700}
.sh-quote-name{font-size:16px;color:#fff;font-weight:700;margin:6px 0 0}
.sh-quote-note{max-width:760px;color:rgba(255,255,255,.9);font-size:15px;line-height:1.8;margin-top:16px}

/* logo strip */
.sh-logo-row{display:flex;flex-wrap:wrap;align-items:center}
.sh-logo-item{text-align:center;padding:10px 8px}
.sh-logo-item img{max-width:100%;max-height:58px;width:auto;height:auto;display:inline-block;filter:grayscale(0);opacity:.95}

/* equipment thumbs */
.sh-section-equipment .staff-content{margin-bottom:18px}
.sh-section-equipment .staff-content-img,.sh-section-equipment .staff-content img{width:100%;height:auto;display:block}
.sh-section-equipment .staff-content-title{font-size:14px;line-height:1.35;margin:10px 0 0;min-height:38px}

/* news band */
.sh-news-row{display:flex;flex-wrap:wrap;gap:40px;max-width:900px}
.sh-news-row .sh-news-item{flex:1 1 300px;min-width:260px}
.sh-news-row .entry-title{font-size:18px;line-height:1.4;margin:0 0 10px}
.sh-news-row .entry-title a{color:#fff}
.sh-news-row .entry-title a:hover{color:#fff;text-decoration:underline}
.sh-news-row .posted-on{color:rgba(255,255,255,.6);font-size:13px}

/* contact strip */
.sh-contact-strip{position:relative;background-size:cover;background-position:center center;padding:15px 0 50px}
.sh-contact-strip .icon-box{background:rgba(0,0,0,.5);margin-bottom:15px}
.sh-contact-strip .icon-box-icon{background:rgba(0,0,0,.4)}
.sh-contact-strip .icon-box-title{color:rgba(255,255,255,.4)}
.sh-contact-strip .icon-box-desc{color:#fff}
.sh-contact-strip .icon-box-desc a{color:#fff}

/* ------------------------------------------------------------------
 * Header / topbar fixes
 * ---------------------------------------------------------------- */
.site-topbar .header-contact-info{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:26px}
.site-topbar .header-contact-info li{display:flex;align-items:center;gap:8px;margin:0}
.site-topbar .header-contact-info a{color:#fff}
.site-topbar .social-links li a .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.site-topbar .social-links{display:flex;justify-content:flex-end;align-items:center;gap:14px;list-style:none;margin:0;padding:0}
.site-topbar .social-links li.text{display:none}
.site-topbar .btn{display:inline-flex;align-items:center;gap:8px;line-height:50px;padding:0 18px;color:#fff}
.site-topbar .btn .link-title{text-transform:uppercase}

/* page title band on inner pages */

/* content basics */
.entry-content img,.page-content img{max-width:100%;height:auto}

/* social icons supplied by href (theme pseudo elements) */
.site-topbar .social-links li a[href*="wa.me"]:before,
.site-footer .social-links li a[href*="wa.me"]:before{content:"\f232"}

/* search overlay */
.full-screen-search-container{display:none}
body.sh-search-open .full-screen-search-container{display:block}

/* scrollup */
.scrollup{position:fixed;right:24px;bottom:24px;z-index:99;width:40px;height:40px;background:#890000;color:#fff;text-align:center;line-height:40px;cursor:pointer;display:none}
.scrollup.is-visible{display:block}

@media (max-width:991px){
  .sh-hero{height:460px}
  .sh-hero-line,h2.sh-hero-line{font-size:34px}
  .sh-hero-sub{font-size:16px}
}
@media (max-width:767px){
  .sh-hero{height:325px}
  .sh-hero-line,h2.sh-hero-line{font-size:26px}
  .sh-hero-sub{font-size:14px;margin:12px 0 18px}
  .sh-section{padding:36px 0 22px}
  .sh-section-about,.sh-section-logos,.sh-section-subscribe{padding:40px 0}
  .sh-band{padding:36px 0 22px}
  .sh-quote-line{font-size:20px}
  .site-topbar{display:none}
}

/* parallax rows imported from the original theme (background now server-side) */
.sh-parallax{position:relative;color:#fff}
.sh-parallax:before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.45);z-index:1}
.sh-parallax>.wpb_column,.sh-parallax>div{position:relative;z-index:2}
.sh-parallax h1,.sh-parallax h2,.sh-parallax h3,.sh-parallax p{color:#fff}
.sh-parallax .vc_custom_heading.heading p{color:rgba(255,255,255,.55)}


/* full-bleed parallax bands inside the 1170 container */
.entry-content .sh-parallax{width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);max-width:100vw}
@media (max-width:1200px){.entry-content .sh-parallax{width:auto;margin-left:-15px;margin-right:-15px}}

/* RFQ form (replaces the old Contact Form 7 markup) */
.sh-form-wrap{margin-top:18px}
.sh-form-wrap .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 22px}
.sh-form-wrap .form-grid .full{grid-column:1/-1}
.sh-form-wrap label{display:block;font-size:13px;font-weight:700;margin-bottom:6px;color:#454545}
.sh-form-wrap input[type=text],.sh-form-wrap input[type=email],.sh-form-wrap input[type=tel],.sh-form-wrap select,.sh-form-wrap textarea{width:100%;border:1px solid #ddd;background:#fff;padding:10px 12px;font-size:14px;line-height:1.5;color:#454545;border-radius:0}
.sh-form-wrap textarea{min-height:110px;resize:vertical}
.sh-form-wrap input:focus,.sh-form-wrap select:focus,.sh-form-wrap textarea:focus{outline:none;border-color:#890000}
.sh-form-wrap .hp{position:absolute;left:-9999px;height:0;width:0;opacity:0}
.sh-form-wrap .btn--primary{background:#890000;border:2px solid #890000;color:#fff;text-transform:uppercase;font-weight:700;padding:10px 26px;font-size:13px;cursor:pointer}
.sh-form-wrap .btn--primary:hover{background:#454545;border-color:#454545}
.sh-form-wrap .note{font-size:12px;color:#868686;margin-top:12px;line-height:1.6}
.sh-form-wrap .flash{background:#fff3f3;border-left:3px solid #890000;padding:12px 16px;margin-bottom:16px;font-size:14px}
.sh-form-wrap .flash--ok{background:#f2fbf4;border-left-color:#2e7d32}
.sh-map iframe{width:100%;display:block;min-height:310px}

@media (max-width:767px){.sh-form-wrap .form-grid{grid-template-columns:1fr}}

/* red CTA band imported on inner pages */
.entry-content .primary-bg.vc_row{width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);max-width:100vw}
.primary-bg .icon-box-title{color:rgba(255,255,255,.65)!important}
.primary-bg .button.custom{background:transparent;border:2px solid rgba(255,255,255,.55);color:#fff;min-width:180px;text-align:center}
.primary-bg .button.custom .link-title{color:#fff}
.primary-bg .button.custom:hover{background:#fff;border-color:#fff}
.primary-bg .button.custom:hover .link-title,.primary-bg .button.custom:hover .fa{color:#890000}
.primary-bg .icon-box-icon{background:rgba(0,0,0,.1)}
@media (max-width:1200px){.entry-content .primary-bg.vc_row{width:auto;margin-left:-15px;margin-right:-15px}}

/* mobile gutters + fluid media inside imported rows */
@media (max-width:1200px){
  .container{padding-left:15px;padding-right:15px}
}
@media (max-width:767px){
  .services-content-img,.sh-section .staff-content img,.entry-content img,.page-content img{max-width:100%;height:auto}
  .services-content{margin-bottom:44px}
  .vc_row .wpb_column{margin-bottom:20px}
  .sh-section-products .row>[class*="col-"]{margin-bottom:24px}
  .sh-logo-item img{max-height:44px}
}

/* homepage sections already provide their own .container */

/* ------------------------------------------------------------------
 * Original page-builder rows (no js_composer runtime in this theme)
 * ---------------------------------------------------------------- */
[data-vc-full-width="true"]{width:100vw;max-width:100vw;box-sizing:border-box;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);padding-left:max(15px, calc(50vw - 600px));padding-right:max(15px, calc(50vw - 600px))}
[data-vc-parallax-image]{background-size:cover;background-position:center center}
.vc_row.vc_parallax{position:relative}
.vc_row.vc_parallax:before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.45);z-index:1}
.vc_row.vc_parallax>.wpb_column{position:relative;z-index:2}
.industry-blog-posts{display:flex;flex-wrap:wrap;gap:40px;margin-bottom:50px}
.industry-blog-posts .post-grid-item{flex:1 1 300px;max-width:340px}
.post-grid-item .post-img{position:relative;overflow:hidden}
.post-grid-item .post-img img{display:block;width:316px;max-width:100%;height:auto}
.post-grid-item .post-img .button{position:absolute;left:0;bottom:0}
.image-carousel .carousel{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px}
.image-carousel .carousel .item{flex:1 1 0;min-width:120px;text-align:center}
.image-carousel .carousel .item img{max-width:100%;height:auto;display:inline-block}
.image-carousel .carousel{max-width:1170px;margin:0 auto}

/* homepage hero escapes the 1170px content wrapper like the original slider */
.sh-home .sh-hero{width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);max-width:100vw}
/* original client-logo carousel geometry (7 slides x 195px, 6 visible) */
.image-carousel .carousel{display:block;overflow:hidden;max-width:1170px;margin:0 auto 30px;white-space:nowrap}
.image-carousel .carousel .item{display:inline-block;vertical-align:middle;width:195px;min-width:0;text-align:center}
.image-carousel .carousel .item img{width:195px;height:98px;object-fit:contain;display:inline-block;max-width:none}
/* original news grid slides are 400px wide */
.industry-blog-posts .post-grid-item{flex:0 0 400px;max-width:400px}


/* page-builder entrance animations: keep content visible without js_composer JS */
.wpb_animate_when_almost_visible{opacity:1!important}

/* news / archive listing: match original sidebar list box model and article gap */
.left-sidebar .widget ul,
.sidebar .widget ul{padding-left:0;margin-left:0;list-style:none}
.left-sidebar .widget ul li,
.sidebar .widget ul li{list-style:none}
.site-main > article.full-layout .entry-content{margin-bottom:20px}

/* stacked columns on phones: original theme has no extra gap between them */
@media (max-width: 767px){
  .vc_row .wpb_column{margin-bottom:0}
}

/* home news slider on phones: one card per view like the original slick slider */
@media (max-width: 767px){
  .industry-blog-posts{display:flex;flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x mandatory;gap:0}
  .industry-blog-posts .post-grid-item{flex:0 0 100%;max-width:100%;scroll-snap-align:start}
}

/* client-logo carousel on phones: one full-width slide like the original slick slider */
@media (max-width: 767px){
  .image-carousel .carousel{overflow:hidden;white-space:nowrap;margin:0 auto 30px}
  .image-carousel .carousel .item{width:100%;max-width:100%;display:inline-block;vertical-align:middle}
  .image-carousel .carousel .item img{width:100%;height:auto;max-width:100%;display:inline-block;object-fit:contain}
}

/* phones: page-builder rows use the 15px column gutter instead of double padding */
@media (max-width: 767px){
  [data-vc-full-width="true"]{padding-left:0;padding-right:0}
}

/* RFQ textarea: original theme box model (10 rows, 18px padding, 1.6 leading) */
.sh-form-wrap textarea{min-height:0;padding:18px 20px;line-height:1.6}

/* imported article body: keep the original 30px entry title (not the generic h2 size) */
#main article .entry-header .entry-title{font-size:30px;line-height:1.2;font-weight:400}

/* single article: no gap between the imported body and its entry footer */
.single .site-main > article.full-layout .entry-content{margin-bottom:0}
