/* ==========================================================================
   SOTEK POWER — CORPORATE INDUSTRIAL DESIGN SYSTEM (CHUẨN SOTEK GROUP)
   Kế thừa kiến trúc & thẩm mỹ kỹ thuật từ sotek-vietnam.com
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:ital,wght@0,300..900;1,300..900&display=swap');

:root {
  /* Bảng màu nhận diện Tập đoàn SOTEK */
  --navy: #0f172a;
  --navy-2: #1e293b;
  --navy-3: #334155;
  --emerald: #059669;
  --emerald-light: #10b981;
  --emerald-soft: rgba(5, 150, 105, 0.08);
  --amber: #d97706;
  --amber-light: #f59e0b;
  --amber-soft: rgba(217, 119, 6, 0.08);
  --blue-elec: #1e40af;
  --blue-soft: rgba(30, 64, 175, 0.08);
  --bg: #f8f9fc;
  --bg-white: #ffffff;
  --bg-section: #f1f5f9;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.14);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* Base Setup */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--navy-3);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Font kỹ thuật chuyên dụng cho thông số BESS */
.font-mono, 
[data-mono="true"],
.spec-value {
  font-family: 'IBM Plex Mono', monospace !important;
}

/* ==========================================================================
   LỚP NỀN KỸ THUẬT CHÌM (CIRCUIT WATERMARK - TỪ SOTEK-VIETNAM.COM)
   ========================================================================== */
.elec-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg fill='none' stroke='%23000000' stroke-width='1.2' opacity='0.035'%3E%3Ccircle cx='40' cy='30' r='12'/%3E%3Ccircle cx='64' cy='30' r='12'/%3E%3Cline x1='16' y1='30' x2='28' y2='30'/%3E%3Cline x1='76' y1='30' x2='88' y2='30'/%3E%3Cpath d='M120,10 L108,30 L118,30 L106,50 L122,28 L112,28 Z'/%3E%3Cpath d='M10,80 Q17,70 24,80 Q31,90 38,80 Q45,70 52,80 Q59,90 66,80'/%3E%3Cline x1='4' y1='80' x2='10' y2='80'/%3E%3Cline x1='66' y1='80' x2='72' y2='80'/%3E%3Cline x1='108' y1='70' x2='108' y2='90'/%3E%3Cline x1='118' y1='70' x2='118' y2='90'/%3E%3Cline x1='100' y1='80' x2='108' y2='80'/%3E%3Cline x1='118' y1='80' x2='126' y2='80'/%3E%3Cline x1='40' y1='110' x2='40' y2='124'/%3E%3Cline x1='30' y1='124' x2='50' y2='124'/%3E%3Cline x1='33' y1='130' x2='47' y2='130'/%3E%3Cline x1='36' y1='136' x2='44' y2='136'/%3E%3Cline x1='100' y1='120' x2='110' y2='120'/%3E%3Crect x='110' y='114' width='28' height='12' rx='2'/%3E%3Cline x1='138' y1='120' x2='148' y2='120'/%3E%3Cpath d='M10,165 Q22,148 34,165 Q46,182 58,165'/%3E%3Crect x='138' y='110' width='12' height='40' rx='4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 200px 200px;
}

