/* ============================================================
   3T Construction — stylesheet
   Typography: Times New Roman (serif) toàn trang.
   Palette giữ nguyên nhận diện: đỏ #c8102e / đen / nền giấy.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --red: #c8102e;
  --red-dark: #9f0b23;
  --red-soft: #f06b7e;
  --black: #111;
  --ink: #1c1c1c;
  --muted: #5f5b56;
  --paper: #f7f5f2;
  --line: #ddd8d1;
  --white: #fff;

  /* Times New Roman + các bản thay thế metric-compatible trên Linux/Android */
  --font-serif: "Times New Roman", Times, "Liberation Serif", "Tinos",
    "Nimbus Roman", "Droid Serif", serif;

  --wrap: 1180px;
  --gutter: max(24px, 50vw - var(--wrap) / 2);
  --header-h: 78px;

  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

/* Vòng focus rõ ràng, chỉ hiện khi điều hướng bằng bàn phím */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--red);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}

/* ---------- 3. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 10px 24px -22px rgba(0, 0, 0, 0.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--red);
  color: #fff;
  border-radius: 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.1;
}

.brand b {
  font-size: 16px;
  letter-spacing: 0.16em;
}

.brand small {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 16px;
}

nav a:not(.nav-cta) {
  position: relative;
  padding: 4px 0;
  transition: color 0.18s var(--ease);
}

/* Gạch chân trượt ra khi hover */
nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease);
}

nav a:not(.nav-cta):hover {
  color: var(--red);
}
nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 11px 20px;
  background: var(--black);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.18s var(--ease);
}
nav .nav-cta:hover {
  background: var(--red);
  color: #fff;
}

/* ---------- 4. Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 660px;
  background: var(--black);
  color: #fff;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 64px 96px var(--gutter);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-soft);
}

/* Vạch đỏ dẫn trước mỗi eyebrow */
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
  flex: none;
}

.eyebrow.red {
  color: var(--red);
}

.hero h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(46px, 5.8vw, 86px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--red-soft);
  font-style: italic;
}

.hero-lead {
  max-width: 58ch;
  margin-top: 30px;
  font-size: 20px;
  line-height: 1.7;
  color: #c9c5c0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.button.primary {
  background: var(--red);
  color: #fff;
}
.button.primary:hover {
  background: #e01638;
  transform: translateY(-2px);
}

.button.ghost {
  color: #fff;
  border: 1px solid #555;
}
.button.ghost:hover {
  border-color: #fff;
  transform: translateY(-2px);
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: center;
  gap: 1px;
  padding: 90px 7vw 90px 40px;
  background: linear-gradient(150deg, #1f1f1f, #070707);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 186px;
  padding: 26px;
  border: 1px solid #333;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.hero-stat:hover {
  border-color: var(--red);
  background: rgba(200, 16, 46, 0.06);
}

.hero-stat strong {
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-stat span {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a3a3a3;
}

.axes {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 2fr 1fr 1fr;
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.axes span,
.axes b {
  padding: 15px;
  background: #181818;
  border-left: 4px solid #4c4c4c;
}

.axes b {
  border-color: var(--red);
  color: #fff;
}

/* ---------- 5. Section chung ---------- */
.section {
  padding: 110px var(--gutter);
  scroll-margin-top: var(--header-h);
}

.section-head {
  max-width: 780px;
  margin-bottom: 52px;
}

.section-head h2,
.case-section h2,
.form-intro h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--black);
}

.section-head > p:last-child,
.form-intro > p {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 6. Sản phẩm ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  min-height: 296px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--black);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-top-color 0.2s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--red);
  box-shadow: 0 22px 40px -28px rgba(0, 0, 0, 0.55);
}

.product-card.featured {
  grid-column: span 3;
  background: linear-gradient(150deg, #d21534, var(--red) 45%, #ae0c27);
  border-color: var(--red);
  border-top-color: var(--black);
  color: #fff;
}
.product-card.featured:hover {
  border-top-color: #fff;
}

.product-card:nth-child(2) {
  grid-column: span 3;
}

.product-code {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
}

.product-card.featured .product-code {
  color: #fff;
  opacity: 0.85;
}

.product-card h3 {
  margin: 26px 0 12px;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.product-card p {
  margin-bottom: 26px;
  color: var(--muted);
  line-height: 1.65;
}

.product-card.featured p {
  color: #ffe2e7;
}

.product-card button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 15px 0 0;
  border-top: 1px solid var(--line);
  text-align: left;
  font-weight: 700;
  transition: color 0.18s var(--ease);
}

.product-card:not(.featured) button:hover {
  color: var(--red);
}

.product-card.featured button {
  border-color: rgba(255, 255, 255, 0.38);
}

/* Mũi tên trượt sang phải khi hover card */
.product-card button span {
  display: inline-block;
  transition: transform 0.24s var(--ease);
}
.product-card:hover button span {
  transform: translateX(6px);
}

/* ---------- 7. Quy trình ---------- */
.process-section {
  background: var(--black);
  color: #fff;
}

.section-head.light h2 {
  color: #fff;
}
.section-head.light > p:last-child {
  color: #b6b2ad;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #333;
}

.process-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 30px 26px 30px 0;
  border-bottom: 1px solid #333;
  transition: background 0.2s var(--ease);
}

