/*
Theme Name: HK ETECH
Theme URI: https://hoangkhang.cloud
Author: HK ETECH
Description: Giao diện website bán hàng và quảng bá thương hiệu điện mặt trời HK ETECH. Có bộ ước tính chi phí theo tiền điện, thu thông tin khách, trang dự án và kênh liên hệ nhanh.
Version: 1.2.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: hketech
*/

/* ------------------------------------------------------------------
   Biến màu và kiểu chữ
   Màu lấy từ chính tấm pin: xanh tấm pin, khung nhôm, nắng chỉ dùng cho nút hành động
------------------------------------------------------------------ */
:root {
  /* Màu lấy từ logo HK ETECH: navy #163564 và xanh lơ #35a1d6 */
  --blue: #163564;
  --blue-d: #0f2748;
  --blue-l: #2b5a9b;
  --sky: #eaf4fb;
  --sky-d: #d3e6f4;
  --frame: #c9d8e6;
  --ink: #0f1d2e;
  --muted: #4a5d75;
  --sun: #35a1d6;      /* xanh lơ logo: nền nút hành động, chữ trên nút dùng màu tối */
  --sun-d: #5cb8e4;    /* xanh lơ sáng hơn khi rê chuột */
  --cyan-text: #1b78a8; /* xanh lơ đậm dùng cho chữ nhỏ trên nền trắng */
  --warn: #f4a100;
  --good: #17724c;
  --bad: #b3261e;
  --white: #fff;

  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --wrap: 1180px;
  --gutter: clamp(16px, 4.5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

body.has-contact-bar { padding-bottom: 64px; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--cyan-text); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-weight: 800; }
h2, h3 { font-weight: 600; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.hk-skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px;
}
.hk-skip:focus { left: 8px; top: 8px; }

.hk-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ------------------------------------------------------------------
   Nút
------------------------------------------------------------------ */
.hk-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 22px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border-radius: var(--r-md); border: 2px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.hk-btn-sun { background: var(--sun); color: var(--ink); }
.hk-btn-sun:hover { background: var(--sun-d); color: var(--ink); }
.hk-btn-line { background: transparent; color: var(--blue); border-color: var(--blue); }
.hk-btn-line:hover { background: var(--blue); color: #fff; }
.hk-btn-block { width: 100%; }
.hk-btn[disabled] { opacity: .65; cursor: progress; }

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------ */
.hk-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--frame);
}
.hk-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.hk-brand { text-decoration: none; color: var(--blue-d); display: flex; align-items: center; }
.hk-brand img { max-height: 44px; width: auto; }
.hk-brand-logo { height: 36px; width: auto; }
@media (min-width: 960px) { .hk-brand-logo { height: 40px; } }
.hk-brand-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }

.hk-nav-toggle {
  font: inherit; font-weight: 600; color: var(--blue-d);
  background: transparent; border: 2px solid var(--frame); border-radius: var(--r-md);
  padding: 8px 14px; min-height: 44px; cursor: pointer;
}
.hk-nav-toggle[aria-expanded="true"] { border-color: var(--blue); }

.hk-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--frame);
  padding: 8px var(--gutter) 20px;
  display: none;
}
.hk-nav.is-open { display: block; }

.hk-menu { list-style: none; margin: 0 0 12px; padding: 0; }
.hk-menu a {
  display: block; padding: 12px 0; font-weight: 500; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--sky-d);
}
.hk-menu a:hover, .hk-menu .current-menu-item > a, .hk-menu .current_page_item > a { color: var(--blue); }
.hk-menu .current-menu-item > a { font-weight: 600; }
.hk-nav-cta { width: 100%; }

@media (min-width: 960px) {
  .hk-nav-toggle { display: none; }
  .hk-nav {
    position: static; display: flex; align-items: center; gap: 28px;
    border: 0; padding: 0; background: transparent;
  }
  .hk-menu { display: flex; gap: 24px; margin: 0; }
  .hk-menu a { border: 0; padding: 8px 0; font-size: .95rem; }
  .hk-nav-cta { width: auto; min-height: 42px; padding: 8px 18px; }
}

