/* ============================================================
   SMT — Shenzhen-Mexico Trading Co., Ltd.
   Professional Business Style · Azure Blue base
   ============================================================ */

:root {
  --azure: #1763c4;
  --azure-deep: #0b3d7a;
  --azure-bright: #2f86ff;
  --azure-soft: #e8f1fd;
  --sky: #f4f8fd;
  --ink: #0f1b2d;
  --ink-2: #2a3a52;
  --muted: #5b6b82;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --line: #e2e9f2;
  --line-strong: #cdd9ea;
  --grad-brand: linear-gradient(135deg, #0b3d7a 0%, #1763c4 55%, #2f86ff 100%);
  --grad-azure: linear-gradient(135deg, #1763c4 0%, #2f86ff 100%);
  --shadow-sm: 0 4px 14px rgba(15, 27, 45, .06);
  --shadow-md: 0 12px 32px rgba(15, 27, 45, .10);
  --shadow-lg: 0 24px 60px rgba(11, 61, 122, .20);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.18; font-weight: 700; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 92px 0; }
.section-sm { padding: 60px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 10px; border: 0; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad-azure); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); filter: brightness(1.05); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--azure); color: var(--azure); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* ---------- Top mini-strip ---------- */
.topbar {
  background: linear-gradient(90deg, #0b3d7a 0%, #1763c4 100%);
  color: #cfe0f5;
  font-size: 13px;
  font-family: var(--font-body);
  letter-spacing: .01em;
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 34px;
  padding: 6px 0;
}
.tb-item { display: inline-flex; align-items: center; gap: 7px; opacity: .95; }
.tb-item:hover { opacity: 1; color: #fff; }
.tb-ic { color: #8ec3ff; font-size: 14px; line-height: 1; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, #f4f8fd 0%, #e7f0fa 100%);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid #d4e2f3;
  box-shadow: 0 6px 24px rgba(11, 61, 122, .06);
}
.header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #1763c4 25%, #2f86ff 75%, transparent 100%);
  opacity: .6;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.brand .logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #2f86ff 0%, #1763c4 55%, #0b3d7a 100%);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: -.02em;
  box-shadow: 0 6px 18px rgba(23, 99, 196, .35), inset 0 1px 0 rgba(255,255,255,.28);
  position: relative;
}
.brand .logo::after {
  content: "";
  position: absolute; inset: 0; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  pointer-events: none;
}
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.brand-text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1.2; }
.brand-zh { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: .02em; white-space: nowrap; }
.brand-en { font-family: var(--font-body); font-weight: 700; font-size: 11px; color: #000; letter-spacing: 0; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-weight: 600; font-size: 18px; color: var(--ink-2);
  position: relative; padding: 8px 2px;
  transition: color .15s;
}
.nav-links a:hover { color: var(--azure); }
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  height: 2.5px; width: 0; background: var(--grad-azure); border-radius: 2px;
  transition: width .2s, transform .2s; transform: translateX(-50%);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; transform: translateX(-50%); }
.nav-right { display: flex; align-items: center; gap: 14px; }

/* Language switcher */
.lang {
  display: flex; background: rgba(255,255,255,.75);
  border: 1px solid #c8d8ec; border-radius: 8px; padding: 3px;
  backdrop-filter: blur(6px);
}
.lang button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: var(--ink-2); padding: 6px 12px; border-radius: 6px;
  transition: all .15s;
}
.lang button:hover { color: var(--azure); }
.lang button.active {
  background: var(--grad-azure); color: #fff;
  box-shadow: 0 2px 8px rgba(23, 99, 196, .25);
}

