/* legacy-header.css — header cũ dùng chung (trích từ custom.css + header-light.css của giao diện hiện tại) */

/* custom.css */
/* Bổ sung cho style.css: menu mobile và form đăng ký (thay cho component React gốc) */
.hd-menu[hidden], .hd-modal[hidden] { display: none; }
.hd-menu { position: fixed; inset: 0; z-index: 60; }
.hd-menu__backdrop, .hd-modal__backdrop { position: absolute; inset: 0; background: rgba(16, 54, 75, .45); backdrop-filter: blur(3px); }
.hd-menu__panel { position: absolute; right: 0; top: 0; height: 100%; width: 82%; max-width: 24rem; background: #faf8f3; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0, 0, 0, .15); }
.hd-menu__top { display: flex; align-items: center; justify-content: space-between; height: 5rem; padding: 0 1.25rem; border-bottom: 1px solid #e5e5e5; }
.hd-menu__close, .hd-modal__close { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: #10364b; }
.hd-menu nav { display: flex; flex-direction: column; padding: .5rem 1.25rem; }
.hd-menu nav a { padding: 1rem 0; font-size: 1.125rem; color: #10364b; border-bottom: 1px solid #e5e5e5; }
.hd-menu__actions { margin-top: auto; padding: 1.25rem 1.25rem 2rem; display: grid; gap: .75rem; }
.hd-btn { display: block; width: 100%; text-align: center; padding: .875rem 1.25rem; border-radius: 9999px; font-weight: 500; cursor: pointer; border: 1px solid transparent; }
.hd-btn--navy { background: #10364b; color: #fff; }
.hd-btn--ghost { border-color: rgba(16, 54, 75, .2); color: #10364b; }
.hd-modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.hd-modal__box { position: relative; width: 100%; max-width: 36rem; max-height: 92vh; overflow: auto; background: #faf8f3; border-radius: 1rem; padding: 2rem; display: grid; gap: 1rem; color: #10364b; }
.hd-modal__box h2 { font-size: 1.5rem; font-weight: 600; }
.hd-modal__lead { color: rgba(16, 54, 75, .7); font-size: .95rem; }
.hd-modal__close { position: absolute; top: .75rem; right: 1rem; }
.hd-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .hd-grid { grid-template-columns: 1fr 1fr; } }
.hd-modal label { display: grid; gap: .375rem; font-size: .875rem; font-weight: 500; }
.hd-modal input, .hd-modal select, .hd-modal textarea { font: inherit; padding: .65rem .8rem; border: 1px solid #d4d4d4; border-radius: .5rem; background: #fff; }
.hd-modal input:focus, .hd-modal select:focus, .hd-modal textarea:focus { outline: 2px solid #c9a24d; border-color: transparent; }
.hd-error { color: #b42318; font-size: .875rem; min-height: 1em; }

/* Trang Coaching: ảnh card thấp hơn (4:3) */
.hd-short .aspect-\[3\/4\] { aspect-ratio: 4 / 3; }

/* Form mua hàng: dòng giá */
.hd-price { margin: -.25rem 0 0; padding: .6rem .9rem; border-radius: .6rem; background: rgba(199, 160, 82, .14); color: #10364b; font-weight: 600; font-size: .95rem; }
.hd-price[hidden] { display: none; }
.hd-birth[hidden], .hd-item[hidden] { display: none; }


/* header-light.css */
/* Header sáng, tối giản, sticky — áp dụng cho toàn bộ trang */
header.fixed {
  background: rgba(250, 249, 246, .96) !important;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(12, 45, 66, .06);
  box-shadow: none; transition: box-shadow .3s ease;
}
header.fixed.is-scrolled { box-shadow: 0 10px 30px -22px rgba(12, 45, 66, .55); }
header.fixed > div { max-width: 1400px !important; }

/* menu navy + gạch chân vàng khi hover / trang hiện tại */
header nav > a, header nav > .hd-dd > a { color: #0c2d42 !important; font-weight: 500; letter-spacing: .01em; }
header nav > a span, header nav > .hd-dd > a span { background: #c59a48 !important; height: 2px !important; }
header nav > a:hover span, header nav > a[data-active="1"] span, header nav > .hd-dd:hover > a span, header nav > .hd-dd > a[data-active="1"] span { width: 100% !important; }
header nav a[data-active="1"] { font-weight: 600; }
header img { height: 4rem !important; }
@media (min-width: 1500px) { header.fixed > div { padding-left: 0 !important; padding-right: 0 !important; } }

/* hotline 2 dòng */
header a[href^="tel:"] { color: #0c2d42 !important; align-items: center; }
header a[href^="tel:"] svg { color: #c59a48; width: 1.35rem; height: 1.35rem; }
header .hd-hotline { display: flex; flex-direction: column; line-height: 1.2; }
header .hd-hotline small { font-size: .72rem; color: #627582; font-weight: 400; }
header .hd-hotline b { font-size: .95rem; font-weight: 600; color: #0c2d42; letter-spacing: .01em; }

/* nút đăng ký */
header button:not([aria-label]) {
  background: #c59a48 !important; color: #fff !important; font-weight: 600; padding: .8rem 1.6rem !important;
  box-shadow: 0 10px 24px -14px rgba(197, 154, 72, .9); transition: background .25s, transform .25s, box-shadow .25s;
}
header button:not([aria-label])::after { content: "→"; margin-left: .5rem; transition: transform .25s; display: inline-block; }
header button:not([aria-label]):hover { background: #b2873a !important; transform: translateY(-1px); }
header button:not([aria-label]):hover::after { transform: translateX(4px); }
header button[aria-label="Mở menu"] { color: #0c2d42 !important; }

/* menu xổ xuống */
header nav .hd-dd { position: relative; }
header nav .hd-dd > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px .5rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .25s; }
header nav .hd-dd:hover > a::after { transform: rotate(225deg) translate(-2px, -2px); }
.hd-dd__panel { position: absolute; left: -1.1rem; top: 100%; min-width: 17rem; padding-top: 1.2rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility .25s; z-index: 60; }
.hd-dd:hover .hd-dd__panel, .hd-dd:focus-within .hd-dd__panel { opacity: 1; visibility: visible; transform: none; }
.hd-dd__panel > div { background: #fff; border-radius: 14px; padding: .55rem; box-shadow: 0 24px 50px -22px rgba(12, 45, 66, .5); border: 1px solid rgba(12, 45, 66, .07); }
.hd-dd__panel a { display: block; padding: .6rem .85rem; border-radius: 9px; font-size: .9rem; line-height: 1.35; color: #0c2d42; transition: background .2s, color .2s; }
.hd-dd__panel a:hover { background: #faf9f6; color: #a9802f; }


/* ═══════════════════════════════════════════════════════════
   Header dùng chung với các trang con (bản cũ giữ nguyên).
   Các tiện ích bên dưới thay cho Tailwind chỉ trong phạm vi <header>.
   ═══════════════════════════════════════════════════════════ */
header { font-family: "Inter", "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.5; }
header, header *, header *::before, header *::after { box-sizing: border-box; }
header a { text-decoration: none; }
header img { display: block; max-width: 100%; }
header button { font-family: inherit; border: 0; background: none; }
header.fixed { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: all .3s; }
header .mx-auto { margin-left: auto; margin-right: auto; }
header .max-w-\[1280px\] { max-width: 1280px; }
header .px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
header .flex { display: flex; }
header .inline-flex { display: inline-flex; }
header .items-center { align-items: center; }
header .justify-center { justify-content: center; }
header .justify-between { justify-content: space-between; }
header .shrink-0 { flex-shrink: 0; }
header .h-20 { height: 5rem; }
header .w-auto { width: auto; }
header .relative { position: relative; }
header .absolute { position: absolute; }
header .left-0 { left: 0; }
header .-bottom-1\.5 { bottom: -.375rem; }
header .h-px { height: 1px; }
header .w-0 { width: 0; }
header .w-full { width: 100%; }
header .w-4 { width: 1rem; }
header .h-4 { height: 1rem; }
header .w-6 { width: 1.5rem; }
header .h-6 { height: 1.5rem; }
header .gap-2 { gap: .5rem; }
header .gap-5 { gap: 1.25rem; }
header .gap-8 { gap: 2rem; }
header .text-sm { font-size: .875rem; line-height: 1.25rem; }
header .text-\[15px\] { font-size: 15px; }
header .font-medium { font-weight: 500; }
header .tracking-wide { letter-spacing: .025em; }
header .rounded-full { border-radius: 9999px; }
header .px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
header .py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
header .p-2 { padding: .5rem; }
header .-mr-2 { margin-right: -.5rem; }
header .cursor-pointer { cursor: pointer; }
header .bg-gold { background-color: #c59a48; }
header .text-gold { color: #c59a48; }
header .text-navy { color: #0c2d42; }
header .transition-all { transition: all .3s; }
header .transition-colors { transition: color .2s, background-color .2s; }
header .hidden { display: none; }
@media (min-width: 1024px) {
  header .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  header .lg\:flex { display: flex; }
  header .lg\:hidden { display: none; }
}
