/* ===== Herasyn Vietnam — Global Styles ===== */
:root {
  --primary: #0d5eaf;
  --primary-dark: #094a8a;
  --primary-light: #e8f1fb;
  --accent: #19a7ce;
  --text: #1f2937;
  --muted: #5b6b7d;
  --bg: #ffffff;
  --bg-soft: #f4f8fc;
  --border: #e3eaf2;
  --whatsapp: #25d366;
  --facebook: #1877f2;
  --zalo: #0068ff;
  --shadow-sm: 0 2px 8px rgba(15, 40, 70, .06);
  --shadow-md: 0 8px 28px rgba(15, 40, 70, .12);
  --radius: 14px;
  --maxw: 1400px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 78px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary); background: var(--primary-light);
  padding: 6px 14px; border-radius: 30px; margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 38px); color: var(--primary-dark); line-height: 1.2; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 16px; }

.btn {
  display: inline-block; font-weight: 600; font-size: 15px; padding: 13px 26px;
  border-radius: 30px; transition: .2s ease; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: .25s;
}
.site-header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand .brand-text { font-size: 20px; font-weight: 800; color: var(--primary-dark); letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { color: var(--text); font-weight: 600; font-size: 15px; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--primary); transition: .25s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 3px; background: var(--primary-dark); border-radius: 2px; transition: .25s; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(13, 94, 175, 0.06);
  border: 1px solid rgba(13, 94, 175, 0.12);
  border-radius: 999px;
  padding: 3px;
  margin-left: 12px;
  flex: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}
