/* ==========================================================================
   SAO VIỆT PHÁT SOLAR ENERGY — Design System
   ========================================================================== */

:root {
  /* Brand colors — sampled from the SVP logo */
  --navy-900: #0a2740;
  --navy-800: #0e3355;
  --navy-700: #123f68;
  --navy: #14406b;
  --navy-600: #1a5085;
  --green-700: #1e7a37;
  --green: #269b45;
  --green-500: #2eae52;
  --green-400: #43c266;
  --gold: #f5a800;
  --gold-500: #fbb824;
  --gold-100: #fff3d6;

  --ink: #101820;
  --ink-700: #2a3540;
  --body: #55636e;
  --muted: #85929c;
  --line: #e6ebef;
  --line-soft: #eef2f5;
  --surface: #ffffff;
  --surface-alt: #f5f8fa;
  --surface-navy: var(--navy-900);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(10, 39, 64, 0.06);
  --shadow: 0 12px 32px rgba(10, 39, 64, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 39, 64, 0.16);

  --container: 1240px;
  --header-h: 88px;
  --topbar-h: 40px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Be Vietnam Pro", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select, button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--ink); }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--green-400); color: #fff; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 96px; }
.section--sm { padding-block: 64px; }
.section--alt { background: var(--surface-alt); }
.section--navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #cfdbe6; }
.section--navy h2, .section--navy h3 { color: #fff; }

.grid { display: grid; gap: 28px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  background: rgba(38, 155, 69, 0.08);
  padding: 7px 16px 7px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.section--navy .eyebrow { color: var(--gold-500); background: rgba(245, 168, 0, 0.12); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.01em; }
.section-head p { margin-top: 14px; font-size: 17px; color: var(--body); }
.section--navy .section-head p { color: #a9bdcd; }

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(38, 155, 69, 0.30); }
.btn-primary:hover { background: var(--green-700); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(38, 155, 69, 0.38); }
.btn-gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 10px 24px rgba(245, 168, 0, 0.32); }
.btn-gold:hover { background: var(--gold-500); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-800); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-icon-circle { width: 46px; height: 46px; padding: 0; border-radius: 50%; background: var(--surface-alt); color: var(--navy); }
.btn-icon-circle:hover { background: var(--green); color: #fff; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-900);
  color: #b9c9d6;
  font-size: 13.5px;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: var(--topbar-h); }
.topbar-info { display: flex; align-items: center; gap: 26px; }
.topbar-info a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar-info a:hover { color: var(--gold-500); }
.topbar-info svg { width: 15px; height: 15px; color: var(--green-400); flex: none; }
.topbar-social { display: flex; align-items: center; gap: 14px; }
.topbar-social a { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.08); transition: background .2s, transform .2s; }
.topbar-social a:hover { background: var(--green); transform: translateY(-2px); }
.topbar-social svg { width: 13px; height: 13px; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s var(--ease), padding .3s var(--ease);
}
.header.is-scrolled { box-shadow: 0 8px 24px rgba(10,39,64,0.08); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 56px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-size: 18px; letter-spacing: 0.01em; color: var(--navy-900); font-weight: 800; }
.brand-name span { font-size: 11.5px; letter-spacing: 0.14em; color: var(--green-700); font-weight: 700; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav > li > a {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  font-weight: 600; font-size: 15px; color: var(--ink-700);
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav > li > a svg { width: 14px; height: 14px; transition: transform .25s var(--ease); color: var(--muted); }
.nav > li:hover > a, .nav > li > a.is-active { color: var(--green-700); background: rgba(38,155,69,0.07); }
.nav > li:hover > a svg { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 620px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft);
  padding: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 50;
}
.nav > li:hover .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega a { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 10px; transition: background .2s; }
.mega a:hover { background: var(--surface-alt); }
.mega .mega-ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(38,155,69,0.09); color: var(--green-700); display: flex; align-items: center; justify-content: center; flex: none; }
.mega .mega-ic svg { width: 19px; height: 19px; }
.mega-item strong { display: block; font-size: 14.5px; color: var(--ink); font-weight: 700; }
.mega-item small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-hotline { display: flex; align-items: center; gap: 10px; }
.header-hotline .ic { width: 42px; height: 42px; border-radius: 50%; background: rgba(38,155,69,0.1); color: var(--green-700); display: flex; align-items: center; justify-content: center; flex: none; }
.header-hotline .ic svg { width: 19px; height: 19px; }
.header-hotline span { display: block; font-size: 11.5px; color: var(--muted); }
.header-hotline strong { display: block; font-size: 16px; color: var(--navy-900); font-weight: 800; }

.nav-toggle { display: none; flex: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); align-items: center; justify-content: center; background: #fff; }
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Breadcrumb / page header ---------- */
.page-hero {
  position: relative;
  padding: 76px 0 60px;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(560px 320px at 88% 15%, rgba(38,155,69,0.35), transparent 70%),
              radial-gradient(420px 260px at 10% 110%, rgba(245,168,0,0.20), transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); color: #fff; }
.page-hero p.lead { margin-top: 12px; color: #b9c9d6; max-width: 620px; font-size: 16.5px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #9db2c3; margin-top: 22px; }
.breadcrumb a:hover { color: var(--gold-500); }
.breadcrumb svg { width: 13px; height: 13px; }
.breadcrumb .current { color: var(--gold-500); font-weight: 600; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 46%, var(--navy-700) 100%);
  color: #fff;
  padding-top: 76px;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.24; mix-blend-mode: luminosity; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,39,64,0.55), rgba(10,39,64,0.92) 88%); }
