/* ============================================================
   Fan & Heater B2B Export Website — Global Styles
   Palette: warm-neutral bg, near-black ink, aqua/amber accents
   ============================================================ */

:root {
  --bg: #f5f5f2;
  --bg-dark: #111113;
  --ink: #111113;
  --ink-soft: #454b52;
  --ink-muted: #60676e;
  --line: #deded8;
  --white: #ffffff;

  --accent-aqua: #0ea5e9;   /* fans — cooling */
  --accent-amber: #e8823c;  /* heaters — warmth */

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1200px;
  --font-sans: "Segoe UI", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Segoe UI", "HarmonyOS Sans SC", "Microsoft YaHei", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.18; }
h1 { font-size: clamp(40px, 5.5vw, 78px); font-weight: 750; line-height: 1.1; }
h2 { font-size: clamp(29px, 3.8vw, 48px); }
h3 { font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.018em; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #087ba9;
  margin-bottom: 16px;
}
.eyebrow.warm { color: var(--accent-amber); }

.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 640px; }
.mono { font-family: var(--font-mono); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, transform .3s ease;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.site-header.scrolled {
  background: rgba(245,245,242,.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.logo { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-aqua); }
.logo .dot.warm { background: var(--accent-amber); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 14.5px; font-weight: 550; color: #3c4147; transition: color .2s; letter-spacing: -0.005em; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav .nav-cta {
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px; transition: opacity .2s;
}
.nav .nav-cta:hover { opacity: .85; }

/* ---------- Language switch ---------- */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 13px; border: 1px solid #d5d8d5; border-radius: 9px;
  background: #fff; font-family: var(--font-sans); font-size: 13.5px; font-weight: 600;
  color: #2c3138; line-height: 1; -webkit-font-smoothing: antialiased;
  transition: border-color .2s, box-shadow .2s;
}
.lang-btn:hover { border-color: #b6bdc2; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 148px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(20,30,35,.12); padding: 6px; z-index: 120;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 7px; font-size: 14px; font-weight: 550;
  color: #2c3138; transition: background .15s;
}
.lang-menu a:hover { background: #f3f4f2; }
.lang-menu a.active { color: #087ba9; font-weight: 700; }
.lang-menu a.active::after { content: "✓"; font-size: 13px; }
.lang-menu a[data-lang-es] { color: #7a8188; cursor: pointer; }

.menu-toggle { display: none; font-size: 26px; color: var(--ink); line-height: 1; }

/* ---------- Hero ---------- */
.hero { padding: 140px 0 80px; position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent-aqua); }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 14.5px; letter-spacing: -0.005em; transition: transform .15s ease, opacity .2s, box-shadow .2s; }
.btn-primary { box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(17,17,19,.12); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: rgba(17,17,19,.04); }

.hero-visual {
  position: relative; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #eef5f9 0%, #eef3f0 100%);
  aspect-ratio: 4/3.4; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-visual .product {
  font-size: 150px; line-height: 1; animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }

/* ---------- Trust bar ---------- */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trustbar .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 26px 20px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: none; }
.trust-item .num { font-size: 32px; font-weight: 750; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.trust-item .lbl { font-family: var(--font-sans); font-size: 12.5px; font-weight: 550; color: #5a636b; letter-spacing: .02em; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section.dark { background: var(--bg-dark); color: #fff; }
.section.dark .lead { color: #b9b9b4; }
.section.dark .eyebrow { color: var(--accent-amber); }
.section-head { margin-bottom: 48px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.08); }
.cat-card .icon { font-size: 40px; margin-bottom: 18px; }
.cat-card h3 { font-size: 17.5px; margin-bottom: 6px; letter-spacing: -0.01em; font-weight: 700; }
.cat-card p { font-size: 14px; color: #555c63; line-height: 1.55; }
.cat-card .link { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--accent-aqua); margin-top: 14px; display: inline-block; }
.cat-card.warm .link { color: var(--accent-amber); }

/* ---------- Product cards ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.prod-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.08); }
.prod-thumb { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; font-size: 84px; background: linear-gradient(150deg,#f0f4f7,#eef3f0); }
.prod-card.warm .prod-thumb { background: linear-gradient(150deg,#faf1ea,#f6eee6); }
.prod-body { padding: 20px 22px 24px; }
.prod-body h3 { font-size: 18px; margin-bottom: 4px; }
.prod-body .model { font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; color: #5a636b; margin-bottom: 10px; letter-spacing: .01em; }
.prod-specs { font-size: 13.5px; color: #454b52; margin-bottom: 16px; line-height: 1.7; }
.prod-card .btn { width: 100%; justify-content: center; padding: 12px; font-size: 14px; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .visual { border-radius: var(--radius-lg); background: linear-gradient(160deg,#111113,#2a2a2e); color:#fff; aspect-ratio: 4/3; display:flex; align-items:center; justify-content:center; font-size: 120px; }

.checklist { margin-top: 24px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.checklist li::before { content: "✓"; color: var(--accent-aqua); font-weight: 700; }

/* ---------- Certification strip ---------- */
.cert-strip { display: flex; flex-wrap: wrap; gap: 12px; }
.cert-badge { border: 1px solid var(--line); background:#fff; border-radius: 8px; padding: 11px 16px; font-family: var(--font-sans); font-size: 13.5px; font-weight: 650; letter-spacing: .01em; color: #2c3138; }
.section.dark .cert-badge { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); color:#fff; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 60px 48px; text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band .lead { color: #b9b9b4; margin: 0 auto 28px; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #b9b9b4; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer a { display: block; font-size: 14px; margin-bottom: 10px; color: #b9b9b4; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; font-size: 12.5px; color: #9aa0a6; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Page hero (inner) ---------- */
.page-hero { padding: 150px 0 70px; background: linear-gradient(180deg,#eef2f3, var(--bg)); }
.page-hero h1 { margin-bottom: 14px; }
.page-hero .lead { margin-top: 8px; }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-bar button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: all .15s; }
.filter-bar button.active, .filter-bar button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 18px; font-size: 14px; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child td, .spec-table tr:last-child th { border-bottom: none; }
.spec-table th { font-family: var(--font-sans); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #5a636b; width: 38%; background: #fafaf7; font-weight: 650; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; counter-reset: step; }
.step { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; position: relative; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-sans); font-size: 13px; font-weight: 700; color: var(--accent-aqua); display:block; margin-bottom: 12px; letter-spacing: .04em; }
.step.warm::before { color: var(--accent-amber); }
.step h4 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--ink-muted); }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 15px; background: #fff; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-aqua); }
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; z-index: 90; box-shadow: 0 8px 24px rgba(37,211,102,.4); transition: transform .15s; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Social links ---------- */
.social-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 26px; }
.social-row .label { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #535c64; margin-right: 5px; }
.social-pill {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid #d9dcd9; background: #fff; border-radius: 10px;
  min-height: 44px; padding: 9px 15px 9px 10px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 650; color: #25282b;
  line-height: 1; -webkit-font-smoothing: antialiased;
  transition: transform .15s, box-shadow .2s, border-color .2s;
}
.social-pill:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(20,30,35,.09); border-color: #b6bdc2; }
.social-pill svg { width: 26px; height: 26px; flex: none; display: block; }
.social-pill.fb svg { color: #1877f2; }
.social-pill.tk svg { color: #101114; }
.social-pill.ig svg { color: #c32b80; }
.social-pill.x svg { color: #111; }
.social-pill .social-mark { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; flex: none; }
.social-pill.tk .social-mark { background: #101114; }
.social-pill.tk .social-mark svg { width: 21px; height: 21px; }
.social-pill.ig .social-mark { border-radius: 8px; background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 48%, #6228d7 100%); }
.social-pill.ig .social-mark svg { width: 20px; height: 20px; color: #fff; }
.social-pill.x .social-mark { background: #111; border-radius: 7px; }
.social-pill.x .social-mark svg { width: 17px; height: 17px; color: #fff; }
.social-pill.fb .social-mark { background: #1877f2; border-radius: 50%; }
.social-pill.fb .social-mark svg { width: 26px; height: 26px; color: #fff; }
.social-pill.ws:hover { border-color: #25d366; }

/* footer social (dark) */
.site-footer .social-row .label { color: #8f969d; }
.site-footer .social-pill { width: 38px; min-height: 38px; padding: 5px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; background: #fff; }
.site-footer .social-pill .social-mark { width: 26px; height: 26px; }
.site-footer .social-pill:hover { border-color: #fff; box-shadow: none; }

/* ---------- Factory owner direct Q&A ---------- */
.factory-qa { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; }
.factory-qa .qa-top { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.factory-qa h2 { margin-bottom: 12px; }
.factory-qa .lead { max-width: 100%; }
.qa-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.qa-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: 13px; font-weight: 600; color: #454b52; }
.qa-badge svg { width: 16px; height: 16px; color: var(--accent-aqua); flex: none; }
.qa-owner {
  background: linear-gradient(160deg,#111113,#2a2a2e); color: #fff;
  border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 18px;
}
.qa-owner .owner-head { display: flex; align-items: center; gap: 14px; }
.qa-owner .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-amber); color: #111; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; flex: none; }
.qa-owner h4 { font-size: 17px; }
.qa-owner .role { font-family: var(--font-sans); font-size: 12.5px; color: #c8ccce; font-weight: 500; }
.qa-owner .qa-cta { display: flex; flex-direction: column; gap: 10px; }
.qa-owner .btn { width: 100%; justify-content: center; }
.qa-owner .btn-primary { background: #fff; color: #111; }
.qa-owner .btn-ws { background: #25d366; color: #fff; }
.map-pin { display: flex; align-items: flex-start; gap: 8px; font-family: var(--font-sans); font-size: 12.5px; line-height: 1.55; color: #c8ccce; }
.map-pin svg { width: 16px; height: 16px; color: var(--accent-amber); flex: none; }

@media (max-width: 900px) {
  .factory-qa .qa-top { grid-template-columns: 1fr; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { position: fixed; inset: 68px 0 auto 0; background: var(--bg); flex-direction: column; padding: 24px; gap: 20px; display: none; box-shadow: 0 20px 40px rgba(0,0,0,.1); }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero .container, .split { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .trustbar .container { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cat-grid, .prod-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
}
