/* ========================================================
   HPN TECH - FLAT DESIGN SYSTEM (THẾ GIỚI PHẲNG)
   Hộ Kinh Doanh HPN - Giải pháp công nghệ chuyển đổi số
   Phong cách thiết kế phẳng (Flat Design) - Tối giản, thanh thoát,
   bình đẳng, không góc thô, không viền dày, không nhiều ô lồng ghép.
   
   3 màu chủ đạo từ Logo HPN:
   - Xanh Lam (Chữ H): #1a368b (Tin cậy & Vững chắc)
   - Xanh Ngọc (Chữ P): #00a884 (Đổi mới & Môi trường)
   - Vàng Kim (Chữ N): #d97706 / #f59e0b (Tận tâm & Giá trị)
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

:root {
  --hpn-font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  /* 3 Brand Colors from Logo */
  --hpn-blue: #1a368b;
  --hpn-blue-light: #2563eb;
  --hpn-blue-soft: #eff6ff;
  
  --hpn-teal: #00a884;
  --hpn-teal-light: #10b981;
  --hpn-teal-soft: #ecfdf5;
  
  --hpn-gold: #d97706;
  --hpn-gold-light: #f59e0b;
  --hpn-gold-soft: #fffbeb;

  /* Flat Neutral Colors */
  --hpn-dark: #0f172a;
  --hpn-dark-soft: #1e293b;
  --hpn-body: #334155;
  --hpn-muted: #64748b;
  --hpn-light: #f8fafc;
  --hpn-white: #ffffff;
  --hpn-hairline: #e2e8f0;
  
  /* Flattened Aliases */
  --hpn-primary: #1a368b;
  --hpn-eco: #00a884;
  --hpn-accent: #d97706;
}

/* Base resets & Flat typography */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--hpn-font);
  color: var(--hpn-body);
  background-color: var(--hpn-white);
  overflow-x: hidden;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--hpn-font);
  font-weight: 700;
  color: var(--hpn-dark);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

a {
  text-decoration: none;
  transition: all 0.2s ease;
}

/* ========================================================
   NAVIGATION / HEADER (FLAT & COMPACT)
   Kích thước menu thanh thoát, gọn gàng, giảm độ dày theo yêu cầu
   ======================================================== */
.hpn-navbar {
  background: var(--hpn-white);
  border-bottom: 1px solid var(--hpn-hairline);
  padding: 0.35rem 0;
  z-index: 1040;
}

.hpn-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.hpn-brand-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.hpn-brand:hover .hpn-brand-img {
  transform: scale(1.02);
}

/* Slogan 2 dòng cách tân & hiện đại:
   Canh giữa và canh đều 2 dòng bằng nhau theo yêu cầu
   Dòng 1: KHỞI NGUỒN TỪ THỰC TẾ (màu xanh chữ H - Xanh Lam Tin Cậy)
   Dòng 2: VỀ ĐÍCH BẰNG CÔNG NGHỆ (màu xanh chữ P - Xanh Ngọc Đổi Mới) */
.brand-slogan-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Canh giữa 2 dòng */
  text-align: center;  /* Canh giữa văn bản */
  line-height: 1.25;
  border-left: 1.5px solid rgba(26, 54, 139, 0.16);
  padding-left: 0.75rem;
  margin-left: 0.1rem;
}

.brand-slogan-line1 {
  font-family: var(--hpn-font);
  font-size: 0.82rem;
  font-weight: 700;
  color: #163b82; /* Xanh Lam chữ H */
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  width: 100%;
  text-align: center;
}

.brand-slogan-line2 {
  font-family: var(--hpn-font);
  font-size: 0.78rem;
  font-weight: 700;
  color: #009670; /* Xanh Ngọc chữ P */
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: block;
  width: 100%;
  text-align: center;
}

/* Footer Slogan Wrap cách tân trên nền Xám Bạch Kim */
.footer-slogan-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1.32;
  border-left: 1.5px solid rgba(26, 54, 139, 0.18);
  padding-left: 0.95rem;
}

.footer-slogan-line1 {
  font-family: var(--hpn-font);
  font-size: 0.95rem;
  font-weight: 700;
  color: #163b82; /* Xanh Lam chữ H */
  letter-spacing: 0.045em;
  text-transform: uppercase;
  display: block;
  width: 100%;
  text-align: center;
}

