/* =========================================================
   HD Diamonds Dental Lab – giao diện website công khai
   ========================================================= */

:root {
  --brand: #0d4aa6;
  --brand-dark: #0a3478;
  --brand-navy: #06204d;
  --brand-light: color-mix(in srgb, var(--brand) 65%, white);
  --brand-soft: color-mix(in srgb, var(--brand) 9%, white);
  --brand-tint: color-mix(in srgb, var(--brand) 4%, white);
  --ink: #16243a;
  --ink-muted: #5d6b80;
  --line: color-mix(in srgb, var(--brand) 10%, #e6e9ee);
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-script: "Dancing Script", cursive;
  --header-h: 84px;
  --radius: 16px;
  --shadow: 0 12px 36px rgba(6, 32, 77, .08);
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
}

h1, h2, h3, .font-heading {
  font-family: var(--font-heading);
  color: var(--brand-navy);
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-dark);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem color-mix(in srgb, var(--brand) 45%, transparent);
}

.text-brand {
  color: var(--brand) !important;
}

/* Thành phần Bootstrap dùng màu thương hiệu thay vì xanh mặc định */
.page-link {
  color: var(--brand);
}

.page-link:hover {
  color: var(--brand-dark);
  background-color: var(--brand-soft);
}

.page-item.active .page-link {
  background-color: var(--brand);
  border-color: var(--brand);
}

.page-link:focus,
.accordion-button:focus {
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand) 25%, transparent);
}

/* ---------- Nút dùng chung ---------- */
.btn-brand,
.btn-brand-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  padding: .7rem 1.5rem;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: all .2s ease;
}

.btn-brand {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
}

.btn-brand:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-brand-outline {
  background: #fff;
  border: 1px solid var(--brand);
  color: var(--brand);
}

.btn-brand-outline:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  background: #fff;
  transition: box-shadow .25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(6, 32, 77, .08);
}

.site-header .navbar {
  min-height: var(--header-h);
  padding-block: .5rem;
}

.brand-logo {
  height: 46px;
  width: auto;
}

.main-nav .nav-link {
  position: relative;
  padding: .5rem .65rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: .65rem;
  right: .65rem;
  bottom: .1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform .25s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--brand);
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
  transform: scaleX(1);
}

.btn-hotline {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .35rem 1.1rem .35rem .4rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease;
}

.btn-hotline:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-hotline-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  font-size: .85rem;
}

.btn-search {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  transition: all .2s ease;
}

.btn-search:hover,
.btn-search[aria-expanded="true"] {
  background: var(--brand-soft);
  border-color: var(--brand);
}

/* Nút đăng nhập quản trị: icon tròn cạnh nút tìm kiếm (chữ hiện khi rê chuột qua thuộc tính title) */
.btn-login {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  font-size: 1.1rem;
  text-decoration: none;
  transition: all .2s ease;
}

.btn-login:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

.search-dropdown {
  width: min(360px, calc(100vw - 32px));
  margin-top: .75rem !important;
  padding: .75rem;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(6, 32, 77, .16);
}

