/* ============================================================
   COMPONENTS.CSS — Style cho các thành phần dùng chung
   ------------------------------------------------------------
   Mục lục:
   1. <site-header>     : top bar + thanh menu (kèm menu mobile)
   2. Page banner       : dải tiêu đề + breadcrumb cho trang con
   3. Thẻ dịch vụ       : .service
   4. Thẻ điểm mạnh     : .feature (trên nền navy)
   5. Ô thống kê        : .stat
   6. Thẻ tin tức       : .news-card
   7. Thẻ luật sư       : .lawyer-card
   8. Thẻ đánh giá      : .testimonial
   9. Form & thông tin liên hệ
   10. <site-footer>    : footer
   11. <floating-contact>: nút liên hệ nổi
   12. Responsive cho components
   ============================================================ */


/* ============================================================
   1. <site-header> — TOP BAR + THANH MENU
   ------------------------------------------------------------
   Toàn bộ cụm header được ghim cố định trên cùng màn hình.
   body được đệm padding-top tương ứng (xem cuối mục này)
   để nội dung không bị che.
   ============================================================ */
site-header {
  display: block;
  position: fixed;
  /* Ghim cả top bar + menu lên đỉnh màn hình */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Đệm sẵn cho body đúng bằng chiều cao header để nội dung không bị che */
/* body {
  padding-top: calc(var(--topbar-height) + var(--header-height));
} */

/* ----- Top bar: dải thông tin nhỏ màu navy trên cùng ----- */
.topbar {
  height: var(--topbar-height);
  background: var(--navy-darker);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar__left {
  display: flex;
  gap: 24px;
}

/* Một mục thông tin: icon nhỏ + chữ */
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.25s ease;
}

.topbar__item svg {
  width: 14px;
  height: 14px;
  color: var(--gold-light);
  /* Icon màu vàng nổi trên nền navy */
}

a.topbar__item:hover {
  color: var(--gold-light);
}

/* ----- Thanh menu chính (nền trắng) ----- */
.header {
  height: var(--header-height);
  background: var(--white);
  box-shadow: 0 2px 10px rgba(13, 31, 77, 0.06);
  transition: box-shadow 0.3s ease;
  position: sticky;
  top: 0;
  /* Làm mốc cho menu mobile định vị bên dưới */
  z-index: 1000;
}

/* Khi cuộn trang, JS thêm class này để bóng đổ rõ hơn */
.header.is-scrolled {
  box-shadow: 0 4px 20px rgba(13, 31, 77, 0.14);
}

/* Đẩy menu và nav mobile xuống khi thanh Admin Bar của WordPress hiển thị */
.admin-bar .header {
  top: 32px;
}

.admin-bar .nav {
  top: 32px;
  height: calc(100vh - 32px);
}

@media (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
  .admin-bar .nav {
    top: 46px;
    height: calc(100vh - 46px);
  }
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Cụm logo + tên công ty bên trái */
.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  /* Không co lại khi thiếu chỗ */
}

.header__logo {
  width: 50px;
  height: 50px;
}

.header__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.header__brand-text strong {
  color: var(--navy);
  font-size: 15px;
  letter-spacing: 0.5px;
}

.header__brand-text small {
  color: var(--gold);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ----- Menu desktop: các link nằm ngang ----- */
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav__mobile-info {
  display: none;
}

.nav__link {
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
  white-space: nowrap;
  /* Không cho chữ trong 1 mục menu xuống dòng */
}

/* Gạch chân vàng chạy từ trái sang khi hover / trang hiện tại */
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--navy);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}

/* ----- Nút hamburger: ẩn trên desktop, hiện trên tablet/mobile ----- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.hamburger.is-open span {
  background: var(--white);
}

/* Menu mở: 3 gạch xoay thành dấu X */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* ============================================================
   2. PAGE BANNER — DẢI TIÊU ĐỀ TRANG CON
   ------------------------------------------------------------
   Dùng ở đầu các trang con (Giới thiệu, Dịch vụ...):
   nền navy gradient + tiêu đề lớn + breadcrumb điều hướng.
   ============================================================ */