.footer-slogan-line2 {
  font-family: var(--hpn-font);
  font-size: 0.9rem;
  font-weight: 700;
  color: #009670; /* Xanh Ngọc chữ P */
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: block;
  width: 100%;
  text-align: center;
}

.hpn-footer-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 991px) {
  .hpn-brand-img {
    height: 38px;
  }
  .brand-slogan-wrap {
    padding-left: 0.65rem;
  }
  .brand-slogan-line1 {
    font-size: 0.76rem;
  }
  .brand-slogan-line2 {
    font-size: 0.72rem;
  }
}

@media (max-width: 576px) {
  .hpn-brand-img {
    height: 32px;
  }
  .brand-slogan-wrap {
    padding-left: 0.5rem;
  }
  .brand-slogan-line1 {
    font-size: 0.68rem;
    letter-spacing: 0.025em;
  }
  .brand-slogan-line2 {
    font-size: 0.64rem;
    letter-spacing: 0.02em;
  }
}

/* Menu hoa toàn bộ (IN HOA) - Nhẹ nhàng, thanh thoát */
.hpn-nav-link {
  font-weight: 600;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--hpn-body) !important;
  padding: 0.38rem 0.75rem !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}

/* Vạch kẻ dọc xen kẽ giữa các menu */
.nav-divider {
  width: 1px;
  height: 12px;
  background-color: var(--hpn-hairline);
  margin: 0 0.25rem;
  opacity: 0.85;
  align-self: center;
}

.hpn-navbar .btn-hpn-primary,
.hpn-nav-cta-btn {
  padding: 0.42rem 1.15rem !important;
  font-size: 0.84rem !important;
  letter-spacing: 0.3px;
}

.hpn-nav-link:hover, .hpn-nav-link.active {
  color: var(--hpn-blue) !important;
  background: var(--hpn-blue-soft);
}

.dropdown-menu-modern {
  border: 1px solid var(--hpn-hairline);
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  padding: 0.5rem;
  min-width: 290px;
}

.dropdown-item-product {
  padding: 0.75rem;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  transition: background 0.15s ease;
}

.dropdown-item-product:hover {
  background: var(--hpn-light);
}

.dropdown-item-product .prod-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* ========================================================
   HPN TECH - FLAT BUTTONS (THIẾT KẾ PHẲNG, NHẸ NHÀNG, KHÔNG ĐỔ BÓNG)
   Bề mặt Flat Tonal thanh thoát, bo góc 8px chuẩn phẳng, zero shadow
   Chiều cao thanh mảnh (~34px), bằng hoặc nhỏ hơn nút Navbar theo yêu cầu
   ======================================================== */
.btn-hpn-primary,
.btn-hpn-eco,
.btn-hpn-gold,
.btn-hpn-outline,
.btn-hpn-outline-primary,
.btn-hpn-outline-dark,
.btn-hero-action {
  font-family: var(--hpn-font);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.35;
  letter-spacing: 0.3px;
  padding: 0.38rem 1.15rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  box-shadow: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* 1. Xanh Dương Hoàng Gia (Chữ H - Công nghệ tin cậy) */
.btn-hpn-primary,
.btn-hero-h {
  background-color: #f0f5ff;
  color: #163b82;
  border: 1px solid rgba(22, 59, 130, 0.3);
}
.btn-hpn-primary i,
.btn-hero-h i {
  color: #163b82;
  transition: color 0.2s ease;
}
.btn-hpn-primary:hover,
.btn-hpn-primary:focus,
.btn-hero-h:hover,
.btn-hero-h:focus {
  background-color: #163b82;
  color: #ffffff;
  border-color: #163b82;
  box-shadow: none !important;
  transform: none !important;
}
.btn-hpn-primary:hover i,
.btn-hpn-primary:focus i,
.btn-hero-h:hover i,
.btn-hero-h:focus i {
  color: #ffffff;
}

/* 2. Xanh Ngọc Lục Bảo (Chữ P - Đổi mới & Môi trường) */
.btn-hpn-eco,
.btn-hero-p {
  background-color: #eafaf5;
  color: #008260;
  border: 1px solid rgba(0, 150, 112, 0.3);
}
.btn-hpn-eco i,
.btn-hero-p i {
  color: #008260;
  transition: color 0.2s ease;
}
.btn-hpn-eco:hover,
.btn-hpn-eco:focus,
.btn-hero-p:hover,
.btn-hero-p:focus {
  background-color: #009670;
  color: #ffffff;
  border-color: #009670;
  box-shadow: none !important;
  transform: none !important;
}
.btn-hpn-eco:hover i,
.btn-hpn-eco:focus i,
.btn-hero-p:hover i,
.btn-hero-p:focus i {
  color: #ffffff;
}

/* 3. Vàng Hổ Phách (Chữ N - Tận tâm & Đồng hành) */
.btn-hpn-gold,
.btn-hero-n {
  background-color: #fff8ed;
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.3);
}
.btn-hpn-gold i,
.btn-hero-n i {
  color: #b45309;
  transition: color 0.2s ease;
}
.btn-hpn-gold:hover,
.btn-hpn-gold:focus,
.btn-hero-n:hover,
.btn-hero-n:focus {
  background-color: #d97706;
  color: #ffffff;
  border-color: #d97706;
  box-shadow: none !important;
  transform: none !important;
}
.btn-hpn-gold:hover i,
.btn-hpn-gold:focus i,
.btn-hero-n:hover i,
.btn-hero-n:focus i {
  color: #ffffff;
}

