/**
 * site-partials.css
 * CSS dùng chung cho header/footer của toàn bộ site NinhQ.
 * Sửa màu sắc, kích thước, khoảng cách... của header/footer chỉ cần sửa ở đây,
 * áp dụng cho tất cả các trang include file này.
 *
 * Cách dùng: thêm vào <head> của mỗi trang, sau phần <style> riêng của trang:
 *   <link rel="stylesheet" href="site-partials.css">
 */

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #f0f2f2;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(12,35,42,0.06);
  box-shadow: 0 2px 12px rgba(12,35,42,0.06);
  transition: transform 0.32s ease;
}
.site-header.nav-scroll-hidden {
  transform: translateY(-100%);
}
nav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(12,35,42,0.07);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 3px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 26px; font-weight: 600;
  color: var(--dark); letter-spacing: -0.8px;
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a, .nav-links button {
  font-size: 15px; font-weight: 600; color: var(--slate);
  text-decoration: none; transition: color 0.2s;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
}
.nav-links a:hover, .nav-links button:hover { color: var(--dark); }
.nav-links a.active { color: var(--dark); }
.nav-hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; border-radius: 8px;
  color: var(--dark);
}
.mobile-menu-clip {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  overflow: hidden;
  z-index: 101;
}
.mobile-menu-clip.open,
.mobile-menu-clip.closing {
  display: block;
}
.mobile-menu {
  background: white;
  border-bottom: 1px solid rgba(12,35,42,0.07);
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column; gap: 4px;
  box-shadow: 0 8px 24px rgba(12,35,42,0.12);
  transform: translateY(-100%);
}
.mobile-menu-clip.open .mobile-menu {
  animation: menuSlideDownIn 400ms cubic-bezier(0.2,0.1,0.25,1) forwards;
}
.mobile-menu-clip.closing .mobile-menu {
  animation: menuSlideUpOut 280ms cubic-bezier(0.75,0,0.8,0.9) forwards;
}
@keyframes menuSlideDownIn {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
@keyframes menuSlideUpOut {
  from { transform: translateY(0); }
  to { transform: translateY(-100%); }
}
.mobile-menu a, .mobile-menu button {
  font-size: 16px; font-weight: 600; color: var(--dark);
  text-decoration: none; padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  background: none; border-left: none; border-right: none; border-top: none;
  width: 100%; text-align: left; display: block; cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
}
.mobile-menu a:last-child, .mobile-menu button:last-child { border-bottom: none; }

/* ── FOOTER ── */
site-footer {
  display: block;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 52px 24px 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand-logo {
  display: flex; align-items: center; gap: 3px;
  margin-bottom: 16px;
}
.footer-brand-logo-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.footer-brand-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 26px; font-weight: 600; color: white; letter-spacing: -0.8px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.footer-social-btn:hover { background: rgba(255,255,255,0.15); }
.footer-col-title {
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col button {
  font-size: 16px; font-weight: 500;
  color: rgba(255,255,255,0.55); text-decoration: none;
  transition: color 0.2s;
  background: none; border: none; padding: 0; cursor: pointer;
  text-align: left; font-family: 'Inter', system-ui, sans-serif;
  display: block;
}
.footer-col a:hover, .footer-col button:hover { color: white; }
.footer-col a.active { color: white; }
.footer-bottom {
  width: 100%;
  max-width: 1200px; margin: 0 auto;
  padding: 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 14px; color: rgba(255,255,255,0.3); font-weight: 500; text-align: center; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a {
  font-size: 14px; color: rgba(255,255,255,0.3); font-weight: 500;
  text-decoration: none; transition: color 0.2s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
