/* FBE Electric - Industrial B2B Website Styles
   Style inspired by newelectricpower.com
   Color palette: deep navy + teal + orange accent */

:root {
  --navy: #0a1a2f;
  --navy-2: #0d2236;
  --navy-3: #163049;
  --teal: #1f8a8a;
  --teal-light: #2aa5a5;
  --teal-dark: #157070;
  --orange: #f39323;
  --orange-dark: #d97e15;
  --red: #d23a3a;
  --white: #ffffff;
  --gray-50: #f7f9fb;
  --gray-100: #eef2f6;
  --gray-200: #dde4ec;
  --gray-300: #c5d0db;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --shadow-sm: 0 2px 8px rgba(10, 26, 47, 0.06);
  --shadow: 0 6px 24px rgba(10, 26, 47, 0.08);
  --shadow-lg: 0 16px 48px rgba(10, 26, 47, 0.16);
  --transition: 0.3s ease;
  --header-h: 80px;
  --max-w: 1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* ===========================================================
   Language visibility (CSS-class driven, no JS timing issues)
   - Default: all [data-lang] hidden
   - <html class="lang-zh">: Chinese visible, English hidden
   - <html class="lang-en">: English visible, Chinese hidden
   The saved-localStorage check in <head> sets the class BEFORE
   the body parses, so the very first paint shows the right lang.
   =========================================================== */

/* IMPORTANT: we use `!important` on these rules so any class with its own
   display: declaration (e.g. `.btn { display: inline-flex }`, `.hero-tag {
   display: inline-block }`) cannot win via equal specificity. Two-sibling
   i18n pairs must NEVER both render — the non-active language stays
   display:none no matter what other rules apply. */
[data-lang] { display: none !important; }

/* Inline-level: span, small, strong, b, i, em — re-show in matching lang */
html.lang-zh span[data-lang="zh"], html.lang-en span[data-lang="en"],
html.lang-zh small[data-lang="zh"], html.lang-en small[data-lang="en"],
html.lang-zh strong[data-lang="zh"], html.lang-en strong[data-lang="en"],
html.lang-zh b[data-lang="zh"], html.lang-en b[data-lang="en"],
html.lang-zh em[data-lang="zh"], html.lang-en em[data-lang="en"] {
  display: inline !important;
}

/* Block-level default for everything else (p, h1-h6, li, div, etc.) */
html.lang-zh [data-lang="zh"]:not(span):not(a):not(small):not(strong):not(b):not(em):not(.btn),
html.lang-en [data-lang="en"]:not(span):not(a):not(small):not(strong):not(b):not(em):not(.btn) {
  display: block !important;
}

/* Links remain inline so wrap doesn't break menu layout */
html.lang-zh a[data-lang="zh"]:not(.btn), html.lang-en a[data-lang="en"]:not(.btn),
html.lang-zh a.btn[data-lang="zh"], html.lang-en a.btn[data-lang="en"],
html.lang-zh button.btn[data-lang="zh"], html.lang-en button.btn[data-lang="en"] {
  display: inline-block !important;
}

/* Buttons (.btn) get their original visual display when active */
html.lang-zh a.btn[data-lang="zh"], html.lang-en a.btn[data-lang="en"],
html.lang-zh button.btn[data-lang="zh"], html.lang-en button.btn[data-lang="en"] {
  display: inline-flex !important;
}

/* Class-based displays that conflict with [data-lang]'s hide rule:
   any class that declares a non-default display needs these overrides
   so the element shows correctly when its language is active. */
html.lang-zh .hero-tag[data-lang="zh"], html.lang-en .hero-tag[data-lang="en"],
html.lang-zh .section-label[data-lang="zh"], html.lang-en .section-label[data-lang="en"],
html.lang-zh .product-card-tag[data-lang="zh"], html.lang-en .product-card-tag[data-lang="en"],
html.lang-zh .project-card-tag[data-lang="zh"], html.lang-en .project-card-tag[data-lang="en"],
html.lang-zh .timeline-year[data-lang="zh"], html.lang-en .timeline-year[data-lang="en"],
html.lang-zh .cert-label[data-lang="zh"], html.lang-en .cert-label[data-lang="en"] {
  display: inline-block !important;
}

html.lang-zh .view-more[data-lang="zh"], html.lang-en .view-more[data-lang="en"],
html.lang-zh a.view-more[data-lang="zh"], html.lang-en a.view-more[data-lang="en"] {
  display: inline-flex !important;
}



body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-700);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color var(--transition); }

ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ================================
   Header — top utility bar + nav
   ================================ */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar a:hover { color: var(--orange); }