/* ------------------------------------------------------------------
   Hero: nền lưới ô pin, bộ tính chi phí là điểm nhấn
------------------------------------------------------------------ */
.hk-hero {
  background-color: var(--blue);
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 52px 52px;
  color: #fff;
  padding-block: clamp(36px, 6vw, 80px);
}
.hk-hero-grid { display: grid; gap: 32px; align-items: start; }

.hk-hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  max-width: 17em;
  margin-bottom: .6em;
}
.hk-hero-sub { font-size: 1.1rem; max-width: 34em; color: #d6e2f1; }
.hk-hero-contact { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; font-weight: 600; }
.hk-hero-contact a { color: #fff; text-decoration-color: var(--sun); text-decoration-thickness: 2px; }
.hk-hero-contact a:hover { color: var(--sun); }

@media (min-width: 960px) {
  .hk-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px; }
  .hk-hero-text { padding-top: 12px; }
}

/* ------------------------------------------------------------------
   Bộ tính chi phí
------------------------------------------------------------------ */
.hk-calc {
  background: var(--white); color: var(--ink);
  border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 10px 30px rgba(6, 22, 44, .28);
}
.hk-calc-title { font-size: 1.25rem; margin-bottom: 16px; }

.hk-field { margin-bottom: 14px; }
.hk-field label, .hk-fieldset legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }

.hk-field input[type="text"],
.hk-field input[type="tel"],
.hk-field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 11px 14px; min-height: 46px;
  border: 2px solid var(--frame); border-radius: var(--r-sm); background: #fff;
}
.hk-field input:focus, .hk-field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(18, 58, 107, .18); }
.hk-field textarea { resize: vertical; }

.hk-calc [data-hk-bill] { font-size: 1.35rem; font-weight: 600; }

.hk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hk-chip {
  font: inherit; font-size: .9rem; padding: 6px 12px; min-height: 36px; cursor: pointer;
  background: var(--sky); color: var(--blue-d); border: 1px solid var(--sky-d); border-radius: 999px;
}
.hk-chip:hover { background: var(--sky-d); }

.hk-fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.hk-fieldset legend { padding: 0; }
.hk-radio { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; }
.hk-radio input, .hk-check input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.hk-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; cursor: pointer; }

.hk-result { border-top: 2px solid var(--sky-d); padding-top: 16px; margin-top: 4px; }
.hk-result-lead { font-size: 1.05rem; margin-bottom: 10px; }
.hk-result-lead strong { font-size: 1.5rem; color: var(--blue-d); display: block; font-weight: 800; letter-spacing: -0.01em; }

.hk-result-list { margin: 0 0 12px; }
.hk-result-list > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 8px 0; border-bottom: 1px solid var(--sky-d);
}
.hk-result-list dt { color: var(--muted); }
.hk-result-list dd { margin: 0; font-weight: 600; text-align: right; }
.hk-result-list .hk-good { color: var(--good); }

.hk-result-note {
  background: #fff6e0; border-left: 4px solid var(--warn);
  padding: 10px 14px; font-size: .92rem; margin: 0 0 12px;
}
.hk-result-empty { color: var(--muted); margin: 0 0 12px; }

.hk-assume summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--blue); }
.hk-assume ul { margin: 10px 0 0; padding-left: 20px; font-size: .9rem; color: var(--muted); }
.hk-assume li { margin-bottom: 4px; }

.hk-calc-form { border-top: 2px solid var(--sky-d); margin-top: 18px; padding-top: 16px; }
.hk-calc-form-lead { font-weight: 600; margin-bottom: 10px; }

/* ------------------------------------------------------------------
   Biểu mẫu
------------------------------------------------------------------ */
.hk-form-title { font-size: 1.25rem; }
.hk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hk-form-note { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }

