/* Kiên An Wealth – lớp CSS bổ sung cho bản web (design system: Inter, navy-900, gold-500) */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
h1, h2 { letter-spacing: -0.01em; }
h1 { font-size: 52px !important; line-height: 1.15 !important; } /* display */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #E3C766; outline-offset: 2px;
}
section[id], div[id] { scroll-margin-top: 24px; }

/* FAQ: dấu + đổi thành − khi mở */
details[open] > summary > span[aria-hidden="true"] { transform: rotate(45deg); }
summary > span[aria-hidden="true"] { display: inline-block; transition: transform .2s ease; }

/* Nút menu điện thoại (ẩn trên desktop) */
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1.5px solid #3E5C7A; border-radius: 8px;
  background: transparent; cursor: pointer; padding: 0; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #FFFFFF; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Form đặt lịch */
.booking-form .field-error { font-size: 13px; color: #B42318; }
.booking-form input[aria-invalid="true"] { border-color: #B42318 !important; }
.booking-form button[disabled] { opacity: .7; cursor: wait; }
.booking-success {
  grid-column: span 2; display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  padding: 8px 0;
}
.booking-success h3 { margin: 0; font-size: 22px; color: #0F2A44; }
.booking-success p { margin: 0; color: #4A5663; }
.booking-success button {
  border: 1.5px solid #0F2A44; background: #FFFFFF; color: #0F2A44; font: inherit; font-weight: 600;
  padding: 10px 18px; border-radius: 8px; cursor: pointer;
}

/* Tìm kiếm FAQ */
.faq-empty { padding: 24px; border: 1px dashed #DDD6C8; border-radius: 12px; color: #4A5663; background: #FFFFFF; }
mark.faq-hit { background: #F3E7B8; color: inherit; border-radius: 2px; }

/* Laptop nhỏ: giữ header trên một hàng */
@media (max-width: 1240px) and (min-width: 901px) {
  .site-header__inner { flex-wrap: nowrap !important; }
  .site-nav { gap: 20px !important; }
  .site-actions a[href^="tel:"] { display: none; }
}

/* ---------- Máy tính bảng & điện thoại ---------- */
@media (max-width: 900px) {
  .site-header__inner { flex-wrap: wrap !important; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav, .site-actions { display: none !important; }
  .site-header.is-open .site-nav {
    display: flex !important; flex-direction: column; gap: 0 !important; width: 100%; order: 3;
    border-top: 1px solid #3E5C7A; padding-top: 8px;
  }
  .site-header.is-open .site-nav a { padding: 12px 0; font-size: 16px; }
  .site-header.is-open .site-actions {
    display: flex !important; width: 100%; order: 4; flex-direction: column; align-items: stretch !important;
    padding-bottom: 8px;
  }
  .site-header.is-open .site-actions a { text-align: center; }
}

@media (max-width: 640px) {
  h1 { font-size: 36px !important; }
  h2 { font-size: 28px !important; }
  section { padding-left: 16px !important; padding-right: 16px !important; }
  .booking-form { grid-template-columns: 1fr !important; padding: 24px !important; }
  .booking-form > * { grid-column: auto !important; }
  #booking > div { padding: 28px !important; }
  table { font-size: 14px; }
}
