/* ============================================
   JC Fluorine Plastic - Independent Station
   Professional B2B OEM Factory Website
   Visual refresh: brand gradient system, refined
   cards, glassy nav, scroll reveal animations
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-primary: #1458a8;
  --c-primary-dark: #0a3a6e;
  --c-primary-deep: #072a50;
  --c-primary-light: #eaf2fc;
  --c-primary-lighter: #f5f9fe;
  --c-accent: #e8392e;
  --c-accent-dark: #c52b21;
  --c-bg: #f6f8fb;
  --c-white: #ffffff;
  --c-text: #16213a;
  --c-gray: #667085;
  --c-gray-light: #98a2b3;
  --c-border: #e4e8ef;
  --c-success: #28a745;
  --gradient-primary: linear-gradient(135deg, #1a6bc4 0%, #0a3a6e 100%);
  --gradient-hero: linear-gradient(118deg, rgba(7,42,80,.88) 0%, rgba(10,58,110,.68) 45%, rgba(26,107,196,.42) 100%);
  --gradient-accent: linear-gradient(135deg, #ef5043 0%, #c52b21 100%);
  --gradient-gold: linear-gradient(90deg, #f5b342, #e8862e);
  --shadow-xs: 0 1px 2px rgba(22,33,58,.06);
  --shadow-sm: 0 2px 8px rgba(22,33,58,.07);
  --shadow-md: 0 8px 24px rgba(22,33,58,.1);
  --shadow-lg: 0 18px 44px rgba(22,33,58,.14);
  --shadow-primary: 0 6px 18px rgba(20,88,168,.22);
  --shadow-accent: 0 6px 18px rgba(232,57,46,.28);
  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --header-height: 66px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary-dark); }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* --- Custom scrollbar (WebKit) --- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: #c3ccd8; border-radius: 6px; border: 2px solid var(--c-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--c-primary); }

/* --- Header --- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-height);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(228,232,239,.85);
  box-shadow: 0 1px 12px rgba(22,33,58,.04);
  display: flex; align-items: center;
}
.header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.header-logo { display: flex; align-items: center; gap: 12px; }
.header-logo img {
  height: 42px; width: auto; border-radius: 8px;
  box-shadow: var(--shadow-xs);
}
.header-logo .brand { font-size: 15px; font-weight: 800; color: var(--c-primary-dark); line-height: 1.2; letter-spacing: .2px; }
.header-logo .brand small { display: block; font-size: 10px; font-weight: 500; color: var(--c-gray); letter-spacing: .4px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; padding: 9px 15px; font-size: 14px; font-weight: 600; color: var(--c-text);
  border-radius: var(--radius-sm); transition: color .2s, background .2s;
}
.nav a::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px;
  background: var(--gradient-primary); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:hover, .nav a.active { color: var(--c-primary); background: var(--c-primary-light); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav .btn-cta {
  background: var(--gradient-accent); color: #fff; margin-left: 10px; box-shadow: var(--shadow-accent);
  padding: 9px 20px;
}
.nav .btn-cta::after { display: none; }
.nav .btn-cta:hover { background: var(--c-accent-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(232,57,46,.35); }

.mobile-toggle {
  display: none; background: var(--c-primary-light); border: none; border-radius: var(--radius-sm);
  font-size: 22px; width: 42px; height: 42px; cursor: pointer; color: var(--c-primary);
  transition: background .2s;
}
.mobile-toggle:hover { background: var(--c-primary-light); color: var(--c-primary-dark); }

/* --- Hero --- */
.hero {
  margin-top: var(--header-height);
  position: relative; height: 580px; overflow: hidden;
  background: var(--c-primary-deep);
  display: flex; align-items: center;
}
.hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .4; filter: saturate(.92) contrast(1.02);
}
.hero::before {
  content: ''; position: absolute; inset: 0; background: var(--gradient-hero); z-index: 1;
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: 2;
  background: linear-gradient(180deg, rgba(246,248,251,0) 0%, var(--c-bg) 100%);
}
.hero-overlay {
  position: relative; z-index: 3; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 40px 20px 60px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px); border-radius: 30px;
  padding: 6px 16px; font-size: 12px; font-weight: 700; letter-spacing: 2.2px;
  text-transform: uppercase; color: rgba(255,255,255,.92); margin-bottom: 22px;
}
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px rgba(74,222,128,.9); }
.hero h1 {
  font-size: 3rem; font-weight: 800; margin-bottom: 18px; line-height: 1.15;
  text-shadow: 0 3px 18px rgba(0,0,0,.28); letter-spacing: -.5px;
  max-width: 780px;
}
.hero h1 .hl { background: linear-gradient(90deg, #ffd9a0, #ffb35c); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.16rem; max-width: 640px; margin-bottom: 30px; opacity: .94; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero-badge {
  background: rgba(255,255,255,.13); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.28); border-radius: 30px;
  padding: 7px 16px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.hero-badge:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,.8); }