.topbar-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-info span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--orange);
  border-radius: 50%;
}

.topbar-info span:first-child::before { display: none; }

.topbar-social {
  display: flex;
  gap: 14px;
  font-size: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img {
  height: 52px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 18px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.logo-text small {
  font-size: 11px;
  color: var(--gray-500);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
  padding: 10px 18px;
  border-radius: 4px;
  position: relative;
  transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--teal);
  background: rgba(31, 138, 138, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
  border: 1px solid var(--gray-200);
  padding: 8px 14px;
  border-radius: 4px;
  background: none;
  font-weight: 600;
  transition: all var(--transition);
}

.lang-switch:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-accent {
  background: var(--orange);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

/* ================================
   Hero — sliding showcase panels
   ================================ */
.hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
}

.hero-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-slide {
  flex: 0 0 100%;
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(10,26,47,0.92) 0%, rgba(10,26,47,0.65) 50%, rgba(31,138,138,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 60px 0;
}

.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(243, 147, 35, 0.12);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
  border: 1px solid rgba(243, 147, 35, 0.3);
}

.hero-content h1 {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-content h1 .accent {
  color: var(--orange);
}

.hero-content p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-dot {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.hero-dot.active {
  background: var(--orange);
  width: 56px;
}

/* ================================
   Section Common
   ================================ */
section { padding: 88px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
  position: relative;
  padding: 0 24px;
}

.section-label::before, .section-label::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--teal);
}

.section-label::before { left: 0; }
.section-label::after { right: 0; }

.section-header h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.section-header h2 .accent { color: var(--orange); }

.section-header p {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ================================
   Featured Categories — 4-col grid
   ================================ */
.categories-section {
  background: var(--white);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-50);
  aspect-ratio: 3/4;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.category-card-image {
  height: 65%;
  overflow: hidden;
  background: var(--white);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card-image img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.category-card:hover .category-card-image img {
  transform: scale(1.05);
}

.category-card-body {
  padding: 20px 24px 24px;
  background: var(--white);
  height: 35%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.category-card-body p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 12px;
}

.category-card .link-more {
  font-size: 13px;
  color: var(--teal);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category-card .link-more::after {
  content: "→";
  transition: transform var(--transition);
}

.category-card:hover .link-more::after {
  transform: translateX(4px);
}

/* ================================
   About Stats — dark navy block
   ================================ */
.about-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(31,138,138,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.about-section::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(243,147,35,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-text .section-label {
  color: var(--orange);
}

.about-text .section-label::before, .about-text .section-label::after {
  background: var(--orange);
}

.about-text h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-text .lead {
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 16px;
}

.about-text p {
  font-size: 15px;
  opacity: 0.78;
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-text .btn {
  margin-top: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 36px 20px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}

.stat-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 13px;
  opacity: 0.78;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* ================================
   Featured Products
   ================================ */
.product-showcase {
  background: var(--gray-50);
}

.product-block {
  margin-bottom: 72px;
}

.product-block:last-child { margin-bottom: 0; }

.product-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--gray-100);
}

.product-block-header h3 {
  font-size: 26px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.3px;
}

.product-block-header h3 small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.view-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 0;
  transition: color var(--transition);
}

.view-more:hover {
  color: var(--orange);
}

.view-more::after {
  content: "→";
  transition: transform var(--transition);
}

.view-more:hover::after {
  transform: translateX(4px);
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-cards.product-cards-single {
  grid-template-columns: 1fr;
}

.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.product-card-image {
  height: 240px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.product-card-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  z-index: 0;
}

.product-card-image img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
  position: relative;
  z-index: 1;
}

.product-card:hover .product-card-image img {
  transform: scale(1.08);
}

.product-card-body {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-card-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.4;
}

.product-card-body p {
  font-size: 13.5px;
  color: var(--gray-500);
  margin-bottom: 16px;
  line-height: 1.6;
  flex: 1;
}

.product-card-actions {
  display: flex;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.product-card-actions a {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-card-actions a:hover {
  color: var(--orange);
}

.product-card-actions a::after {
  content: "→";
  transition: transform var(--transition);
}

.product-card-actions a:hover::after {
  transform: translateX(3px);
}

/* ================================
   Projects / Cases
   ================================ */
.projects-section {
  background: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--gray-100);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.08);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,26,47,0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.project-card-tag {
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-card-body {
  padding: 20px 24px 24px;
}

.project-card-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 6px;
}

.project-card-body p {
  font-size: 13px;
  color: var(--gray-500);
}

/* ================================
   Advantages — 4-col icons
   ================================ */
.advantages-section {
  background: var(--gray-50);
  position: relative;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.advantage-item {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}

.advantage-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--orange) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.advantage-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.advantage-item:hover::before {
  transform: scaleX(1);
}

.advantage-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(31, 138, 138, 0.3);
}

.advantage-item h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.advantage-item p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ================================
   Certifications
   ================================ */
.certifications-section {
  background: var(--gray-50);
  padding: 80px 0;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.certs-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 24px 18px 28px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.certs-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--teal);
}

.certs-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.414;
  margin-bottom: 18px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--gray-50);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: zoom-in;
  display: block;
}

.certs-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.certs-card:hover .certs-img img {
  transform: scale(1.04);
}

.certs-zoom {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.certs-card:hover .certs-zoom {
  opacity: 1;
}

.certs-badge {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -42px;
  background: var(--white);
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}

.certs-badge svg {
  width: 100%;
  height: 100%;
}

.certs-badge-iso {
  color: #1a4d8c;
}

.certs-badge-ce {
  color: #003d7a;
}

.certs-badge-asta {
  color: #b8312f;
}

.certs-card h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.certs-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 45, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 40px;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
  background: #fff;
}

.lightbox-caption {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ================================
   CTA Banner
   ================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-2) 0%, var(--teal-dark) 50%, var(--navy) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.5;
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: 34px;
  margin-bottom: 14px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 32px;
  font-size: 17px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================
   Contact Section
   ================================ */
.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}

.contact-info h3 {
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 28px;
  font-weight: 800;
}

.contact-detail {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
  align-items: flex-start;
  padding: 4px 0;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(31, 138, 138, 0.25);
}

.contact-detail-text strong {
  display: block;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.contact-detail-text span,
.contact-detail-text a {
  font-size: 15px;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.5;
}

.contact-detail-text a:hover {
  color: var(--teal);
}

.contact-form {
  background: var(--gray-50);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--gray-100);
}

.contact-form h3 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 800;
}