.hk-notice { padding: 14px 16px; border-radius: var(--r-md); margin-bottom: 14px; display: grid; gap: 2px; }
.hk-notice-ok { background: #e4f4ec; border: 1px solid #9fd3b7; color: #0d4a30; }
.hk-notice-err { background: #fdeceb; border: 1px solid #f0b4b0; color: #7d1a15; }

/* ------------------------------------------------------------------
   Khối chung
------------------------------------------------------------------ */
.hk-section { padding-block: clamp(44px, 7vw, 88px); }
.hk-section-sky { background: var(--sky); }
.hk-h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .4em; }
.hk-lead { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin-bottom: 32px; }
.hk-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.hk-section-head .hk-h2 { margin: 0; }
.hk-more { font-weight: 600; }

.hk-page-head { margin-bottom: 28px; }
.hk-page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.hk-page-head .hk-lead { margin-bottom: 0; }
.hk-meta { color: var(--muted); font-size: .9rem; }
.hk-crumb { font-size: .92rem; margin-bottom: 8px; }

.hk-admin-note {
  background: #fff6e0; border: 1px dashed var(--warn); padding: 10px 14px;
  font-size: .9rem; border-radius: var(--r-sm); color: #5a4100;
}

/* Số liệu công ty */
.hk-stats { background: var(--white); border-bottom: 1px solid var(--frame); }
.hk-stats-list { display: grid; gap: 20px; margin: 0; padding-block: 28px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.hk-stats-list div { display: flex; flex-direction: column-reverse; }
.hk-stats-list dd { margin: 0; font-size: 2.2rem; font-weight: 800; color: var(--blue); line-height: 1.1; }
.hk-stats-list dt { color: var(--muted); font-size: .95rem; }

/* Ba hướng lắp đặt: danh sách dòng, không dùng thẻ giống nhau */
.hk-rows { border-top: 2px solid var(--blue); }
.hk-row {
  display: grid; gap: 6px 40px; padding: 22px 4px;
  border-bottom: 1px solid var(--frame); text-decoration: none; color: var(--ink);
}
.hk-row:hover { background: var(--sky); }
.hk-row-name { font-size: 1.2rem; font-weight: 600; color: var(--blue-d); }
.hk-row-desc { color: var(--muted); max-width: 46em; }
@media (min-width: 820px) {
  .hk-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: baseline; padding-inline: 12px; }
}

/* Dự án */
.hk-project-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .hk-project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .hk-project-grid { grid-template-columns: repeat(3, 1fr); }
  .hk-project-grid > .hk-project:first-child { grid-column: span 2; }
  .hk-project-grid > .hk-project:first-child .hk-project-img { aspect-ratio: 16 / 8; }
}
.hk-project { background: var(--white); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--sky-d); }
.hk-project-link { display: block; text-decoration: none; color: var(--ink); height: 100%; }
.hk-project-img { display: block; position: relative; aspect-ratio: 4 / 3; background: var(--sky-d); overflow: hidden; }
.hk-project-img img { width: 100%; height: 100%; object-fit: cover; }
.hk-project-noimg { display: block; width: 100%; height: 100%; background-image:
  linear-gradient(rgba(18,58,107,.15) 1px, transparent 1px),
  linear-gradient(90deg, rgba(18,58,107,.15) 1px, transparent 1px); background-size: 28px 28px; }
.hk-project-kwp {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--blue-d); color: #fff; font-weight: 600; font-size: .9rem;
  padding: 4px 10px; border-radius: var(--r-sm);
}
.hk-project-text { display: block; padding: 14px 16px 16px; }
.hk-project-title { display: block; font-weight: 600; font-size: 1.05rem; }
.hk-project-meta { display: block; color: var(--muted); font-size: .92rem; margin-top: 2px; }
.hk-project-link:hover .hk-project-title { color: var(--blue); text-decoration: underline; }

/* Quy trình: đây là chuỗi bước thật nên có đánh số */
.hk-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; counter-reset: none; }
.hk-steps li { position: relative; padding: 0 0 28px 64px; }
.hk-steps li::before {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 4px; width: 2px; background: var(--frame);
}
.hk-steps li:last-child::before { display: none; }
.hk-step-no {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center;
}
.hk-steps h3 { font-size: 1.15rem; margin: 6px 0 4px; }
.hk-steps p { margin: 0; color: var(--muted); max-width: 40em; }
@media (min-width: 960px) {
  .hk-steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .hk-steps li { padding: 60px 0 0; }
  .hk-steps li::before { left: 44px; right: -24px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .hk-step-no { top: 0; }
}

/* Đánh giá */
.hk-reviews { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 820px) { .hk-reviews { grid-template-columns: repeat(3, 1fr); } }
.hk-review { margin: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--blue); }
.hk-review blockquote { margin: 0 0 12px; font-size: 1.05rem; }
.hk-review blockquote p:last-child { margin-bottom: 0; }
.hk-review figcaption { display: flex; flex-direction: column; font-size: .95rem; }
.hk-review figcaption span { color: var(--muted); }