/* 4. Nút Trắng Viền Phẳng Nhẹ (Outline Light) */
.btn-hpn-outline {
  background-color: #ffffff;
  color: #163b82;
  border: 1px solid rgba(22, 59, 130, 0.25);
}
.btn-hpn-outline i {
  color: #163b82;
  transition: color 0.2s ease;
}
.btn-hpn-outline:hover,
.btn-hpn-outline:focus {
  background-color: #f0f5ff;
  color: #163b82;
  border-color: #163b82;
  box-shadow: none !important;
  transform: none !important;
}

/* 5. Nút Viền Trong Suốt (Outline Primary) */
.btn-hpn-outline-primary {
  background-color: transparent;
  color: #163b82;
  border: 1px solid rgba(22, 59, 130, 0.4);
}
.btn-hpn-outline-primary i {
  color: #163b82;
  transition: color 0.2s ease;
}
.btn-hpn-outline-primary:hover,
.btn-hpn-outline-primary:focus {
  background-color: #163b82;
  color: #ffffff;
  border-color: #163b82;
  box-shadow: none !important;
  transform: none !important;
}
.btn-hpn-outline-primary:hover i,
.btn-hpn-outline-primary:focus i {
  color: #ffffff;
}

/* 6. Nút Viền Tối Phẳng (Outline Dark) */
.btn-hpn-outline-dark {
  background-color: #ffffff;
  color: var(--hpn-dark);
  border: 1px solid var(--hpn-hairline);
}
.btn-hpn-outline-dark:hover,
.btn-hpn-outline-dark:focus {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: var(--hpn-dark);
  box-shadow: none !important;
  transform: none !important;
}
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-hpn-outline-dark:hover {
  background-color: var(--hpn-light);
  border-color: var(--hpn-blue);
  color: var(--hpn-blue);
}

/* ========================================================
   HERO SECTION (MÀU XÁM BẠCH KIM SÁNG - TƯƠNG PHẢN CAO)
   Chữ đậm, sắc nét, không bị chìm trên nền xám bạch kim
   ======================================================== */
.hero-tech {
  background: linear-gradient(90deg, #d8dee8 0%, #e2e8f0 30%, #ecf1f6 60%, #f4f7fb 85%, #f8fafc 100%);
  position: relative;
  color: #0f172a;
  padding: 5.5rem 0 4.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.15rem;
  border-radius: 9999px;
  background: rgba(22, 59, 130, 0.08);
  border: none;
  font-size: 0.88rem;
  font-weight: 750;
  color: #163b82;
  margin-bottom: 1.25rem;
  box-shadow: none;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0a0f1d;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #1e293b !important;
  font-weight: 400;
  line-height: 1.8;
  max-width: 650px;
  margin-bottom: 2rem;
  text-align: justify;
  text-justify: inter-word;
}

.hero-subtitle strong {
  font-weight: 600;
  color: #0f172a;
}

.text-gradient-primary {
  color: #163b82;
  font-weight: 700;
}

.text-gradient-eco {
  color: #009670;
  font-weight: 700;
}

/* Flat Hero Right Panel on Light Platinum */
.flat-hero-panel {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 18px;
  padding: 2.2rem 2rem;
  box-shadow: none;
}

.flat-hero-panel p,
.flat-hero-panel .text-muted {
  text-align: justify;
  text-justify: inter-word;
}

.flat-hero-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.flat-hero-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.flat-hero-item p {
  color: #1e293b !important;
  font-weight: 500;
  line-height: 1.6;
}

.flat-hero-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

/* ========================================================
   FLAT SECTIONS & CARDS (IN HOA TIÊU ĐỀ THEO YÊU CẦU)
   ======================================================== */
.section-py {
  padding: 5rem 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hpn-blue);
  background: var(--hpn-blue-soft);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.section-tag.tag-eco {
  color: var(--hpn-teal);
  background: var(--hpn-teal-soft);
}

.section-tag.tag-gold {
  color: var(--hpn-gold);
  background: var(--hpn-gold-soft);
}

/* IN HOA tiêu đề mục chính để dễ nhìn theo yêu cầu người dùng */
.section-title {
  font-size: 1.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--hpn-dark);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.feature-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--hpn-dark);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.product-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--hpn-dark);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--hpn-muted);
  max-width: 650px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* Flat Product Showcase Cards */