.page-banner {
  background: linear-gradient(135deg, var(--navy-darker) 0%, var(--navy-dark) 60%, var(--navy) 100%);
  color: var(--white);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

/* Vòng tròn vàng mờ trang trí góc phải */
.page-banner::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.page-banner__title {
  font-family: var(--font-heading);
  font-size: 42px;
  line-height: 1.2;
}

/* Breadcrumb: Trang chủ / Trang hiện tại */
.breadcrumb {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
  color: var(--gold-light);
}

.breadcrumb span {
  color: var(--gold-light);
}

/* Trang hiện tại màu vàng */


/* ============================================================
   3. THẺ DỊCH VỤ (.service)
   ============================================================ */
.service {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  /* Flex dọc + height 100%: các thẻ trong lưới cao bằng nhau,
     phần mô tả giãn ra (flex:1) đẩy nút "Xem chi tiết" xuống đáy
     → 4 nút luôn thẳng hàng dù tiêu đề dài ngắn khác nhau */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

/* Thanh vàng chạy ngang trên đầu thẻ khi hover */
.service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service:hover::before {
  transform: scaleX(1);
}

.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(201, 162, 39, 0.4);
}

/* Ô tròn chứa icon */
.service__icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--gold-light);
  /* Icon SVG ăn theo màu này (stroke=currentColor) */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service__icon svg {
  width: 29px;
  height: 29px;
}

.service__title {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
}

.service__desc {
  font-size: 14.5px;
  color: var(--text-muted);
  flex: 1;
  /* Giãn chiếm chỗ trống → đẩy "Xem chi tiết" xuống đáy thẻ */
}

/* Dòng "Xem chi tiết →" cuối thẻ - luôn nằm sát đáy nhờ flex ở trên */
.service__more {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}

.service:hover .service__more {
  color: var(--navy);
}


/* ============================================================
   4. THẺ ĐIỂM MẠNH (.feature) — DÙNG TRÊN NỀN NAVY
   ============================================================ */
.feature {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, transform 0.3s ease;
}

.feature:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.feature__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature__icon svg {
  width: 31px;
  height: 31px;
}

.feature__title {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--white);
  margin-bottom: 10px;
}

.feature__desc {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.75);
}


/* ============================================================
   5. Ô THỐNG KÊ (.stat)
   ============================================================ */
.stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy-dark);
  /* Viền vàng trên đầu */
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Số lớn - JS đếm chạy từ 0 đến data-count */
.stat__number,
.stat__suffix {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  color: var(--navy);
}

.stat__suffix {
  color: var(--gold);
}

.stat__label {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
}


/* ============================================================
   6. THẺ TIN TỨC (.news-card)
   ============================================================ */
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  /* Bo góc cả phần thumbnail */
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Thumbnail with real image */
.news-card__thumb {
  height: 220px;
  background: var(--bg-light);
  overflow: hidden;
  position: relative;
}

.news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.1, 1, 0.1, 1);
}

.news-card:hover .news-card__img {
  transform: scale(1.06);
}

.news-card__body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
  /* Giãn đều để các thẻ cao bằng nhau */
}

/* Metadata line below image */
.news-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.news-card__meta-cat {
  font-weight: 600;
  color: var(--gold);
}

.news-card__meta-sep {
  color: rgba(0, 0, 0, 0.15);
  font-size: 10px;
}

.news-card__meta-date,
.news-card__meta-comments {
  color: var(--text-muted);
}

.news-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.45;
  color: var(--navy);
  font-weight: 700;
  margin: 0;
  transition: color 0.3s ease;
}

.news-card:hover .news-card__title {
  color: var(--gold);
}


/* ============================================================
   7. THẺ LUẬT SƯ (.lawyer-card)
   ------------------------------------------------------------
   Chưa có ảnh chân dung nên avatar là vòng tròn gradient navy
   chứa chữ cái viết tắt tên. Khi có ảnh: thay div.lawyer-card__avatar
   bằng <img> bo tròn cùng kích thước.
   ============================================================ */
.lawyer-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 24px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lawyer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Avatar tròn: nền gradient navy, viền vàng, chữ cái lớn ở giữa */
.lawyer-card__avatar {
  width: 110px;
  height: 110px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-darker) 100%);
  border: 3px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lawyer-card__name {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--navy);
}

/* Chức danh màu vàng viết hoa nhỏ */
.lawyer-card__role {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 6px 0 12px;
}

.lawyer-card__desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* Modifier khi có ảnh chân dung thật */
.lawyer-card__avatar--photo {
  background: none;
  border: 3px solid var(--gold);
  overflow: hidden;
  padding: 0;
}

.lawyer-card__avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Chuyên môn — hiển thị dưới chức vụ */
.lawyer-card__speciality {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy-dark, #0d2c7b);
  background: rgba(13, 31, 77, 0.06);
  border-radius: 50px;
  padding: 3px 12px;
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}