.contact-form .subtitle {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  transition: all var(--transition);
  color: var(--gray-700);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 138, 138, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
  color: var(--teal);
}

.form-success.show {
  display: block;
}

.form-success h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--teal);
}

/* ================================
   Page Banner
   ================================ */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--teal-dark) 100%);
  color: var(--white);
  padding: 80px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M30 0 L60 30 L30 60 L0 30 Z" fill="none" stroke="rgba(255,255,255,0.04)" stroke-width="1"/></svg>');
  opacity: 0.6;
}

.page-banner > * {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.page-banner p {
  font-size: 16px;
  opacity: 0.85;
  max-width: 720px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  margin-top: 20px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.breadcrumb a:hover {
  color: var(--orange);
  opacity: 1;
}

.breadcrumb span:not(:last-child) {
  opacity: 0.5;
}

/* ================================
   Products Page Layout
   ================================ */
.products-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 56px 0 88px;
}

.sidebar-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--gray-100);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sidebar-nav h4 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  background: var(--navy);
  padding: 18px 20px;
  margin-bottom: 0;
}

.sidebar-nav ul {
  padding: 8px 0;
}

.sidebar-nav li { margin: 0; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--gray-600);
  border-left: 3px solid transparent;
  transition: all var(--transition);
  font-weight: 500;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--gray-50);
  color: var(--teal);
  border-left-color: var(--teal);
  font-weight: 700;
}