.solution-card {
  background: var(--hpn-white);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  border: none;
  box-shadow: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  background-color: var(--hpn-light);
  transform: translateY(-3px);
}

.solution-card p,
.solution-card .text-muted {
  text-align: justify;
  text-justify: inter-word;
}

.text-justify,
.hero-subtitle,
.flat-hero-panel p,
.solution-card p {
  text-align: justify !important;
  text-justify: inter-word;
}

.solution-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.solution-icon-wrap.eco {
  background: var(--hpn-teal-soft);
  color: var(--hpn-teal);
}

.solution-icon-wrap.primary {
  background: var(--hpn-blue-soft);
  color: var(--hpn-blue);
}

.solution-icon-wrap.gold, .solution-icon-wrap.warning {
  background: var(--hpn-gold-soft);
  color: var(--hpn-gold);
}

/* Flat Checklists */
.feature-check-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.feature-check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  color: var(--hpn-body);
  text-align: justify;
  text-justify: inter-word;
}

.feature-check-list li::before {
  content: "\F26A";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--hpn-blue);
  font-weight: 700;
  font-size: 0.95rem;
}

.feature-check-list.eco li::before {
  color: var(--hpn-teal);
}

.feature-check-list.gold li::before {
  color: var(--hpn-gold);
}

/* Flat Form Controls */
.contact-glass-box {
  background: var(--hpn-white);
  border-radius: 16px;
  padding: 2.5rem;
  border: none;
  box-shadow: none;
}

.form-control-modern {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--hpn-hairline);
  background-color: var(--hpn-light);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control-modern:focus {
  background-color: #ffffff;
  border-color: var(--hpn-blue);
  box-shadow: 0 0 0 2px rgba(26, 54, 139, 0.1);
  outline: none;
}

/* Flat Contact Info Items */
.contact-info-pill {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ========================================================
   FOOTER (MÀU XÁM BẠCH KIM SÁNG - TƯƠNG PHẢN CAO)
   Chữ đậm, sắc nét, không bị chìm
   ======================================================== */
.hpn-footer {
  background: linear-gradient(90deg, #d8dee8 0%, #e2e8f0 30%, #ecf1f6 60%, #f4f7fb 85%, #f8fafc 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: #0f172a;
  padding: 4.5rem 0 2rem;
}

.hpn-footer h5 {
  color: #0a0f1d;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hpn-footer p, .hpn-footer span, .hpn-footer small {
  color: #1e293b;
  font-weight: 400;
}

.footer-link-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-link-list li {
  margin-bottom: 0.75rem;
}

.footer-link-list a {
  color: #1e293b;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-link-list a:hover {
  color: #163b82;
}

.footer-bottom {
  padding-top: 2rem;
  margin-top: 3.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: #475569;
  font-weight: 400;
}

.footer-bottom a {
  color: #1e293b;
  font-weight: 500;
}

.footer-bottom a:hover {
  color: #163b82;
}

/* Floating contact buttons (Flat) */
.floating-contact-group {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999;
}

.btn-float {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.35rem;
  transition: transform 0.2s ease;
}

.btn-float:hover {
  transform: scale(1.08);
  color: white;
}

.btn-float-zalo {
  background-color: #0284c7;
}

.btn-float-call {
  background-color: var(--hpn-teal);
}
