/* ==========================================================================
   SMSBESS Global Stylesheet
   Design system for B2B industrial energy storage website
   ========================================================================== */

:root {
  --brand: #0058B0;
  --brand-dark: #003F7F;
  --brand-light: #E8F2FB;
  --accent: #FF8A00;
  --ink-900: #0A1426;
  --ink-700: #2C3A4D;
  --ink-500: #5A6675;
  --ink-300: #99A2B0;
  --ink-100: #E5E8EC;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --bg-darker: #0D1B2A;
  --success: #00A86B;
  --shadow-sm: 0 1px 3px rgba(10,20,38,.06), 0 1px 2px rgba(10,20,38,.04);
  --shadow-md: 0 4px 16px rgba(10,20,38,.08);
  --shadow-lg: 0 12px 36px rgba(10,20,38,.12);
  --radius: 6px;
  --radius-lg: 12px;
  --container: 1280px;
  --font: 'Inter', -apple-system, 'Segoe UI', 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-dark); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
}

/* Typography */
h1, h2, h3, h4 { color: var(--ink-900); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); line-height: 1.2; }
h3 { font-size: 1.35rem; line-height: 1.3; }
h4 { font-size: 1.1rem; line-height: 1.4; }
p { color: var(--ink-700); }
.lead { font-size: 1.125rem; color: var(--ink-500); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: #fff;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn-secondary:hover { background: var(--brand-light); color: var(--brand); }
.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-ghost:hover { background: #fff; color: var(--brand); }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ==========================================================================
   HEADER (Top utility bar + main nav with mega menu)
   ========================================================================== */
.topbar {
  background: var(--ink-900);
  color: #cbd2dc;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.topbar a { color: #cbd2dc; }
.topbar a:hover { color: #fff; }
.topbar .info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar .info span i { color: var(--accent); margin-right: 6px; }
.topbar .lang a { padding: 0 8px; }
.topbar .lang a.active { color: #fff; font-weight: 600; }

.header {
  background: #fff;
  border-bottom: 1px solid var(--ink-100);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.logo img { height: 42px; width: auto; }
.logo .tag { font-size: 11px; font-weight: 500; color: var(--ink-500); display: block; letter-spacing: .05em; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: block;
  padding: 28px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  position: relative;
}
.main-nav > li > a:hover { color: var(--brand); }
.main-nav > li.active > a::after,
.main-nav > li > a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--brand);
}

.megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(1100px, 92vw);
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--brand);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  z-index: 200;
}
.main-nav > li:hover .megamenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.megamenu .feature {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
}
.megamenu .feature h4 { color: #fff; margin-bottom: 8px; }
.megamenu .feature p { color: rgba(255,255,255,.85); font-size: 14px; margin-bottom: 16px; }
.megamenu .feature .arrow { color: #fff; font-weight: 600; font-size: 14px; }
.megamenu .feature .arrow i { margin-left: 6px; }
.megamenu .col h5 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink-100);
}
.megamenu .col a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-700);
  font-weight: 500;
}
.megamenu .col a:hover { color: var(--brand); padding-left: 4px; transition: padding .15s; }
.megamenu .col a i { color: var(--brand); font-size: 12px; opacity: .6; }

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 11px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
}
.cta-pill:hover { background: #e87a00; color: #fff; }
.cta-pill i { font-size: 13px; }

.menu-toggle { display: none; background: none; font-size: 24px; color: var(--ink-900); }

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .topbar .info { display: none; }

  /* Mobile menu opened state */
  .main-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--ink-100);
    padding: 8px 0;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .main-nav.open > li { width: 100%; border-bottom: 1px solid var(--ink-100); }
  .main-nav.open > li:last-child { border-bottom: none; }
  .main-nav.open > li > a {
    padding: 16px 24px;
    font-size: 16px;
  }
  .main-nav.open > li > a::after { display: none !important; }
  /* Megamenu becomes inline expandable on tap */
  .main-nav.open .megamenu {
    position: static;
    transform: none;
    width: auto;
    box-shadow: none;
    border-top: none;
    padding: 0 24px 16px;
    grid-template-columns: 1fr;
    gap: 16px;
    opacity: 1;
    pointer-events: auto;
    background: var(--ink-50, #f5f7fa);
  }
  .main-nav.open .megamenu .feature { display: none; }
  .main-nav.open .megamenu .col h5 { margin-top: 12px; margin-bottom: 8px; }
  .main-nav.open .cta-pill { margin: 12px 24px; text-align: center; justify-content: center; }
}

/* ==========================================================================
   HERO sections
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--brand-dark) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 90px 0;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.125rem; margin-bottom: 32px; }
.hero .eyebrow { color: #5DD3FF; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero .stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1;
}
.hero .stat-num .unit { font-size: 1rem; color: var(--accent); margin-left: 2px; }
.hero .stat-label { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 6px; }
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.3) 100%);
}

.hero-glow::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,168,255,.25) 0%, transparent 70%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; padding: 60px 0; gap: 40px; }
  .hero .stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero .stat-num { font-size: 1.5rem; }
}

/* Page hero (compact) */
.page-hero {
  background: linear-gradient(135deg, #0D1B2A 0%, #1E3A5F 100%);
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: #fff; margin-bottom: 14px; max-width: 760px; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 720px; }
.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { margin: 0 8px; font-size: 10px; }

/* ==========================================================================
   Section components
   ========================================================================== */
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--ink-500); }
.section-head.left { text-align: left; margin: 0 0 40px; }