.search-form {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.search-form .form-control {
  border: 0;
  padding-left: 1rem;
  font-size: .9rem;
  box-shadow: none;
}

.search-form .btn {
  border: 0;
  border-radius: 0;
  padding-inline: 1rem;
  background: var(--brand);
  color: #fff;
}

.search-warranty-link {
  display: block;
  margin-top: .6rem;
  padding: .25rem .5rem;
  font-size: .85rem;
  text-decoration: none;
}

.site-header .navbar-toggler {
  border: 0;
  padding: .4rem;
}

/* Menu dạng xổ xuống trên tablet / mobile */
@media (max-width: 1199.98px) {
  .main-nav {
    margin-top: .75rem;
    padding: .5rem 0 1rem;
    border-top: 1px solid var(--line);
  }

  .main-nav .nav-link {
    padding: .7rem .25rem;
    border-bottom: 1px dashed var(--line);
  }

  .main-nav .nav-link::after {
    display: none;
  }
}

/* Laptop 1200–1399px: khung chỉ rộng 1140px nên thu gọn để logo + 9 mục menu + nút không tràn */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .brand-logo {
    height: 42px;
  }

  .main-nav .nav-link {
    padding-inline: .42rem;
    font-size: .82rem;
  }

  .main-nav .nav-link::after {
    left: .42rem;
    right: .42rem;
  }

  .btn-hotline {
    padding: .35rem;
  }

  .btn-hotline .d-sm-inline {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  .brand-logo {
    height: 38px;
  }

  .btn-hotline {
    padding: .35rem;
  }
}

/* =========================================================
   KHỐI NỘI DUNG DÙNG CHUNG
   ========================================================= */
.section {
  padding: 5rem 0;
}

.section-soft {
  background: linear-gradient(180deg, var(--brand-tint) 0%, var(--brand-soft) 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--ink-muted);
  line-height: 1.75;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner {
  padding: 3.5rem 0;
  background: linear-gradient(120deg, var(--brand-tint) 0%, var(--brand-soft) 100%);
  border-bottom: 1px solid var(--line);
}

.page-banner .breadcrumb {
  margin-bottom: .5rem;
  font-size: .85rem;
}

/* =========================================================
   TRANG CHỦ
   ========================================================= */

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #ffffff 0%, var(--brand-tint) 45%, var(--brand-soft) 100%);
}

.hero-content {
  padding-block: 4.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  max-width: 480px;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 2.75rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.35;
}

.hero-feature i {
  font-size: 1.8rem;
  color: var(--brand);
}

/* Điện thoại / máy tính bảng: ảnh nằm dưới phần chữ, giữ đúng tỉ lệ ảnh banner (5:4) */
.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  max-height: 520px;
  overflow: hidden;
}

.hero-media img {
  position: absolute;
  inset: 0;
  object-position: 60% 60%;
}

.hero-script {
  position: absolute;
  right: 6%;
  bottom: 12%;
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.15;
  color: #fff;
  text-align: right;
  text-shadow: 0 2px 12px rgba(6, 32, 77, .35);
  transform: rotate(-8deg);
}

/* Máy tính: ảnh chiếm nửa phải; khối cao theo bề ngang màn hình để ảnh không bị cắt mất trên/dưới */
@media (min-width: 992px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: clamp(560px, 40vw, 820px);
  }

  .hero > .container {
    width: 100%;
  }

  /* Mép trái ảnh bám theo giữa khung nội dung (cột chữ col-lg-5 luôn kết thúc trước 50% - 80px)
     → không đè lên chữ dù màn hình rộng bao nhiêu */
  .hero-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: max(45%, calc(50% - 60px));
    width: auto;
    aspect-ratio: auto;
    max-height: none;
  }

  .hero-media img {
    border-radius: 0 0 0 48px;
  }
}

/* Màn hình siêu rộng (> 1920px hoặc khi thu nhỏ trình duyệt): ảnh dừng ở khung 1920px và mờ dần sang nền,
   tránh ảnh bị kéo dài rồi cắt mất phần trên/dưới */
@media (min-width: 1921px) {
  .hero-media {
    right: calc(50% - 960px);
  }

  .hero-media img {
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
    mask-image: linear-gradient(to right, #000 82%, transparent);
  }
}

/* --- Về chúng tôi --- */
.about-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 6 / 5;
  max-height: 520px;
}

.about-media img {
  position: absolute;
  inset: 0;
}

.about-body {
  max-width: 660px;
  padding: 3rem 1rem;
}

@media (min-width: 992px) {
  /* Ảnh cao bằng cột chữ bên cạnh (không vượt quá), chữ căn giữa theo chiều dọc */
  /* Cao theo bề ngang để khung ảnh luôn gần tỉ lệ 3:2, không bị cắt thành dải mỏng trên màn hình rộng */
  .about-media {
    aspect-ratio: auto;
    max-height: none;
    height: 100%;
    min-height: clamp(520px, 34vw, 660px);
  }

  #gioi-thieu .row > .col-lg-6:last-child {
    display: flex;
    align-items: center;
  }

  .about-body {
    padding: 4rem 1rem 4rem 3.5rem;
  }
}

