/* Website Công ty Hoàng Hà. Chủ đề: hải đồ (bản đồ độ sâu luồng tàu). */
:root {
  /* Hai màu chủ đạo lấy từ logo: xanh dương và cam */
  --brand-blue: #0000fe;
  --brand-orange: #ff7e00;
  --navy: #0a168a;
  --navy-2: #1426a8;
  --ink: #141a3a;
  --ink-2: #4a5070;
  --sea: #0000d0;
  --sea-dark: #00009a;
  --paper: #f3f5fd;
  --white: #ffffff;
  --line: #dadff0;
  --depth: #a9b2e6;
  --buoy: #ff7e00;
  --red-buoy: #ff7e00;
  --green-buoy: #ffd400;
  --display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --brandfont: "Roboto Condensed", "Arial Narrow", sans-serif;
  --body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --r: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--sea-dark); }
:focus-visible { outline: 3px solid var(--buoy); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.005em; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.muted { color: var(--ink-2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Đầu trang: logo + tên tiếng Việt (xanh) + tên tiếng Anh (cam) */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 84px; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-logo { height: 64px; width: auto; flex: none; }
.brand-names { display: flex; flex-direction: column; gap: 2px; font-family: var(--brandfont); font-weight: 700; text-transform: uppercase; line-height: 1.15; min-width: 0; }
.name-vi { color: var(--brand-blue); font-size: clamp(.82rem, 1.75vw, 1.42rem); letter-spacing: .005em; }
.name-en { color: var(--brand-orange); font-size: clamp(.64rem, 1.36vw, 1.1rem); }
.header-call { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; font-size: 1.05rem; line-height: 1.2; }
.header-call small { font-weight: 500; color: var(--ink-2); font-size: .75rem; }
.header-call:hover { color: var(--brand-blue); }
.navbar { background: var(--navy); }
.nav { display: flex; gap: 2px; }
.nav-desktop a { color: #e6e9fb; text-decoration: none; padding: 12px 14px; font-size: .97rem; font-weight: 500; }
.nav-desktop a:hover { background: var(--navy-2); color: var(--white); }
.nav-desktop a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -4px 0 var(--brand-orange); }
.menu { display: none; }

@media (max-width: 980px) {
  .header-call, .navbar { display: none; }
  .header-row { min-height: 68px; gap: 12px; }
  .brand { gap: 8px; }
  .brand-logo { height: 46px; }
  .name-vi { font-size: clamp(.62rem, 2.6vw, 1rem); }
  .name-en { font-size: clamp(.5rem, 2.05vw, .8rem); }
  .menu { display: block; flex: none; }
  .menu summary { display: block; list-style: none; cursor: pointer; padding: 8px 12px; border: 1.5px solid var(--navy); border-radius: var(--r); font-weight: 600; color: var(--navy); font-size: .9rem; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: var(--navy); color: var(--white); }
  .menu .nav { display: none; }
  .menu[open] .nav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 3px solid var(--brand-orange); padding: 4px 20px 12px; box-shadow: 0 12px 24px rgba(10,22,138,.15); }
  .menu[open] .nav a { color: var(--ink); text-decoration: none; padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
  .menu[open] .nav a[aria-current="page"] { color: var(--brand-blue); box-shadow: inset 4px 0 0 var(--brand-orange); padding-left: 12px; }
}

/* Nút */
.btn { display: inline-block; font: 600 1rem/1 var(--body); padding: 14px 22px; border-radius: var(--r); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--buoy); color: var(--navy); }
.btn-primary:hover { background: #ff9533; color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-ghost-dark { border-color: var(--navy); color: var(--navy); }

/* Đầu trang chủ: hải đồ */
.hero { position: relative; background: var(--navy); color: #dfe3fb; overflow: hidden; }
.hero-chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-chart .c-minor { fill: none; stroke: #2232b4; stroke-width: 1; }
.hero-chart .c-major { fill: none; stroke: #3a4cd0; stroke-width: 1.6; }
.hero-chart .soundings text { fill: #7a86dc; font: 500 13px var(--body); font-style: italic; }
.hero-chart .channel { fill: none; stroke: #ff7e00; stroke-width: 1.4; stroke-dasharray: 10 8; opacity: .7; }
.hero-chart .channel-axis { fill: none; stroke: #ff7e00; stroke-width: 1; stroke-dasharray: 2 10; opacity: .45; }
.hero-chart .b-red { fill: var(--red-buoy); }
.hero-chart .b-green { fill: var(--green-buoy); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,22,138,.97) 0%, rgba(10,22,138,.85) 45%, rgba(10,22,138,.1) 82%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding: 96px 0 56px; max-width: var(--wrap); }
.hero h1 { color: var(--white); max-width: 15em; font-size: clamp(2.4rem, 5vw, 4.1rem); font-weight: 600; }
.hero-lead { max-width: 38em; font-size: 1.1rem; color: #d3d9f8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-legend { position: relative; z-index: 1; padding: 0 0 40px; }
.legend-title { font-size: .85rem; color: var(--depth); margin-bottom: 8px; }
.hero-legend ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.hero-legend li { display: flex; align-items: center; gap: 10px; color: #e8f0f2; font-size: .95rem; }
.hero-legend b { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--buoy); color: var(--buoy); font: 700 1rem var(--display); border-radius: 50%; }
@media (max-width: 760px) {
  .hero::after { background: rgba(10,22,138,.88); }
  .hero-inner { padding: 64px 0 40px; }
}

/* Khối nội dung */
.section { padding: 72px 0; }
.section + .section:not(.services-band):not(.vision-band) { padding-top: 0; }
.services-band + .section, .vision-band + .section { padding-top: 72px !important; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.link-more { font-weight: 600; }
.intro, .two-col { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 24px 64px; align-items: start; }
@media (max-width: 820px) { .intro, .two-col { grid-template-columns: 1fr; } }
.prose { max-width: 70ch; }
.prose p:last-child { margin-bottom: 0; }

/* Lĩnh vực: danh mục dạng mục lục */
.services-band { background: var(--paper); border-block: 1px solid var(--line); }
.service-index { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 64px; }
.service-index li { border-top: 1px solid var(--line); }
.service-index a { display: grid; gap: 4px; padding: 20px 0 22px; text-decoration: none; color: inherit; }
.s-title { font: 600 1.4rem/1.2 var(--display); color: var(--navy); }
.s-lead { color: var(--ink-2); font-size: .96rem; }
.service-index a:hover .s-title { color: var(--sea); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 760px) { .service-index { grid-template-columns: 1fr; } }

/* Tin tức */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { display: grid; grid-template-columns: 110px 1fr 200px; gap: 8px 28px; padding: 24px 0; border-top: 1px solid var(--line); align-items: start; }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-list time { font: 600 1rem var(--display); color: var(--ink-2); padding-top: 3px; }
.post-list h3 { margin-bottom: 6px; }
.post-list h3 a { color: var(--navy); text-decoration: none; }
.post-list h3 a:hover { color: var(--sea); text-decoration: underline; }
.post-list p { color: var(--ink-2); margin-bottom: 8px; font-size: .97rem; }
.post-list img { width: 200px; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r); }
.post-list li:not(:has(img)) { grid-template-columns: 110px 1fr; }
@media (max-width: 760px) {
  .post-list li, .post-list li:not(:has(img)) { grid-template-columns: 1fr; }
  .post-list img { width: 100%; grid-row: 1; }
}
.tag { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--sea-dark); background: #e6e9fb; padding: 2px 8px; border-radius: 3px; }
.empty { color: var(--ink-2); padding: 24px; border: 1px dashed var(--line); border-radius: var(--r); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }

/* Bài viết */
.article { max-width: 760px; padding: 48px 0 72px; }
.crumbs { font-size: .92rem; margin-bottom: 12px; }
.meta { display: flex; gap: 12px; align-items: center; color: var(--ink-2); font-size: .92rem; }
.article .lead { font-size: 1.15rem; color: var(--ink-2); }
.article-cover { width: 100%; border-radius: var(--r); margin: 24px 0; }
.article-body { font-size: 1.05rem; }
.article-body h2 { margin-top: 1.6em; font-size: 1.8rem; }
.article-body h3 { margin-top: 1.4em; }
.article-body figure { margin: 24px 0; }
.article-body figcaption { font-size: .88rem; color: var(--ink-2); margin-top: 6px; }
.article-body table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: .95rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article-body blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--buoy); color: var(--ink-2); }
.article-body pre { background: var(--paper); padding: 14px; overflow-x: auto; border-radius: var(--r); }

/* Trang con */
.page-head { background: var(--navy); color: #d3d9f8; padding: 64px 0 48px; background-image: repeating-radial-gradient(ellipse at 110% 140%, transparent 0 34px, rgba(169,178,230,.14) 34px 35px); }
.page-head h1 { color: var(--white); }
.page-head .lead { max-width: 44em; font-size: 1.1rem; margin: 0; }
.page-head .btn { margin-top: 16px; }
.page-head .btn-ghost-dark { border-color: #d3d9f8; color: var(--white); }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-2); font-size: .94rem; }
.facts dd { margin: 0; font-weight: 500; }
.facts.compact div { grid-template-columns: 150px 1fr; }
@media (max-width: 560px) { .facts div, .facts.compact div { grid-template-columns: 1fr; gap: 2px; } }
.vision-band { background: var(--paper); border-block: 1px solid var(--line); }
.vision { font: 500 clamp(1.4rem, 2.4vw, 1.9rem)/1.35 var(--display); color: var(--navy); margin: 0; max-width: 28em; }
.pairs { margin: 0; }
.pairs div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.pairs dt { font: 600 1.15rem var(--display); color: var(--navy); }
.pairs dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .pairs div { grid-template-columns: 1fr; gap: 2px; } }

.service-detail { padding: 24px 0 48px; }
.service { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 16px 64px; padding: 44px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service:last-child { border-bottom: 0; }
.service-lead { font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.ticks li { break-inside: avoid; padding: 6px 0 6px 22px; position: relative; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 15px; width: 10px; height: 2px; background: var(--sea); }
@media (max-width: 820px) { .service { grid-template-columns: 1fr; } .ticks { columns: 1; } }

/* Bảng hạng năng lực */
.table-scroll { overflow-x: auto; margin-top: 16px; }
.grade-table { border-collapse: collapse; width: 100%; min-width: 720px; }
.grade-table th, .grade-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.grade-table thead th { font: 600 1rem var(--display); color: var(--ink-2); border-bottom: 2px solid var(--navy); }
.grade-table thead th:first-child { text-align: left; }
.grade-table tbody th { text-align: left; font: 600 1.1rem var(--display); color: var(--navy); }
.grade-table td.none { color: var(--line); }
.grade { display: inline-block; min-width: 76px; padding: 5px 10px; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.grade.g1 { background: var(--navy); color: var(--buoy); }
.grade.g2 { background: #dde2fa; color: var(--navy); }
.grade.g3 { background: transparent; color: var(--ink-2); border: 1px solid var(--depth); }
.note { font-size: .9rem; color: var(--ink-2); margin-top: 12px; }

/* Liên hệ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { display: grid; gap: 16px; background: var(--paper); padding: 28px; border-radius: var(--r); border: 1px solid var(--line); align-self: start; }
.contact-form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.contact-form input, .contact-form textarea { font: inherit; padding: 11px 12px; border: 1px solid #b9c9cc; border-radius: var(--r); background: var(--white); color: var(--ink); width: 100%; }
.contact-form button { justify-self: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.notice { padding: 12px 14px; border-radius: var(--r); margin: 0; }
.notice.ok { background: #e1f1e8; color: #1e5a3c; }
.notice.err { background: #fbe7e3; color: #8a2a17; }

/* Chân trang */
.site-footer { background: var(--navy); color: #d3d9f8; font-size: .95rem; }
.site-footer a { color: var(--white); }
.site-footer .muted { color: var(--depth); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr; gap: 32px; padding: 56px 0 32px; }
.footer-logo { width: 96px; height: auto; background: var(--white); border-radius: var(--r); padding: 6px; margin-bottom: 14px; }
.footer-name { font: 700 1.05rem/1.25 var(--brandfont); text-transform: uppercase; color: var(--white); margin-bottom: 4px; }
.footer-en { font: 700 .85rem/1.25 var(--brandfont); text-transform: uppercase; color: var(--brand-orange); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 28px; border-top: 1px solid #2a37a0; font-size: .88rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom a { text-decoration: none; color: #d3d9f8; }

.call-fab { display: none; }
@media (max-width: 760px) {
  .call-fab { display: block; position: fixed; right: 14px; bottom: 14px; z-index: 30; background: var(--buoy); color: var(--navy); font-weight: 700; padding: 12px 18px; border-radius: 999px; text-decoration: none; box-shadow: 0 6px 16px rgba(10,22,138,.3); }
  body { padding-bottom: 64px; }
}

/* Dự án */
.project-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
@media (max-width: 900px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .project-grid { grid-template-columns: 1fr; } }
.project-grid a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.project-grid img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--r); border-bottom: 4px solid var(--brand-orange); margin-bottom: 8px; }
.p-group { font-size: .8rem; font-weight: 600; color: #c45f00; }
.p-title { font: 600 1.3rem/1.2 var(--display); color: var(--navy); }
.p-scope { font-size: .92rem; color: var(--ink-2); }
.project-grid a:hover .p-title { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 4px; }
.project { padding: 40px 0 24px; }
.project h1 { max-width: 22em; }
.project h2 { margin-top: 40px; }
.project-top { display: grid; grid-template-columns: 3fr 2fr; gap: 32px; align-items: start; margin-top: 16px; }
@media (max-width: 860px) { .project-top { grid-template-columns: 1fr; } }
.project-cover { width: 100%; border-radius: var(--r); }
.ticks.one { columns: 1; max-width: 70ch; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); }
.more-projects { border-top: 1px solid var(--line); padding-top: 48px !important; }

/* Bản đồ */
.map-band { background: var(--paper); border-top: 1px solid var(--line); padding: 64px 0; }
.map-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: stretch; }
@media (max-width: 860px) { .map-grid { grid-template-columns: 1fr; } }
.map { width: 100%; min-height: 380px; border: 0; border-radius: var(--r); border-top: 4px solid var(--brand-blue); background: var(--line); }
.contact-map { padding-bottom: 72px; }
.contact-map .map { min-height: 420px; }