.sidebar-nav a::after {
  content: "›";
  font-size: 18px;
  opacity: 0.4;
  transition: all var(--transition);
}

.sidebar-nav a:hover::after,
.sidebar-nav a.active::after {
  opacity: 1;
  transform: translateX(3px);
}

/* ================================
   About Page
   ================================ */
.about-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}

.about-page-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-page-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-page-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(31,138,138,0.1) 100%);
}

.about-page-text h2 {
  font-size: 32px;
  color: var(--navy);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.about-page-text p {
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 16px;
  font-size: 15px;
}

.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--teal) 0%, var(--orange) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
  padding-bottom: 8px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--teal);
  box-shadow: 0 0 0 4px rgba(31, 138, 138, 0.15);
}

.timeline-year {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.timeline-item h4 {
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 700;
}

.timeline-item p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cert-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  transition: all var(--transition);
}

.cert-item:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cert-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.cert-label {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.triangle-card {
  background: var(--white);
  padding: 24px 28px;
  border-radius: 8px;
  margin-bottom: 16px;
  border-left: 4px solid var(--teal);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.triangle-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

.triangle-card h4 {
  font-size: 18px;
  color: var(--teal);
  margin-bottom: 6px;
  font-weight: 800;
}

.triangle-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
}

.triangle-card.orange { border-left-color: var(--orange); }
.triangle-card.orange h4 { color: var(--orange); }

/* ================================
   Footer
   ================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 0;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--orange) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 18px;
  background: var(--white);
  padding: 6px 12px;
  border-radius: 4px;
}

.footer-brand h4 {
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  margin-top: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--orange);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 14px;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col a:hover {
  color: var(--orange);
  transform: translateX(4px);
}

.footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
}

.footer-contact-line strong {
  color: var(--white);
  flex-shrink: 0;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
  color: var(--orange);
}

/* ================================
   Back to Top
   ================================ */
.back-to-top {
  position: fixed;
  bottom: 36px;
  right: 36px;
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(243, 147, 35, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--orange-dark);
  transform: translateY(-4px);
}

/* ================================
   Floating WhatsApp button
   ================================ */
.whatsapp-float {
  position: fixed;
  bottom: 36px;
  left: 36px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  background: #1ebe5b;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-float-icon {
  width: 30px;
  height: 30px;
  display: block;
}

.whatsapp-float-tooltip {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 4px 14px rgba(10, 26, 47, 0.25);
}

.whatsapp-float-tooltip::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: var(--navy);
}

.whatsapp-float:hover .whatsapp-float-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(2px);
}

.whatsapp-float-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.6;
  z-index: -1;
  animation: whatsapp-pulse 2.4s ease-out infinite;
}

@keyframes whatsapp-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(1.6); opacity: 0;    }
  100% { transform: scale(1.6); opacity: 0;    }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 24px;
    left: 24px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float-icon { width: 28px; height: 28px; }
  .whatsapp-float-tooltip { display: none; }
}

/* ================================
   Side inquiry form (floating)
   ================================ */
.inquiry-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 26, 47, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}

.inquiry-modal.show {
  display: flex;
}

.inquiry-modal-content {
  background: var(--white);
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.inquiry-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--gray-500);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.inquiry-modal-close:hover {
  background: var(--gray-100);
  color: var(--navy);
}

.inquiry-modal-content .contact-form {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 40px;
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .products-layout { grid-template-columns: 1fr; }
  .sidebar-nav { position: static; }
  .topbar-info { font-size: 12px; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .topbar { display: none; }

  .header-inner { height: 64px; }

  :root { --header-h: 64px; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    z-index: 999;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    width: 100%;
  }

  .header-actions .btn { display: none; }

  .hero-slide { min-height: 480px; }
  .hero-content h1 { font-size: 28px; }

  .about-grid,
  .contact-grid,
  .about-page-grid { grid-template-columns: 1fr; gap: 40px; }

  .product-cards,
  .projects-grid { grid-template-columns: 1fr; }

  .category-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .product-block-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  section { padding: 60px 0; }

  .cta-banner h2 { font-size: 26px; }
  .page-banner { padding: 56px 0; }
}
