/*
Theme Name: Shanshui Industrial
Theme URI: https://shanshui-zg.com/
Author: Henan Shanshui Heavy Industry Technology Co., Ltd.
Description: Independent industrial product website for Shanshui Heavy Industry.
Version: 1.0.0
Text Domain: shanshui-industrial
*/

:root {
    --ss-blue: #0d5dbc;
    --ss-blue-dark: #083c78;
    --ss-blue-deep: #05294f;
    --ss-cyan: #22a8e5;
    --ss-orange: #f05a28;
    --ss-ink: #10243b;
    --ss-muted: #5d6b7a;
    --ss-line: #dce5ee;
    --ss-bg: #f4f8fb;
    --ss-white: #fff;
    --ss-radius: 14px;
    --ss-shadow: 0 18px 55px rgba(5, 41, 79, .12);
    --ss-container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ss-ink);
    background: #fff;
    font: 400 16px/1.7 Inter, "Segoe UI", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--ss-blue); text-decoration: none; }
a:hover { color: var(--ss-orange); }
.container { width: min(calc(100% - 40px), var(--ss-container)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.site-topbar { background: var(--ss-blue-deep); color: #d7e7f5; font-size: 14px; }
.site-topbar .container { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-topbar a { color: #fff; }
.topbar-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(13,93,188,.12); backdrop-filter: blur(16px); }
.site-header .container { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 240px; }
.brand img { width: 78px; max-height: 64px; object-fit: contain; }
.brand-copy strong { display: block; color: var(--ss-blue-dark); font-size: 17px; line-height: 1.2; }
.brand-copy span { display: block; color: var(--ss-muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.main-nav ul { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.main-nav a { color: var(--ss-ink); font-weight: 650; font-size: 15px; }
.main-nav .current-menu-item > a, .main-nav a:hover { color: var(--ss-blue); }
.nav-cta { padding: 11px 18px; color: #fff !important; background: var(--ss-orange); border-radius: 999px; }
.main-nav li.nav-cta > a { padding: 11px 18px; color: #fff; background: var(--ss-orange); border-radius: 999px; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ss-blue-dark); font-size: 28px; cursor: pointer; }

.hero { position: relative; min-height: 680px; display: grid; align-items: center; overflow: hidden; color: #fff; background: var(--ss-blue-dark) url('assets/images/hero.jpg') center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,41,79,.96) 0%, rgba(8,60,120,.84) 52%, rgba(13,93,188,.35) 100%); }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -260px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.03), 0 0 0 160px rgba(255,255,255,.025); }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 55px; padding-block: 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: #bde7ff; font-size: 13px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 38px; height: 3px; background: var(--ss-orange); }
.hero h1 { margin: 0 0 22px; max-width: 760px; font-size: clamp(40px, 5vw, 68px); line-height: 1.08; letter-spacing: -.035em; }
.hero p { max-width: 650px; margin: 0 0 34px; color: #d8e8f7; font-size: 18px; }
.button-row { display: flex; gap: 14px; flex-wrap: wrap; }
.button, button.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 22px; border: 1px solid transparent; border-radius: 8px; background: var(--ss-blue); color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.button:hover { transform: translateY(-1px); background: var(--ss-blue-dark); color: #fff; }
.button-primary, button.button-primary { background: var(--ss-orange); }
.button-ghost { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.hero-visual { position: relative; }
.hero-visual img { display: block; width: 100%; border: 8px solid rgba(255,255,255,.12); border-radius: 20px; box-shadow: 0 25px 65px rgba(0,0,0,.32); }
.hero-stat { position: absolute; left: -28px; bottom: 26px; width: 210px; padding: 18px 20px; border-radius: 12px; background: #fff; color: var(--ss-ink); box-shadow: var(--ss-shadow); }
.hero-stat strong { display: block; color: var(--ss-blue); font-size: 28px; line-height: 1.1; }
.hero-stat span { font-size: 13px; color: var(--ss-muted); }

.section { padding: 92px 0; }
.section-soft { background: var(--ss-bg); }
.section-dark { background: var(--ss-blue-deep); color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-head h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; letter-spacing: -.025em; }
.section-head p { max-width: 620px; margin: 0; color: var(--ss-muted); }
.section-dark .section-head p { color: #bdd1e5; }
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.category-card { position: relative; min-height: 390px; display: flex; align-items: end; overflow: hidden; border-radius: var(--ss-radius); background: var(--ss-blue-dark); box-shadow: var(--ss-shadow); }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,41,79,.95) 0%, rgba(5,41,79,.1) 70%); }
.category-card:hover img { transform: scale(1.035); }
.category-content { position: relative; z-index: 2; padding: 30px; color: #fff; }
.category-content h3 { margin: 0 0 7px; font-size: 28px; }
.category-content p { margin: 0 0 17px; color: #dcecf8; }
.text-link { color: #fff; font-weight: 750; }
.text-link::after { content: " →"; color: var(--ss-orange); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { overflow: hidden; border: 1px solid var(--ss-line); border-radius: var(--ss-radius); background: #fff; box-shadow: 0 10px 30px rgba(5,41,79,.07); transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--ss-shadow); }
.product-card-image { aspect-ratio: 4/3; overflow: hidden; background: #edf4fa; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-card-image img { transform: scale(1.035); }
.product-card-body { padding: 24px; }
.product-card .product-category { margin-bottom: 8px; color: var(--ss-blue); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.product-card h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.35; }
.product-card h3 a { color: var(--ss-ink); }
.product-card p { margin: 0 0 18px; color: var(--ss-muted); font-size: 14px; }

.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 70px; align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; border-radius: var(--ss-radius); box-shadow: var(--ss-shadow); }
.about-badge { position: absolute; right: -24px; bottom: -24px; padding: 22px; border-radius: 12px; background: var(--ss-orange); color: #fff; font-weight: 750; }
.about-copy h2 { margin: 0 0 22px; font-size: clamp(32px,4vw,48px); line-height: 1.15; }
.about-copy p { color: var(--ss-muted); }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0; }
.feature-item { padding: 18px; border-left: 3px solid var(--ss-orange); background: var(--ss-bg); }
.feature-item strong { display: block; }
.feature-item span { color: var(--ss-muted); font-size: 14px; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: process; }
.process-item { position: relative; padding: 28px 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.055); }
.process-item::before { counter-increment: process; content: "0" counter(process); display: block; margin-bottom: 18px; color: #65c9f6; font-size: 34px; font-weight: 800; }
.process-item h3 { margin: 0 0 8px; }
.process-item p { margin: 0; color: #bcd0e3; font-size: 14px; }

.cta-band { padding: 56px 0; background: linear-gradient(105deg, var(--ss-blue) 0%, var(--ss-cyan) 100%); color: #fff; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { margin: 0 0 8px; font-size: 34px; }
.cta-band p { margin: 0; color: #e2f4fc; }

.page-hero { padding: 86px 0 76px; color: #fff; background: linear-gradient(115deg, var(--ss-blue-deep), var(--ss-blue)); }
.page-hero h1 { margin: 0 0 10px; font-size: clamp(38px, 5vw, 58px); }
.page-hero p { max-width: 720px; margin: 0; color: #cfe4f7; }
.content-layout { display: grid; grid-template-columns: minmax(0,1fr) 350px; gap: 55px; }
.entry-content h2, .entry-content h3 { color: var(--ss-blue-dark); line-height: 1.25; }
.entry-content h2 { margin-top: 42px; font-size: 32px; }
.entry-content p { margin: 0 0 20px; }
.entry-content ul { padding-left: 20px; }
.sidebar-card { padding: 28px; border-radius: var(--ss-radius); background: var(--ss-bg); }
.sidebar-card h3 { margin-top: 0; }
.product-detail-image { overflow: hidden; margin-bottom: 35px; border-radius: var(--ss-radius); background: var(--ss-bg); }
.product-detail-image img { display: block; width: 100%; }
.spec-list { margin: 0; }
.spec-list div { display: grid; grid-template-columns: 145px 1fr; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--ss-line); }
.spec-list dt { font-weight: 750; }
.spec-list dd { margin: 0; color: var(--ss-muted); }

.inquiry-form { padding: 30px; border-radius: var(--ss-radius); background: #fff; color: var(--ss-ink); box-shadow: var(--ss-shadow); }
.inquiry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.inquiry-form label { display: block; margin-bottom: 18px; }
.inquiry-form label span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.inquiry-form input, .inquiry-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #cdd9e4; border-radius: 7px; background: #fff; color: var(--ss-ink); font: inherit; }
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: 3px solid rgba(34,168,229,.2); border-color: var(--ss-blue); }
.inquiry-hp { position: absolute !important; left: -9999px; }
.form-notice { margin-bottom: 18px; padding: 14px 18px; border-radius: 7px; }
.form-notice.success { background: #e5f7ed; color: #12653a; }
.form-notice.error { background: #fdecec; color: #8f2424; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { padding: 26px; border: 1px solid var(--ss-line); border-radius: 12px; background: #fff; }
.news-card time { color: var(--ss-blue); font-size: 13px; font-weight: 700; }
.news-card h3 { margin: 10px 0; font-size: 20px; }
.news-card h3 a { color: var(--ss-ink); }
.pagination { margin-top: 42px; }

.site-footer { padding: 70px 0 24px; background: #031d38; color: #bdd0e2; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr 1fr; gap: 55px; }
.site-footer h3 { margin-top: 0; color: #fff; }
.site-footer a { color: #dceaf6; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-brand img { width: 92px; padding: 7px; border-radius: 8px; background: #fff; }
.footer-bottom { margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

@media (max-width: 980px) {
    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; left: 0; right: 0; top: 82px; padding: 20px; background: #fff; border-top: 1px solid var(--ss-line); box-shadow: var(--ss-shadow); }
    .main-nav.is-open { display: block; }
    .main-nav ul { align-items: stretch; flex-direction: column; gap: 8px; }
    .main-nav a { display: block; padding: 10px; }
    .hero { min-height: auto; }
    .hero .container, .about-grid { grid-template-columns: 1fr; }
    .hero-visual { max-width: 700px; }
    .product-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .content-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .container { width: min(calc(100% - 28px), var(--ss-container)); }
    .site-topbar { display: none; }
    .site-header .container { min-height: 72px; }
    .main-nav { top: 72px; }
    .brand-copy span { display: none; }
    .brand { min-width: 0; }
    .brand img { width: 58px; }
    .hero .container { padding-block: 58px; }
    .hero h1 { font-size: 39px; }
    .hero p { font-size: 16px; }
    .hero-stat { position: static; width: 100%; margin-top: 14px; }
    .section { padding: 65px 0; }
    .section-head, .cta-band .container { align-items: flex-start; flex-direction: column; }
    .category-grid, .product-grid, .news-grid, .process-grid, .footer-grid, .inquiry-grid, .feature-list { grid-template-columns: 1fr; }
    .category-card { min-height: 330px; }
    .about-badge { right: 12px; bottom: -18px; }
    .spec-list div { grid-template-columns: 1fr; gap: 2px; }
}