.process-step:hover {
  background: rgba(255, 255, 255, 0.03);
}

.process-step:nth-child(odd) {
  border-right: 1px solid #333;
}
.process-step:nth-child(2n) {
  padding-left: 32px;
}

.process-step > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.2s var(--ease);
}

.process-step:hover > span {
  transform: scale(1.08);
}

.process-step h3 {
  margin-bottom: 8px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.process-step p {
  margin: 0;
  color: #a8a4a0;
  line-height: 1.6;
}

/* ---------- 8. Case ---------- */
.case-section {
  background: #fff;
}

.case-label {
  display: inline-block;
  margin-bottom: 36px;
  padding: 10px 14px;
  background: var(--black);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.case-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 84px;
}

.case-lead {
  margin-top: 26px;
  font-size: 20px;
  line-height: 1.7;
  color: var(--muted);
  font-style: italic;
}

.case-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.case-facts article {
  min-height: 172px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease);
}

.case-facts article:hover {
  background: var(--paper);
}

.case-facts b {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.case-facts p {
  margin-top: 14px;
  color: #4d4a46;
  line-height: 1.6;
}

/* ---------- 9. 4 hành động ---------- */
.action-section {
  padding-bottom: 76px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.action-card {
  display: grid;
  grid-template-columns: 56px 1fr 30px;
  align-items: start;
  gap: 20px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.action-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 20px 36px -26px rgba(0, 0, 0, 0.5);
}

.action-card > span {
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.02em;
}

.action-card h3 {
  margin-bottom: 8px;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.action-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.action-card i {
  font-style: normal;
  font-size: 24px;
  color: var(--red);
  transition: transform 0.22s var(--ease);
}

.action-card:hover i {
  transform: translateX(6px);
}

/* ---------- 10. Form đăng ký ---------- */
.form-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 76px;
  background: #1a1a1a;
  color: #fff;
}

.form-intro h2 {
  color: #fff;
}
.form-intro > p {
  color: #b7b3ae;
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid #444;
  font-size: 16px;
  color: #c6c2be;
}

.contact-box b {
  color: #fff;
  letter-spacing: 0.12em;
}

.contact-box a {
  width: fit-content;
  transition: color 0.18s var(--ease);
}
.contact-box a:hover {
  color: var(--red-soft);
}

.lead-form {
  padding: 38px;
  background: #fff;
  color: var(--ink);
  border-top: 5px solid var(--red);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.8);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Dấu * bắt buộc */
.req {
  color: var(--red);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px;
  font-weight: 400;
  background: #fdfcfb;
  border: 1px solid #c9c4bd;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background 0.16s var(--ease);
}

.lead-form input:hover,
.lead-form select:hover,
.lead-form textarea:hover {
  border-color: #a9a39b;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  background: #fff;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.14);
}

/* Báo lỗi ngay trên ô đã nhập sai */
.lead-form input:not(:placeholder-shown):invalid {
  border-color: var(--red);
}

.lead-form textarea {
  resize: vertical;
  min-height: 132px;
  line-height: 1.65;
}

.consent {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 12px !important;
  font-weight: 400 !important;
  font-size: 15px !important;
  line-height: 1.6;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--red);
  flex: none;
}

.submit-button {
  width: 100%;
  min-height: 54px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}

.submit-button:hover:not(:disabled) {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-note {
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.6;
  color: #6f6b66;
}

.form-message {
  margin-top: 16px;
  padding: 15px 16px;
  font-size: 15px;
  line-height: 1.6;
  border-left: 4px solid currentColor;
}

.form-message.success {
  background: #eef8f0;
  color: #1b6330;
}

.form-message.error {
  background: #fff0f2;
  color: #8c1025;
}

.form-message[hidden] {
  display: none;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
}

/* ---------- 11. Footer ---------- */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 38px var(--gutter);
  background: #090909;
  color: #8c8884;
  font-size: 14px;
}

footer > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

footer b {
  color: #fff;
  letter-spacing: 0.14em;
}

footer p {
  max-width: 540px;
  margin: 0;
  text-align: right;
  line-height: 1.6;
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 980px) {
  nav a:not(.nav-cta) {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 88px 32px 64px;
  }
  .hero-panel {
    padding: 36px 32px 72px;
  }
  .product-card,
  .product-card.featured,
  .product-card:nth-child(2) {
    grid-column: span 3;
  }
  .case-layout,
  .form-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 68px;
  }
  body {
    font-size: 16px;
  }
  .site-header {
    padding: 0 16px;
  }
  .brand small {
    display: none;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 19px;
  }
  .nav-cta {
    padding: 10px 15px;
  }
  .hero-copy {
    padding: 60px 20px 48px;
  }
  .hero h1 {
    font-size: 46px;
  }
  .hero-lead {
    font-size: 17px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-panel {
    grid-template-columns: 1fr;
    padding: 26px 20px 56px;
  }
  .hero-stat {
    min-height: 118px;
  }
  .hero-stat strong {
    font-size: 46px;
  }
  .axes {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 78px 20px;
  }
  .section-head {
    margin-bottom: 38px;
  }
  .section-head h2,
  .case-section h2,
  .form-intro h2 {
    font-size: 36px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-card,
  .product-card.featured,
  .product-card:nth-child(2) {
    grid-column: auto;
    min-height: 0;
    padding: 26px;
  }
  .process-grid,
  .action-grid,
  .case-facts,
  .field-row {
    grid-template-columns: 1fr;
  }
  .process-step:nth-child(odd) {
    border-right: 0;
  }
  .process-step:nth-child(2n) {
    padding-left: 0;
  }
  .case-layout {
    gap: 36px;
  }
  .action-card {
    grid-template-columns: 42px 1fr 22px;
    gap: 14px;
    padding: 22px;
  }
  .lead-form {
    padding: 26px 20px;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
  }
  footer p {
    text-align: left;
  }
}

/* ---------- 13. Ưu tiên người dùng ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .action-section,
  .lead-form,
  .skip-link {
    display: none !important;
  }
  body,
  .hero,
  .process-section,
  .form-section {
    background: #fff !important;
    color: #000 !important;
  }
  .section {
    padding: 24px 0;
    break-inside: avoid;
  }
}

/* ============================================================
   14. Nhận diện thương hiệu: logo, liên hệ nhanh, QR Zalo
   ============================================================ */

/* ---- Logo trên header ---- */
.brand-logo {
  height: 54px;
  width: auto;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  line-height: 1.15;
}

.brand-text b {
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--black);
}

.brand-text small {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Số điện thoại trên thanh điều hướng ---- */
.nav-phone {
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}
.nav-phone span {
  font-size: 15px;
}

/* ---- Khối liên hệ + QR trong phần đăng ký ---- */
.contact-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
}

.contact-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border-radius: var(--radius);
  flex: none;
}

