/* ─── FireHub shared chrome ────────────────────────────────
   Header · Topbar · Footer · Mobile drawer · Buttons · Type
   Used by all sub-pages. Homepage has its own inline copy.
   ───────────────────────────────────────────────────────── */

:root {
  --fs-red: #E63322;
  --fs-red-deep: #A8201A;
  --fs-red-light: #FCEAE7;
  --gradient-brand: linear-gradient(90deg, #E63322 0%, #A8201A 100%);

  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --surface-2: #F1F3F5;
  --surface-3: #F6F7F9;
  --border: #E3E6EA;
  --border-strong: #CAD0D7;

  --text: #1B222C;
  --text-muted: #5C6672;
  --text-faint: #8A929E;

  --shadow-sm: 0 1px 2px rgba(27,34,44,0.04);
  --shadow-md: 0 6px 24px -8px rgba(230,51,34,0.12), 0 2px 6px rgba(27,34,44,0.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ─── Icons ─────────────────────────────────────── */
.ic { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 14px; height: 14px; }
.ic-lg { width: 22px; height: 22px; }

/* ─── Buttons ───────────────────────────────────── */
.cta-btn {
  background: var(--gradient-brand); color: #fff;
  padding: 11px 20px; font-size: 14px; font-weight: 600;
  border-radius: 10px; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px -4px rgba(230,51,34,0.4);
  text-decoration: none;
}
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -4px rgba(230,51,34,0.5); }
.cta-btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.cta-btn--ghost:hover { border-color: var(--fs-red); color: var(--fs-red); transform: none; box-shadow: none; }
.cta-btn--success { background: linear-gradient(90deg, #1d6e3a 0%, #145528 100%); box-shadow: 0 4px 14px -4px rgba(29,110,58,0.4); }
.cta-btn--success:hover { box-shadow: 0 8px 20px -4px rgba(29,110,58,0.5); }

/* ─── Top bar ───────────────────────────────────── */
.topbar {
  background: var(--text);
  color: #B6BDC6;
  font-size: 12.5px;
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 36px;
}
.topbar-left { display: flex; gap: 22px; }
.topbar-left span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-left strong { color: #fff; font-weight: 500; }
.topbar a:hover { color: #fff; }
.topbar-lang { font-weight: 500; letter-spacing: 0.04em; }
.topbar-lang .on { color: #fff; }

/* ─── Header ────────────────────────────────────── */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  height: 84px;
  display: flex; align-items: center; gap: 24px;
}
.logo-wrap {
  display: flex; align-items: center;
  flex-shrink: 0;
}
.logo-wrap img { height: 44px; width: auto; }

.nav { display: flex; gap: 2px; flex: 1; flex-wrap: nowrap; }
.nav a {
  padding: 10px 10px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
  border-radius: 8px;
  transition: all 0.15s;
  position: relative;
}
.nav a:hover { color: var(--fs-red); background: var(--fs-red-light); }
.nav a.active { color: var(--fs-red); }
.nav a.active::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: -2px;
  height: 2px; background: var(--gradient-brand); border-radius: 2px;
}
.nav .caret { font-size: 10px; opacity: 0.6; margin-left: 4px; }

.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
  transition: all 0.15s;
  position: relative;
}
.icon-btn:hover { color: var(--fs-red); border-color: var(--fs-red); }
.icon-btn .badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--fs-red); color: #fff;
  font-size: 10px; font-weight: 600;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.menu-btn { display: none; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
.menu-btn:hover { color: var(--fs-red); border-color: var(--fs-red); }

/* ─── Page hero (sub-pages) ─────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--fs-red-light) 0%, var(--surface-2) 100%);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
}
.page-hero .breadcrumb {
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 14px;
}
.page-hero .breadcrumb a:hover { color: var(--fs-red); }
.page-hero .breadcrumb .sep { color: var(--text-faint); margin: 0 6px; }
.page-hero h1 {
  font-size: 38px; font-weight: 600;
  letter-spacing: -0.015em; line-height: 1.2;
  margin: 0 0 12px;
  max-width: 800px;
}
.page-hero h1 .accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.page-hero .lead {
  font-size: 16px; color: var(--text-muted);
  margin: 0; max-width: 760px; line-height: 1.7;
}
.page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--fs-red);
  margin-bottom: 14px;
}
.page-hero .eyebrow::before {
  content: ''; width: 24px; height: 2px;
  background: var(--gradient-brand); border-radius: 1px;
}

/* ─── Sections ─────────────────────────────────── */
.section { padding: 64px 0; border-top: 1px solid var(--border); }
.section:first-child { border-top: none; }
.section--alt { background: var(--surface); }
.section--tight { padding: 40px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 32px;
}
.section-title {
  font-size: 28px; font-weight: 600; letter-spacing: -0.01em;
  margin: 0; color: var(--text);
}
.section-title .accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.section-sub { color: var(--text-muted); font-size: 14px; margin-top: 6px; }
.section-link {
  font-size: 14px; color: var(--fs-red); font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s;
}
.section-link:hover { gap: 10px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--fs-red);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; width: 24px; height: 2px;
  background: var(--gradient-brand); border-radius: 1px;
}

/* ─── Footer ────────────────────────────────────── */
.footer {
  background: var(--text);
  color: #AEB6C0;
  padding: 64px 0 0;
  margin-top: 80px;
}
.footer a { color: #AEB6C0; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .logo-pad {
  display: inline-block; background: #fff;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 18px;
}
.footer-brand .logo-pad img { height: 30px; }
.footer-brand p {
  font-size: 13.5px; line-height: 1.7; margin: 0 0 18px;
  color: #8A929E;
}
.footer-info {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; line-height: 1.6; margin-bottom: 10px;
}
.footer-info .ico {
  width: 20px; flex-shrink: 0; color: var(--fs-red);
  margin-top: 2px;
}
.footer-info strong { color: #fff; font-weight: 500; display: block; }
.footer h4 {
  font-size: 13px; font-weight: 600; color: #fff;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin: 0 0 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13.5px; }
.app-badges { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.app-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff;
  padding: 8px 14px; border-radius: 8px;
  text-decoration: none; min-width: 150px;
}
.app-badge:hover { background: #1a1a1a; color: #fff; }
.app-badge-text { display: flex; flex-direction: column; line-height: 1.1; }
.app-badge-text .small { font-size: 9.5px; opacity: 0.85; }
.app-badge-text strong { font-size: 14px; font-weight: 600; color: #fff; }
.footer-map {
  aspect-ratio: 16 / 11;
  background: #283039;
  border-radius: 12px;
  border: 1px solid #39424D;
  overflow: hidden;
  position: relative;
  margin-top: 12px;
}
.footer-map iframe {
  width: 100%; height: 100%;
  border: 0; display: block;
  filter: grayscale(0.15) contrast(0.95);
}
.footer-bottom {
  border-top: 1px solid #283039;
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: #5C6672;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .social {
  width: 32px; height: 32px; border-radius: 50%;
  background: #283039; color: #AEB6C0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.footer-bottom .social:hover { background: var(--gradient-brand); color: #fff; }

/* ─── Mobile drawer ─────────────────────────────── */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(27,34,44,0.5);
  display: none;
  opacity: 0; transition: opacity 0.2s;
}
.mobile-drawer.is-open { display: block; opacity: 1; }
.mobile-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 86%; max-width: 340px;
  background: var(--surface);
  padding: 20px 22px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-drawer.is-open .mobile-drawer-panel { transform: translateX(0); }
.mobile-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px;
}
.mobile-drawer-head img { height: 32px; }
.mobile-drawer-close { background: var(--surface-2); border: none; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
.mobile-drawer a {
  display: block; padding: 12px 4px;
  font-size: 15px; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mobile-drawer a:hover, .mobile-drawer a.active { color: var(--fs-red); }
.mobile-drawer .drawer-cta { margin-top: 18px; justify-content: center; }

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 1080px) {
  .container { padding: 0 20px; }
  .header-inner { gap: 20px; }
  .nav a { padding: 8px 10px; font-size: 13.5px; }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .topbar-left span:nth-child(3) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 56px 0; }
  .header .cta-btn { display: none; }
  .page-hero { padding: 44px 0 36px; }
  .page-hero h1 { font-size: 30px; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .container { padding: 0 16px; }
  .topbar { font-size: 11.5px; }
  .topbar-inner { height: 32px; }
  .topbar-left { gap: 12px; }
  .topbar-left span:nth-child(2) { display: none; }
  .header-inner { height: 64px; gap: 12px; }
  .logo-wrap img { height: 34px; }
  .icon-btn { width: 36px; height: 36px; }
  .section { padding: 40px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
  .section-title { font-size: 22px; }
  .page-hero { padding: 36px 0 28px; }
  .page-hero h1 { font-size: 24px; }
  .page-hero .lead { font-size: 14.5px; }
  .footer { padding: 48px 0 0; margin-top: 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 16px 0; }
  .header-actions .icon-btn[aria-label="Tìm kiếm"] { display: none; }
}


/* ─── FireHub logo lockup ─────────────────────────── */
.logo-lockup{display:inline-flex;align-items:center;gap:9px;}
.logo-wrap .logo-mark,.mobile-drawer-head .logo-mark,.logo-pad .logo-mark{height:34px;width:auto;}
.footer-brand .logo-pad .logo-mark{height:30px;}
.logo-word{font-family:"Be Vietnam Pro",sans-serif;font-weight:800;font-size:23px;line-height:1;letter-spacing:-0.02em;display:inline-flex;align-items:baseline;white-space:nowrap;}
.lw-fire{color:var(--fs-red);}
.lw-hub{color:var(--text);}
.lw-dot{color:var(--text-muted);font-weight:600;font-size:0.6em;margin-left:1px;}
@media(max-width:640px){.logo-word{font-size:19px;}.logo-wrap .logo-mark{height:28px;}}