@media (min-width: 1921px) {
  #gioi-thieu > .container-fluid {
    max-width: 1920px;
  }

  .about-media img {
    -webkit-mask-image: linear-gradient(to left, #000 82%, transparent);
    mask-image: linear-gradient(to left, #000 82%, transparent);
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.stat {
  text-align: center;
}

.stat i {
  font-size: 1.9rem;
  color: var(--brand);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: .25rem 0;
}

.stat-label {
  font-size: .75rem;
  color: var(--ink-muted);
}

@media (max-width: 575.98px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Sản phẩm --- */
.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.product-card-media {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: var(--brand-soft);
}

.product-card-media img {
  position: absolute;
  inset: 0;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
}

.product-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: .35rem;
}

.product-card-tagline {
  font-size: .85rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .55rem;
  font-size: .85rem;
}

.check-list li::before {
  content: "\F26B";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
}

@media (max-width: 575.98px) {
  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

/* --- Quy trình --- */
.process {
  position: relative;
  color: rgba(255, 255, 255, .8);
  background:
    radial-gradient(circle at 75% 30%, color-mix(in srgb, var(--brand-light) 35%, transparent), transparent 55%),
    linear-gradient(120deg, var(--brand-navy) 0%, color-mix(in srgb, var(--brand-navy) 70%, var(--brand)) 100%);
}

.process.has-bg {
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--brand-navy) 94%, transparent) 0%, color-mix(in srgb, var(--brand-navy) 72%, transparent) 100%),
    var(--process-bg) center / cover no-repeat;
}

.process .section-title,
.process .eyebrow {
  color: #fff;
}

.process .eyebrow::before {
  background: var(--brand-light);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
}

.process-step {
  flex: 1;
  text-align: center;
}

.process-step-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto .9rem;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  font-size: 1.6rem;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .12);
}

.process-step-no {
  display: block;
  font-weight: 700;
  color: #fff;
}

.process-step-text {
  font-size: .82rem;
}

.process-arrow {
  margin-top: 1.6rem;
  color: rgba(255, 255, 255, .6);
}

@media (max-width: 767.98px) {
  .process-steps {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 2rem;
  }

  .process-step {
    flex: 0 0 33%;
  }

  .process-arrow {
    display: none;
  }
}

/* --- Đội ngũ --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Hàng cao theo bề ngang màn hình để ảnh không bị bóp dẹt trên màn hình rộng */
  grid-auto-rows: clamp(140px, 12vw, 210px);
  gap: .75rem;
}

@media (max-width: 575.98px) {
  /* Điện thoại: ảnh đầu rộng hết hàng, 4 ảnh còn lại xếp 2 × 2 */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 130px;
    gap: .5rem;
  }

  .team-grid figure:first-child {
    grid-column: 1 / -1;
  }
}

.team-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--brand-soft);
}

.team-grid figure:first-child {
  grid-row: span 2;
}

.team-grid img {
  transition: transform .4s ease;
}

.team-grid figure:hover img {
  transform: scale(1.05);
}

/* --- Tra cứu bảo hành --- */
.warranty-visual {
  position: relative;
  max-width: 460px;
  margin-inline: auto;
}

.warranty-card-mock {
  aspect-ratio: 1.6;
  padding: 2rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, var(--brand-soft) 100%);
  box-shadow: 0 24px 60px rgba(6, 32, 77, .18);
  transform: rotate(-6deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.warranty-card-mock img {
  height: 46px;
  margin-bottom: 1rem;
}

.warranty-card-mock strong {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--brand-dark);
  letter-spacing: .04em;
}

.warranty-card-mock span {
  font-size: .8rem;
  letter-spacing: .3em;
  color: var(--brand);
}