.contact-qr img {
  width: 132px;
  height: 132px;
  display: block;
}

.contact-qr span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #333;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 6px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}

.contact-button.call {
  background: var(--red);
  color: #fff;
}
.contact-button.call:hover {
  background: #e01638;
  transform: translateY(-2px);
}

.contact-button.zalo {
  background: #0068ff;
  color: #fff;
}
.contact-button.zalo:hover {
  background: #0057d4;
  transform: translateY(-2px);
}

/* ---- Footer có logo ---- */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-brand img {
  height: 62px;
  width: auto;
}

.footer-brand > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-brand a {
  color: var(--red-soft);
}
.footer-brand a:hover {
  color: #fff;
}

footer p a {
  color: #cfcbc7;
}
footer p a:hover {
  color: #fff;
}

/* ---- Thanh liên hệ nổi (chỉ hiện trên màn hình nhỏ) ---- */
.contact-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px -18px rgba(0, 0, 0, 0.6);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.contact-bar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  font-size: 16px;
  font-weight: 700;
  border-right: 1px solid var(--line);
}

.contact-bar-item:last-child {
  border-right: 0;
}

.contact-bar-item.call {
  background: var(--red);
  color: #fff;
}
.contact-bar-item.zalo {
  background: #0068ff;
  color: #fff;
}
.contact-bar-item.form {
  color: var(--black);
}

@media (max-width: 980px) {
  .nav-phone {
    display: none;
  }
  .contact-bar {
    display: grid;
  }
  /* chừa chỗ cho thanh nổi */
  body {
    padding-bottom: 56px;
  }
  .footer-brand img {
    height: 54px;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    height: 42px;
  }
  .brand-text {
    padding-left: 10px;
  }
  .brand-text b {
    font-size: 14px;
    letter-spacing: 0.1em;
  }
  .contact-box {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .contact-button {
    flex: 1 1 auto;
    justify-content: center;
  }
  .footer-brand {
    gap: 14px;
  }
}

@media print {
  .contact-bar {
    display: none !important;
  }
}
