/* ===================================================================
   BC-OUTSOURCING — Stylesheet
   Bảng màu: Xanh đậm #0B3F91 · Cyan #18A9D5 · Slate #334155 · Nền #F2F8FD
   =================================================================== */

:root {
  --primary: #0B3F91;
  --primary-dark: #082e6b;
  --primary-light: #e7f0fb;
  --accent: #18A9D5;      /* cyan sáng — chỉ dùng nền/điểm nhấn */
  --accent-dark: #1391b8;
  --accent-ink: #0C6E8F;  /* cyan đậm — dùng cho chữ nhỏ để đủ tương phản */

  --ink: #1e293b;
  --body: #475569;
  --slate: #334155;
  --muted: #7c8aa0;
  --line: #e2e9f2;
  --bg: #ffffff;
  --bg-gray: #F2F8FD;
  --bg-dark: #0c2444;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(11, 63, 145, 0.06);
  --shadow: 0 12px 30px rgba(11, 63, 145, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 63, 145, 0.16);
  --container: 1180px;
  --transition: 0.25s ease;
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; overflow-x: clip; }
body {
  font-family: var(--font); color: var(--body); background: var(--bg);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.text-accent { color: var(--accent-ink); }

/* Focus rõ ràng cho toàn trang */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--primary);
  color: #fff; padding: 10px 18px; border-radius: 8px; font-weight: 600; transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ===== Nút (vùng bấm >= 44px) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 26px; border-radius: 50px; font-weight: 600; font-size: 15px;
  font-family: var(--font); cursor: pointer; border: 2px solid transparent; transition: var(--transition);
  white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(11, 63, 145, 0.28); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #063245; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--ghost:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--ghost-light:hover { background: #fff; color: var(--primary); }
.btn--block { width: 100%; }

/* ===== Hệ icon SVG đơn sắc ===== */
.ico { display: inline-block; vertical-align: middle; }
.service-card__icon, .hero__tag-icon, .value-card__icon, .info-card__icon, .process__icon, .service-detail__icon, .project-card__img { color: var(--primary); }
.service-card__icon svg, .value-card__icon svg, .info-card__icon svg { width: 28px; height: 28px; }
.process__icon svg { width: 32px; height: 32px; }
.service-detail__icon svg { width: 44px; height: 44px; }
.service-detail__visual svg { width: 92px; height: 92px; color: var(--primary); opacity: .85; }
.project-card__img svg { width: 52px; height: 52px; }
.ico-sm { width: 16px; height: 16px; flex-shrink: 0; color: currentColor; }
.contact__list li .ico-sm { color: var(--accent); }
.topbar__contact a { display: inline-flex; align-items: center; gap: 6px; }
.footer__col p .ico-sm { color: var(--accent); margin-right: 6px; }
.form-hint { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }

