/* ============================================================
   HEADER & FOOTER — Shared chrome
   ============================================================ */

/* ---- HEADER ---- */
.header {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex; align-items: center; height: 64px; gap: 24px;justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-icon {
  width: auto; max-width: 250px; height: auto; 
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center;
  overflow: hidden;
}
.logo-icon img { width: 100%; height: auto; object-fit: cover; }
.logo-text .name { font-weight: 800; font-size: 13px; color: var(--primary); letter-spacing: 0.5px; line-height: 1.2; }
.logo-text .tagline { font-size: 9.5px; color: var(--muted); letter-spacing: 0.3px; }
.nav { display: flex; gap: 2px; flex: 1; justify-content: center; }
.nav-link {
  padding: 6px 10px; border-radius: 6px; font-size: 13.5px;
  font-weight: 400; color: var(--text); text-decoration: none;
  border-bottom: 2px solid transparent; transition: all 0.15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--blue); }
.nav-link.active { font-weight: 600; color: var(--blue); border-bottom-color: var(--blue); }
.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 6px; }
.header-phone .label { font-size: 10px; color: var(--muted); }
.header-phone .number { font-weight: 700; font-size: 13px; color: var(--primary); }
.btn-login { background: none; border: 1px solid var(--border); padding: 7px 16px; border-radius: 8px; font-size: 13px; color: var(--text); font-weight: 500; }
.btn-login:hover { border-color: var(--blue); color: var(--blue); }
.btn-register { background: var(--blue); border: none; padding: 8px 18px; border-radius: 8px; font-size: 13px; color: #fff; font-weight: 600; }
.btn-register:hover { background: var(--blue-dark); }

/* Mobile menu */
.hamburger { display: none; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; transition: 0.2s; }
.nav.nav-open {
  display: flex; flex-direction: column;
  position: absolute; top: 64px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 8px 24px; z-index: 99; gap: 4px;
}

/* ---- TRUST BAR ---- */
.trust-bar { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; }
.trust-bar-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-label { font-weight: 600; font-size: 13px; }
.trust-sub { font-size: 12px; color: var(--muted); }

/* ---- NEWSLETTER ---- */
.newsletter-bar { background: var(--blue-light); border-top: 1px solid var(--blue-border); padding: 16px 0; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.newsletter-title { font-weight: 700; font-size: 15px; color: var(--primary); }
.newsletter-sub { font-size: 12.5px; color: var(--muted); }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { padding: 9px 16px; border-radius: 8px; border: 1px solid var(--blue-border); font-size: 13px; width: 220px; outline: none; }
.newsletter-form button { background: var(--blue); color: #fff; border: none; padding: 9px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.newsletter-features { display: flex; gap: 24px; flex-wrap: wrap; }
.newsletter-feat { display: flex; align-items: center; gap: 8px; }
.newsletter-feat strong { font-size: 12px; font-weight: 600; }
.newsletter-feat small { font-size: 11px; color: var(--muted); display: block; }

/* ---- FOOTER ---- */
.footer { background: var(--primary); color: #fff; padding: 40px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo-icon { width: auto; max-width: 250px; height: auto;  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.footer-logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.footer-logo span { font-weight: 800; font-size: 14px; color: #fff; }
.footer-desc { font-size: 13px; opacity: 0.75; line-height: 1.7; margin-bottom: 16px; color: #fff; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px; background: rgba(255,255,255,0.15);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 700;
  transition: background 0.15s; text-decoration: none; color: #fff;
}
.footer-social a:hover { background: rgba(255,255,255,0.25); }
.footer-col h4 { font-weight: 700; font-size: 14px; margin-bottom: 14px; color: #fff; }
.footer-col a { display: block; font-size: 13px; opacity: 0.75; margin-bottom: 8px; text-decoration: none; color: #fff; transition: opacity 0.15s; }
.footer-col a:hover { opacity: 1; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; color: #fff; }
.footer-contact-item span { font-size: 13px; opacity: 0.75; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); margin-top: 32px;
  padding: 14px 40px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; opacity: 0.6; color: #fff; }
.footer-payments { display: flex; gap: 8px; }
.footer-payments span {
  background: #fff; border-radius: 4px; padding: 3px 8px;
  font-size: 11px; font-weight: 800;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: block; }
  .header-right .btn-login, .header-right .btn-register { display: none; }
  .header-phone { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .newsletter-inner { flex-direction: column; }
  .newsletter-form input { width: 160px; }

  /* Compact logo on mobile to prevent horizontal scroll */
  .header-inner { padding: 0 0px; gap: 8px; }
  .logo { gap: 6px; min-width: 0; }
  .logo-icon { width: 130px; height: auto; }
  .logo-text .name { font-size: 12px; }
  .logo-text .tagline { display: none; }   /* hide tagline, keep name only */
  .header-right { gap: 8px; }
  /* Shrink the prominent "Đặt vé ngay" CTA so hamburger isn't pushed off */
  .header-right .btn { padding: 8px 12px; font-size: 12px; }
}
@media (max-width: 420px) {
  .logo-text .name { font-size: 11px; max-width: 100px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Make CTA icon-only on tiny screens to keep hamburger in view */
  .header-right .btn-cta-mobile-text { display: none; }
}