.lang-btn {
  border: none;
  background: transparent;
  color: #4a5b6c;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 6px 13px;
  cursor: pointer;
  line-height: 1;
  border-radius: 999px;
  transition: all .2s ease;
}
.lang-btn:hover { color: var(--primary-dark); background: rgba(13,94,175,.08); }
.lang-btn.active { background: var(--primary-dark); color: #fff; box-shadow: 0 2px 6px rgba(13,94,175,.35); }
.hero-page .site-header .lang-switch { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.25); }
.hero-page .site-header .lang-btn { color: rgba(255,255,255,.85); }
.hero-page .site-header .lang-btn:hover { color: #fff; background: rgba(255,255,255,.12); }
.hero-page .site-header .lang-btn.active { background: #fff; color: var(--primary-dark); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.hero-page .site-header.scrolled .lang-switch { background: rgba(13,94,175,.06); border-color: rgba(13,94,175,.12); }
.hero-page .site-header.scrolled .lang-btn { color: #4a5b6c; }
.hero-page .site-header.scrolled .lang-btn:hover { color: var(--primary-dark); background: rgba(13,94,175,.08); }
.hero-page .site-header.scrolled .lang-btn.active { background: var(--primary-dark); color: #fff; box-shadow: 0 2px 6px rgba(13,94,175,.35); }

/* Transparent header over full-screen video hero (homepage only) */
.hero-page .site-header {
  position: absolute; top: 0; left: 0; right: 0;
  background: transparent; backdrop-filter: none; border-bottom: 1px solid rgba(255,255,255,.15);
}
.hero-page .site-header.scrolled {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom-color: var(--border);
}
.hero-page .site-header .brand-text { color: #fff; }
.hero-page .site-header.scrolled .brand-text { color: var(--primary-dark); }
.hero-page .site-header .nav-links a { color: rgba(255,255,255,.92); }
.hero-page .site-header.scrolled .nav-links a { color: var(--text); }
.hero-page .site-header .nav-toggle span { background: #fff; }
.hero-page .site-header.scrolled .nav-toggle span { background: var(--primary-dark); }
@media (max-width: 768px) {
  .hero-page .site-header .nav-links { background: rgba(13,94,175,.98); }
  .hero-page .site-header.scrolled .nav-links { background: #fff; }
}

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 500px; padding: 140px 0 100px; color: #fff; overflow: hidden;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #0a4d92 0%, #0d5eaf 45%, #155fa8 100%);
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero::before { z-index: 1; }
.hero .container { position: relative; z-index: 2; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 0; justify-items: center; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
.hero h1 .hl { color: #7fd6ff; }
.hero p.lead { margin: 22px auto 32px; font-size: 18px; color: rgba(255,255,255,.9); max-width: 720px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-stats { display: flex; gap: 30px; margin-top: 44px; flex-wrap: wrap; justify-content: center; }
.hero-stats .stat strong { display: block; font-size: 28px; color: #fff; font-weight: 800; }
.hero-stats .stat span { font-size: 13px; color: rgba(255,255,255,.75); }

/* ===== Home Hero (herasyn.com style, Corporate Updates overlay) ===== */
.home-hero-herasyn {
  position: relative; min-height: 100vh; padding: 150px 0 70px; color: #fff; overflow: hidden;
  display: flex; align-items: center;
}
.home-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.home-hero-herasyn::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,24,44,.42) 0%, rgba(8,24,44,.30) 50%, rgba(8,24,44,.55) 100%);
  z-index: 1;
}
.home-hero-herasyn .container { position: relative; z-index: 2; width: 100%; }
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 46px;
}
.hero-headline { max-width: 920px; }
.hero-headline h1 {
  font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; line-height: 1.16;
  text-shadow: 0 3px 20px rgba(0,0,0,.55);
}
.hero-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}
.hero-solutions { max-width: 580px; }
.hero-solutions h3 {
  font-size: 18px; font-weight: 600; margin-bottom: 22px; line-height: 1.45;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.hero-sol-list {
  margin: 2px 0 22px;
}
.home-hero-item {
  padding: 18px 0; border-top: 1px solid rgba(255,255,255,.28);
}
.home-hero-item:first-of-type { border-top: none; padding-top: 0; }
.home-hero-item h4 {
  font-size: 15px; font-weight: 700; margin-bottom: 8px; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.home-hero-item p {
  font-size: 14px; color: rgba(255,255,255,.92); line-height: 1.6; margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.home-hero-item p strong { color: #fff; font-weight: 700; }
.hero-solutions .btn-primary { margin-top: 22px; }

/* Corporate Updates inside the hero video */
.hero-corp-updates {
  background: rgba(8, 24, 44, .52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 0 18px 44px rgba(0,0,0,.32);
  margin-top: -110px;
  width: 100%;
  max-width: 470px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-self: end;
}
.hero-cu-head h2 {
  font-size: clamp(17px, 2.2vw, 21px);
  color: #fff;
  margin: 0 0 10px;
}

/* ===== Home Featured Products (herasyn.com style) ===== */
.home-products-herasyn { background: #eef4fb; }
.home-products-herasyn .section-head h2 { font-size: clamp(26px, 4vw, 36px); color: var(--primary-dark); }
.home-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.home-product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: .22s;
}
.home-product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.home-product-media { aspect-ratio: 1/1; background: var(--bg-soft); display: grid; place-items: center; padding: 28px; }
.home-product-media img { width: 100%; height: 100%; object-fit: contain; }
.home-product-body { padding: 24px; }
.home-product-body h4 { font-size: 17px; color: var(--primary-dark); margin-bottom: 12px; line-height: 1.35; }
.home-product-body p {
  font-size: 13.5px; color: var(--muted); line-height: 1.75;
}

/* ===== Home Products + Corporate Updates ===== */
.home-products-updates { background: #eef4fb; padding-top: 0; }
.home-products-updates .container { padding-left: 22px; padding-right: 22px; }

/* Corporate Updates now lives inside the hero video (see .hero-corp-updates) */

.corp-ticker-wrap {
  overflow: hidden;
  background: transparent;
  border: none;
  border-radius: 0;
  flex: 1 1 auto;
  min-height: 0;
  box-shadow: none;
  margin-left: -2px;
}
.corp-ticker {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-top: 2px;
  animation: corp-ticker-vertical 16s linear infinite;
}
.corp-ticker:hover { animation-play-state: paused; }
.corp-ticker-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 0;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.22);
  text-align: left;
}
.corp-ticker-item:last-child { border-bottom: none; }
.corp-ticker-item .corp-date {
  font-size: 11.5px;
  color: rgba(255,255,255,.9);
  flex-shrink: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
}
.corp-ticker-item .corp-card-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  line-height: 1.45;
  text-shadow: 0 2px 8px rgba(0,0,0,.85);
}
.corp-ticker-item:hover .corp-card-title { color: #7fd6ff; }
@keyframes corp-ticker-vertical {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.corp-ticker-empty {
  display: block;
  padding: 18px 0;
  color: #fff;
  text-align: left;
  font-size: 15px;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}

/* ===== Home High Voltage Battery (herasyn.com style) ===== */
.home-hv-section { background: #fff; }
.home-hv-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center;
}
.home-hv-text h2 { font-size: clamp(26px, 4vw, 36px); color: var(--primary-dark); margin-bottom: 20px; }
.home-hv-text p { color: var(--muted); margin-bottom: 16px; line-height: 1.7; }
.home-hv-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.home-hv-media img { width: 100%; height: auto; object-fit: cover; }

@media (max-width: 900px) {
  .hero-cols { grid-template-columns: 1fr; gap: 36px; }
  .hero-corp-updates { margin-top: 0; aspect-ratio: auto; max-width: 100%; justify-self: stretch; }
  .corp-ticker-wrap { flex: none; height: 220px; }
  .home-products-grid { grid-template-columns: repeat(2, 1fr); }
  .home-hv-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 640px) {
  .home-products-grid { grid-template-columns: 1fr; }
  .home-hv-grid { grid-template-columns: 1fr; }
}

/* ===== Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 24px; text-align: center; transition: .22s; box-shadow: var(--shadow-sm);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.feature-icon {
  width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 16px;
  display: grid; place-items: center; background: var(--primary-light); color: var(--primary);
  font-size: 28px; font-weight: 800;
}
.feature-card h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14.5px; }

/* ===== Products ===== */
.category-tabs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 40px; }
.category-tab {
  border: 1.5px solid var(--border); background: #fff; color: var(--muted); font-weight: 600;
  padding: 10px 22px; border-radius: 30px; cursor: pointer; transition: .2s; font-size: 14px;
}
.category-tab:hover { border-color: var(--primary); color: var(--primary); }
.category-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: .22s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-media { position: relative; aspect-ratio: 1/1; background: var(--bg-soft); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: .3s; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 14px; left: 14px; background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 20px;
}
.product-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 19px; color: var(--primary-dark); margin-bottom: 6px; line-height: 1.3; }
.product-sub { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.product-desc { list-style: none; margin-bottom: 18px; flex: 1; }
.product-desc li { position: relative; padding-left: 24px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.product-desc li::before {
  content: "\2713"; position: absolute; left: 0; top: 0; color: var(--primary);
  font-weight: 800; background: var(--primary-light); width: 17px; height: 17px; border-radius: 50%;
  font-size: 11px; display: grid; place-items: center;
}
.product-foot { display: flex; gap: 10px; align-items: center; }
.product-foot .spec-tag { font-size: 12px; color: var(--muted); background: var(--bg-soft); padding: 6px 10px; border-radius: 8px; }
.link-details {
  font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: underline;
  text-underline-offset: 3px; padding: 6px 2px; transition: .2s;
}
.link-details:hover { color: var(--primary-dark); }

/* ===== Product Detail ===== */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-detail-media {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 28px; display: grid; place-items: center; aspect-ratio: 1/1;
}
.product-detail-media img { width: 100%; height: 100%; object-fit: contain; }
.product-detail-info h1 { font-size: clamp(26px, 4vw, 36px); color: var(--primary-dark); margin-bottom: 10px; }
.product-detail-info .product-sub { font-size: 15px; margin-bottom: 20px; }
.product-detail-info p { color: var(--muted); margin-bottom: 16px; line-height: 1.7; }
.product-detail-specs { display: grid; gap: 12px; margin: 24px 0; }
.product-detail-specs .spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.product-detail-specs .spec-row span:first-child { color: var(--muted); }
.product-detail-specs .spec-row span:last-child { font-weight: 700; color: var(--text); }
.product-detail-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.detail-placeholder {
  background: var(--bg-soft); border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 42px 28px; text-align: center; color: var(--muted);
}
.detail-placeholder h3 { color: var(--primary-dark); margin-bottom: 10px; }

/* Product technical data tables */
.product-tech-data h2 { font-size: clamp(26px, 4vw, 36px); color: var(--primary-dark); margin-bottom: 32px; text-align: center; }
.product-tech-data h3 { font-size: 20px; color: var(--primary-dark); margin-bottom: 18px; }
.tech-block { margin-bottom: 42px; }
.tech-block:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.specs-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 760px; }
.specs-table th,
.specs-table td { padding: 12px 14px; border: 1px solid var(--border); text-align: center; }
.specs-table thead { background: var(--primary); color: #fff; }
.specs-table thead th { font-weight: 700; white-space: nowrap; }
.specs-table tbody tr:nth-child(even) { background: #f8fafc; }
.specs-table td:first-child { text-align: left; font-weight: 600; color: var(--text); white-space: nowrap; }
.specs-table td[colspan] { text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.feature-card h4 { color: var(--primary-dark); margin-bottom: 10px; font-size: 16px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0; }

@media (max-width: 820px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-detail-media { aspect-ratio: 4/3; }
}

/* ===== Gallery ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 3/4; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.gallery-grid figure:hover img { transform: scale(1.06); }

/* ===== Projects gallery ===== */
.project-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-gallery figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #f4f6f9; display: flex; align-items: flex-start; }
.project-gallery img { width: 100%; height: auto; object-fit: contain; display: block; transition: .3s; }
.project-gallery figure:hover img { transform: scale(1.03); }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; border-radius: 22px; padding: 54px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta-banner h2 { color: #fff; font-size: clamp(24px, 4vw, 34px); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.9); margin-bottom: 26px; }

/* ===== Corporate Updates ===== */
.corporate-updates { background: #fff; }
.corp-updates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.corp-card {
  background: var(--bg-soft, #f6f8fb);
  border: 1px solid #e7ecf3;
  border-radius: var(--radius, 14px);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: .25s;
}
.corp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md, 0 14px 30px rgba(9,46,91,.12));
  border-color: var(--primary-light, #4a86c9);
}
.corp-card-media { aspect-ratio: 16/10; overflow: hidden; background: #eef2f7; }
.corp-card-media img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.corp-card:hover .corp-card-media img { transform: scale(1.05); }
.corp-card-body {
  padding: 22px 24px 26px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.corp-card-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.corp-tag {
  background: var(--primary, #0a4d8c); color: #fff;
  padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: 12px;
}
.corp-date { color: var(--muted, #6b7785); }
.corp-card-title { font-size: 18px; color: var(--primary-dark, #082c52); line-height: 1.35; margin: 0; }
.corp-card-excerpt { color: var(--muted, #6b7785); font-size: 14.5px; line-height: 1.65; margin: 0; flex: 1; }
.corp-readmore { color: var(--primary, #0a4d8c); font-weight: 600; font-size: 14px; text-decoration: none; }
.corp-readmore:hover { text-decoration: underline; }
.corp-empty { text-align: center; color: var(--muted, #6b7785); padding: 30px 0; }
.hero-corp-updates .corp-empty {
  text-align: left;
  color: #fff;
  padding: 0;
  font-size: 15px;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}
.corp-updates-more { text-align: center; margin-top: 40px; }

/* ===== Footer ===== */
.site-footer { background: #0b2746; color: #c7d6e8; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand img { height: 38px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; color: #9fb4cc; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .02em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #9fb4cc; font-size: 14px; }
.footer-col ul li a:hover { color: #fff; }
.footer-contact li { font-size: 14px; color: #9fb4cc; margin-bottom: 12px; display: flex; gap: 10px; }
.footer-contact li .ic { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; text-align: center; font-size: 13px; color: #7e93ad; }
.social-row { display: flex; gap: 12px; margin-top: 16px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; color: #fff; font-weight: 700; transition: .2s;
}
.social-row a:hover { background: var(--accent); }

/* ===== Chat widget ===== */
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; user-select: none; -webkit-user-select: none; }
.chat-menu { display: flex; flex-direction: column; gap: 12px; align-items: center; opacity: 0; transform: translateY(16px); pointer-events: none; transition: .25s; }
.chat-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.chat-btn {
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer; color: #fff;
  font-size: 22px; font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow-md);
  transition: transform .2s; text-decoration: none;
}
.chat-btn:hover { transform: scale(1.08); color: #fff; }
.chat-btn.za { background: #25d366; font-size: 13px; font-weight: 800; letter-spacing: .2px; }
.chat-btn.fb { background: var(--facebook); }
.chat-toggle {
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: grab; background: var(--primary);
  color: #fff; box-shadow: var(--shadow-md); transition: transform .25s, background .2s;
  display: grid; place-items: center; padding: 0; overflow: hidden; touch-action: none;
}
.chat-toggle svg { width: 100%; height: 100%; display: block; }
.chat-toggle:hover { background: var(--primary-dark); }
.chat-toggle.active { transform: scale(.95); background: var(--primary-dark); }
.chat-widget.dragging .chat-toggle { cursor: grabbing; transition: none; }
.chat-widget.dragging .chat-menu { transition: none; }

/* WhatsApp QR modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(8, 24, 44, .6);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 18px; max-width: 380px; width: 100%; padding: 32px 28px;
  text-align: center; box-shadow: var(--shadow-md); animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-box h3 { color: var(--primary-dark); font-size: 21px; margin-bottom: 6px; }
.modal-box p { color: var(--muted); font-size: 14px; }
.modal-box img { width: 100%; max-width: 280px; height: auto; margin: 18px auto; border: 1px solid var(--border); border-radius: 12px; }
.modal-box .form-note { font-size: 12px; color: #8a99a8; background: var(--bg-soft); padding: 10px; border-radius: 8px; }
.modal-box code { color: var(--primary); font-size: 12px; }
.modal-close {
  margin-top: 16px; border: none; background: var(--primary); color: #fff; font-weight: 600;
  padding: 11px 30px; border-radius: 30px; cursor: pointer; font-size: 14px; transition: .2s;
}
.modal-close:hover { background: var(--primary-dark); }

/* Corporate Updates detail modal */
.cu-modal-box {
  max-width: 480px;
  text-align: left;
}
.cu-modal-meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.cu-modal-tag {
  background: var(--primary); color: #fff;
  padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.cu-modal-date {
  color: var(--muted); font-size: 13px;
}
.cu-modal-box h3 {
  color: var(--primary-dark); font-size: 22px; line-height: 1.35; margin-bottom: 14px; text-align: left;
}
.cu-modal-media {
  margin: 0 0 16px;
}
.cu-modal-media img {
  width: 100%; height: auto; max-height: 280px; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--border); margin: 0;
}
.cu-modal-excerpt {
  color: #45566a; font-size: 15px; line-height: 1.75; text-align: left; margin-bottom: 18px;
}
.cu-modal-link { display: inline-block; }
.corp-ticker-item { cursor: pointer; }

/* ===== Fade-in animation ===== */
.fade-up { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }

/* ===== Page hero (inner pages) ===== */
.page-hero {
  background: var(--bg); color: #fff; padding: 70px 0 64px; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero h1 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; }
.page-hero p { color: rgba(255,255,255,.88); margin-top: 12px; font-size: 17px; }
.page-hero-light {
  background: #fff; color: var(--text);
}
.page-hero-light h1 { color: var(--primary-dark); }
.page-hero-light p { color: var(--muted); }
.page-hero-bg {
  background: linear-gradient(rgba(8,24,44,.55), rgba(8,24,44,.55)),
              url('../img/products-hero-bg.jpg') center/cover no-repeat;
  min-height: 360px;
  display: flex; align-items: center; justify-content: center;
}
.page-hero-bg h1 { color: #fff; }
.page-hero-bg p { color: rgba(255,255,255,.88); }
.page-hero-projects {
  background: linear-gradient(rgba(9,46,91,.52), rgba(9,46,91,.52)),
              url('../img/projects-hero-bg.webp') center top/contain no-repeat;
  min-height: 560px;
  display: flex; align-items: center; justify-content: center;
  padding: 100px 0 72px;
}
.page-hero-projects h1 { font-size: clamp(26px, 3.8vw, 36px); }
.page-hero-projects p { font-size: 15px; }
.page-hero-projects h1 { color: #fff; }
.page-hero-projects p { color: rgba(255,255,255,.88); }
.page-hero-contact {
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 8px 0 0;
}
.page-hero-contact h1 { color: var(--primary-dark); font-size: clamp(24px, 3.2vw, 32px); }
.page-hero-contact p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.section-contact { padding-top: 16px; }
@media (min-width: 1025px) {
  .page-hero-projects { background-attachment: fixed; }
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-video-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.page-hero-video {
  min-height: 500px;
  display: flex; align-items: center; justify-content: center;
  padding: 140px 0 100px;
}
.about-hero-head { text-align: center; margin-bottom: 46px; }
.about-hero-head h1 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; }
.about-hero-head p { color: rgba(255,255,255,.88); margin-top: 12px; font-size: 17px; }
.about-hero-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
  padding: 38px 42px;
}
.about-hero-text { text-align: left; }
.about-hero-text h2 { color: #fff; font-size: 28px; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.about-hero-text p { color: rgba(255,255,255,.92); margin-bottom: 14px; font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.about-hero-text ul { list-style: none; margin-top: 18px; }
.about-hero-text li { position: relative; padding-left: 26px; margin-bottom: 10px; color: #fff; font-size: 14.5px; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.about-hero-text li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: #7fd6ff; font-weight: 800; }
.about-hero-media img { width: 100%; border-radius: 16px; box-shadow: 0 12px 34px rgba(0,0,0,.35); }
.page-hero-video::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(8, 24, 44, .35);
}

/* ===== About / Contact specifics ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.about-text h2 { color: var(--primary-dark); font-size: 28px; margin-bottom: 16px; }
.about-text p { color: var(--muted); margin-bottom: 14px; }
.about-text ul { list-style: none; margin-top: 18px; }
.about-text li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--text); }
.about-text li::before { content: "\2713"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 46px; align-items: start; }
.contact-info h2 { color: var(--primary-dark); font-size: 26px; margin-bottom: 16px; }
.contact-info .info-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-info .info-item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-size: 20px; flex: none; }
.contact-info .info-item h4 { font-size: 15px; color: var(--text); margin-bottom: 2px; }
.contact-info .info-item p { color: var(--muted); font-size: 14px; }

.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.contact-form .field { margin-bottom: 16px; }
.contact-form label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; transition: .2s; background: #fff; color: var(--text);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); background: var(--primary-light); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 12px; color: #8a99a8; margin-top: 10px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .project-gallery { grid-template-columns: repeat(2, 1fr); }
  .products-grid, .gallery-grid, .corp-updates-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-hero-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column;
    gap: 0; padding: 10px 0; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .3s ease; align-items: stretch;
  }
  .nav-links.open { max-height: 340px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 22px; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 8px 22px 14px; }
  .nav-toggle { display: flex; }
  .lang-switch { margin-left: 8px; }
  .lang-btn { padding: 5px 10px; font-size: 11px; letter-spacing: 0.4px; }
  .features-grid, .products-grid, .gallery-grid, .project-gallery, .corp-updates-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .cta-banner { padding: 40px 22px; }
}