/* ============================================================
   8. THẺ ĐÁNH GIÁ KHÁCH HÀNG (.testimonial)
   ------------------------------------------------------------
   Dùng trong slider ở trang chủ. JS điều khiển chuyển slide.
   ============================================================ */
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

/* Dấu ngoặc kép trang trí lớn */
.testimonial__quote-mark {
  font-family: var(--font-heading);
  font-size: 64px;
  line-height: 0.5;
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
}

.testimonial__text {
  font-size: 16.5px;
  color: var(--text);
  font-style: italic;
  margin-bottom: 22px;
}

.testimonial__name {
  font-weight: 700;
  color: var(--navy);
}

.testimonial__role {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Chấm điều hướng slider (dùng chung cho hero slider + testimonial) */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.slider-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(26, 61, 143, 0.25);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
}

.slider-dots button.is-active {
  background: var(--gold);
  transform: scale(1.25);
}

/* Bản chấm màu sáng dùng trên nền navy (hero) */
.slider-dots--light button {
  background: rgba(255, 255, 255, 0.35);
}

.slider-dots--light button.is-active {
  background: var(--gold-light);
}


/* ============================================================
   9. FORM & THÔNG TIN LIÊN HỆ
   ============================================================ */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

/* Hàng 2 ô cạnh nhau (SĐT + Email) trên desktop */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--navy);
}

.form-group label span {
  color: var(--danger);
}

/* Dấu * trường bắt buộc */

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}

/* Viền xanh + quầng sáng khi đang nhập */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 61, 143, 0.12);
}

/* Viền đỏ khi JS phát hiện lỗi */
.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: var(--danger);
}

/* Dòng báo lỗi dưới mỗi ô - JS điền nội dung */
.form-error {
  display: block;
  color: var(--danger);
  font-size: 13px;
  margin-top: 5px;
  min-height: 1em;
}

/* Thông báo gửi thành công (mặc định có thuộc tính hidden) */
.form-success {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  background: #E8F5E9;
  color: #1B7A2E;
  font-weight: 500;
  font-size: 14.5px;
}

/* ----- Khối thông tin liên hệ (địa chỉ, SĐT...) ----- */
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-item__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(26, 61, 143, 0.08);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-item__icon svg {
  width: 22px;
  height: 22px;
}

.info-item strong {
  color: var(--navy);
  font-size: 15px;
}

.info-item p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin-top: 2px;
}

.info-item a:hover {
  color: var(--gold);
}

/* Khung bản đồ nhúng */
.map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}


/* ============================================================
   10. <site-footer> — FOOTER
   ============================================================ */
.footer {
  background: var(--navy-darker);
  color: rgba(255, 255, 255, 0.8);
}

.footer__inner {
  display: grid;
  /* 4 cột: thương hiệu rộng hơn | liên kết | lĩnh vực | liên hệ */
  grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
  gap: 36px;
  padding: 56px 24px 40px;
}

.footer__brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.footer__logo {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
}

.footer__brand strong {
  color: var(--white);
  font-size: 14.5px;
  letter-spacing: 0.5px;
}

.footer__brand p {
  font-size: 13.5px;
  margin-top: 4px;
}

.footer__slogan {
  color: var(--gold-light);
  font-style: italic;
}

.footer__col {
  list-style: none;
}

.footer__col h4 {
  color: var(--gold);
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer__col a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer__col p {
  font-size: 14px;
  margin-bottom: 10px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
}


/* ============================================================
   11. <floating-contact> — NÚT LIÊN HỆ NỔI
   ============================================================ */
.float-contact {
  position: fixed;
  right: 22px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  /* Các nút xếp dọc */
  gap: 12px;
  z-index: 900;
}

/* Nút tròn cơ bản */
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(13, 31, 77, 0.25);
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  font-family: var(--font-body);
}

.float-btn svg {
  width: 24px;
  height: 24px;
}

.float-btn:hover {
  transform: translateY(-3px);
}

/* Nút gọi điện: vàng gold + hiệu ứng rung lắc gây chú ý */
.float-btn--phone {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy-darker);
  animation: ring-shake 2.2s ease-in-out infinite;
  /* Rung theo chu kỳ */
}