.hero-glow { position: absolute; width: 640px; height: 640px; border-radius: 50%; filter: blur(10px); opacity: 0.28; pointer-events: none; }
.hero-glow.g1 { background: var(--green-500); top: -220px; right: -160px; }
.hero-glow.g2 { background: var(--gold); width: 420px; height: 420px; bottom: -160px; left: -120px; opacity: 0.18; }

.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding-block: 64px 40px; }
.hero-copy h1 { font-size: clamp(34px, 4.6vw, 58px); color: #fff; letter-spacing: -0.02em; line-height: 1.12; }
.hero-copy h1 em { font-style: normal; color: var(--green-400); }
.hero-copy p.lead { margin-top: 20px; font-size: 18px; color: #b9c9d6; max-width: 520px; }
.hero-cta { display: flex; align-items: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-badges .b { display: flex; align-items: center; gap: 10px; }
.hero-badges .b svg { width: 22px; height: 22px; color: var(--green-400); flex: none; }
.hero-badges .b span { font-size: 13.5px; color: #cfdbe6; font-weight: 600; max-width: 130px; line-height: 1.35; }

.hero-panel {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  padding: 10px;
}
.hero-panel img { border-radius: calc(var(--radius-lg) - 8px); width: 100%; aspect-ratio: 4/3.1; object-fit: cover; }
.hero-float {
  position: absolute; background: #fff; color: var(--ink); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; min-width: 210px;
}
.hero-float.f1 { top: -22px; left: -26px; }
.hero-float.f2 { bottom: -22px; right: -22px; }
.hero-float .ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.hero-float.f1 .ic { background: rgba(38,155,69,0.12); color: var(--green-700); }
.hero-float.f2 .ic { background: rgba(245,168,0,0.16); color: var(--gold); }
.hero-float .ic svg { width: 22px; height: 22px; }
.hero-float strong { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; }
.hero-float small { color: var(--muted); font-size: 12.5px; }

.hero-stats { position: relative; border-top: 1px solid rgba(255,255,255,0.12); }
.hero-stats .container { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 30px; gap: 20px; }
.stat { text-align: center; }
.stat strong { display: flex; align-items: baseline; justify-content: center; gap: 3px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; color: #fff; }
.stat strong .unit { font-size: 20px; color: var(--gold-500); }
.stat span { display: block; margin-top: 6px; font-size: 13.5px; color: #9db2c3; font-weight: 600; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,0.12); }

/* ---------- Marquee / trust strip ---------- */
.trust-strip { padding-block: 30px; border-bottom: 1px solid var(--line-soft); }
.trust-strip .container { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.trust-item { display: flex; align-items: center; gap: 12px; color: var(--ink-700); font-weight: 700; font-size: 14px; }
.trust-item .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-alt); color: var(--green-700); display: flex; align-items: center; justify-content: center; flex: none; }
.trust-item .ic svg { width: 20px; height: 20px; }
.trust-item small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/4.6; object-fit: cover; }
.about-media .exp-badge {
  position: absolute; left: -28px; bottom: -28px; background: var(--green); color: #fff;
  border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-lg); width: 168px;
}
.about-media .exp-badge strong { font-size: 40px; font-weight: 800; display: block; line-height: 1; }
.about-media .exp-badge span { font-size: 13px; font-weight: 600; opacity: 0.92; }
.about-list { display: grid; gap: 16px; margin-top: 28px; }
.about-list li { display: flex; align-items: flex-start; gap: 14px; }
.about-list .ic { width: 30px; height: 30px; border-radius: 50%; background: rgba(38,155,69,0.12); color: var(--green-700); display: flex; align-items: center; justify-content: center; flex: none; margin-top: 2px; }
.about-list .ic svg { width: 15px; height: 15px; }
.about-list strong { display: block; color: var(--ink); font-size: 15.5px; }
.about-list p { font-size: 14.5px; margin-top: 2px; }
.about-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.about-signature { display: flex; align-items: center; gap: 12px; }
.about-signature img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }

/* ---------- Feature / icon cards ---------- */
.feature-grid { grid-template-columns: repeat(4, 1fr); }
.feature-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 30px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card .ic { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(140deg, var(--green), var(--green-700)); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-card:nth-child(2) .ic { background: linear-gradient(140deg, var(--navy-600), var(--navy-900)); }
.feature-card:nth-child(3) .ic { background: linear-gradient(140deg, var(--gold-500), #c98400); }
.feature-card:nth-child(4) .ic { background: linear-gradient(140deg, #2eb8ae, #146e67); }
.feature-card .ic svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 18px; }
.feature-card p { margin-top: 10px; font-size: 14.5px; }

/* ---------- Product cards ---------- */
.cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.cat-tabs button {
  padding: 11px 22px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: #fff;
  font-weight: 600; font-size: 14.5px; color: var(--ink-700); transition: all .2s;
}
.cat-tabs button:hover { border-color: var(--green); color: var(--green-700); }
.cat-tabs button.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.product-grid { grid-template-columns: repeat(3, 1fr); }
.product-grid.product-grid--4 { grid-template-columns: repeat(4, 1fr); }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-media { position: relative; aspect-ratio: 1/0.82; background: linear-gradient(150deg, var(--surface-alt), #eaf1f0); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-media svg { width: 84px; height: 84px; color: var(--green-700); opacity: 0.85; transition: transform .4s var(--ease); }
.product-card:hover .product-media svg { transform: scale(1.08) rotate(-2deg); }
.product-tag { position: absolute; top: 14px; left: 14px; background: var(--gold); color: var(--navy-900); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 12px; border-radius: var(--radius-pill); }
.product-tag.alt { background: var(--navy-900); color: #fff; }
.product-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-cat { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--green-700); }
.product-body h3 { font-size: 18.5px; line-height: 1.3; }
.product-body p { font-size: 14px; }
.product-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.product-specs span { font-size: 12px; font-weight: 600; background: var(--surface-alt); color: var(--ink-700); padding: 5px 11px; border-radius: var(--radius-pill); }
.product-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; }
.product-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--navy-900); }
.product-link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.product-card:hover .product-link svg { transform: translateX(4px); }

/* ---------- Process ---------- */
.process { grid-template-columns: repeat(5, 1fr); counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 30px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); z-index: 0; }
.process-step { position: relative; text-align: center; z-index: 1; }
.process-step .num { width: 60px; height: 60px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-weight: 800; font-size: 20px; color: var(--navy-900); transition: all .3s; }
.process-step:hover .num { background: var(--green); border-color: var(--green); color: #fff; transform: scale(1.08); }
.process-step h3 { font-size: 16px; }
.process-step p { font-size: 13.5px; margin-top: 8px; }

/* ---------- Spotlight (battery) ---------- */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.spotlight-media { position: relative; background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); display: flex; align-items: center; justify-content: center; padding: 60px; }
.spotlight-media svg { width: 100%; max-width: 260px; height: auto; }
.spotlight-copy { background: #fff; padding: 60px; }
.spotlight-copy .eyebrow { margin-bottom: 14px; }
.spotlight-copy h2 { font-size: clamp(24px, 2.8vw, 32px); }
.spotlight-copy p { margin-top: 14px; }
.spotlight-specs { grid-template-columns: repeat(2, 1fr); margin-top: 26px; gap: 14px 20px; }
.spotlight-specs li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-700); }
.spotlight-specs li svg { width: 17px; height: 17px; color: var(--green-700); flex: none; }
.spotlight-copy .btn { margin-top: 30px; }

/* ---------- Projects ---------- */
.project-grid { grid-template-columns: repeat(3, 1fr); }
.project-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/4.6; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project-card:hover img { transform: scale(1.08); }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,25,40,0.92) 0%, rgba(10,25,40,0.15) 55%, rgba(10,25,40,0.05) 100%); }
.project-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; color: #fff; z-index: 1; }
.project-info .cap { display: inline-block; background: var(--green); font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 10px; }
.project-info h3 { color: #fff; font-size: 19px; }
.project-info p { color: #cfdbe6; font-size: 13.5px; margin-top: 6px; }

/* ---------- Stats band ---------- */
.stats-band { grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats-band .stat strong { color: var(--navy-900); }
.stats-band .stat strong .unit { color: var(--green); }
.stats-band .stat span { color: var(--muted); }
.stats-band .stat + .stat { border-left: 1px solid var(--line); }

/* ---------- Testimonials ---------- */
.testi-track { grid-template-columns: repeat(3, 1fr); }
.testi-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 30px; position: relative; }
.testi-card .quote-ic { color: rgba(38,155,69,0.18); width: 40px; height: 40px; margin-bottom: 14px; }
.testi-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.testi-stars svg { width: 15px; height: 15px; color: var(--gold); }
.testi-card p.quote { font-size: 15px; color: var(--ink-700); }
.testi-person { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.testi-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 16px; flex: none; }
.testi-person strong { display: block; font-size: 14.5px; color: var(--ink); }
.testi-person span { font-size: 12.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; font-weight: 700; color: var(--ink); font-size: 15.5px; }
.faq-q .plus { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; flex: none; transition: transform .3s var(--ease), background .3s; }
.faq-q .plus svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.faq-item.is-open .faq-q .plus { background: var(--green); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 24px 22px; font-size: 14.5px; }

/* ---------- Blog cards ---------- */
.blog-grid { grid-template-columns: repeat(3, 1fr); }
.blog-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-media { aspect-ratio: 16/10; overflow: hidden; }
.blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.blog-card:hover .blog-media img { transform: scale(1.06); }
.blog-body { padding: 22px; }
.blog-meta { display: flex; align-items: center; gap: 16px; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.blog-meta span { display: flex; align-items: center; gap: 6px; }
.blog-meta svg { width: 14px; height: 14px; }
.blog-body h3 { font-size: 17px; line-height: 1.4; }
.blog-body .rm { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 13.5px; color: var(--green-700); }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(120deg, var(--green-700), var(--green)); padding: 64px 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 260px at 88% 20%, rgba(255,255,255,0.16), transparent 70%); }
.cta-banner-copy { position: relative; max-width: 560px; }
.cta-banner h2 { color: #fff; font-size: clamp(24px, 2.8vw, 34px); }
.cta-banner p { color: rgba(255,255,255,0.88); margin-top: 12px; }
.cta-banner-actions { position: relative; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-wrap { grid-template-columns: 0.9fr 1.1fr; align-items: flex-start; }
.contact-cards { display: grid; gap: 18px; }
.contact-card { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; }
.contact-card .ic { width: 48px; height: 48px; border-radius: 12px; background: rgba(38,155,69,0.1); color: var(--green-700); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-card .ic svg { width: 23px; height: 23px; }
.contact-card strong { display: block; font-size: 15px; color: var(--ink); margin-bottom: 3px; }
.contact-card p, .contact-card a { font-size: 14px; }
.contact-card a:hover { color: var(--green-700); }

.form-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-700); }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 16px; font-size: 14.5px; background: var(--surface-alt);
  transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.form-success { display: none; align-items: center; gap: 12px; background: rgba(38,155,69,0.1); border: 1px solid rgba(38,155,69,0.3); color: var(--green-700); padding: 16px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; margin-top: 18px; }
.form-success.is-visible { display: flex; }
.form-success svg { width: 20px; height: 20px; flex: none; }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-soft); margin-top: 24px; }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #a9bdcd; padding-top: 80px; }
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand .brand-name strong { color: #fff; }
.footer-brand .brand-name span { color: var(--green-400); }
.footer-brand img { height: 52px; }
.footer p.desc { font-size: 14px; line-height: 1.75; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--green); transform: translateY(-3px); }
.footer-social svg { width: 16px; height: 16px; color: #fff; }
.footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 22px; }
.footer-links { display: grid; gap: 13px; }
.footer-links a { font-size: 14px; transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: var(--gold-500); padding-left: 4px; }
.footer-contact { display: grid; gap: 16px; }
.footer-contact li { display: flex; gap: 12px; font-size: 14px; }
.footer-contact svg { width: 17px; height: 17px; color: var(--green-400); flex: none; margin-top: 2px; }
.footer-bottom { padding-block: 24px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #7d90a0; flex-wrap: wrap; gap: 12px; }
.footer-bottom a:hover { color: var(--gold-500); }
.footer-bottom-links { display: flex; gap: 22px; }

/* ---------- Product detail page ---------- */
.pd-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.pd-media {
  aspect-ratio: 1/0.9; border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--surface-alt), #eaf1f0);
  display: flex; align-items: center; justify-content: center; color: var(--green-700); position: sticky; top: calc(var(--header-h) + 24px);
}
.pd-info h1 { font-size: clamp(24px, 3vw, 34px); margin-top: 6px; }
.pd-short { margin-top: 12px; font-size: 16px; }
.pd-price { display: flex; align-items: baseline; gap: 10px; margin-top: 20px; padding: 16px 20px; background: var(--surface-alt); border-radius: var(--radius-sm); }
.pd-price span { font-size: 13px; color: var(--muted); font-weight: 600; }
.pd-price strong { font-size: 20px; color: var(--green-700); font-weight: 800; }
.pd-features { display: grid; gap: 12px; margin-top: 22px; }
.pd-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-700); }
.pd-features .ic { width: 22px; height: 22px; border-radius: 50%; background: rgba(38,155,69,.12); color: var(--green-700); display: flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; }
.pd-features .ic svg { width: 12px; height: 12px; }
.pd-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.pd-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin-top: 64px; align-items: start; }
.pd-desc h2, .pd-specs-card h2 { font-size: 21px; margin-bottom: 18px; }
.pd-desc p { margin-bottom: 14px; font-size: 15px; }
.pd-specs-card { background: var(--surface-alt); border-radius: var(--radius); padding: 26px; position: sticky; top: calc(var(--header-h) + 24px); }
.spec-table { display: grid; gap: 0; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.spec-row:last-child { border-bottom: 0; }
.spec-label { color: var(--muted); font-weight: 600; }
.spec-value { color: var(--ink); font-weight: 700; text-align: right; }
#relatedProducts, #relatedPosts { margin-top: 28px; }

/* ---------- Blog detail page ---------- */
.bd-wrap { max-width: 820px; margin-inline: auto; }
.bd-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: var(--green-700); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.bd-wrap h1 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.25; }
.bd-cover { margin-top: 26px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/8; }
.bd-cover img { width: 100%; height: 100%; object-fit: cover; }
.bd-content { margin-top: 32px; font-size: 16px; line-height: 1.85; color: var(--ink-700); }
.bd-content h2 { font-size: 21px; margin: 32px 0 14px; }
.bd-content h3 { font-size: 17px; margin: 24px 0 10px; }
.bd-content p { margin-bottom: 16px; }
.bd-content ul, .bd-content ol { margin: 0 0 16px 22px; list-style: disc; }
.bd-content li { margin-bottom: 8px; }
.bd-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.bd-content th, .bd-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.bd-content th { background: var(--surface-alt); }
.bd-content strong { color: var(--ink); }
.bd-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.bd-tags span { font-size: 12.5px; font-weight: 600; background: var(--surface-alt); color: var(--ink-700); padding: 6px 13px; border-radius: var(--radius-pill); }