.lookup-form {
  display: flex;
  gap: .5rem;
  padding: .4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lookup-form .form-control {
  border: 0;
  border-radius: 999px;
  padding-left: 1.1rem;
  box-shadow: none;
}

.lookup-form .btn-brand {
  flex-shrink: 0;
  padding: .6rem 1.4rem;
}

.lookup-hints {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.lookup-hint {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  line-height: 1.35;
}

.lookup-hint i {
  font-size: 1.5rem;
  color: var(--brand);
}

@media (max-width: 767.98px) {
  .lookup-hints {
    grid-template-columns: repeat(2, 1fr);
  }
}

.warranty-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.warranty-result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--brand-soft);
}

.warranty-result dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: .75rem 1rem;
  margin: 0;
  padding: 1.5rem;
}

.warranty-result dt {
  font-weight: 500;
  color: var(--ink-muted);
}

@media (max-width: 575.98px) {
  .warranty-result dl {
    grid-template-columns: 1fr;
    gap: .15rem;
  }

  .warranty-result dd {
    margin-bottom: .6rem;
  }
}

/* --- Tin tức --- */
.article-card {
  height: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.article-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: var(--brand-soft);
}

.article-card-body {
  padding: 1rem .25rem;
}

.article-card-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: .4rem;
}

.article-card-title a {
  color: var(--ink);
  text-decoration: none;
}

.article-card-title a:hover {
  color: var(--brand);
}

.article-card-date {
  font-size: .78rem;
  color: var(--ink-muted);
}

.link-more {
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.article-content .ql-align-center { text-align: center; }
.article-content .ql-align-right { text-align: right; }
.article-content .ql-align-justify { text-align: justify; }

/* --- Câu hỏi thường gặp --- */
.faq-accordion .accordion-item {
  margin-bottom: .75rem;
  border: 1px solid var(--line);
  border-radius: 12px !important;
  overflow: hidden;
}

.faq-accordion .accordion-button {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}

/* Mũi tên mở/đóng theo màu chữ (mặc định của Bootstrap là ảnh SVG màu xanh cố định) */
.faq-accordion .accordion-button::after {
  width: auto;
  height: auto;
  background-image: none;
  content: "\F282";
  font-family: "bootstrap-icons";
  font-size: .9rem;
  line-height: 1;
  color: currentColor;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--brand);
  background: var(--brand-soft);
}

.contact-card {
  height: 100%;
  padding: 2rem;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, .85);
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-navy) 100%);
}

.contact-card h3 {
  color: #fff;
}

.contact-card .btn-light {
  border-radius: 999px;
  font-weight: 600;
  color: var(--brand-dark);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  color: rgba(255, 255, 255, .72);
  background: linear-gradient(160deg, var(--brand-navy) 0%, color-mix(in srgb, var(--brand-navy) 70%, black) 100%);
  font-size: .9rem;
}

.footer-main {
  padding: 4rem 0 3rem;
}

.footer-logo {
  height: 54px;
}

.footer-desc {
  line-height: 1.75;
}

.footer-desc strong {
  color: #fff;
}

.footer-title {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}

.footer-links li + li {
  margin-top: .6rem;
}

.site-footer a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  transition: color .2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.footer-contact li {
  display: flex;
  gap: .8rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.footer-contact-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--brand-light);
}

.footer-contact-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
}

.footer-phone:not(:last-child)::after {
  content: " – ";
  color: rgba(255, 255, 255, .5);
}

