/* ============================================================
   DIHUI Valve — Global B2B Website Styles
   ============================================================ */

:root {
  --navy: #0d2b4e;
  --navy-deep: #081d38;
  --blue: #1565c0;
  --blue-bright: #1e88e5;
  --orange: #f4743a;
  --orange-dark: #e05f27;
  --ink: #17233a;
  --muted: #5c6b80;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-light: #f5f8fc;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(13, 43, 78, 0.10);
  --shadow-sm: 0 4px 18px rgba(13, 43, 78, 0.08);
  --radius: 12px;
  --container: 1200px;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 600; border: 2px solid transparent;
  cursor: pointer; transition: all .25s ease; white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(244,116,58,.35); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(13,43,78,.10); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { color: var(--orange); display: flex; }
.logo-text { font-weight: 800; font-size: 22px; letter-spacing: -.5px; color: var(--navy); line-height: 1; position: relative; }
.logo-text small { display: block; font-size: 9px; letter-spacing: 3px; color: var(--muted); font-weight: 700; margin-top: 3px; }
.logo-dot { color: var(--orange); }

.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav a { font-size: 14.5px; font-weight: 600; color: var(--ink); position: relative; padding: 6px 0; transition: color .2s; }
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--orange); transition: width .25s; }
.main-nav a:hover { color: var(--blue); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.lang-btn { border: 0; background: transparent; padding: 6px 11px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; transition: all .2s; }
.lang-btn.active { background: var(--navy); color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff; overflow: hidden; margin-top: var(--header-h); }
.hero-bg { position: absolute; inset: 0; background: var(--navy); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-fallback-art { position: absolute; inset: 0; }
.hero-fallback-art svg { width: 100%; height: 100%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,24,48,.94) 0%, rgba(8,32,64,.82) 45%, rgba(8,32,64,.45) 100%); }
.hero-content { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 60px; }
.hero-badge { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .3px; color: #ffe0d0; background: rgba(244,116,58,.18); border: 1px solid rgba(244,116,58,.45); padding: 7px 16px; border-radius: 30px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.12; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 20px; max-width: 720px; }
.hero p { font-size: 17px; line-height: 1.7; color: #d5e2f0; max-width: 640px; margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-metrics { display: flex; gap: 0; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.18); padding-top: 26px; max-width: 720px; }
.metric { padding-right: 40px; margin-right: 40px; border-right: 1px solid rgba(255,255,255,.18); }
.metric:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.metric strong { display: block; font-size: 30px; font-weight: 800; color: #fff; line-height: 1; }
.metric span { font-size: 12px; color: #a9c2dd; letter-spacing: .3px; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--navy-deep); color: #c9d8ea; padding: 20px 0; }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.trust-inner > span { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }
.trust-logos { display: flex; gap: 34px; flex-wrap: wrap; }
.trust-logos span { font-size: 15px; font-weight: 800; color: #7f9cbd; letter-spacing: .5px; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-light { background: var(--bg-light); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 2px; color: var(--orange); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; letter-spacing: -1px; color: var(--navy); line-height: 1.2; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 16px; line-height: 1.7; }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn { padding: 10px 22px; border-radius: 30px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; }
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .3s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.product-thumb { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(145deg, #eef3f9, #dce7f2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-thumb .valve-art { position: absolute; }
.product-thumb img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.valve-art { width: 72%; height: 72%; }
.product-tag { position: absolute; top: 14px; left: 14px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 4px; letter-spacing: .3px; }
.product-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; color: var(--blue); text-transform: uppercase; margin-bottom: 6px; }
.product-body h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.product-spec { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.product-foot .model { font-size: 12px; color: var(--muted); font-weight: 600; }
.product-foot a { font-size: 13px; font-weight: 700; color: var(--orange); display: inline-flex; align-items: center; gap: 4px; }
.product-foot a:hover { gap: 8px; }
.section-cta { text-align: center; margin-top: 48px; padding: 36px; background: var(--navy); border-radius: var(--radius); color: #fff; }
.section-cta p { margin-bottom: 20px; font-size: 17px; }
.section-cta .btn-outline { color: #fff; border-color: #fff; }
.section-cta .btn-outline:hover { background: #fff; color: var(--navy); }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: #fff; padding: 34px 30px; border-radius: var(--radius); border: 1px solid var(--line); transition: all .3s; }
.feature-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.feature-icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(244,116,58,.12); color: var(--orange); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-icon svg { width: 26px; height: 26px; stroke-width: 1.8; }
.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-media { position: relative; }
.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; background: var(--navy); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #123a63, #0d2b4e); color: rgba(255,255,255,.35); font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.media-placeholder::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; }
.about-experience { position: absolute; right: -24px; bottom: -24px; background: var(--orange); color: #fff; padding: 22px 28px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.about-experience strong { display: block; font-size: 42px; font-weight: 800; line-height: 1; }
.about-experience strong span { font-size: 26px; }
.about-experience span { font-size: 12px; font-weight: 600; }
.about-text h2 { font-size: clamp(28px, 3.5vw, 38px); font-weight: 800; letter-spacing: -1px; color: var(--navy); line-height: 1.2; margin-bottom: 20px; }
.about-text p { color: var(--muted); font-size: 15.5px; line-height: 1.75; margin-bottom: 16px; }
.about-list { list-style: none; margin: 22px 0 30px; }
.about-list li { position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 15px; color: var(--ink); font-weight: 500; }
.about-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; background: rgba(244,116,58,.15); color: var(--orange); border-radius: 50%; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: all .3s; }
.news-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.news-thumb { aspect-ratio: 16/9; background: linear-gradient(145deg, #dce7f2, #c3d5e8); position: relative; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-date { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--navy); font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 5px; box-shadow: var(--shadow-sm); }
.news-body { padding: 22px; }
.news-body h3 { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.45; margin-bottom: 10px; }
.news-body p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.news-more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--orange); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
.contact-info h2 { font-size: clamp(28px, 3.5vw, 38px); font-weight: 800; color: var(--navy); letter-spacing: -1px; margin-bottom: 16px; }
.contact-info > p { color: var(--muted); font-size: 15.5px; margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 22px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.ci-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; background: rgba(21,101,192,.10); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.ci-icon svg { width: 21px; height: 21px; }
.contact-item small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.contact-item a, .contact-item div > span { font-size: 15px; color: var(--ink); font-weight: 600; }
.contact-item a:hover { color: var(--orange); }
.contact-qr { display: flex; align-items: center; gap: 18px; margin-top: 10px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.contact-qr img { width: 118px; height: 118px; object-fit: contain; flex-shrink: 0; border-radius: 8px; }
.contact-qr-text small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.contact-qr-text strong { display: block; font-size: 16px; color: var(--navy); font-weight: 700; margin-bottom: 5px; }
.contact-qr-text span { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; }

.inquiry-form { background: #fff; padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--ink); font-family: inherit; transition: border-color .2s; background: #fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,192,.10); }
.form-group textarea { resize: vertical; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }
.form-status { font-size: 14px; font-weight: 600; text-align: center; margin-top: 14px; min-height: 20px; }
.form-status.success { color: #1a8a4a; }
.form-status.error { color: #d0342c; }
#submitBtn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9c9dd; padding: 68px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.logo-light .logo-text { color: #fff; }
.logo-light .logo-text small { color: #7f9cbd; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin: 18px 0 20px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: 17px; transition: background .2s; }
.footer-social a:hover { background: var(--orange); }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 20px; }
.footer-col a, .footer-col p { display: block; font-size: 13.5px; color: #9fb3ca; margin-bottom: 11px; transition: color .2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); padding: 22px 24px; display: flex; justify-content: space-between; gap: 16px; font-size: 12.5px; color: #7f9cbd; flex-wrap: wrap; }

/* ---------- Floating contact ---------- */
.floating-contact { position: fixed; right: 20px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.float-btn { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.22); transition: transform .25s, box-shadow .25s; }
.float-btn:hover { transform: scale(1.1) translateX(-3px); box-shadow: 0 8px 26px rgba(0,0,0,.3); }
.float-btn.whatsapp { background: #25d366; }
.float-btn.email { background: var(--blue); }
.float-btn.quote { background: var(--orange); }
.float-btn svg { stroke: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .main-nav { gap: 18px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { gap: 40px; }
  .contact-grid { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 20px; box-shadow: var(--shadow); transform: translateY(-140%); opacity: 0; transition: .35s ease; pointer-events: none; }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .hero { min-height: 560px; }
}

@media (max-width: 768px) {
  .section { padding: 68px 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-experience { right: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .metric { padding-right: 22px; margin-right: 22px; }
  .metric strong { font-size: 24px; }
  .hero-buttons .btn { flex: 1 1 auto; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .header-inner { gap: 12px; }
  .logo-text { font-size: 19px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 15px; }
  .hero-metrics { gap: 18px 0; }
  .metric { min-width: 45%; border-right: 0; margin: 0; padding: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .inquiry-form { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-logos { gap: 18px; }
  .floating-contact { right: 14px; bottom: 16px; }
  .float-btn { width: 46px; height: 46px; }
}