/* Bleed strip */
.bg-soft { background: var(--bg-soft); }
.bg-dark { background: var(--bg-darker); color: #fff; }
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark p { color: rgba(255,255,255,.7); }

/* Product card */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.product-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .product-grid, .product-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .product-grid, .product-grid.cols-4, .product-grid.cols-2 { grid-template-columns: 1fr; } }

.product-card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.product-card .thumb {
  aspect-ratio: 4/3;
  background: var(--bg-soft);
  overflow: hidden;
  position: relative;
}
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: .04em;
}
.product-card .body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card .body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.product-card .body .meta {
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.product-card .body p {
  font-size: 14px;
  color: var(--ink-500);
  margin-bottom: 18px;
  flex: 1;
}
.product-card .specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--ink-100);
  margin-bottom: 16px;
}
.product-card .specs dt { font-size: 11px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .04em; }
.product-card .specs dd { font-size: 14px; font-weight: 700; color: var(--ink-900); margin-top: 2px; }
.product-card .actions {
  display: flex;
  gap: 8px;
}
.product-card .actions .btn { flex: 1; justify-content: center; padding: 10px; font-size: 13px; }

/* Spec table (data-first) */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.spec-table thead {
  background: var(--ink-900);
  color: #fff;
}
.spec-table th, .spec-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--ink-100);
}
.spec-table th { font-weight: 600; letter-spacing: .03em; }
.spec-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.spec-table tbody tr:hover { background: var(--brand-light); }
.spec-table td:first-child { font-weight: 600; color: var(--ink-700); width: 30%; }
.spec-table td.num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--brand); }

/* Feature blocks */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }
.feature {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  transition: all .2s;
}
.feature:hover { border-color: var(--brand); box-shadow: var(--shadow-md); }
.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--ink-500); }

/* Stats row (with rich numbers) */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-row > div {
  padding: 32px 28px;
  border-right: 1px solid var(--ink-100);
}
.stat-row > div:last-child { border-right: none; }
.stat-row .num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-row .num small { font-size: 1rem; color: var(--accent); margin-left: 2px; font-weight: 700; }
.stat-row .lbl { font-size: 14px; color: var(--ink-700); margin-top: 8px; font-weight: 600; }
.stat-row .desc { font-size: 12px; color: var(--ink-500); margin-top: 4px; }
@media (max-width: 768px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-row > div { border-right: none; border-bottom: 1px solid var(--ink-100); }
  .stat-row > div:nth-child(2n) { border-right: none; }
  .stat-row .num { font-size: 1.85rem; }
}

/* Case card */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1024px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .case-grid { grid-template-columns: 1fr; } }
.case-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.case-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.case-card:hover img { transform: scale(1.06); }
.case-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,20,38,.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #fff;
}
.case-card .tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.case-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.case-card .loc { font-size: 13px; color: rgba(255,255,255,.75); }
.case-card .meta {
  margin-top: 14px;
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,.85);
}
.case-card .meta b { color: #fff; font-size: 14px; }

/* Trust strip */
.trust-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
}
.trust-strip .label { font-size: 12px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.trust-strip .badges { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.trust-strip .badge-item {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-strip .badge-item i { color: var(--success); }

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section h2 { color: #fff; margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,.9); margin-bottom: 28px; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-section .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--ink-900);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer h5 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  margin-bottom: 18px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: rgba(255,255,255,.7); }
.footer ul li a:hover { color: #fff; }
.footer .brand-block .logo { color: #fff; margin-bottom: 16px; }
.footer .brand-block .logo .tag { color: rgba(255,255,255,.6); }
.footer .brand-block p { color: rgba(255,255,255,.65); margin-bottom: 16px; line-height: 1.6; }
.footer .contact-line { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; }
.footer .contact-line i { color: var(--accent); margin-top: 4px; }
.footer .socials { display: flex; gap: 10px; margin-top: 18px; }
.footer .socials a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
}
.footer .socials a:hover { background: var(--brand); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Floating side toolbar */
.float-tools {
  position: fixed;
  right: 16px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
}
@media (max-width: 640px) {
  .float-tools { right: 12px; bottom: 16px; gap: 6px; }
  .float-tools a { width: 44px !important; height: 44px !important; font-size: 17px !important; }
  .float-tools a .tip { display: none; }
}
.float-tools a {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-lg);
  transition: all .2s;
  position: relative;
}
.float-tools a:hover { background: var(--brand-dark); transform: translateX(-4px); }
.float-tools a.whatsapp { background: #25D366; }
.float-tools a.whatsapp:hover { background: #1da851; }
.float-tools a .tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink-900);
  color: #fff;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.float-tools a:hover .tip { opacity: 1; }

/* Form */
.form-card {
  background: #fff;
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 6px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s;
  background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,88,176,.1);
}
.form-field textarea { resize: vertical; min-height: 110px; }

/* Utility */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 1024px) { .grid-2 { grid-template-columns: 1fr; gap: 40px; } }
.tag-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--brand-light);
  color: var(--brand);
  margin-right: 8px;
  margin-bottom: 8px;
}

/* === Product detail page === */
.product-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, #f6fafe 0%, #e9f2fb 100%);
  position: relative;
}
.product-hero .hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 30px;
}
.product-hero .image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}
.product-hero .info h1 { font-size: clamp(2rem, 3.5vw, 2.75rem); margin: 14px 0; }
.product-hero .lead { font-size: 1.0625rem; color: var(--ink-700); line-height: 1.7; }

