/*
 * chrome.css — header + footer dùng chung cho MỌI trang công khai:
 * trang chủ, trang form /apply, bài hướng dẫn, trang pháp lý, unsubscribe.
 *
 * Một nguồn duy nhất để mọi trang nhìn như một. Mọi luật đều gắn dưới .top
 * hoặc .foot, nên nạp chung với landing.css (trang form) không đá nhau với
 * các class trùng tên bên đó như .brand, .btn.
 */

:root {
  --tint:     #f0f9ff;
  --tint-2:   #e0f2fe;
  --sky:      #0ea5e9;
  --sky-600:  #0284c7;
  --sky-700:  #0369a1;
  --ink:      #1e293b;
  --ink-soft: #5b6b80;
  --line:     #dbe7f1;
  --font:     'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
}

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* =========================================================================
   HEADER
   ========================================================================= */

.top { background: #fff; border-bottom: 1px solid var(--line); font-family: var(--font); }
.top__in { display: flex; align-items: center; gap: 26px; min-height: 66px; }

.top .brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; flex: 0 0 auto; color: var(--ink); }
.top .brand img { display: block; height: 30px; width: auto; }
.top .brand span { font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.top .brand em { font-style: normal; color: var(--sky-600); }

.top .nav { display: flex; gap: 22px; margin-left: auto; }
.top .nav a { text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.top .nav a:hover { color: var(--sky-700); }

.top .hotline {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font-size: 14.5px; font-weight: 700; color: var(--ink); white-space: nowrap;
}
.top .hotline:hover { color: var(--sky-700); }

.top .btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sky-600); color: #fff; border: 0; border-radius: 10px;
  font-family: var(--font); font-size: 14px; font-weight: 700; letter-spacing: 0;
  padding: 10px 16px; text-decoration: none; white-space: nowrap; box-shadow: none;
  transition: background .15s ease;
}
.top .btn:hover { background: var(--sky-700); color: #fff; }

/* =========================================================================
   FOOTER — sáng
   ========================================================================= */

.foot {
  background: var(--tint); border-top: 1px solid var(--line);
  padding-block: 44px 24px; color: var(--ink-soft); font-family: var(--font);
}
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }

.foot .foot__brand { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; color: var(--ink); margin: 0 0 12px; }
.foot .foot__brand img { display: block; height: 26px; width: auto; }
.foot .foot__brand em { font-style: normal; color: var(--sky-600); }
.foot .foot__about { font-size: 13.5px; line-height: 1.6; margin: 0 0 16px; max-width: 34ch; }

.foot .badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.foot .badges li {
  font-size: 11.5px; font-weight: 700; padding: 5px 11px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft);
}

.foot h3 { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.foot ul.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul.links a { color: var(--ink-soft); text-decoration: none; font-size: 13.5px; }
.foot ul.links a:hover { color: var(--sky-700); }

.foot .foot__legal { padding-top: 18px; font-size: 12px; line-height: 1.6; text-align: center; }
.foot .foot__legal p { margin: 0 0 4px; }

/* =========================================================================
   THU HẸP
   ========================================================================= */

@media (max-width: 900px) {
  .top .nav { display: none; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .top__in { gap: 12px; }
  .top .brand img { height: 25px; }
  .top .brand span { font-size: 16px; }
  .top .hotline { font-size: 13px; margin-left: auto; }
  .top .btn { padding: 9px 12px; font-size: 13px; }
  .foot__grid { grid-template-columns: 1fr; }
}