.footer-map {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.social-links {
  display: flex;
  gap: .6rem;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 1.1rem;
  transition: background .2s ease, transform .2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
}

.social-links .facebook:hover { background: #1877f2; }
.social-links .youtube:hover { background: #ff0000; }
.social-links .zalo:hover { background: #0068ff; }
.social-links .tiktok:hover { background: #000; }

.zalo-text {
  font-size: .62rem;
  font-weight: 700;
}

.footer-bottom {
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .82rem;
  color: rgba(255, 255, 255, .55);
}

/* Nút lên đầu trang */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1030;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  color: #fff;
  background: var(--brand-dark);
}

/* =========================================================
   KẾT QUẢ TRA CỨU: THẺ BẢO HÀNH (mặt trước + mặt sau)
   ========================================================= */
.wcard-wrap {
  display: grid;
  gap: 1.5rem;
}

.wcard {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.75rem;
  border-radius: 20px;
  color: var(--ink);
  /* Họa tiết mảng màu chéo giống thẻ in */
  background:
    linear-gradient(115deg, transparent 0 38%, color-mix(in srgb, var(--brand) 14%, transparent) 38% 55%, transparent 55%),
    linear-gradient(65deg, transparent 0 62%, color-mix(in srgb, var(--brand) 10%, transparent) 62% 80%, transparent 80%),
    linear-gradient(135deg, #ffffff 0%, var(--brand-soft) 55%, color-mix(in srgb, var(--brand) 22%, white) 100%);
  box-shadow: 0 18px 48px rgba(6, 32, 77, .14), inset 0 0 0 1px rgba(255, 255, 255, .6);
}

.wcard-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed color-mix(in srgb, var(--brand) 30%, transparent);
}

.wcard-logo {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.wcard-heading {
  flex: 1;
  text-align: center;
}

.wcard-product {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--brand-navy);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.wcard-tagline {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.wcard-title {
  margin-top: .25rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
}

.wcard-status {
  flex-shrink: 0;
  padding: .4rem .8rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
}

.wcard-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: start;
}

.wcard-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1.5rem;
  margin: 0;
}

.wcard-field dt {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-muted);
}

.wcard-field dd {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

/* Chữ dập nổi như trên thẻ nhựa */
.wcard-field-code dd,
.wcard-expiry {
  font-family: "Courier New", Consolas, monospace;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--brand-navy);
  text-shadow: 0 1px 0 #fff, 0 -1px 0 rgba(0, 0, 0, .12);
}

.wcard-teeth {
  min-width: 180px;
  text-align: center;
}

.wcard-teeth-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-muted);
  margin-bottom: .35rem;
}

/* Sơ đồ chữ thập (Palmer): trái = bên phải bệnh nhân */
.palmer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 180px;
  margin: 0 auto;
  font-family: "Courier New", Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.palmer-q {
  min-height: 2rem;
  padding: .2rem .5rem;
  white-space: nowrap;
}

.palmer-q1 { text-align: right; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.palmer-q2 { text-align: left; border-bottom: 2px solid var(--ink); }
.palmer-q4 { text-align: right; border-right: 2px solid var(--ink); }
.palmer-q3 { text-align: left; }

.wcard-teeth-list {
  margin-top: .35rem;
  font-size: .8rem;
  color: var(--ink-muted);
}

.wcard-composition {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.wcard-composition span {
  color: var(--ink);
}

.wcard-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px dashed color-mix(in srgb, var(--brand) 30%, transparent);
  font-size: .95rem;
}

.wcard-foot strong {
  text-transform: uppercase;
}

.wcard-back-title {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink);
}

.wcard-back ul {
  margin: 0 0 .6rem;
  padding-left: 1.2rem;
}

.wcard-back li {
  margin-bottom: .2rem;
}

.wcard-term-heading {
  margin: .6rem 0 .2rem;
  font-weight: 700;
}

.wcard-term-heading::before {
  content: "* ";
  color: var(--brand);
}

.wcard-cert {
  margin: 1rem 0 .4rem;
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
}

.wcard-address {
  margin: 0;
  text-align: center;
  font-weight: 600;
  color: var(--brand-dark);
}

@media (max-width: 767.98px) {
  .wcard {
    padding: 1.25rem;
  }

  .wcard-head {
    flex-wrap: wrap;
  }

  .wcard-heading {
    order: 3;
    flex-basis: 100%;
  }

  .wcard-status {
    margin-left: auto;
  }

  .wcard-body,
  .wcard-fields {
    grid-template-columns: 1fr;
  }
}

/* Khoảng cách cột g-5 (3rem) rộng hơn lề container trên điện thoại → gây cuộn ngang */
@media (max-width: 767.98px) {
    .row.g-5 { --bs-gutter-x: 1.5rem; }
}