header, main, section, footer, .content-layer {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   THANH TIẾN TRÌNH ĐỌC TRANG (READING PROGRESS BAR)
   ========================================================================== */
#readingProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #1e40af 0%, #059669 50%, #d97706 100%);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   TOP UTILITY ANNOUNCEMENT BAR (40PX - TÔNG SÁNG CAO CẤP)
   ========================================================================== */
.nav-top-bar {
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  height: 40px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  z-index: 55;
}

.nav-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-top-left, .nav-top-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-top-left a {
  color: #1e293b;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.nav-top-left a:hover {
  color: #059669;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #ffffff;
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.lang-btn {
  background: none;
  border: none;
  color: #64748b;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 4px;
  transition: var(--transition);
}

.lang-btn.active {
  background: #059669;
  color: #ffffff;
}

.lang-btn:hover:not(.active) {
  color: #0f172a;
}

/* ==========================================================================
   HEADER ĐI THEO NỀN TỪNG TRANG (TRANSPARENT ON HERO, LIGHT ON SUBPAGES)
   ========================================================================== */
header.header-transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.75) 0%, rgba(2, 6, 23, 0.35) 60%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

header.header-transparent.header-scrolled {
  position: fixed;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header.header-light {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

header.header-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #059669 0%, #10b981 40%, #ea580c 80%, #059669 100%);
}

/* Dot nhấp nháy trực chiến 2H */
.pulsing-dot {
  width: 7px;
  height: 7px;
  background-color: var(--amber-light);
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(245, 158, 11, 0.4);
  animation: pulse-orange 1.8s infinite;
  display: inline-block;
}

@keyframes pulse-orange {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

/* ==========================================================================
   CATALOG FILTER TABS (TRANG SẢN PHẨM BESS - CHUẨN SOTEK-VIETNAM)
   ========================================================================== */
.catalog-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--navy-3);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.tab-btn.active {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

/* Card sản phẩm có hiệu ứng vạch viền trên khi hover */
.product-card-enhanced {
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-white);
}

.product-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--amber));
  opacity: 0;
  transition: var(--transition);
}

.product-card-enhanced:hover::before {
  opacity: 1;
}

.product-card-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--emerald);
}

.product-badge-flag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--navy);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

/* ==========================================================================
   WIDGET NÚT LIÊN HỆ NỔI (FLOATING QUICK ACTIONS)
   ========================================================================== */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  text-decoration: none;
  font-size: 20px;
  position: relative;
  cursor: pointer;
  border: none;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.floating-btn-phone {
  background: linear-gradient(135deg, #e11d48, #be123c);
}

.floating-btn-zalo {
  background: linear-gradient(135deg, #0284c7, #0369a1);
}

.floating-btn-rfq {
  background: linear-gradient(135deg, #059669, #047857);
}

.floating-btn .tooltip {
  position: absolute;
  right: 56px;
  background: var(--navy);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.floating-btn:hover .tooltip {
  opacity: 1;
  transform: translateX(-4px);
}

/* ==========================================================================
   VIDEO FACTORY TOUR MODAL
   ========================================================================== */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal-content {
  background: #000;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-xl);
}

/* ==========================================================================
   TOAST NOTIFICATION SYSTEM (CHUẨN ENTERPRISE)
   ========================================================================== */
#toastContainer {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 90vw;
}

.toast-item {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  min-width: 320px;
  max-width: 420px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.toast-item.toast-hiding {
  animation: toastSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(110%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(110%);
    opacity: 0;
  }
}

.toast-item.toast-success {
  border-left: 4px solid #059669;
}

.toast-item.toast-info {
  border-left: 4px solid #0284c7;
}

.toast-item.toast-warning {
  border-left: 4px solid #d97706;
}

.toast-item.toast-error {
  border-left: 4px solid #dc2626;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #059669;
  width: 100%;
  transform-origin: left;
}

.toast-info .toast-progress {
  background: #0284c7;
}

.toast-warning .toast-progress {
  background: #d97706;
}

.toast-error .toast-progress {
  background: #dc2626;
}

/* ==========================================================================
   FOOTER TRANSLUCENT & DEPTH STYLING (SOTEK POWER INDUSTRIAL)
   Hiệu ứng kính mờ trong suốt đa tầng với ánh hào quang năng lượng
   ========================================================================== */
.footer-translucent {
  position: relative;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16, 185, 129, 0.15) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 10% 80%, rgba(249, 115, 22, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.88) 0%, rgba(2, 6, 23, 0.98) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.footer-translucent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.6) 30%, rgba(249, 115, 22, 0.5) 70%, transparent 100%);
  z-index: 2;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-social-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.footer-link {
  color: #94a3b8;
  font-size: 12px;
  transition: all 0.2s ease;
  display: inline-block;
  padding: 2.5px 0;
}

.footer-link:hover {
  color: #34d399;
  transform: translateX(3px);
}

/* ==========================================================================
   SOTEK POWER SPEC-FIRST PRODUCT CARDS & SUBNAV (.m-prod-list)
   Bố cục chuẩn công nghiệp: Thẻ sản phẩm ngang 2 cột tỷ lệ 60/40,
   Bảng thông số kỹ thuật dạng lưới chuẩn công nghiệp, không khoảng đen.
   ========================================================================== */

/* Sub-Navigation Pill Bar */
.sotek-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.subnav-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}

.subnav-tab-btn:hover {
  color: #059669;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.subnav-tab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: #059669;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
}

/* Horizontal Spec-First Product Card (.m-prod-list) */
.sotek-prod-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .sotek-prod-card {
    padding: 32px;
  }
}