.hamburger { display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 92px 0 104px; overflow: hidden; background: linear-gradient(180deg, #f4f8fd 0%, #ffffff 100%); }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .5; z-index: 0; }
.hero .blob.b1 { width: 340px; height: 340px; background: var(--grad-azure); top: -90px; right: -60px; animation: float 11s ease-in-out infinite; }
.hero .blob.b2 { width: 260px; height: 260px; background: var(--azure-soft); bottom: -80px; left: -60px; animation: float 13s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .04em; color: var(--azure); background: var(--azure-soft); padding: 7px 14px; border-radius: 8px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 18px; }
.hero h1 .grad { background: var(--grad-azure); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 42px; }
.hero-stats .num { font-family: var(--font-display); font-weight: 800; font-size: 30px; background: var(--grad-azure); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .lbl { font-size: 13px; color: var(--muted); }
.hero-art { position: relative; }
.hero-art img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ---------- Trust marquee ---------- */
.trust { background: var(--azure-deep); color: #fff; padding: 22px 0; overflow: hidden; }
.trust .track { display: flex; gap: 48px; white-space: nowrap; animation: scroll 26s linear infinite; font-family: var(--font-display); font-weight: 600; letter-spacing: .03em; opacity: .92; }
.trust .track span { display: inline-flex; align-items: center; gap: 10px; }
.trust .track span::before { content: "✦"; color: var(--azure-bright); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Section heading ---------- */
.head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.head .kicker { font-family: var(--font-display); font-weight: 600; color: var(--azure); letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.head h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 12px 0 14px; }
.head p { color: var(--muted); font-size: 16px; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--azure); }
.cat-card .ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-azure); box-shadow: var(--shadow-sm); }
.cat-card h3 { font-size: 17px; margin-bottom: 6px; }
.cat-card p { font-size: 13px; color: var(--muted); }
.cat-card .more { display: inline-block; margin-top: 12px; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--azure); }

/* ---------- Product cards ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--azure); }
.prod-card .thumb { aspect-ratio: 1/1; background: linear-gradient(135deg, #eef4fd, #f6f9fe); display: grid; place-items: center; position: relative; overflow: hidden; }
.prod-card .thumb img { width: 78%; }
/* real product photo: fills the card, logo hidden by a neutral frosted patch */
.prod-card .thumb img.real { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-card .logo-cover {
  position: absolute;
  left: var(--cx, 61%); top: var(--cy, 44%);
  width: var(--cw, 31%); height: var(--ch, 15%);
  transform: translate(-50%, -50%);
  background: #0a0e14;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,.28);
}
.prod-card .badge { position: absolute; top: 12px; left: 12px; background: var(--grad-azure); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 11px; padding: 5px 11px; border-radius: 8px; }
.prod-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-card h3 { font-size: 16px; }
.prod-card .spec { font-size: 13px; color: var(--muted); flex: 1; }
.prod-card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.prod-card .price { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--ink); }
.prod-card .moq { font-size: 12px; color: var(--muted); }
.prod-card .tag { font-size: 12px; font-weight: 600; color: var(--azure); }

/* ---------- Markets ---------- */
.markets { background: var(--bg-soft); }
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.market-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 28px; position: relative; overflow: hidden; }
.market-card .flag { font-size: 40px; }
.market-card h3 { font-size: 22px; margin: 14px 0 8px; }
.market-card p { color: var(--muted); font-size: 14px; }
.market-card .pill { display: inline-block; margin-top: 16px; background: var(--azure-soft); color: var(--azure); font-weight: 600; font-size: 12px; padding: 6px 13px; border-radius: 8px; }

/* ---------- Why us / stats band ---------- */
.why { background: var(--grad-brand); color: #fff; border-radius: var(--radius-lg); padding: 54px 40px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.why .num { font-family: var(--font-display); font-weight: 800; font-size: 40px; }
.why .lbl { opacity: .92; font-size: 14px; margin-top: 6px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; background: var(--azure-deep); color: #fff; border-radius: var(--radius-lg); padding: 60px 30px; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.cta-band p { opacity: .85; max-width: 540px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.footer { background: var(--azure-deep); color: #c7d4e6; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer a { color: #c7d4e6; font-size: 14px; display: block; padding: 5px 0; }
.footer a:hover { color: #fff; }
.footer .brand .logo { background: var(--grad-azure); }
.footer .brand { color: #fff; }
.footer p { font-size: 14px; opacity: .8; margin-top: 14px; max-width: 280px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; opacity: .7; }
.footer .contact-line { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 8px 0; }

/* ---------- Page hero (inner) ---------- */
.page-hero { background: var(--grad-brand); color: #fff; padding: 70px 0 80px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 48px); }
.page-hero p { opacity: .92; max-width: 600px; margin-top: 14px; font-size: 17px; }
.breadcrumb { font-size: 13px; opacity: .85; margin-bottom: 14px; }

/* ---------- Products page filter ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.chip { border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink-2); font-family: var(--font-display); font-weight: 600; font-size: 14px; padding: 10px 20px; border-radius: 8px; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--azure); color: var(--azure); }
.chip.active { background: var(--grad-azure); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-grid .art img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }
.feature-list li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.feature-list li .dot { flex: 0 0 26px; height: 26px; border-radius: 8px; background: var(--grad-azure); display: grid; place-items: center; color: #fff; font-weight: 800; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info .card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; display: flex; gap: 14px; align-items: flex-start; }
.contact-info .card .ic { flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--grad-azure); display: grid; place-items: center; color: #fff; }
.contact-info .card h4 { font-size: 15px; margin-bottom: 3px; }
.contact-info .card p { font-size: 14px; color: var(--muted); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 13px; margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; font-family: var(--font-body); font-size: 15px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(23,99,196,.14); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .trust .track, .hero .blob { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 460px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .market-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 78px 0 auto 0; background: #fff; flex-direction: column; gap: 0; padding: 14px 22px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); transform: translateY(-140%); transition: transform .3s; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hamburger { display: flex; }
  .nav-right .btn { display: none; }
  .tb-hide-mobile { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .section, .hero { padding: 60px 0; }
  .why { padding: 38px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