/* Keyframe rung lắc: nghiêng qua lại vài lần rồi nghỉ */
@keyframes ring-shake {

  0%,
  50%,
  100% {
    transform: rotate(0);
  }

  5% {
    transform: rotate(-14deg);
  }

  10% {
    transform: rotate(12deg);
  }

  15% {
    transform: rotate(-10deg);
  }

  20% {
    transform: rotate(8deg);
  }

  25% {
    transform: rotate(0);
  }
}

/* Nút Zalo: xanh thương hiệu Zalo, chữ "Zalo" */
.float-btn--zalo {
  background: #0068FF;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

/* Nút lên đầu trang: navy, mặc định ẨN - JS thêm .is-visible khi cuộn >500px */
.float-btn--top {
  background: var(--navy);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
}

.float-btn--top.is-visible {
  opacity: 1;
  visibility: visible;
}


/* ============================================================
   12. RESPONSIVE CHO COMPONENTS
   ============================================================ */

/* ---------- TABLET (≤1024px): chuyển sang menu hamburger ---------- */
@media (max-width: 1024px) {

  .hamburger {
    display: flex;
  }

  /* Menu trượt xuống ngay dưới thanh header */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--navy-darker, #081126);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 100px 24px 40px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), opacity 0.4s ease, visibility 0.4s;
    visibility: hidden;
    overflow-y: auto;
    z-index: 999;
  }

  /* Trạng thái ẩn của các mục con */
  .nav > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* JS thêm .is-open khi bấm hamburger */
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* Trạng thái hiện của các mục con */
  .nav.is-open > * {
    opacity: 1;
    transform: translateY(0);
  }

  /* Hiệu ứng xuất hiện so le (Staggered fade-in & slide-up) */
  .nav.is-open > *:nth-child(1) { transition-delay: 0.15s; }
  .nav.is-open > *:nth-child(2) { transition-delay: 0.20s; }
  .nav.is-open > *:nth-child(3) { transition-delay: 0.25s; }
  .nav.is-open > *:nth-child(4) { transition-delay: 0.30s; }
  .nav.is-open > *:nth-child(5) { transition-delay: 0.35s; }
  .nav.is-open > *:nth-child(6) { transition-delay: 0.40s; }
  .nav.is-open > *:nth-child(7) { transition-delay: 0.45s; }
  .nav.is-open > *:nth-child(8) { transition-delay: 0.50s; }
  .nav.is-open > *:nth-child(9) { transition-delay: 0.55s; }

  .nav__link {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: none;
    letter-spacing: 0.5px;
    padding: 12px 0;
    border: none;
    transition: color 0.3s ease, transform 0.3s ease;
  }

  .nav__link:hover,
  .nav__link.is-active {
    color: var(--gold-light, #f1c40f);
    transform: scale(1.02);
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    margin-top: 10px;
    width: auto;
    min-width: 200px;
    text-align: center;
  }

  /* Thông tin liên hệ và mxh ở dưới cùng menu mobile */
  .nav__mobile-info {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
  }

  .nav__mobile-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .nav__mobile-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: color 0.3s;
  }

  .nav__mobile-contact a:hover {
    color: var(--gold-light);
  }

  .nav__mobile-contact svg {
    width: 16px;
    height: 16px;
  }

  .nav__mobile-social {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .nav__mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
    font-weight: 700;
    text-decoration: none;
  }

  .nav__mobile-social a:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
    transform: translateY(-3px);
  }
  
  .nav__mobile-social .zalo-icon {
    font-size: 13px;
  }
}

/* ---------- MOBILE (≤768px) ---------- */
@media (max-width: 768px) {

  /* Ẩn top bar cho gọn màn hình nhỏ */
  :root {
    --topbar-height: 0px;
  }

  .topbar {
    display: none;
  }

  /* Logo + chữ thu nhỏ */
  .header__logo {
    width: 42px;
    height: 42px;
  }

  .header__brand-text strong {
    font-size: 12.5px;
  }

  .header__brand-text small {
    display: none;
  }

  .page-banner {
    padding: 48px 0;
  }

  .page-banner__title {
    font-size: 30px;
  }

  /* Form + footer gọn lại */
  .contact-form {
    padding: 26px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 44px 18px 32px;
  }

  /* Nút nổi nhỏ hơn */
  .float-contact {
    right: 14px;
    bottom: 16px;
    gap: 10px;
  }

  .float-btn {
    width: 46px;
    height: 46px;
  }

  .float-btn svg {
    width: 21px;
    height: 21px;
  }

  .float-btn--zalo {
    font-size: 11.5px;
  }
}