.sotek-prod-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  transform: translateY(-3px);
}

.sotek-prod-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #059669 0%, #0284c7 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sotek-prod-card:hover::before {
  opacity: 1;
}

/* Studio Product Image Container - Đồng bộ màu nền Studio mềm mại, không viền ranh giới */
.prod-studio-canvas {
  background: linear-gradient(180deg, #e7e9f3 0%, #f4f5f9 100%);
  border: 1px solid #dce0eb;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.prod-studio-img {
  max-height: 340px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.07));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sotek-prod-card:hover .prod-studio-img {
  transform: scale(1.05);
}

/* C&I BESS Cabinet Cover Canvas - Tràn viền đẳng cấp chuẩn công nghiệp */
.prod-cni-cover-canvas {
  border-radius: 20px;
  min-height: 380px;
  height: 100%;
  overflow: hidden;
  position: relative;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  background: #e2e8f0;
}

.prod-cni-cover-canvas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sotek-prod-card:hover .prod-cni-cover-canvas img {
  transform: scale(1.04);
}

/* Spec Table Styling */
.spec-grid-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  font-size: 12px;
  background: #ffffff;
}

.spec-grid-table tr:not(:last-child) {
  border-bottom: 1px solid #e2e8f0;
}

.spec-grid-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.spec-grid-table th {
  text-align: left;
  padding: 8px 14px;
  color: #64748b;
  font-weight: 600;
  width: 42%;
  border-right: 1px solid #e2e8f0;
  font-size: 11.5px;
}

.spec-grid-table td {
  padding: 8px 14px;
  color: #0f172a;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: -0.01em;
}

/* Tag Badge for Product Series */
.prod-series-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prod-series-emerald {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.prod-series-sky {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.prod-series-amber {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.prod-series-indigo {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

/* ==========================================================================
   BESS ROI CALCULATOR STYLING & PRINT PROPOSAL TEMPLATE
   ========================================================================== */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: #e2e8f0;
  height: 8px;
  border-radius: 4px;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #059669;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.4);
  transition: transform 0.15s ease-in-out;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

@media screen {
  #printableProposal {
    display: none;
  }
}
@media print {
  body * {
    visibility: hidden;
  }
  #printableProposal, #printableProposal * {
    visibility: visible;
  }
  #printableProposal {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff;
    color: #000;
    padding: 20px;
    font-size: 11pt;
  }
  @page {
    size: A4 portrait;
    margin: 12mm 15mm;
  }
}

/* ==============================================================================
   MASTER HERO BANNER LOCK (CỐ ĐỊNH KÍCH THƯỚC & VỊ TRÍ ẢNH ĐẦU TRANG TOÀN BỘ WEB)
   Đảm bảo khi phóng to/thu nhỏ (zoom trình duyệt Ctrl+/Ctrl- hay co giãn viewport)
   ảnh và vị trí chủ thể không bị dịch chuyển, co giật, méo mó hoặc bị chữ đè lên.
   ============================================================================== */

/* Khung Hero cố định chiều cao 600px trên Desktop (từ màn hình 1024px trở lên) */
.hero-locked-section {
  position: relative;
  width: 100%;
  height: 600px;
  min-height: 600px;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 20px;
}

@media (max-width: 1023px) {
  .hero-locked-section {
    height: auto;
    min-height: 560px;
    max-height: none;
    padding-top: 100px;
    padding-bottom: 40px;
  }
}

/* Lớp ảnh nền Hero phủ kín và cố định tỷ lệ */
.hero-locked-img-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-locked-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.8s ease-in-out;
}

/* Ghim vị trí tầm nhìn tối ưu theo từng ảnh thiết bị/nhà máy */
.hero-pos-home-bess {
  object-position: 70% center !important;
}