/* --- Trust Bar --- */
.trust-bar {
  background: var(--c-white); border-bottom: 1px solid var(--c-border);
  padding: 26px 0;
}
.trust-bar .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--c-primary-light);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  box-shadow: inset 0 0 0 1px rgba(20,88,168,.08);
}
.trust-item .text { font-size: 14px; }
.trust-item .text strong { display: block; font-weight: 700; color: var(--c-text); }
.trust-item .text span { color: var(--c-gray); font-size: 12px; }

/* --- Section --- */
.section { padding: 72px 0; position: relative; }
.section-alt { background: var(--c-white); }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 {
  font-size: 2.1rem; font-weight: 800; color: var(--c-text); margin-bottom: 10px;
  letter-spacing: -.3px;
}
.section-title p { color: var(--c-gray); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }
.section-title::after {
  content: ''; display: block; width: 64px; height: 4px; margin: 16px auto 0;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  border-radius: 3px; box-shadow: 0 2px 8px rgba(20,88,168,.25);
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 32px; border-radius: 10px; font-weight: 700; font-size: 15px;
  transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; border: none;
  letter-spacing: .2px;
}
.btn-primary { background: var(--gradient-accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary:hover { background: var(--c-accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(232,57,46,.38); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { background: rgba(255,255,255,.1); color: #fff; border: 2px solid rgba(255,255,255,.85); backdrop-filter: blur(4px); }
.btn-outline:hover { background: rgba(255,255,255,.18); color: #fff; transform: translateY(-2px); }
.btn-blue { background: var(--gradient-primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn-blue:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20,88,168,.3); }

/* --- About Preview --- */
.about-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-preview p { margin-bottom: 16px; color: #3d4a5c; }
.about-preview h3 { font-size: 1.35rem; margin-bottom: 14px; color: var(--c-primary-dark); }
.about-preview .img-box {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border); position: relative;
}
.about-preview .img-box img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.about-stat {
  text-align: center; padding: 24px 10px; background: var(--c-white);
  border-radius: var(--radius); border: 1px solid var(--c-border);
  box-shadow: var(--shadow-xs); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.about-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(20,88,168,.25); }
.about-stat .num {
  font-size: 2.2rem; font-weight: 800; color: var(--c-primary);
  background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.about-stat .label { font-size: 13px; color: var(--c-gray); font-weight: 500; }

/* --- Product Grid --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.product-card {
  background: var(--c-white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
  cursor: pointer; border: 1px solid var(--c-border);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(20,88,168,.3); }
.product-card img {
  width: 100%; aspect-ratio: 4/3; object-fit: contain; background:
    radial-gradient(120% 120% at 50% 0%, #ffffff 0%, #f2f5fa 100%);
  border-bottom: 1px solid var(--c-border); transition: transform .3s ease; padding: 12px;
}
.product-card:hover img { transform: scale(1.03); }
.product-card .info { padding: 14px 16px; }
.product-card .info .name { font-size: 14px; font-weight: 700; color: var(--c-text); }
.product-card .info .desc { font-size: 12px; color: var(--c-gray); margin-top: 4px; }

/* --- Factory Gallery --- */
.factory-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.factory-item {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s; cursor: pointer; border: 1px solid var(--c-border);
  background: var(--c-white);
}
.factory-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.factory-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .35s ease; }
.factory-item:hover img { transform: scale(1.04); }
.factory-item .cap { padding: 14px 16px; background: var(--c-white); }
.factory-item .cap strong { font-size: 14px; color: var(--c-text); }
.factory-item .cap p { font-size: 12px; color: var(--c-gray); margin-top: 4px; }

/* --- Certificates --- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.cert-card {
  background: var(--c-white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); text-align: center; transition: transform .25s, box-shadow .25s, border-color .25s;
  border: 1px solid var(--c-border);
}
.cert-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(20,88,168,.3); }
.cert-card img { width: 100%; cursor: zoom-in; }
.cert-card .info { padding: 18px; }
.cert-card .info h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--c-text); }
.cert-card .info p { font-size: 13px; color: var(--c-gray); }

/* --- OEM Section --- */
.oem-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.oem-feature {
  background: var(--c-white); border-radius: var(--radius); padding: 30px 22px; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
  border: 1px solid var(--c-border);
}
.oem-feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(20,88,168,.3); }
.oem-feature .icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px;
  background: var(--c-primary-light); display: flex; align-items: center; justify-content: center;
  font-size: 30px; box-shadow: inset 0 0 0 1px rgba(20,88,168,.1);
}
.oem-feature h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--c-text); }
.oem-feature p { font-size: 13px; color: var(--c-gray); }

.oem-process { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin: 44px 0; }
.oem-step {
  flex: 1; min-width: 140px; text-align: center; padding: 20px 10px; position: relative;
  transition: transform .2s;
}
.oem-step:hover { transform: translateY(-4px); }
.oem-step .num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--gradient-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 12px;
  font-size: 16px; box-shadow: var(--shadow-primary);
}
.oem-step h4 { font-size: 14px; margin-bottom: 4px; color: var(--c-text); font-weight: 700; }
.oem-step p { font-size: 12px; color: var(--c-gray); }
.oem-step::after {
  content: ''; position: absolute; top: 44px; right: -50%; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--c-primary), rgba(20,88,168,.15)); z-index: -1;
}
.oem-step:last-child::after { display: none; }

