/*
Theme Name: Winwing Metals
Theme URI: https://www.winwingmetal.com/
Author: Winwing Metals
Description: Product-focused B2B industrial WordPress theme for Shaanxi Winwing Metal Materials Co., Ltd.
Version: 1.0.0
Text Domain: winwing-metals
*/

:root {
  --navy: #0e3a5d;
  --navy-dark: #08243b;
  --blue: #1b75bb;
  --light: #f5f7fa;
  --text: #1f2933;
  --muted: #5f6b7a;
  --white: #ffffff;
  --line: #dbe2ea;
  --shadow: 0 18px 45px rgba(8, 36, 59, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.header-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(199, 205, 212, 0.55);
  backdrop-filter: blur(12px);
}
.top-bar {
  display: flex;
  justify-content: flex-end;
  gap: clamp(16px, 3vw, 34px);
  padding: 8px clamp(18px, 4vw, 64px);
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
}
.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 64px);
}
.brand img {
  width: 178px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}
.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 1.7vw, 28px);
  font-size: 14px;
  font-weight: 650;
  color: var(--navy);
}
.main-nav a { padding: 8px 0; }
.quote-button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 4px;
  font-weight: 750;
}
.quote-button, .button.primary { background: var(--navy); color: var(--white); }
.button.secondary { border: 1px solid rgba(255, 255, 255, 0.55); color: var(--white); }
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(58px, 7vw, 108px) clamp(18px, 5vw, 78px);
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(4, 29, 48, 0.97) 0%, rgba(4, 29, 48, 0.9) 42%, rgba(4, 29, 48, 0.2) 100%),
    url("https://winwingmetal.com/wp-content/uploads/2026/07/generated-products-wide.png") right center / contain no-repeat,
    linear-gradient(135deg, #051827 0%, #0b314f 58%, #d8e1e9 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18%;
  background: linear-gradient(180deg, transparent, rgba(8, 36, 59, 0.35));
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; max-width: 690px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero .eyebrow { color: #9ed7ff; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 18px;
  color: var(--navy-dark);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}
h3 { margin-bottom: 10px; color: var(--navy-dark); font-size: 20px; line-height: 1.2; }
.hero-lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 22px);
}
.hero-products, .process-list, .export-tags, .metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-products span, .process-list span, .export-tags span, .metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 750;
}
.hero-products span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.section { padding: clamp(70px, 8vw, 118px) clamp(18px, 5vw, 78px); }
.muted { background: var(--light); }
.about-section, .capability-section, .export-section, .contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 5vw, 80px);
  align-items: center;
}
.section-media img, .capability-media img, .export-images img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.section-copy p, .capability-copy p, .export-copy p, .section-heading p, .contact-card p, .contact-details p { color: var(--muted); }
.metrics span, .process-list span, .export-tags span { background: var(--light); color: var(--navy); }
.section-heading { max-width: 780px; margin-bottom: 38px; }
.section-heading.split {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.section-heading.split p { max-width: 420px; }
.text-link { color: var(--blue); font-weight: 800; }
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.advantage-grid article, .application-grid article, .blog-grid article {
  min-height: 210px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.number { display: block; margin-bottom: 30px; color: var(--blue); font-size: 13px; font-weight: 900; }
.advantage-grid p, .application-grid p { color: var(--muted); }
.product-family-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
.family-card {
  position: relative;
  min-height: 306px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
}
.family-card.large { grid-row: span 2; min-height: 630px; }
.family-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}
.family-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 36, 59, 0.1), rgba(8, 36, 59, 0.9));
}
.family-card div { position: absolute; z-index: 1; inset: auto 0 0; padding: 30px; }
.family-card h3 { color: var(--white); font-size: 26px; }
.family-card p { color: rgba(255, 255, 255, 0.8); }
.family-card a { color: #9ed7ff; font-weight: 800; }
.product-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.product-list a {
  padding: 16px 18px;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--navy);
  font-weight: 800;
}
.hot-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.hot-product-grid article {
  display: grid;
  grid-template-rows: 220px 1fr;
  overflow: hidden;
  min-height: 430px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.hot-product-grid img { width: 100%; height: 100%; object-fit: cover; }
.hot-product-grid div { padding: 24px; }
.hot-product-grid p { color: var(--muted); }
.hot-product-grid a { color: var(--blue); font-weight: 850; }
.capability-section { color: var(--white); background: var(--navy-dark); }
.capability-section h2 { color: var(--white); }
.capability-copy p { color: rgba(255, 255, 255, 0.78); }
.capability-section .process-list span { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.application-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
}
.application-layout > img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: 6px;
}
.application-grid, .blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.custom-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  background: linear-gradient(90deg, var(--navy), var(--navy-dark));
  color: var(--white);
}
.custom-section h2, .custom-section p { max-width: 800px; color: var(--white); }
.export-images { display: grid; grid-template-columns: 1fr 0.8fr; gap: 16px; }
.export-images img:nth-child(2) { margin-top: 58px; }
.blog-grid article { min-height: 170px; }
.blog-grid article p { color: var(--blue); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.blog-grid span { color: var(--muted); font-size: 13px; }
.contact-section {
  padding: clamp(70px, 8vw, 110px) clamp(18px, 5vw, 78px);
  background: var(--navy-dark);
}
.contact-card { padding: clamp(30px, 5vw, 56px); background: var(--white); border-radius: 6px; }
.contact-details { color: var(--white); }
.contact-details h3 { color: var(--white); font-size: 28px; }
.contact-details p { color: rgba(255, 255, 255, 0.8); }
.contact-details strong { color: var(--white); }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(18px, 5vw, 78px);
  background: #061d30;
  color: rgba(255, 255, 255, 0.76);
}
.site-footer strong { color: var(--white); }
.site-footer p { margin: 0; }
.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #1f9d55;
  color: var(--white);
  font-weight: 850;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
@media (max-width: 1080px) {
  .top-bar { justify-content: center; flex-wrap: wrap; gap: 8px 18px; }
  .site-header { grid-template-columns: auto auto; }
  .menu-toggle { display: block; justify-self: end; }
  .main-nav, .quote-button { display: none; }
  .main-nav.is-open {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 0;
    padding-top: 12px;
  }
  .main-nav.is-open a { padding: 12px 0; border-top: 1px solid var(--line); }
  .hero, .about-section, .capability-section, .export-section, .contact-section, .application-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; background-position: 58% center; }
  .advantage-grid, .product-list, .hot-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-family-grid { grid-template-columns: 1fr; }
  .family-card.large { min-height: 420px; }
}
@media (max-width: 700px) {
  .brand img { width: 150px; }
  .advantage-grid, .application-grid, .blog-grid, .product-list, .hot-product-grid, .custom-section, .export-images, .section-heading.split { grid-template-columns: 1fr; }
  .section-heading.split { display: grid; }
  .section-media img, .capability-media img, .application-layout > img, .export-images img { min-height: 260px; }
  .export-images img:nth-child(2) { margin-top: 0; }
  .site-footer { display: grid; }
  .top-bar span:nth-child(3) { display: none; }
}