.key-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 28px 0;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.key-specs .spec-item { text-align: center; }
.key-specs .spec-item .value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}
.key-specs .spec-item .value small {
  font-size: 0.7em;
  color: var(--ink-500);
  font-weight: 600;
  margin-left: 2px;
}
.key-specs .spec-item .label {
  font-size: 12px;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.cert-pill {
  display: inline-block;
  padding: 6px 14px;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.sticky-tabs {
  position: sticky;
  top: 76px;
  z-index: 49;
  background: #fff;
  border-bottom: 1px solid var(--ink-100);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.sticky-tabs ul {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}
.sticky-tabs li a {
  display: block;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.sticky-tabs li a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.news-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .25s;
}
.news-card:hover { transform: translateY(-4px); }
.news-card h2 { font-size: 1.5rem; margin: 14px 0; }
.news-card h2:hover { color: var(--brand); }

@media (max-width: 768px) {
  .product-hero .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .key-specs { grid-template-columns: repeat(2, 1fr); }
  .sticky-tabs ul { overflow-x: auto; flex-wrap: nowrap; }
  .sticky-tabs li a { padding: 14px 18px; white-space: nowrap; }
}

/* AOS fallback */
[data-aos] { opacity: 0; transform: translateY(20px); transition: all .6s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }


/* Contact page form + locations grid */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 1024px) {
  .contact-form-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   GLOBAL MOBILE SAFETY NET (covers all inline-style grids/flex)
   ============================================================ */

/* Long words / URLs / model numbers must wrap on mobile */
@media (max-width: 768px) {
  body, p, li, td, th, h1, h2, h3, h4, h5, h6, a, span {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  img, video, iframe { max-width: 100%; height: auto; }
}

/* Spec tables → horizontal scroll on mobile so cells don't push viewport */
@media (max-width: 768px) {
  .spec-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .spec-table th, .spec-table td { padding: 10px 12px; font-size: 13px; white-space: nowrap; }
  .spec-table td:first-child { white-space: normal; }
}

/* Phone (≤640px): collapse ALL multi-column inline grids to 1 column */
@media (max-width: 640px) {
  .form-card { padding: 24px 18px !important; }

  /* Catch every common inline grid-template-columns pattern */
  div[style*="grid-template-columns: repeat(2"],
  div[style*="grid-template-columns:repeat(2"],
  div[style*="grid-template-columns: repeat(3"],
  div[style*="grid-template-columns:repeat(3"],
  div[style*="grid-template-columns: repeat(4"],
  div[style*="grid-template-columns:repeat(4"],
  div[style*="grid-template-columns: repeat(5"],
  div[style*="grid-template-columns:repeat(5"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1.2fr"],
  div[style*="grid-template-columns:1.2fr"],
  div[style*="grid-template-columns: 1.4fr"],
  div[style*="grid-template-columns:1.4fr"],
  ul[style*="grid-template-columns: 1fr 1fr"],
  ul[style*="grid-template-columns:1fr 1fr"],
  ul[style*="grid-template-columns: repeat"],
  ul[style*="grid-template-columns:repeat"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Reduce huge inline gaps on mobile */
  div[style*="gap: 60px"],
  div[style*="gap:60px"],
  div[style*="gap: 40px"],
  div[style*="gap:40px"] { gap: 24px !important; }

  /* Reduce inline margin-bottom on mobile case-study sections */
  div[style*="margin-bottom:80px"],
  div[style*="margin-bottom: 80px"] { margin-bottom: 40px !important; }

  /* Section padding shrink */
  section { padding-left: 16px; padding-right: 16px; }
}

/* Tablet (641-1024px): collapse 4/5-col inline grids to 2 columns */
@media (min-width: 641px) and (max-width: 1024px) {
  div[style*="grid-template-columns: repeat(4"],
  div[style*="grid-template-columns:repeat(4"],
  div[style*="grid-template-columns: repeat(5"],
  div[style*="grid-template-columns:repeat(5"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* 1.2fr 1fr split layouts → stack on tablet too */
  div[style*="grid-template-columns: 1.2fr"],
  div[style*="grid-template-columns:1.2fr"],
  div[style*="grid-template-columns: 1.4fr"],
  div[style*="grid-template-columns:1.4fr"] {
    grid-template-columns: 1fr !important;
  }
}