/* Câu hỏi thường gặp */
.hk-faq { max-width: 860px; }
.hk-faq details { border-bottom: 1px solid var(--frame); }
.hk-faq details:first-child { border-top: 2px solid var(--blue); }
.hk-faq summary {
  cursor: pointer; font-weight: 600; padding: 18px 28px 18px 0; list-style: none; position: relative;
}
.hk-faq summary::-webkit-details-marker { display: none; }
.hk-faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--blue);
}
.hk-faq details[open] summary::after { content: "\2212"; }
.hk-faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; max-width: 46em; }

/* Kêu gọi cuối trang */
.hk-cta {
  background-color: var(--blue);
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 52px 52px;
  padding-block: clamp(44px, 7vw, 88px);
  scroll-margin-top: 80px;
}
.hk-cta-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hk-cta-grid { grid-template-columns: 1fr 460px; gap: 56px; } }
.hk-on-dark { color: #fff; }
.hk-on-dark-sub { color: #d6e2f1; font-size: 1.1rem; max-width: 30em; }
.hk-cta-form { background: #fff; border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); }

/* ------------------------------------------------------------------
   Nội dung trang và bài viết
------------------------------------------------------------------ */
.hk-content, .hk-prose { max-width: 760px; font-size: 1.05rem; }
.hk-content > *:first-child, .hk-prose > *:first-child { margin-top: 0; }
.hk-content h2, .hk-prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.hk-content h3, .hk-prose h3 { font-size: 1.2rem; margin-top: 1.5em; }
.hk-content ul, .hk-content ol, .hk-prose ul, .hk-prose ol { padding-left: 1.3em; }
.hk-content li, .hk-prose li { margin-bottom: .5em; }
.hk-content img { border-radius: var(--r-md); }
.hk-prose .hk-calc { margin: 28px 0; border: 1px solid var(--sky-d); box-shadow: none; max-width: 520px; }

.hk-article-img { margin-bottom: 28px; max-width: 960px; }
.hk-article-img img { border-radius: var(--r-md); width: 100%; }
.hk-article-cta {
  margin-top: 40px; padding: 22px 24px; background: var(--sky); border-radius: var(--r-md); max-width: 760px;
}
.hk-article-cta p { font-weight: 600; margin-bottom: 14px; }

.hk-facts {
  display: grid; gap: 0 32px; margin: 0 0 28px; max-width: 760px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 2px solid var(--blue);
}
.hk-facts div { padding: 12px 0; border-bottom: 1px solid var(--frame); }
.hk-facts dt { color: var(--muted); font-size: .9rem; }
.hk-facts dd { margin: 0; font-weight: 600; }

.hk-table { width: 100%; border-collapse: collapse; margin: 0 0 1em; }
.hk-table th, .hk-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--frame); }
.hk-table thead th { background: var(--sky); border-bottom: 2px solid var(--blue); }
.hk-table tbody th { font-weight: 600; width: 38%; }

.hk-contact-list { margin: 0 0 32px; border-top: 2px solid var(--blue); }
.hk-contact-list > div { display: grid; gap: 2px 24px; padding: 12px 0; border-bottom: 1px solid var(--frame); }
@media (min-width: 600px) { .hk-contact-list > div { grid-template-columns: 160px 1fr; } }
.hk-contact-list dt { color: var(--muted); }
.hk-contact-list dd { margin: 0; font-weight: 600; }

.hk-prose .hk-form-wrap { max-width: 520px; padding: 22px; background: var(--sky); border-radius: var(--r-lg); }

.hk-post-list { display: grid; gap: 28px; max-width: 900px; }
.hk-post-item { display: grid; gap: 14px; }
@media (min-width: 700px) { .hk-post-item { grid-template-columns: 260px 1fr; gap: 24px; } }
.hk-post-thumb img { border-radius: var(--r-md); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hk-post-body h2 { font-size: 1.3rem; margin-bottom: 4px; }
.hk-post-body h2 a { text-decoration: none; color: var(--ink); }
.hk-post-body h2 a:hover { color: var(--blue); text-decoration: underline; }

.navigation.pagination { margin-top: 36px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links .page-numbers {
  padding: 8px 14px; border: 1px solid var(--frame); border-radius: var(--r-sm); text-decoration: none; color: var(--ink);
}
.nav-links .current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ------------------------------------------------------------------
   Sản phẩm
------------------------------------------------------------------ */
.hk-tabs { margin: 0 0 24px; border-bottom: 1px solid var(--frame); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hk-tabs ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.hk-tabs a {
  display: block; padding: 12px 16px; text-decoration: none; color: var(--muted); font-weight: 500;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.hk-tabs a:hover { color: var(--blue); }
.hk-tabs a[aria-current="page"] { color: var(--blue); font-weight: 600; border-bottom-color: var(--sun); }
.hk-tab-count { font-size: .8rem; color: var(--muted); margin-left: 2px; }

.hk-pgrid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .hk-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1040px) { .hk-pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.hk-pcard { background: var(--white); border: 1px solid var(--sky-d); border-radius: var(--r-md); overflow: hidden; }
.hk-pcard:hover { border-color: var(--sun); }
.hk-pcard-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.hk-pcard-img { display: block; position: relative; aspect-ratio: 1 / 1; background: var(--sky); overflow: hidden; }
.hk-pcard-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.hk-pcard-img .hk-project-noimg { position: absolute; inset: 0; }
.hk-pcard-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 16px; flex: 1; }
.hk-pcard-brand { font-size: .82rem; color: var(--muted); }
.hk-pcard-title { font-weight: 600; line-height: 1.35; }
.hk-pcard-link:hover .hk-pcard-title { color: var(--blue); text-decoration: underline; }
.hk-pcard-price { margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--blue); }
.hk-pcard-price.is-quote { font-weight: 600; color: var(--cyan-text); }

.hk-badge {
  position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; background: var(--sky-d); color: var(--blue-d);
}
.hk-badge-in { background: #e4f4ec; color: #0d4a30; }
.hk-badge-order { background: var(--sky-d); color: var(--blue-d); }
.hk-badge-out { background: #fdeceb; color: #7d1a15; }
.hk-badge-static { position: static; display: inline-block; }

.hk-note-small { font-size: .85rem; color: var(--muted); max-width: 760px; margin: 28px 0 0; }

.hk-psingle { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 36px; }
@media (min-width: 900px) { .hk-psingle { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.hk-psingle-img { background: var(--sky); border-radius: var(--r-md); aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; position: relative; }
.hk-psingle-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.hk-psingle-img .hk-project-noimg { position: absolute; inset: 0; }
.hk-psingle-info h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.hk-psingle-price { font-size: 1.6rem; font-weight: 800; color: var(--blue); margin-bottom: 6px; }
.hk-psingle-price.is-quote { font-size: 1.2rem; font-weight: 600; color: var(--cyan-text); }
.hk-psingle-excerpt { color: var(--muted); margin-bottom: 16px; }
.hk-facts-tight { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 24px; margin-bottom: 20px; }
.hk-psingle-form { background: var(--sky); border-radius: var(--r-lg); padding: 20px; }
.hk-psingle-form .hk-form-title { font-size: 1.1rem; }
.hk-psingle-alt { margin: 14px 0 0; font-size: .95rem; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.hk-psingle-alt a { font-weight: 600; }
.hk-psingle-section { margin-top: 40px; }
.hk-psingle-section h2 { font-size: 1.4rem; }
.hk-psingle-section .hk-table { max-width: 760px; }

/* ------------------------------------------------------------------
   Chân trang
------------------------------------------------------------------ */
.hk-footer { background: var(--blue-d); color: #c9d8e6; padding-top: 48px; }
.hk-footer a { color: #fff; }
.hk-footer a:hover { color: var(--sun); }
.hk-footer-grid { display: grid; gap: 32px; }
@media (min-width: 820px) { .hk-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.hk-footer-brand { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.hk-footer-head { font-weight: 600; color: #fff; margin-bottom: 10px; }
.hk-footer-menu { list-style: none; margin: 0; padding: 0; }
.hk-footer-menu li { margin-bottom: 8px; }
.hk-footer-bottom { border-top: 1px solid rgba(255,255,255,.16); margin-top: 36px; padding-block: 18px; font-size: .88rem; color: #a9bcd2; }
.hk-footer-bottom p { margin: 0; }

/* ------------------------------------------------------------------
   Nút liên hệ nhanh
------------------------------------------------------------------ */
.hk-float { display: none; }
@media (min-width: 900px) {
  /* Hai nút dạng thẻ nhỏ sát mép phải để không che nội dung */
  .hk-float { display: flex; flex-direction: column; gap: 8px; position: fixed; right: 0; bottom: 28px; z-index: 40; }
  .hk-float-btn {
    width: 44px; padding: 12px 0; border-radius: var(--r-md) 0 0 var(--r-md);
    font-weight: 600; font-size: .8rem; line-height: 1.2; text-decoration: none; text-align: center;
    box-shadow: 0 4px 14px rgba(6, 22, 44, .28);
  }
  .hk-float-zalo { background: #0068ff; color: #fff; }
  .hk-float-call { background: var(--sun); color: var(--ink); }
  .hk-float-zalo:hover { background: #0054d1; color: #fff; }
  .hk-float-call:hover { background: var(--sun-d); color: var(--ink); }
}

.hk-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--white); border-top: 1px solid var(--frame);
  padding-bottom: env(safe-area-inset-bottom);
}
.hk-bar a {
  display: flex; align-items: center; justify-content: center; min-height: 56px;
  font-weight: 600; text-decoration: none; color: var(--blue-d);
}
.hk-bar a + a { border-left: 1px solid var(--frame); }
.hk-bar .hk-bar-main { background: var(--sun); color: var(--ink); }
@media (min-width: 900px) { .hk-bar { display: none; } body.has-contact-bar { padding-bottom: 0; } }

/* ------------------------------------------------------------------
   Đồng ý xử lý dữ liệu, cookie, thông tin pháp lý
------------------------------------------------------------------ */
.hk-consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 12px; font-size: .9rem; line-height: 1.5; cursor: pointer; }
.hk-consent input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--blue); }
.hk-consent a { color: var(--blue); }
.hk-consent-opt { color: var(--muted); }

.hk-cookie {
  position: fixed; left: 16px; right: 16px; bottom: 72px; z-index: 70;
  max-width: 560px; margin-inline: auto;
  background: var(--white); color: var(--ink); border: 1px solid var(--frame);
  border-radius: var(--r-lg); padding: 18px 20px; box-shadow: 0 10px 30px rgba(6, 22, 44, .25);
  font-size: .92rem;
}
.hk-cookie[hidden] { display: none; }
.hk-cookie p { margin: 0 0 12px; }
.hk-cookie-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.hk-cookie-actions .hk-btn { min-height: 42px; padding: 8px 18px; }
@media (min-width: 900px) { .hk-cookie { left: 24px; right: auto; bottom: 24px; margin: 0; } }

.hk-footer-legal { margin: 0 0 12px; line-height: 1.7; }
.hk-footer-legal strong { color: #fff; }
.hk-footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 12px; }
.hk-linkbtn { font: inherit; color: #fff; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.hk-linkbtn:hover { color: var(--sun); }
.hk-price-terms { font-size: .9rem; color: var(--muted); margin: 0 0 10px; }
mark.hk-missing { background: #fff1c2; color: #5a4100; padding: 0 4px; border-radius: 3px; }

/* ------------------------------------------------------------------
   Giảm chuyển động theo cài đặt người dùng
------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* WordPress core */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption-text, figcaption { font-size: .9rem; color: var(--muted); }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal;
}