/* ===== Topbar ===== */
.topbar { background: var(--primary-dark); color: #cfe0f5; font-size: 13.5px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #e3eefb; transition: var(--transition); }
.topbar a:hover { color: #fff; }
.topbar__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__note { color: #b9cdea; }
.lang-switch { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,0.32); border-radius: 999px; overflow: hidden; font-size: 12.5px; font-weight: 700; letter-spacing: 0.5px; flex-shrink: 0; }
.lang-switch > * { padding: 3px 12px; line-height: 1.65; }
.lang-switch__on { background: var(--accent); color: #fff; }
.lang-switch a { color: #cfe0f5; }
.lang-switch a:hover { background: rgba(255,255,255,0.16); color: #fff; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: var(--transition);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 16px; }

.logo { display: flex; align-items: center; gap: 11px; }
/* Khung crop bằng CSS: cắt khoảng trắng thừa của canvas ảnh, KHÔNG cắt nội dung logo, không sửa ảnh gốc */
.header .logo { width: 230px; height: 72px; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 0; }
.logo__img-main { width: 230px; height: auto; max-width: none; flex: none; display: block; }
.logo--footer { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 12px; }
.logo__img-footer { width: 260px; max-width: 100%; height: auto; display: block; }
@media (max-width: 560px) {
  .header .logo { width: 180px; height: 56px; }
  .logo__img-main { width: 180px; }
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 10px 15px; border-radius: 8px; font-weight: 500; font-size: 15px; color: var(--body);
  transition: var(--transition); min-height: 44px; display: inline-flex; align-items: center;
}
.nav__link:hover { color: var(--primary); background: var(--primary-light); }
.nav__link[aria-current="page"] { color: var(--primary); font-weight: 700; }
.nav__link--cta { background: var(--primary); color: #fff !important; margin-left: 8px; border-radius: 50px; }
.nav__link--cta:hover { background: var(--primary-dark); }
/* Mục quản trị: nhạt hơn các mục dành cho khách, không được nổi hơn nội dung chính */
.nav__link--admin { color: var(--muted); font-weight: 400; }
.nav__link--admin:hover { color: var(--primary); background: var(--primary-light); }

/* Menu ngang có 7 mục nên ở dải màn hình hẹp phải bóp nhẹ khoảng đệm,
   nếu không sẽ tràn hoặc đẩy nút CTA xuống dòng. Chỉ chỉnh khoảng cách,
   không thiết kế lại header. */
@media (max-width: 1150px) and (min-width: 901px) {
  .nav__link { padding: 10px 10px; font-size: 14.5px; }
  .nav__link--cta { margin-left: 4px; padding: 10px 14px; }
  .header .logo { width: 190px; }
  .logo__img-main { width: 190px; }
}
/* Sat truoc nguong hamburger, nhan tieng Anh dai hon nen con thieu vai pixel
   va bi day xuong dong. Bop them mot nac nua, van giu vung cham 44px. */
@media (max-width: 1000px) and (min-width: 901px) {
  .nav__link { padding: 10px 7px; font-size: 14px; }
  .nav__link--cta { padding: 10px 12px; }
  .header .logo { width: 168px; }
  .logo__img-main { width: 168px; }
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: var(--transition); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-backdrop { position: fixed; inset: 0; background: rgba(12, 36, 68, 0.5); z-index: 98; opacity: 0; transition: opacity 0.3s ease; }
.nav-backdrop.is-open { opacity: 1; }
body.nav-lock { overflow: hidden; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section--gray { background: var(--bg-gray); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section__eyebrow { display: inline-block; color: var(--accent-ink); font-weight: 800; font-size: clamp(20px, 2.2vw, 26px); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 16px; }
.section__eyebrow--light { color: #7fd3ec; }
.section__title { font-size: clamp(29px, 4.6vw, 44px); font-weight: 800; line-height: 1.18; margin-bottom: 16px; }
.section__title--light { color: #fff; }
.section__lead { font-size: 17px; color: var(--body); }
.section__lead--center { max-width: 660px; margin: 0 auto; }
.section__cta { text-align: center; margin-top: 44px; }

/* ===== Hero ===== */
.hero {
  position: relative; padding: 66px 0 84px;
  background: radial-gradient(1200px 500px at 82% -10%, rgba(24,169,213,0.12), transparent), linear-gradient(180deg, #f4faff, #ffffff);
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero__badge { display: inline-block; background: var(--primary-light); color: var(--primary); padding: 7px 16px; border-radius: 50px; font-weight: 600; font-size: 14px; margin-bottom: 20px; }
.hero__title { font-size: clamp(34px, 5.8vw, 58px); font-weight: 800; line-height: 1.12; margin-bottom: 20px; }
.hero__desc { font-size: 17.5px; margin-bottom: 30px; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero__points { display: flex; gap: 12px 30px; flex-wrap: wrap; }
.hero__point { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--slate); font-size: 15px; }
.hero__point::before { content: "✓"; width: 24px; height: 24px; flex-shrink: 0; display: grid; place-items: center; background: var(--primary); color: #fff; border-radius: 50%; font-size: 13px; }

.hero__visual { position: relative; }

/* Khung ảnh chuẩn: bo góc, tỷ lệ ổn định, không kéo méo */
.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--primary-light); }
.media-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__media { aspect-ratio: 1600 / 863; }
.media-frame--tall { aspect-ratio: 1200 / 800; }
.media-frame--wide { aspect-ratio: 1200 / 640; }

/* Nhãn nổi trên ảnh hero — đặt bên trái nơi không có người, ẩn trên màn nhỏ */
.hero__tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  background: rgba(255,255,255,0.96); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; max-width: 78%;
}
.hero__tag-icon { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; background: var(--primary-light); border-radius: 10px; color: var(--primary); }
.hero__tag-icon svg { width: 20px; height: 20px; }
.hero__tag strong { display: block; color: var(--ink); font-size: 14.5px; line-height: 1.3; }
.hero__tag span { font-size: 12.5px; color: var(--muted); }

/* Khối nội dung 2 cột kèm ảnh */
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.media-split__body h2 { font-size: 27px; margin-bottom: 14px; }
.media-caption { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ===== Brands (tên doanh nghiệp, không logo) ===== */
.brands { padding: 40px 0; border-bottom: 1px solid var(--line); }
.brands__label { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 20px; font-weight: 500; }
.brands__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px; }
.brand-logo { color: var(--slate); font-weight: 700; font-size: 16px; opacity: 0.75; letter-spacing: 0.5px; }

/* ===== Cards lưới ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: var(--transition); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card__icon { width: 60px; height: 60px; display: grid; place-items: center; font-size: 28px; background: var(--primary-light); border-radius: 14px; margin-bottom: 20px; }
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { font-size: 15px; margin-bottom: 16px; }
.service-card__link { color: var(--primary); font-weight: 600; font-size: 14.5px; transition: var(--transition); }
.service-card__link:hover { color: var(--accent-ink); }

/* ===== Why ===== */
.why__item { background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.why__num { font-size: 40px; font-weight: 800; color: var(--primary-light); line-height: 1; margin-bottom: 12px; }
.why__item h3 { font-size: 18px; margin-bottom: 8px; }
.why__item p { font-size: 14.5px; }

/* ===== Process ===== */
.process__step { text-align: center; padding: 20px; }
.process__icon { width: 76px; height: 76px; margin: 0 auto 18px; display: grid; place-items: center; font-size: 32px; background: var(--primary-light); border-radius: 50%; border: 2px dashed var(--primary); }
.process__step h3 { font-size: 17px; margin-bottom: 8px; }
.process__step p { font-size: 14.5px; }

/* ===== Projects / Clients ===== */
.project-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-card__img { height: 150px; display: grid; place-items: center; font-size: 54px; background: linear-gradient(135deg, var(--primary-light), #dbeafb); }
.project-card__body { padding: 22px 24px; }
.tag { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 50px; margin-bottom: 12px; }
.project-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.project-card p { font-size: 14.5px; }

/* ===== Danh sách khách hàng theo ngành (mở/đóng) ===== */
.client-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--primary); font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: var(--transition); }
.client-toggle:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.client-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.client-toggle__icon { width: 15px; height: 15px; flex-shrink: 0; transition: transform var(--transition); }
.client-toggle[aria-expanded="true"] .client-toggle__icon { transform: rotate(180deg); }
.client-toggle__count { font-weight: 600; color: var(--muted); }
.client-toggle:hover .client-toggle__count { color: #cfe0f5; }
.client-list { margin: 14px 0 0; padding: 8px 16px; list-style: none; background: var(--bg-gray); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.client-list li { position: relative; padding: 9px 0 9px 20px; font-size: 14px; font-weight: 600; color: var(--slate); line-height: 1.45; border-bottom: 1px dashed var(--line); }
.client-list li:last-child { border-bottom: 0; }
.client-list li::before { content: ""; position: absolute; left: 3px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ===== Filter ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-btn { min-height: 44px; padding: 9px 20px; border-radius: 50px; border: 1.5px solid var(--line); background: #fff; color: var(--body); font-weight: 600; font-size: 14.5px; cursor: pointer; font-family: var(--font); transition: var(--transition); }
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.is-hidden { display: none !important; }

/* ===== About ===== */
.about__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 54px; align-items: center; }
.about__media { position: relative; }
.about__img { height: 360px; border-radius: var(--radius); display: grid; place-items: center; font-size: 90px; background: linear-gradient(135deg, var(--primary-light), #dbeafb); box-shadow: var(--shadow); }
.checklist { display: grid; gap: 12px; margin: 22px 0 28px; }
.checklist li { position: relative; padding-left: 34px; font-size: 15.5px; color: var(--ink); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; background: var(--primary); color: #fff; border-radius: 50%; font-size: 13px; font-weight: 700; }

/* ===== Values ===== */
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; text-align: center; }
.value-card__icon { width: 66px; height: 66px; margin: 0 auto 18px; display: grid; place-items: center; font-size: 30px; background: var(--primary-light); border-radius: 16px; }
.value-card h3 { font-size: 19px; margin-bottom: 10px; }

/* ===== Service detail ===== */
.service-detail { padding: 56px 0; border-bottom: 1px solid var(--line); }
.service-detail:nth-child(even) { background: var(--bg-gray); }
.service-detail__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.service-detail__icon { font-size: 50px; margin-bottom: 14px; }
.service-detail h2 { font-size: 27px; margin-bottom: 12px; }
.service-detail__sub { color: var(--accent-ink); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; margin-bottom: 8px; display: block; }
.service-detail__list { display: grid; gap: 13px; margin: 18px 0; }
.service-detail__list li { padding-left: 30px; position: relative; font-size: 15.5px; }
.service-detail__list li::before { content: "→"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.service-detail__visual { height: 320px; border-radius: var(--radius); display: grid; place-items: center; font-size: 96px; background: linear-gradient(135deg, var(--primary-light), #dbeafb); box-shadow: var(--shadow-sm); }

/* ===== Jobs (Việc làm) ===== */
.job-list { display: grid; gap: 16px; max-width: 900px; margin: 0 auto; }
.job-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; transition: var(--transition); flex-wrap: wrap; }
.job-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.job-card h3 { font-size: 18px; margin-bottom: 8px; }
.job-card__meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.job-card__meta span { display: flex; align-items: center; gap: 5px; }

/* ===== Contact ===== */
.contact { background: var(--bg-dark); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact__lead { color: #b9cbe4; font-size: 16.5px; margin-bottom: 26px; }
.contact__list { display: grid; gap: 15px; }
.contact__list li { display: flex; align-items: center; gap: 13px; color: #dbe7f6; font-size: 15.5px; }
.contact__list li a { color: #fff; }
.contact__list span { font-size: 19px; }
.contact__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.info-card__icon { width: 50px; height: 50px; flex-shrink: 0; display: grid; place-items: center; font-size: 22px; background: var(--primary-light); border-radius: 12px; }
.info-card h3 { font-size: 16px; margin-bottom: 4px; }
.info-card p { font-size: 14.5px; }
.map-embed { height: 300px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 8px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ===== Form ===== */
.form-card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); }
.form-card--light { border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-title { font-size: 21px; margin-bottom: 6px; }
.form-sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 15px; color: var(--ink); transition: var(--transition); background: #fff; min-height: 46px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.field textarea { resize: vertical; min-height: 90px; }
.field input.invalid, .field textarea.invalid, .field select.invalid { border-color: #e03e3e; box-shadow: 0 0 0 3px rgba(224,62,62,0.12); }
.field-consent { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.field-consent input { width: 20px; height: 20px; min-height: 20px; margin-top: 3px; flex-shrink: 0; }
.field-consent label { font-size: 13.5px; font-weight: 500; color: var(--body); margin: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 500; }
.form-note--ok { background: #e6f7ed; color: #1a7a44; }
.form-note--err { background: #fdecec; color: #c62828; }
.form-note--info { background: #e7f2fd; color: #0B3F91; }
.form-alt { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 16px; }
.form-alt a { color: var(--primary); font-weight: 600; }

/* ===== Footer ===== */
.footer { background: #0a1c34; color: #a9bad2; padding: 60px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1.1fr; gap: 40px; padding-bottom: 42px; }
.footer__col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer__col a, .footer__col p { display: block; color: #a9bad2; font-size: 14.5px; margin-bottom: 11px; transition: var(--transition); }
.footer__col a:hover { color: var(--accent); }
.footer__legal { color: #fff !important; font-weight: 700; margin: 16px 0 8px !important; }
.footer__col--brand > p { max-width: 320px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.footer__bottom p { text-align: center; font-size: 14px; color: #7f92ac; }

/* ===== Floating (desktop) + Bottom bar (mobile) ===== */
.floating-actions { position: fixed; right: 20px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; box-shadow: var(--shadow); position: relative; transition: var(--transition); }
.fab:hover { transform: scale(1.08); }
.fab--call { background: #16a34a; }
.fab--zalo { background: #0068ff; }
.fab__pulse { position: absolute; inset: 0; border-radius: 50%; background: inherit; z-index: -1; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.9); opacity: 0; } }

.mobile-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(11,63,145,0.10); }
.mobile-bar a { flex: 1; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; }
.mobile-bar__call { background: var(--primary); color: #fff; }
.mobile-bar__zalo { background: var(--accent); color: #063245; }

.back-to-top { position: fixed; right: 20px; bottom: 90px; z-index: 89; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 20px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ===== Page hero ===== */
.page-hero { background: radial-gradient(900px 400px at 85% -20%, rgba(24,169,213,0.18), transparent), linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 60px 0; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(40px, 6.4vw, 66px); font-weight: 800; line-height: 1.12; margin-bottom: 16px; }
.page-hero p { color: #d3e2f5; font-size: 17px; max-width: 680px; margin: 0 auto; }
.breadcrumb { margin-top: 16px; font-size: 14px; color: #b9cded; }
.breadcrumb a:hover { color: #fff; }

/* ===== Reveal — mặc định HIỆN; chỉ ẩn khi JS bật ===== */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .fab__pulse { animation: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 620px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about__inner, .contact__inner, .service-detail__inner, .contact-grid, .media-split { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  /* Menu dạng drawer từ tablet trở xuống */
  .nav {
    position: fixed; top: 0; right: 0; width: 82%; max-width: 330px; height: 100vh;
    background: #fff; flex-direction: column; align-items: stretch; gap: 4px; padding: 84px 22px 22px;
    box-shadow: var(--shadow-lg); overflow-y: auto; z-index: 99;
    transform: translateX(105%); visibility: hidden; pointer-events: none;
    transition: transform 0.3s ease, visibility 0.3s ease;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .nav__link { padding: 14px 16px; font-size: 16px; }
  .nav__link--cta { margin: 8px 0 0; justify-content: center; }
  .nav-toggle { display: flex; z-index: 100; }
}
@media (max-width: 720px) {
  .topbar__note { display: none; }
  .section { padding: 56px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer__col--brand { grid-column: 1 / -1; }
  .field-row { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .floating-actions { display: none; }
  .mobile-bar { display: flex; }
  .back-to-top { bottom: 74px; }
  body { padding-bottom: 56px; }
}
@media (max-width: 560px) {
  .hero__tag { display: none; }
}
@media (max-width: 460px) {
  .footer__inner { grid-template-columns: 1fr; }
  .logo__img-footer { width: 230px; }
}