@media (max-width: 900px) {
  .pd-grid { grid-template-columns: 1fr; }
  .pd-media { position: static; }
  .pd-body { grid-template-columns: 1fr; }
  .pd-specs-card { position: static; }
}

/* ---------- Floating chat buttons (Zalo / Messenger) ---------- */
.chat-fab-group { position: fixed; right: 26px; bottom: 88px; z-index: 150; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.chat-fab {
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); color: #fff; position: relative; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  animation: chatPulse 2.6s ease-in-out infinite;
}
.chat-fab:hover { transform: scale(1.08); box-shadow: var(--shadow-lg); animation-play-state: paused; }
.chat-fab svg { width: 27px; height: 27px; }
.chat-fab.zalo { background: #0068ff; }
.chat-fab.messenger { background: linear-gradient(135deg, #00b2ff, #006aff); }
.chat-fab .fab-label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  background: var(--navy-900); color: #fff; font-size: 12.5px; font-weight: 700; padding: 8px 14px; border-radius: var(--radius-pill);
  white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.chat-fab:hover .fab-label { opacity: 1; visibility: visible; }
@keyframes chatPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(38,155,69,0); }
  50% { box-shadow: 0 0 0 8px rgba(38,155,69,0); }
}
@media (max-width: 480px) {
  .chat-fab-group { right: 16px; bottom: 78px; }
  .chat-fab { width: 48px; height: 48px; }
  .chat-fab svg { width: 23px; height: 23px; }
  .fab-label { display: none; }
}

/* ---------- Back to top ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 26px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); z-index: 150; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--green-700); }
.back-top svg { width: 20px; height: 20px; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 300; background: var(--navy-900); color: #fff;
  transform: translateX(100%); transition: transform .35s var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-nav-head img { height: 40px; }
.mobile-nav-close { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.mobile-nav-close svg { width: 18px; height: 18px; }
.mobile-nav-body { padding: 12px 24px 40px; }
.mobile-nav-body > li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav-body > li > a { display: flex; align-items: center; justify-content: space-between; padding: 18px 4px; font-weight: 700; font-size: 16px; }
.mobile-sub { display: none; padding: 0 4px 16px 14px; display: grid; gap: 12px; }
.mobile-nav-body li.is-open .mobile-sub { display: grid; }
.mobile-sub a { font-size: 14.5px; color: #a9bdcd; }
.mobile-nav-cta { margin-top: 26px; display: grid; gap: 12px; }

body.no-scroll { overflow: hidden; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .feature-grid, .product-grid, .product-grid.product-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process::before { display: none; }
  .testi-track, .project-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .nav, .header-hotline span, .topbar { display: none; }
  .topbar.mobile-visible { display: flex; }
  .nav-toggle { display: flex; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-panel { max-width: 460px; }
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 440px; margin-inline: auto; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight-media { padding: 40px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 76px; }
  .section { padding-block: 64px; }
  .hero-stats .container { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat + .stat { border-left: 0; }
  .hero-stats .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.12); }
  .stats-band { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stats-band .stat + .stat { border-left: 0; }
  .stats-band .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .feature-grid, .product-grid, .product-grid.product-grid--4, .testi-track, .project-grid, .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 28px; flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .spotlight-copy { padding: 34px 26px; }
  .trust-strip .container { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .hero-badges { gap: 18px; }
  .about-media .exp-badge { left: 14px; bottom: -20px; padding: 16px 18px; }
  .hero-float { min-width: 170px; padding: 12px 14px; }
  .hero-float.f1 { left: -10px; }
  .hero-float.f2 { right: -10px; }
}