.hero-pos-products-powerwall {
  object-position: 82% center !important;
}

.hero-pos-solution-resort {
  object-position: 25% center !important;
}

.hero-pos-solution-building {
  object-position: 80% center !important;
}

.hero-pos-solution-cold {
  object-position: 75% center !important;
}

.hero-pos-factory-aerial {
  object-position: center 38% !important;
}

.hero-pos-calculator-roi {
  object-position: 80% center !important;
}

/* Lớp phủ Gradient đa tầng: Chữ trắng bên trái tương phản 100%, 
   trong suốt ở bên phải để lộ toàn bộ thiết bị BESS & logo 3D */
.hero-locked-gradient {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(90deg, 
    rgba(2, 6, 23, 0.92) 0%, 
    rgba(2, 6, 23, 0.82) 32%, 
    rgba(15, 23, 42, 0.45) 55%, 
    rgba(15, 23, 42, 0.05) 75%, 
    transparent 100%
  );
}

@media (max-width: 1023px) {
  .hero-locked-gradient {
    background: linear-gradient(180deg, 
      rgba(2, 6, 23, 0.88) 0%, 
      rgba(2, 6, 23, 0.82) 45%, 
      rgba(2, 6, 23, 0.60) 100%
    );
  }
}

.hero-locked-gradient-v {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(180deg, 
    rgba(2, 6, 23, 0.45) 0%, 
    transparent 20%, 
    transparent 80%, 
    rgba(2, 6, 23, 0.35) 100%
  );
}

/* Cột nội dung bên trái được khóa kích thước nghiêm ngặt (<= 490px)
   để khi zoom trình duyệt lên 125%, 150%, 175%, chữ tuyệt đối KHÔNG đè lên thiết bị */
.hero-locked-col {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 490px;
}

/* Fluid Typography giúp chữ co giãn mượt mà theo viewport/zoom, tránh vỡ dòng quá đà */
.hero-locked-title {
  font-size: clamp(1.85rem, 2.75vw, 3rem) !important;
  line-height: 1.16 !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
}

.hero-locked-desc {
  font-size: clamp(0.85rem, 1.05vw, 1rem) !important;
  line-height: 1.55 !important;
  color: #e2e8f0 !important;
  max-width: 460px !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 1px 2px rgba(0, 0, 0, 0.85);
}




/* ==========================================================================
   STYLE 2: NATIONAL PIONEER ENERGY (CẢM HỨNG GG POWER GGP.VN)
   - Font: Inter (Extrabold 800 headings, 400-600 body)
   - Specs: IBM Plex Mono
   - Điểm nhấn: Gradient Cam Năng Lượng (Amber-Orange Flash) + Xanh SOTEK
   ========================================================================== */
:root {
  --font-head: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --orange-energy: #ea580c;
  --amber-energy: #f59e0b;
  --energy-gradient: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  --energy-gradient-hover: linear-gradient(135deg, #d97706 0%, #c2410c 100%);
  --energy-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.35);
}

h1, h2, h3, h4, h5, h6, .font-head {
  font-family: var(--font-head);
  letter-spacing: -0.02em;
}

body {
  font-family: var(--font-body);
}

.font-mono, [data-mono="true"], .spec-value, .tech-mono {
  font-family: var(--font-mono) !important;
}

/* Nút CTA Năng Lượng Bứt Phá (Kiểu GG Power GGP.vn) */
.btn-energy {
  background: var(--energy-gradient);
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: var(--energy-shadow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-energy:hover {
  background: var(--energy-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(234, 88, 12, 0.45);
}

.btn-energy:active {
  transform: translateY(0);
}

/* Huy hiệu năng lượng (Energy Badges) */
.badge-energy {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-family: var(--font-mono);
}

.badge-energy-dark {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-family: var(--font-mono);
}

/* Thanh điểm nhấn section năng lượng (Energy Line) */
.energy-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 12px;
}
.energy-divider .line {
  height: 2px;
  width: 48px;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  border-radius: 9999px;
}
.energy-divider .bolt {
  color: #f59e0b;
  font-size: 14px;
}