/* Customization table */
.spec-table {
  width: 100%; border-collapse: collapse; margin-top: 20px; background: var(--c-white);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}
.spec-table th, .spec-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--c-border); }
.spec-table th { background: var(--gradient-primary); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .3px; }
.spec-table td { font-size: 14px; color: #3d4a5c; }
.spec-table tbody tr:nth-child(even) td { background: var(--c-primary-lighter); }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:hover td { background: var(--c-primary-light); }

/* --- CTA Section --- */
.cta-section {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0a3a6e 0%, #1458a8 55%, #1a6bc4 100%);
  color: #fff; text-align: center; padding: 76px 20px;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 80% 10%, rgba(255,255,255,.12) 0%, transparent 60%),
              radial-gradient(50% 100% at 15% 90%, rgba(255,255,255,.08) 0%, transparent 55%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 14px; letter-spacing: -.3px; }
.cta-section p { font-size: 1.12rem; opacity: .92; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form {
  background: var(--c-white); border-radius: var(--radius); padding: 34px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--c-border);
}
.contact-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--c-text); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 11px 15px; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; margin-bottom: 18px; transition: border .2s, box-shadow .2s;
  background: var(--c-bg);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  border-color: var(--c-primary); outline: none; background: #fff;
  box-shadow: 0 0 0 4px rgba(20,88,168,.12);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.form-msg {
  display: none; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 16px;
  background: #ecfdf3; border: 1px solid #a6f4c5; color: #067647; font-size: 14px; font-weight: 500;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  background: var(--c-white); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--c-border);
  transition: transform .25s, box-shadow .25s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-card h3 {
  font-size: 18px; margin-bottom: 18px; color: var(--c-primary-dark); font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.contact-card h3::before {
  content: ''; width: 6px; height: 18px; border-radius: 3px; background: var(--gradient-accent);
}
.contact-card .item { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.contact-card .item .ic {
  font-size: 19px; width: 42px; height: 42px; border-radius: 12px; text-align: center;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-primary-light); flex-shrink: 0;
}
.contact-card .item .val { font-size: 15px; color: var(--c-text); }
.contact-card .item .val a { font-weight: 600; }
.contact-card .item .val small { display: block; color: var(--c-gray); font-size: 12px; margin-top: 2px; }
.whatsapp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #2dd36b, #1da851); color: #fff;
  padding: 13px 26px; border-radius: 10px; font-weight: 700; font-size: 15px;
  transition: transform .2s, box-shadow .2s; box-shadow: 0 6px 18px rgba(37,211,102,.3);
  width: 100%;
}
.whatsapp-btn:hover { background: #1da851; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37,211,102,.4); }
.whatsapp-btn .wa-icon { width: 22px; height: 22px; }

/* --- Page Header (non-home pages) --- */
.page-header {
  position: relative; margin-top: var(--header-height); padding: 68px 20px; text-align: center;
  background: linear-gradient(135deg, #072a50 0%, #0a3a6e 50%, #1458a8 100%);
  color: #fff; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(55% 90% at 85% 0%, rgba(255,255,255,.12) 0%, transparent 55%),
              radial-gradient(45% 80% at 10% 100%, rgba(255,255,255,.07) 0%, transparent 50%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -.4px; text-shadow: 0 2px 14px rgba(0,0,0,.22); }
.page-header p { font-size: 1.1rem; opacity: .9; max-width: 680px; margin: 0 auto; }
.page-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, transparent 5%, #f5b342 30%, var(--c-accent) 55%, transparent 95%);
}

/* --- Footer --- */
.footer {
  position: relative; background: #10182c; color: #9aa6b8; padding: 52px 0 24px;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--c-primary), #1a6bc4, var(--c-accent));
}
.footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 700; letter-spacing: .3px; }
.footer p { font-size: 13px; line-height: 1.85; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { color: #9aa6b8; font-size: 13px; transition: color .2s, padding-left .2s; }
.footer ul li a:hover { color: #fff; padding-left: 4px; }
.footer-bottom {
  text-align: center; padding-top: 24px; margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #6d7a8f;
}

/* --- Back to top --- */
.back-to-top {
  position: fixed; right: 26px; bottom: 30px; z-index: 1500;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--gradient-primary); color: #fff; font-size: 20px; line-height: 1;
  box-shadow: var(--shadow-primary); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, box-shadow .3s;
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,88,168,.35); }

/* --- WhatsApp float button --- */
.whatsapp-float {
  position: fixed; right: 26px; bottom: 86px; z-index: 1500;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.45);
  transition: transform .3s, box-shadow .3s;
  animation: wa-pulse 2s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 10px 28px rgba(37,211,102,.55);
}
.whatsapp-float svg { width: 30px; height: 30px; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,.45); }
  50% { box-shadow: 0 6px 20px rgba(37,211,102,.45), 0 0 0 12px rgba(37,211,102,.12); }
}

/* --- Search/Filter --- */
.search-bar { margin-bottom: 28px; display: flex; gap: 12px; max-width: 560px; margin-left: auto; margin-right: auto; }
.search-bar input {
  flex: 1; padding: 13px 18px; border: 1px solid var(--c-border); border-radius: 30px;
  font-size: 14px; box-shadow: var(--shadow-xs); transition: border .2s, box-shadow .2s;
  background: var(--c-white);
}
.search-bar input:focus {
  border-color: var(--c-primary); outline: none;
  box-shadow: 0 0 0 4px rgba(20,88,168,.12);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed; inset: 0; background: rgba(8,14,26,.9); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 40px;
  backdrop-filter: blur(6px);
}
.lightbox.active { display: flex; animation: fadeIn .2s ease; }
.lightbox img {
  max-width: 92%; max-height: 88vh; border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.lightbox .close {
  position: absolute; top: 22px; right: 30px; font-size: 40px; color: #fff; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); transition: background .2s, transform .2s; line-height: 1;
}
.lightbox .close:hover { background: rgba(255,255,255,.22); transform: rotate(90deg); }

/* --- Animations --- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-up { animation: fadeUp .6s ease-out; }

/* Scroll reveal (class added by JS; content visible without JS) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav {
    display: none; position: absolute; top: var(--header-height); left: 0; right: 0;
    background: rgba(255,255,255,.98); flex-direction: column; padding: 12px;
    box-shadow: var(--shadow-md); border-bottom: 1px solid var(--c-border);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 16px; width: 100%; }
  .nav a::after { display: none; }
  .nav .btn-cta { margin-left: 0; margin-top: 8px; }
  .mobile-toggle { display: block; }
  .hero { height: auto; min-height: 520px; }
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: .98rem; }
  .about-preview, .contact-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .oem-step::after { display: none; }
  .footer .container { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .page-header h1 { font-size: 1.7rem; }
  .section { padding: 52px 0; }
}

/* === About stats 4 columns on desktop === */
@media (min-width: 700px) { .about-stats { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 699px) { .about-stats { grid-template-columns: repeat(2, 1fr); } }
.about-stat .num { font-size: 34px; }

/* === WRAS approved cert card === */
.cert-card.cert-wras {
  border: 2px solid #5cb867;
  background: linear-gradient(160deg, #f3faf3 0%, #fff 100%);
  box-shadow: 0 8px 24px rgba(76,175,80,.16);
}
.cert-placeholder { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.cert-placeholder.approved {
  background: radial-gradient(120% 120% at 50% 0%, #e8f5e9 0%, #f7fdf7 100%);
  color: #2e7d32;
}
.cert-placeholder .big-icon { font-size: 80px; opacity: .75; }
.cert-tag {
  display: inline-block; margin-top: 10px; padding: 5px 14px;
  background: linear-gradient(135deg, #e8f5e9, #d7efd8); color: #1f6e25;
  border: 1px solid #9ed6a2; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: .4px;
}

/* === Products dropdown === */
.nav-dropdown { position: relative; }
.nav-dropdown > a {
  padding: 9px 15px; font-size: 14px; font-weight: 600; color: var(--c-text);
  border-radius: var(--radius-sm); transition: all .2s; display: flex; align-items: center; gap: 5px;
}
.nav-dropdown > a:hover, .nav-dropdown > a.active { color: var(--c-primary); background: var(--c-primary-light); }
.nav-dropdown .caret { font-size: 10px; opacity: .7; transition: transform .2s; }
.nav-dropdown:hover .caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px;
  background: rgba(255,255,255,.97); border: 1px solid var(--c-border); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 8px; display: none;
  flex-direction: column; gap: 2px; z-index: 100;
  backdrop-filter: blur(8px);
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu { display: flex; animation: fadeIn .18s ease; }
.nav-dropdown-menu a {
  padding: 11px 15px; font-size: 14px; border-radius: var(--radius-sm);
  color: var(--c-text); font-weight: 600; white-space: nowrap; transition: background .15s, color .15s, padding-left .2s;
}
.nav-dropdown-menu a:hover { background: var(--c-primary-light); color: var(--c-primary); padding-left: 20px; }

/* === Product type cards (complementary products) === */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.type-card {
  display: block; background: var(--c-white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
  color: var(--c-text); cursor: pointer; border: 1px solid var(--c-border);
}
.type-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(20,88,168,.3); color: var(--c-text); }
.type-card .info { padding: 15px 17px; }
.type-card .info h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--c-text); }
.type-card .info p { font-size: 13px; color: var(--c-gray); }
.type-card-img {
  aspect-ratio: 4/3; background:
    radial-gradient(120% 120% at 50% 0%, #ffffff 0%, #f2f5fa 100%);
  border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.type-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .3s; }
.type-card:hover .type-card-img img { transform: scale(1.05); }
.featured-hero-img {
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border); cursor: pointer; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #ffffff 0%, #f2f5fa 100%);
}
.featured-hero-img img { transition: transform .3s; }
.featured-hero-img:hover img { transform: scale(1.03); }

/* === Product gallery (complementary products) === */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.gallery-item {
  aspect-ratio: 1; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-xs); cursor: pointer; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-border); transition: transform .22s, box-shadow .22s, border-color .22s;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(20,88,168,.3); }
.gallery-item img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .25s; }
.gallery-item:hover img { transform: scale(1.06); }

/* === Product photo placeholder (photos coming soon) === */
.prod-ph {
  aspect-ratio: 4/3; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 50% 0%, var(--c-primary-light) 0%, #fff 100%);
  color: var(--c-primary); border-bottom: 1px solid var(--c-border);
}
.prod-ph .ph-icon { font-size: 56px; opacity: .55; line-height: 1; }
.prod-ph .ph-text { font-size: 12px; color: var(--c-gray); margin-top: 10px; font-weight: 600; letter-spacing: .3px; }

/* === Note card (complementary positioning) === */
.note-card {
  margin-top: 34px; padding: 26px 28px; border-left: 4px solid var(--c-primary);
  background: linear-gradient(135deg, var(--c-primary-light) 0%, #fff 100%);
  border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow-xs);
}
.note-card h3 { font-size: 16px; font-weight: 700; color: var(--c-primary-dark); margin-bottom: 8px; }
.note-card p { font-size: 14px; color: #33415c; }

/* === Responsive: dropdown on mobile === */
@media (max-width: 768px) {
  .nav-dropdown { width: 100%; }
  .nav-dropdown > a { width: 100%; }
  .nav-dropdown-menu {
    position: static; box-shadow: none; border: none; padding: 0 0 0 12px;
    display: flex; background: transparent; backdrop-filter: none;
  }
  .type-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
  .hero-cta { flex-direction: column; align-items: center; width: 100%; }
  .hero-cta .btn { width: 100%; max-width: 320px; }
  .back-to-top { right: 16px; bottom: 20px; width: 42px; height: 42px; }
  .whatsapp-float { right: 16px; bottom: 72px; width: 48px; height: 48px; }
}
